Mirror second drive with rsync

David Bear David.Bear at asu.edu
Tue Mar 20 23:30:21 UTC 2007


On Tue, Mar 20, 2007 at 12:46:33PM -0500, Jim Canfield wrote:
> Greetings,
> 
> I currently have a situation where I have decided against raid mirroring 
> for several reasons, primarily because I always want a snapshot of a 
> previous day on a second drive. I am looking for some best practice 
> advice on how this should be done.  I'd like to hear some better ideas 
> if you all have any:

take a look at rsnapshot.org -- it use rsync to do what you want.. and
more.

> 
> System:  Centos 4.4 (Maybe 5)
> Disks: /dev/sba,/dev/sdb (Identical 36GB SCSI)
> Goals:  After initial image, the machine should stay online during 
> nightly sync.  If the primary drive fails, restore should  be a matter 
> of removing the primary drive and replacing it with the backup drive.
> 
> 
> 1) Image complete system to rescue drive using bootable cd (dd 
> if=/dev/sba of=/dev/sdb)
> 
> 2) Create rsync script that does the following:
> 
> mount rescue (mount /dev/sdb /rescue)
> rsync primary drive to rescue drive (rsync -ax --delete --force 
> --exclude /rescue / /rescue/)
> unmount mirror (umount /rescue)
> 
> 3) Add script to cron daily.
> 
> Almost seems too simple, that scares me! ;) I can't help but wonder if 
> 'drbd' could do this this more efficiently
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list

-- 
David Bear
phone: 	602-496-0424
fax: 	602-496-0955
College of Public Programs/ASU
University Center Rm 622
411 N Central
Phoenix, AZ 85007-0685
 "Beware the IP portfolio, everyone will be suspect of trespassing"




More information about the redhat-list mailing list