embassynetwork / modernomad

manage multi-use community houses: members, guests, events.
https://embassynetwork.com/
GNU Affero General Public License v3.0
132 stars 60 forks source link

Regularly test that backup works #494

Open jonathan-s opened 5 years ago

jonathan-s commented 5 years ago

So we're making backups. Though we don't know for sure if these backups work :). So I'm suggesting that there would be some kind of cron job or similar that would pull the latest backup and restore that backup on staging.

We'd have an up to date staging and we'd know that backups work for sure.

bfirsh commented 5 years ago

yessss +100

bfirsh commented 5 years ago

S3 bucket too.

bfirsh commented 5 years ago

This would be nice feature for https://github.com/bfirsh/heroku-tarsnap-backups in fact - a script to automatically regularly restore the backups to a staging app. The restore app could be attached as RESTORE_DATABASE and RESTORE_BUCKETEER or whatever.

Having as part of the sidecar app also means we don't have to add the tarsnap key to the main app's config (one of the reason I did a sidecar app in the first place).