On Sat, 5 Dec 2009, dick hoogendijk wrote:

On Sat, 2009-12-05 at 09:22 -0600, Bob Friesenhahn wrote:

You can also stream into a gzip or lzop wrapper in order to obtain the
benefit of incremental CRCs and some compression as well.

Can you give an example command line for this option please?

Something like

  zfs send mysnapshot | gzip -c -3 > /somestorage/mysnap.gz

should work nicely. Zfs send sends to its standard output so it is just a matter of adding another filter program on its output. This could be streamed over ssh or some other streaming network transfer protocol.

Later, you can do 'gzip -t mysnap.gz' on the machine where the snapshot file is stored to verify that it has not been corrupted in storage or transfer.

lzop (not part of Solaris) is much faster than gzip but can be used in a similar way since it is patterned after gzip.

Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to