Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Oct 2016 09:30:46 +0200
From:      Maurizio Vairani <maurizio.vairani@cloverinformatica.it>
To:        Ben RUBSON <ben.rubson@gmail.com>, fs@FreeBSD.org
Cc:        Eugene Grosbein <egrosbein@rdtc.ru>
Subject:   Re: zfs send for compressed fs without decompression
Message-ID:  <099b3620-8523-c660-7a6a-884deb783a25@cloverinformatica.it>
In-Reply-To: <28B40866-0898-4CD9-AABA-77189F4AA558@gmail.com>
References:  <57F258FF.5010305@rdtc.ru> <28B40866-0898-4CD9-AABA-77189F4AA558@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Il 03/10/2016 17:45, Ben RUBSON ha scritto:
>> On 03 Oct 2016, at 15:11, Eugene Grosbein <egrosbein@rdtc.ru> wrote:
>>
>> Hi!
>>
>> Is it possible to "zfs send" snapshot of large compressed file system to store it
>> using NFS so that data does not get decompressed in process?
> Hi Eugene,
>
> I think you're waiting for this :
> https://github.com/openzfs/openzfs/pull/192
>
> Ben
> _______________________________________________
> freebsd-fs@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"

In the meantime you can use a command like this:

zfs send -v $snap | lz4 -c | ssh -c arcfour128 $desthost "lz4 -d | zfs 
recv -F $destfs"

where the liblz4 package is used for compression/decompression.

Maurizio




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?099b3620-8523-c660-7a6a-884deb783a25>