John Beck wrote:
% zfs snapshot -r [EMAIL PROTECTED]
% zfs send space/[EMAIL PROTECTED] | ssh newbox zfs recv -d space
% zfs send space/[EMAIL PROTECTED] | ssh newbox zfs recv -d space
...
% zfs set mountpoint=/export/home space
% zfs set mountpoint=/usr/local space/local
% zfs set sharenfs=on space/jbeck space/local
I'm working on some enhancements to zfs send/recv that will simplify
this even further, especially in cases where you have many filesystems,
snapshots, or changed properties. In particular, you'll be able to
simply do:
# zfs snapshot -r [EMAIL PROTECTED]
# zfs send -r -b [EMAIL PROTECTED] | ssh newbox zfs recv -p -d newpool
The "send -b" flag means to send from the beginning. This will send a
full stream of the oldest snapshot, and incrementals up to the named
snapshot (eg, from @a to @b, from @b to @c, ... @j to @today). This way
your new pool will have all of the snapshots from your old pool.
The "send -r" flag means to do this for all the filesystem's descendants
as well (in this case, space/jbeck and space/local).
The "recv -p" flag means to preserve locally set properties (in this
case, the mountpoint and sharenfs settings).
For more information, see RFEs 6421959 and 6421958, and watch for a
forthcoming formal interface proposal.
--matt
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss