Difference between revisions of "Service/backup"

From Sugar Labs
Jump to navigation Jump to search
Line 1: Line 1:
 
== Locations ==
 
== Locations ==
  
* /backup on treehouse.sugarlabs.org (for sunjammer)
+
* /backup on treehouse.sugarlabs.org (for sunjammer's daily filesystem backups)
 
* backup.sugarlabs.org (all the other systems)
 
* backup.sugarlabs.org (all the other systems)
* /backup on sunjammer.sugarlabs.org (of sunjammers services: git, mysql and pgsql)
+
* /backup on sunjammer.sugarlabs.org (for sunjammer databases: ldap, mysql and pgsql)
  
 
== backup.sugarlabs.org ==
 
== backup.sugarlabs.org ==
 +
 +
This is the main backup server for all [[Machine|Sugarlabs Machines]]
  
 
Backup account: sugarbackup@backup.sugarlabs.org:/home/sugarbackup/
 
Backup account: sugarbackup@backup.sugarlabs.org:/home/sugarbackup/
  
 
(backup.sugarlabs.org is an alias for owl.laptop.org)
 
(backup.sugarlabs.org is an alias for owl.laptop.org)
 +
 +
== Sunjammer ==
 +
 +
[[Machine/sunjammer]]'s filesystem is being backed up on [[Machine/treehouse]] using rsync + 7 days of history with hard links.
 +
 +
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.
  
 
== Administrative contact ==
 
== Administrative contact ==
Line 42: Line 50:
  
 
== Notes ==
 
== Notes ==
 
backup.sugarlabs.org is the main backup server for all [[Machine|Sugarlabs Machines]]
 
  
  

Revision as of 15:07, 18 January 2011

Locations

  • /backup on treehouse.sugarlabs.org (for sunjammer's daily filesystem backups)
  • backup.sugarlabs.org (all the other systems)
  • /backup on sunjammer.sugarlabs.org (for sunjammer databases: ldap, mysql and pgsql)

backup.sugarlabs.org

This is the main backup server for all Sugarlabs Machines

Backup account: sugarbackup@backup.sugarlabs.org:/home/sugarbackup/

(backup.sugarlabs.org is an alias for owl.laptop.org)

Sunjammer

Machine/sunjammer's filesystem is being backed up on Machine/treehouse using rsync + 7 days of history with hard links.

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.

Administrative contact

bernie AT sugarlabs DOT org


Sysadmins

For non-emergency calls, preferably send email to the administrative contact.

Restore Backups

To restore a backup try something like:

  duplicity restore -t 7D --restore-time <yyyy/mm/dd --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


Example:

  duplicity restore -t 7D --restore-time 2000/01/01 --file-to-restore var/lib/mysql/wordpress  scp://sugarbackup@backup.sugarlabs.org/backup/sunjammer.sugarlabs.org  /home/bernie/restore/wordpress


the --restore-time is a workaround for a bug in duplicity when restoring backups in the past


Notes

Upgrade notes

See Also