Tom Nielsen wrote:
Original poster here. I failed to mention that I want to backup my whole hard drive including my root and home directories to another drive on my computer. this is a stand alone machine. I was going to go with a RAID1 setup but found that's really not what I wanted to accomplish since if I screw up one system, the other will go too.
Will the below command still do what I want? It sounds like it. How would I setup my second drive? Any special partitions? Should I dd the disk first then use rsync or just rsync to begin with?
Thanks, Tom
Tom, Attached is a script I developed base on the info from Bruce Marshall. It backs up to my /dev/hdb1 which is mounted as /.snapshot. I've include the script in cron which should execute at 2 AM every day. I'll find out over the next few days is it works Terry -- SuSE Linux 8.2 (i586) 2.4.20-4GB-athlon || Sun Nov 23 18:25:00 CST 2003 6:25pm up 92 days 23:24, 3 users, load average: 0.25, 0.08, 0.10 #!/bin/sh /usr/bin/rsync -aur --delete /archive /.snapshot/ /usr/bin/rsync -aur --delete /bin /.snapshot/ /usr/bin/rsync -aur --delete /boot /.snapshot/ /usr/bin/rsync -aur --delete /data1 /.snapshot/ /usr/bin/rsync -aur --delete /data2 /.snapshot/ /usr/bin/rsync -aur --delete /data3 /.snapshot/ /usr/bin/rsync -aur --delete /data4 /.snapshot/ /usr/bin/rsync -aur --delete /etc /.snapshot/ /usr/bin/rsync -aur --delete /home /.snapshot/ /usr/bin/rsync -aur --delete /lib /.snapshot/ /usr/bin/rsync -aur --delete /opt /.snapshot/ /usr/bin/rsync -aur --delete /root /.snapshot/ /usr/bin/rsync -aur --delete /sbin /.snapshot/ /usr/bin/rsync -aur --delete /srv /.snapshot/ /usr/bin/rsync -aur --delete /tmp /.snapshot/ /usr/bin/rsync -aur --delete /usr /.snapshot/ /usr/bin/rsync -aur --delete /var /.snapshot/