What about software RAID 1 (mirroring)? If the backup is not on another physical machine, seems like mirroring might be as easy as rsync, w/o any scary scripted rm -rf'ing or --delete. Plus, it's always up-to-date (at least between disk sync intervals, someone else can remind me what those are under ext2fs, ~30 sec, IIRC), whereas a scripted rsync would only be good up to the last go-round on the cron job, nightly in your example.
Don't get me wrong, I love rsync, but seems like not quite the right tool for this job, IMHO. -Dan Young -Parkrose School District -Portland, OR Gary Peltola wrote: >Im brand new to rsync and i been doing alot of reading about it and it looks like the >tool I have long been wanting. > >Bascially i got 1 server, 2 hard drives. partions are > >/ >/boot >/home >/usr >/var >/backup (2nd drive) > >Bascially what i am looking at doing is mirroring the first drive to the 2nd drive, >and once that intial one is moved over, have a >cron run nightly (or when specified) that will update any modified files from the >cron run. I am looking to have this as a perl >script (or whatever) so i can easily port it to all my servers across my network. So >that if hard drive 1 fails, i will just need to >pop in hard drive two and be up and running within minutes rather then hours (my last >outage was pretty major on my /boot partion >and if had rysnc setup in the manor i am speaking of, downtime would have went from 8 >hours to less then 30 minutes....) > >Does anyone have such examples of what i can do to accomplish this? or if even >better, someone is willing to create the script in >question for some a quick $50 or something like that I have absolutly no problem in. >I am rather busy with daily operations and if i >can get someone to make me the script, that would be very favorable > > >------------------------------------- >Thanks! >Gary Peltola > -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html