Backup script This script can be browsed at http://tinlizzie.org/svn/trunk/back/ and installed /home/vpri/backup-script/. It backups web contents and subversion repositories at tinlizzie.org server with 'rsync' and 'svnadmin dump' command. * All web contents in tinlizzie (tinlizzie.org:/var/www/tinlizzie/) are saved to /home/vpri/backup/backup-today/www/ * Home directories in tinlizzie (tinlizzie.org:/home/) are saved to /home/vpri/backup/backup-today/home/ * Subversion repositories (tinlizzie.org:/var/www/tinlizzie/{svn|public-repository|repository}) are saved as a dump format to /home/vpri/backup/backup-today/*.dump backup-today directory is copied to backup-yyyy-mm-dd (e.g. 2008-10-24) before new contents are transferred from tinlizzie. And they are kept in seven days at least. * Log file: /home/vpri/backup/backup.log at backup server * How it works The backup server connects tinlizzie.org with ssh-key withought pass phrase. * crontab setting (00:05 every night) $ crontab -e 5 0 * * * time /home/vpri/backup-script/backup.py >> /home/vpri/backup/backup.log 2>&1 * Reference Easy Automated Snapshot-Style Backups with Linux and Rsync http://www.mikerubel.org/computers/rsync_snapshots/ * ToDo Use rsync --link-dest instead of copy -al. Directory name is one day older than actual backup date.