Remigr / nomadplanets

Nomad planets
3 stars 0 forks source link

Backup database #10

Open Remigr opened 9 years ago

Remigr commented 9 years ago

http://docs.mongodb.org/manual/core/backups/

simison commented 9 years ago

Configure something like this: https://github.com/Trustroots/trustroots/wiki/Server#configure-backups https://github.com/Trustroots/trustroots/blob/master/scripts/backup-db.sh

I use this to sync backups to S3 but a simple rsync to some other server would suffice just as well: https://github.com/Trustroots/trustroots/blob/master/scripts/s3backup.sh

At the target machine you could run a script that emails you if backups are older than x days. Somewhere at Hitchwiki repos there's one for that.