User Tools

Site Tools


build:backups

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
build:backups [2007/06/13 15:50]
206.197.251.70 Add backup dirs for bud and budlight. (CMB)
build:backups [2010/07/18 16:51] (current)
SLUUG Administration
Line 24: Line 24:
 ===== Rsync Backups ===== ===== Rsync Backups =====
  
 +
 +For the procedure used for backups of michelob and dark using rsync, see [[rsync-aix]].
  
 ===== Tarball Backups ===== ===== Tarball Backups =====
Line 88: Line 90:
  
 Run the script to test that it works, and saves a file with the correct name in /​var/​backups/​usr_local/​. Run 'tar tfz' on the resulting backup file to make sure it contains the expected files. Run the script to test that it works, and saves a file with the correct name in /​var/​backups/​usr_local/​. Run 'tar tfz' on the resulting backup file to make sure it contains the expected files.
 +
  
  
Line 94: Line 97:
 NOTE: We currently store web sites in ''/​home/​web'',​ so we do not need to back up anything separately at this point. NOTE: We currently store web sites in ''/​home/​web'',​ so we do not need to back up anything separately at this point.
  
 +We do have a backup procedure for the wiki content. The ''/​etc/​cron.daily/​backup-dokuwiki''​ script copies a backup of the wiki data files to ''/​var/​backups/​web/''​.
 +
 +<code /​etc/​cron.daily/​backup-dokuwiki>​
 +#!/bin/sh
 + 
 +DATE=`date +'​%Y%m%d'​`
 +BACKUPDIR=/​var/​backups/​web
 +EXCLUDE='​data/​cache/​*'​
 +INCLUDE='​data/​ conf/'
 +WIKIDIR=/​srv/​www/​wiki.sluug.org/​public
 + 
 +tar cfz $BACKUPDIR/​wikidata-$DATE.tgz -C $WIKIDIR --exclude="​$EXCLUDE"​ $INCLUDE
 +
 +</​code>​
 +
 +This tars all other vhosts in /srv/www
 +
 +<code /​etc/​cron.daily/​backup-www>​
 +#!/bin/sh
 + 
 +SRCDIR=/​srv/​www
 +BACKUPDIR=/​var/​backups/​web
 +EXCLUDE='​wiki.sluug.org/​* wordpress*'​
 +DATE=`date +'​%Y%m%d'​`
 + 
 +tar cfz $BACKUPDIR/​www-$DATE.tgz -P $SRCDIR --exclude="​$EXCLUDE"​
 +</​code>​
  
 ==== Backup of Email ==== ==== Backup of Email ====
Line 127: Line 157:
  
 Take a look at [[http://​jeremy.zawodny.com/​mysql/​ | mysqlsnapshot]] to see if it might work better for MySQL backups. Note that it has not been updated for MySQL 4.x or 5.x, but it's a Perl script, so it might still work. Take a look at [[http://​jeremy.zawodny.com/​mysql/​ | mysqlsnapshot]] to see if it might work better for MySQL backups. Note that it has not been updated for MySQL 4.x or 5.x, but it's a Perl script, so it might still work.
- 
build/backups.1181767817.txt.gz ยท Last modified: 2007/06/13 15:50 by 206.197.251.70