Backup/copy Freenas mirror to a different harddrive on the same system

Status
Not open for further replies.

hakkatil

Cadet
Joined
May 29, 2012
Messages
2
Hi to all,

I installed freenass with 3 tb hardrives. I mirrored the 2 using UFS filesystem.
I would like to create a cron job and copy one of the mirrored HD to a 3rd HD using
the command dd if=/dev/sda1 of=/dev/sdb1

I was wondering if this is a good way of doing it.

I also wonder if Rsync will do the job. If so, any ideas.

or best way is my best option.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Don't do it! lol. dd overwrites every bit, this will put way more stress on your system then needed.
Use rsync so you only copy the changes.

For now rsync module doesn't directly support local rsyncing. So instead create a cron job, something like 'rsync -az /mnt/zpool1/ /mnt/zpool2/'
I suggest the first time you test in a command line to get used to it. Test with something like 'rsync -avz --progress /mnt/zpool1/ /mnt/zpool2/'

You might also want to use '--delete' if you don't want to keep old files around. Moral of the story, don't use dd, use rsync =]
 
Status
Not open for further replies.
Top