-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement server backups #2
Comments
SystemImager? is one potential software to use for this: |
I've added some very basic backups to seattlegeni.cs. There are two scripts now in root's crontab: a nightly one to backup all mysql databases the www user has access to, the other a weekly one to make an archive of /home/geni. The backups are stored in /backups, which is only accessible by root. automysqlbackup.sh: nightly backup of all mysql databases the www user has access toTODO: change the user/pass in the script to be the mysql root user0 0 * * * /backups/scripts/automysqlbackup.sh tar-geni-home-dir.sh: Sunday night tar'ing up of the /home/geni directory20 0 * * 6 /backups/scripts/tar-geni-home-dir.sh |
I would recommend looking at rsnapshot ( http://rsnapshot.org/). I personally use it and like it a lot. In addition to providing recovery from a total disaster, you can recover from things as simple as accidentally deleting a configuration file or messing it up. (Or, if a package upgrade goes badly, you can try to rollback.) It is more space efficient than full dumps since it does incremental backup (like Time Machine for OSX). |
It would be good to have incremental backups, but my first priority is just to get regular simple backups of critical data being done and copied to systems in a somewhat different location, especially as the most critical data can't be reliably backed up with just cp/rsync due to the need for db locking. |
I've added a wiki page describing the current state of backups: wiki:Backups? |
priority changed from critical to major |
If things crash, we'll have no problem finding the most recent svn snapshot. But it will take months to re-build the wiki content, the Trac install, and all sorts of other essential state like the apache config files.
We need something that can backup the entire server machine into a single image that we can instantiate on another machine if necessary. Weekly backups that take place over the weekend are about the right granularity.
The text was updated successfully, but these errors were encountered: