sandstorm-io / sandstorm

Sandstorm is a self-hostable web productivity suite. It's implemented as a security-hardened web app package manager.
https://sandstorm.io
Other
6.73k stars 707 forks source link

Automatic Grain Backups #3675

Open jdougan opened 1 year ago

jdougan commented 1 year ago

Can backup be used standalone, outside the sandstorm environment so I could write a script to automatically generate grain backups? Or for that matter, stop sandstorm and do necessary prep work and run zip myself and get a compatible grain backup file?

ocdtrekkie commented 1 year ago

I use a script to stop Sandstorm, tar the entire Sandstorm directory, and then start Sandstorm.

The main issue you'll have trying to create the zip files themselves from file system access is creating the metadata file which I presume is generated from the database. Something outside the Sandstorm environment would need to probably query the Sandstorm database for the correct information to put in that file.