> From: zfs-discuss-boun...@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 t...@forsync-2010-02-06-00-07-18
zfs send t...@forsync-2010-02-06-00-07-18 | ssh somehost 'zfs receive -F
tank/firsthost-t...@forsync-2010-02-06-00-07-18'
ssh somehost 'zfs set readonly=on tank/firsthost-tank'

zfs snapshot t...@forsync-2010-02-07-00-01-05
zfs send -i t...@forsync-2010-02-06-00-07-18
t...@forsync-2010-02-07-00-01-05 | ssh somehost 'zfs receive
tank/firsthost-t...@forsync-2010-02-07-00-01-05'
ssh somehost 'zfs set readonly=on tank/firsthost-tank'


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

Reply via email to