ZFS Send Receive compressed dataset

Status
Not open for further replies.

g1ngerninja

Dabbler
Joined
May 8, 2016
Messages
21
Hi All,

I've been playing around with 2 NAS boxes moving data from one to the other using ZFS send receive.

But when I've sent a compressed lz4 dataset to another NAS with this command :-
Code:
zfs send RAID6/Timemachine@Snap1 | ssh 192.168.1.250 zfs recv RAID/Timemachine


The resultant dataset on the destination NAS doesn't contain the compression set on the source. The data copied over just fine but the dataset isn't an exact copy of the source.

I've read https://docs.oracle.com/cd/E18752_01/html/819-5461/gbchx.html and it states
The original file system to be received must not exist while it is being transferred.

So I didn't create the dataset on the destination, should I have done this first?
What am I missing here?

Thanks
g1gerninja
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Just turn on compression on the receiving side before transferring data.
 
Status
Not open for further replies.
Top