On 9/20/07, admin at lctn.org <admin at lctn.org> wrote:
>
> Looks like I have a couple options for creating a raid 1. What docs would
> you use for rsync in this case?

Keep in mind:

rsync != RAID1

Using rsync, you'd have a periodic cron job that would mirror one
drive to the other.  With true RAID1, however, as Eric was explaining,
the kernel mirrors driveA to driveB in realtime.

Getting rsync set up would be quite easy.  Just install the new hard
drive in the box, create a partition on it and create the fs.  Once
this is complete, mount the drive somewhere, then run a command like:

$ rsync -av --progress --delete / /path/to/mount/point

This would mirror the entire contents of / to the second drive.
You'll want to do add a few "--exclude" rules to that command, though,
to exclude /proc, /dev, etc.

-erik