Ian Collins <i...@ianshome.com> writes:

>> I suspect that a 'zfs copy' or somesuch would be a nice utility
>> when wanting to shove a parent and all of it's snapshots to
>> another system.
>>   
> If that's what you want, do an incremental send (-I).

To be a bit more detailed, first create the file system on the
target machine by sending the first snapshot that you want to have
replicated in full. After that, send each of the following snapshots
incrementally, based on the previous.

So if you have this on host a:

tank/m...@snap1
tank/m...@snap2
tank/m...@snap3
tank/m...@snap4

and a pool "data" on host b, do it like this:

a# zfs send tank/m...@snap1 | ssh b zfs recv -d data
a# zfs send -i tank/m...@snap1 tank/m...@snap2 | ssh b zfs recv data/myfs
a# zfs send -i tank/m...@snap2 tank/m...@snap3 | ssh b zfs recv data/myfs
a# zfs send -i tank/m...@snap3 tank/m...@snap4 | ssh b zfs recv data/myfs

Regards, Juergen.
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to