> From: zfs-discuss-bounces at opensolaris.org [mailto:zfs-discuss-
>
> I am trying to duplicate a filesystem from one zpool to another zpool.
> I don''t care so much about snapshots on the destination side...I
am
> more trying to duplicate how RSYNC would copy a filesystem, and then
> only copy incrementals from the source side to the destination side in
> subsequent runs until I can complete a switch-over.? What would be some
> examples of the syntax in zfs send/receive?
Sending from a pool called "tank" on "firsthost" to a pool
called "tank" on
"somehost." Ensure "somehost" has a pool called
"tank" and a zfs filesystem
called "firsthost-tank" inside that pool.
Forgive the prolific occurrences of "set readonly=on" below. I just
made
that happen on every send, unconditionally.
zfs snapshot tank at forsync-2010-02-06-00-07-18
zfs send tank at forsync-2010-02-06-00-07-18 | ssh somehost ''zfs
receive -F
tank/firsthost-tank at forsync-2010-02-06-00-07-18''
ssh somehost ''zfs set readonly=on tank/firsthost-tank''
zfs snapshot tank at forsync-2010-02-07-00-01-05
zfs send -i tank at forsync-2010-02-06-00-07-18
tank at forsync-2010-02-07-00-01-05 | ssh somehost ''zfs receive
tank/firsthost-tank at forsync-2010-02-07-00-01-05''
ssh somehost ''zfs set readonly=on tank/firsthost-tank''