add lz4 compression
This commit is contained in:
parent
22160deb8e
commit
d5f4d1c121
|
@ -168,7 +168,7 @@ As of 1.4.18, syncoid also automatically supports and enables resume of interrup
|
||||||
|
|
||||||
+ --compress <compression type>
|
+ --compress <compression type>
|
||||||
|
|
||||||
Currently accepted options: gzip, pigz-fast, pigz-slow, lzo (default) & none. If the selected compression method is unavailable on the source and destination, no compression will be used.
|
Currently accepted options: gzip, pigz-fast, pigz-slow, zstd-fast, zstd-slow, lz4, lzo (default) & none. If the selected compression method is unavailable on the source and destination, no compression will be used.
|
||||||
|
|
||||||
+ --source-bwlimit <limit t|g|m|k>
|
+ --source-bwlimit <limit t|g|m|k>
|
||||||
|
|
||||||
|
|
10
syncoid
10
syncoid
|
@ -515,11 +515,17 @@ sub compressargset {
|
||||||
decomrawcmd => '/usr/bin/lzop',
|
decomrawcmd => '/usr/bin/lzop',
|
||||||
decomargs => '-dfc',
|
decomargs => '-dfc',
|
||||||
},
|
},
|
||||||
|
'lz4' => {
|
||||||
|
rawcmd => '/usr/bin/lz4',
|
||||||
|
args => '',
|
||||||
|
decomrawcmd => '/usr/bin/lz4',
|
||||||
|
decomargs => '-dc',
|
||||||
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($value eq 'default') {
|
if ($value eq 'default') {
|
||||||
$value = $DEFAULT_COMPRESSION;
|
$value = $DEFAULT_COMPRESSION;
|
||||||
} elsif (!(grep $value eq $_, ('gzip', 'pigz-fast', 'pigz-slow', 'zstd-fast', 'zstd-slow', 'lzo', 'default', 'none'))) {
|
} elsif (!(grep $value eq $_, ('gzip', 'pigz-fast', 'pigz-slow', 'zstd-fast', 'zstd-slow', 'lz4', 'lzo', 'default', 'none'))) {
|
||||||
warn "Unrecognised compression value $value, defaulting to $DEFAULT_COMPRESSION";
|
warn "Unrecognised compression value $value, defaulting to $DEFAULT_COMPRESSION";
|
||||||
$value = $DEFAULT_COMPRESSION;
|
$value = $DEFAULT_COMPRESSION;
|
||||||
}
|
}
|
||||||
|
@ -1227,7 +1233,7 @@ syncoid - ZFS snapshot replication tool
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
--compress=FORMAT Compresses data during transfer. Currently accepted options are gzip, pigz-fast, pigz-slow, lzo (default) & none
|
--compress=FORMAT Compresses data during transfer. Currently accepted options are gzip, pigz-fast, pigz-slow, zstd-fast, zstd-slow, lz4, lzo (default) & none
|
||||||
--identifier=EXTRA Extra identifier which is included in the snapshot name. Can be used for replicating to multiple targets.
|
--identifier=EXTRA Extra identifier which is included in the snapshot name. Can be used for replicating to multiple targets.
|
||||||
--recursive|r Also transfers child datasets
|
--recursive|r Also transfers child datasets
|
||||||
--skip-parent Skips syncing of the parent dataset. Does nothing without '--recursive' option.
|
--skip-parent Skips syncing of the parent dataset. Does nothing without '--recursive' option.
|
||||||
|
|
Loading…
Reference in New Issue