sul-cidr / scriptchart-backend

Admin UI and API for Scriptchart
https://db.syriac.reclaim.hosting/admin
MIT License
1 stars 0 forks source link

Determine and implement DB backup policy and method #27

Open broadwell opened 5 years ago

broadwell commented 5 years ago

Presumably the DB backups would be generated via mysqldump (compressed). Details to work out:

Note that Reclaim offers daily rolling backups of the DB via its Jetbackup app, but these are only kept around for a few weeks, and there does not seem to be any API for accessing the backups or scheduling new ones.

simonwiles commented 5 years ago

I've just assigned this to myself. The Jetbackup backups are available in the hosting account (~/.jbm), but they're less than ideal for a number of reasons. For now, I've set up a cron job that takes a backup of all MySQL databases on the instance (which is just the one, and will presumably remain just the one) every night. The present behaviour is to overwrite the backup file every night, keeping only the one from the first of each month for posterity (i.e., at any given time you should expect to be able to find last night's backup, and one from the 1st day of each month from here on out).

The issue of getting this backup somewhere else (i.e. off reclaim) for safekeeping remains outstanding.