Line 16: |
Line 16: |
| == wizbackup == | | == wizbackup == |
| | | |
− | * [http://codewiz.org/gitweb/wizbackup.git|Source code] | + | * C[http://codewiz.org/gitweb/wizbackup.git|Source ode] |
− | * [http://codewiz.org/gitweb/wizbackup.git/blob/HEAD:/INSTALL|Installation instructions] | + | * I[http://codewiz.org/gitweb/wizbackup.git/blob/HEAD:/INSTALL|Installation nstructions] |
| | | |
| This is the main backup script for all [[Machine|Sugar Labs Machines]]. It's a minimalist script based on rsync and keeps a history of N days using hard-links. While it's very very simple, wizbackup gets the job done and has the added benefit of not requiring any tools to read or restore a backup. The advantage over similar backup solution is that backups are just plain filesystem snapashots of the source machines; the main disadvantage is poor performance with large files which change often, such as logs or databases (my solution is to exclude these and backup the data using ad-hoc methods, such as SQL dumps). | | This is the main backup script for all [[Machine|Sugar Labs Machines]]. It's a minimalist script based on rsync and keeps a history of N days using hard-links. While it's very very simple, wizbackup gets the job done and has the added benefit of not requiring any tools to read or restore a backup. The advantage over similar backup solution is that backups are just plain filesystem snapashots of the source machines; the main disadvantage is poor performance with large files which change often, such as logs or databases (my solution is to exclude these and backup the data using ad-hoc methods, such as SQL dumps). |
Line 36: |
Line 36: |
| The MySQL, PostgreSQL and LDAP databases are being backed up daily on backup.sugarlabs.org, encrypted with gpg. TODO: at the moment, we don't have a script to cleanup old backups. | | The MySQL, PostgreSQL and LDAP databases are being backed up daily on backup.sugarlabs.org, encrypted with gpg. TODO: at the moment, we don't have a script to cleanup old backups. |
| | | |
− | == Restoring files from duplicity backups == | + | == Restoring files from duplicity backups (OBSOLETE) == |
| + | |
| + | '''We no longer use Duplicity.''' |
| | | |
| To restore a backup try something like: | | To restore a backup try something like: |
| | | |
| duplicity restore -t 7D --file-to-restore <source/path/to/restore/from> scp://sugarbackup@backup.sugarlabs.org/backup/<machine.sugarlabs.org> </destination/path/to/restore/to> | | duplicity restore -t 7D --file-to-restore <source/path/to/restore/from> scp://sugarbackup@backup.sugarlabs.org/backup/<machine.sugarlabs.org> </destination/path/to/restore/to> |
− |
| |
− | * Replace <> with your values
| |
| | | |
| | | |
Line 48: |
Line 48: |
| | | |
| duplicity restore -t 7D --file-to-restore var/lib/mysql/wordpress scp://sugarbackup@backup.sugarlabs.org/backup/sunjammer.sugarlabs.org /home/bernie/restore/wordpress | | duplicity restore -t 7D --file-to-restore var/lib/mysql/wordpress scp://sugarbackup@backup.sugarlabs.org/backup/sunjammer.sugarlabs.org /home/bernie/restore/wordpress |
− |
| |
− | == See Also ==
| |
− |
| |
− | * There are instructions on how to set up a backup here: [[Infrastructure_Team/Template_virtual_machine_lucid]]
| |
| | | |
| [[Category:Service|zzz]] | | [[Category:Service|zzz]] |