script to rysnc to spare hard drive

Dan Young dan_young at
Wed Mar 6 10:19:19 EST 2002

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 

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
>/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
>Gary Peltola

More information about the rsync mailing list