Quoting Jacob Weisz (2020-11-18 22:25:29)
> Trying to back up grains yourself while Sandstorm is running could definitely lead to corruption. Until recently, this was true for backups taken by Sandstorm itself as well. (
https://github.com/sandstorm-io/sandstorm/issues/3186) But if you have a new enough kernel (Linux 5.0+), you get safe backups using the download backup button.
A couple ways you could work around this for now:
- Shut down sandstorm before doing the backup. This might be suitable if
your users aren't going to be accessing the system at 4am or some
suitable time.
- Install sandstorm on a filesystem that supports snapshots (e.g.
btrfs), and take a snapshot rather than using `cp -r` or the like.
The backup story is I think one of the biggest weak points as far as
administering a Sandstorm box right now. As Jacob mentions, I'm working
on some things, but they're very much a long-term projects, so in the
meantime I'm sorry there's not a better approach.
-Ian