Note that the local rsync
documentation covers the information about --compress-level
.
To find it:
- run
man rsync
- type /compress-level (note the slash) and press ENTER
- type / and ENTER (repeat until satisfied)
- gotcha!
--compress-level=NUM
Explicitly set the compression level to use (see --compress) in‐
stead of letting it default. Allowed values for NUM are between
0 and 9; default when --compress option is specified is 6. If
NUM is non-zero, the --compress option is implied.
Having said that, I admit it's not very explanatory about the actual behavior of NUM
... but bigger NUM
means more compression. So:
rsync --compress-level=9
That enables maximum compression (so, maximum CPU usage).
Note: very high compression levels are useful for very limited connection bandwidth. On high-speed networks, this compression just slow down everything, since your CPU is busy in compressing instead of just copying.