You don't say which version of ZFS you are running, but what you want is the -R option for zfs send. See also the example of send usage in the zfs(1m) man page. -- richard
James Andrewartha wrote: > Hi, > > I have a zfs filesystem that I'd like to move to another host. It's part > of a pool called space, which is mounted at /space and has several child > filesystems. The first hurdle I came across was that zfs send only works > on snapshots, so I create one: > # zfs snapshot -r [EMAIL PROTECTED] > # zfs list -t snapshot > NAME USED AVAIL REFER MOUNTPOINT > [EMAIL PROTECTED] 0 - 25.9G - > space/[EMAIL PROTECTED] 0 - 31K - > space/[EMAIL PROTECTED] 924K - 52.4G - > space/[EMAIL PROTECTED] 0 - 38K - > space/freebsd/[EMAIL PROTECTED] 0 - 36K - > space/freebsd/[EMAIL PROTECTED] 0 - 4.11G - > space/[EMAIL PROTECTED] 0 - 47.6G - > space/[EMAIL PROTECTED] 352K - 14.7G - > space/netboot/[EMAIL PROTECTED] 0 - 95.5M - > space/netboot/manduba-freebsd/[EMAIL PROTECTED] 0 - 36K - > space/netboot/manduba-freebsd/[EMAIL PROTECTED] 0 - 327M - > space/netboot/manduba-freebsd/[EMAIL PROTECTED] 0 - 36K - > space/[EMAIL PROTECTED] 234K - 167G - > > On the destination, I have created a zpool, again called space and > mounted at /space. However, I can't work out how to send [EMAIL PROTECTED] > to the new machine: > # zfs send [EMAIL PROTECTED] | ssh musundo "zfs recv -vn -d space" > cannot receive: destination 'space' exists > # zfs send [EMAIL PROTECTED] | ssh musundo "zfs recv -vn space" > cannot receive: destination 'space' exists > # zfs send [EMAIL PROTECTED] | ssh musundo "zfs recv -vn space2" > cannot receive: destination does not exist > # zfs send [EMAIL PROTECTED] | ssh musundo "zfs recv -vn space/space2" > would receive full stream of [EMAIL PROTECTED] into space/[EMAIL PROTECTED] > # zfs send [EMAIL PROTECTED] | ssh musundo "zfs recv -vn [EMAIL PROTECTED]" > cannot receive: destination 'space' exists > # zfs send [EMAIL PROTECTED] | ssh musundo "zfs recv -vn [EMAIL PROTECTED]" > cannot receive: destination does not exist > > What am I missing here? I can't recv to space, because it exists, but I > can't make it not exist since it's the root filesystem of the pool. Do I > have to send each filesystem individually and rsync up the root fs? > > Thanks, > > James Andrewartha > > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss@opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss > _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss