SAC:Backups

= Backups =

backup.osgeo.org
This the OSUOSL VM used for backups starting in 2010/04. It is used for rsync backups of various things (download.osgeo.org, osgeo1, ...), and backula backups of OSU OSL VMs.
 * Admins: Frank Warmerdam (rsync), Martin Spott (backula)
 * access is via SAC shell group.
 * download.osgeo.org rsync mirroring runs nightly and is externally available at backup2.osgeo.org.

System is still being setup as of 2010/04.

osgeo1 (primary peer1 host)
TODO: add in which time zone cron is running - Atlanta EST? WISH: please don't run heavy backups during European day, but preferably during Pacific Ocean day  (optimize backup time)

current cron jobs for backups
/etc/cron.d/backup.cron

# 05 2 * * * root /root/scripts/daily.sh 45 */3 * * * root /root/scripts/backup_svn_incremental.sh 39 * * * * root /root/scripts/drupal_cron.sh
 * 1) Backup cron jobs
 * 2) min hour day month dayofweek user command
 * 1) 2am: Daily rsync to /home/back
 * 1) Every 3 hours
 * 2) /etc/mysql-zrm
 * 3) 33 */3 * * * root /usr/bin/rsync -a --delete /etc/mysql-zrm/ /home/back/etc/mysql-zrm/
 * 4) /var/lib/mysql-zrm
 * 5) 34 */3 * * * root /usr/bin/rsync -a --delete /var/lib/mysql-zrm/ /home/back/mysql-zrm/
 * 6) call backup_trac_svn.sh to backup
 * 7) subversion /var/www/svn/repos
 * 8) trac /var/www/trac
 * 1) 45 */3 * * * root /root/scripts/trac_backup.pl
 * 2) 45 */3 * * * root /root/scripts/backup_trac_svn.sh
 * 3) Thisdoes some hourly drupal/mysql optimization

backup script are in /root/scripts

backup_svn_incremental.sh runs every 3 hours and only dumps what has changed in the repository in the last three hours to /home/back/svn_backup/project/incremental

backup-svn_full.sh runs once a day at 1 am and does a 'svnadmin hotcopy' of the repository in /home/back/svn_backup/project/full. 14 copies of the repository are kept.

When adding a new svn repository, make sure to edit both the _full and _incremental scripts to add backups for your projects. You will also have to create the /home/back/svn_backup/project/{full,incremental} directories or the scripts will not work. rsync_back rsyncs www.osgeo.org/home/back with test.osgeo.net/home/back (the second PEER1 server)

Daily PEER1 Backup
PEER1 hosting service is doing daily backup of identified parts of our system using their SANS infrastructure.
 * This is a service we pay for on both osgeo1 and osgeo2. Do we need it on both?
 * At present it is backing up the portions identified below complete file systems on both servers, so we maintain a reasonable sized backup without incurring storage costs. Update the list by sending them the list through their support ticket system.

The backup daemon can be disabled with: /sbin/service dsmcad stop /sbin/service dsmc stop

and restarted with: /sbin/service dsmc start /sbin/service dsmcad start

added note (december 2009): the peer1 admin staff seem determined to restart this service so I have renamed the executables: mv /usr/bin/dsmc /usr/bin/dsmc_hidden mv /usr/bin/dsmcad /usr/bin/dsmcad_hidden

Backup Folders / Files
Please list locations to be backed up here, preferably the same on both servers. Unless we feel we can drop the service on one of them. Storage stats are from early 2008 and out of date by now. running total: < 9GB
 * 1) /etc - 10MB
 * 2) /var/www/trac - 550MB
 * 3) /root - 3MB
 * 4) /home/back/mailman - 1370MB
 * 5) /var/lib/mysql-zrm/daily - 401MB
 * 6) /usr/local/awstats/data - 52MB
 * 7) /var/www/- 6GB (SVN 7GB excluded, below)

Exclude

 * 1) /var/www/svn - 7GB

Mysql
MySQL is being backed up using MySQL-zrm
 * Daily recovery files saved at: /var/lib/mysql-zrm/daily - other files needed?

LDAP

 * Anything needed for this? i.e. /var/lib/ldap ?

osgeo2 (test.osgeo.net)

 * Daily PEER1 Backup above also applies

osgeo3 & osgeo4
See: Infrastructure Transition Plan 2010

download.osgeo.org
As noted in Download Server the contents of download.osgeo.org are rsync'ed to osgeo2.

xblade14-2 (buildbot | upload | remotesensing.org | GeoTools | Gallery | FOSS4G2007 )
??? How does it work?