> zfs send -Rv rp...@0908 > /net/remote/rpool/snaps/rpool.0908

The recommended thing is to "zfs send | zfs receive"  ... or more likely,
"zfs send | ssh somehost 'zfs receive'"  You should ensure the source and
destination OSes are precisely the same version, because then you're assured
the zfs send&receive are both compatible with each other.

By directly piping the send to the receive (and it completing successfully),
you're guaranteeing the checksum integrity of the filesystem in transit, and
enabling both the restore of the whole filesystem, and individual files, if
you would ever care about that.

If you "zfs send > somefile" and then you need to do a restore, you're only
assured to be able to restore onto precisely the same version of OS that
originated the "sendfile."  And as other people mentioned, you're only able
to restore the whole thing - and you're at risk if there's even a single bit
data corruption.

It should not be difficult to directly pipe a send to a receive - the only
obstacle would be if the destination filesystem is not ZFS.  Hopefully you
can overcome that obstacle.

To answer the original question - how to do an incremental - Please see this
example:

## Create Full snapshot and send it
zfs snapshot sourc...@uniquesnapname
zfs send sourc...@uniquesnapname > somefile-Full
(or:  zfs send sourc...@uniquesnapname | ssh somehost 'zfs receive -F
targe...@uniquesnapname' )

## Create Incremental snap and send it
zfs snapshot sourc...@incrementalsnap1
zfs send -i sourc...@uniquesnapname sourc...@incrementalsnap1 >
somefile-incremental
(or:  zfs send -i sourc...@uniquesnapname sourc...@incrementalsnap1 | ssh
somehost 'zfs receive targe...@incrementalsnap1' )

## Create yet another incremental and send it
zfs snapshot sourc...@incrementalsnap2
zfs send -i sourc...@incrementalsnap1 sourc...@incrementalsnap2 >
somefile-incremental2
(or:  zfs send -i sourc...@incrementalsnap1 sourc...@incrementalsnap2 | ssh
somehost 'zfs receive targe...@incrementalsnap2' )

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

Reply via email to