With lz4 compression, should I use rsync -z?

Status
Not open for further replies.

Fraoch

Patron
Joined
Aug 14, 2014
Messages
395
Hello:

My zpool was created with lz4 compression, the default.

I'm running an rsync backup job from another machine using cron. My rsync command uses the -z option, which compresses the files.

Should I be doing this? The local machine is compressing the files first as it rsyncs, then FreeNAS compresses the files again using lz4.

I can't help but think this slows things down for no reason. Should I drop the -z rsync option?

Thanks.
 

warri

Guru
Joined
Jun 6, 2011
Messages
1,193
The ZFS compression works on the file system level, while rsync compression is only relevant for the transport.
So if you have enough bandwidth between the machines there is no need to compress the stream with rsync.
 

Fraoch

Patron
Joined
Aug 14, 2014
Messages
395
That should have been obvious to me if I had read up on rsync options....oops! :oops:

Thanks. -z option removed.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
-z will also drive up CPU usage (which may or may not matter).
 
Status
Not open for further replies.
Top