Fixed a typo.
[rsync-web.git] / horus.txt
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.
5
6     #!/bin/sh
7
8     export PATH=/usr/local/bin:/usr/bin:/bin
9
10     LIST="rootfs usr data data2"
11
12     for d in $LIST; do
13         mount /backup/$d
14         rsync -ax --exclude fstab --delete /$d/ /backup/$d/
15         umount /backup/$d
16     done
17
18     DAY=`date "+%A"`
19     
20     rsync -a --delete /usr/local/apache /data2/backups/$DAY
21     rsync -a --delete /data/solid /data2/backups/$DAY
22
23    
24
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.
28