rsync and zfs snapshot question

Status
Not open for further replies.

natas

Cadet
Joined
Jul 4, 2012
Messages
1
Hey guys. I have a question.

I have 2 zfs pools.

pool0 - This pool is setup with a dataset called Myfiles. This dataset has snapshots that run hourly and are cleaned up after 30 days
pool1 - I created a dataset called MyFilesBackup. What I want to do is basically a clone pool0/MyFiles to pool1/MyFilesBackup

So I thought to myself that rysnc could work here....but one thing that is confusing me is how will rsync handle my snapshots? I know that when I look in my .zfs directory on pool0/MyFiles and do a du its very large...but that number doesn't actually line up with the output of df -h. So I am guessing that the amount that du -h is showing is real and that all the stuff in the .zfs directory is something like pointers (correct me if I am wrong). So if the .zfs directory is not really that big how will rsync work once it starts syncing to pool1/MyFilesBackup? Will it show the same amount but not really take up that much space. How will zfs handle the snapshots in pool1/MyFilesBackup. Will those pointers be pointing to pool0/MyFilesBackup or pool1/MyFiles?
 
Status
Not open for further replies.
Top