1 I do local backups on several of my machines using rsync. I have an
2 extra disk installed that can hold all the contents of the main
3 disk. I then have a nightly cron job that backs up the main disk to
4 the backup. This is the script I use on one of those machines.
8 export PATH=/usr/local/bin:/usr/bin:/bin
10 LIST="rootfs usr data data2"
14 rsync -ax --exclude fstab --delete /$d/ /backup/$d/
20 rsync -a --delete /usr/local/apache /data2/backups/$DAY
21 rsync -a --delete /data/solid /data2/backups/$DAY
25 The first part does the backup on the spare disk. The second part
26 backs up the critical parts to daily directories. I also backup the
27 critical parts using a rsync over ssh to a remote machine.