mirror of https://github.com/jimsalterjrs/sanoid
add zstd-medium compression parameter
This commit is contained in:
parent
d3ad1caa15
commit
2c009be6ce
10
syncoid
10
syncoid
|
|
@ -1150,6 +1150,12 @@ sub compressargset {
|
|||
decomrawcmd => 'zstd',
|
||||
decomargs => "-T$ncpus -dc",
|
||||
},
|
||||
'zstd-medium' => {
|
||||
rawcmd => 'zstd',
|
||||
args => "-T$ncpus -8",
|
||||
decomrawcmd => 'zstd',
|
||||
decomargs => "-T$ncpus -dc",
|
||||
},
|
||||
'zstdmt-fast' => {
|
||||
rawcmd => 'zstdmt',
|
||||
args => '-3',
|
||||
|
|
@ -1190,7 +1196,7 @@ sub compressargset {
|
|||
|
||||
if ($value eq 'default') {
|
||||
$value = $DEFAULT_COMPRESSION;
|
||||
} elsif (!(grep $value eq $_, ('gzip', 'pigz-fast', 'pigz-slow', 'zstd-fast', 'zstdmt-fast', 'zstd-slow', 'zstdmt-slow', 'lz4', 'xz', 'lzo', 'default', 'none'))) {
|
||||
} elsif (!(grep $value eq $_, ('gzip', 'pigz-fast', 'pigz-slow', 'zstd-fast', 'zstd-medium', 'zstdmt-fast', 'zstd-slow', 'zstdmt-slow', 'lz4', 'xz', 'lzo', 'default', 'none'))) {
|
||||
writelog('WARN', "Unrecognised compression value $value, defaulting to $DEFAULT_COMPRESSION");
|
||||
$value = $DEFAULT_COMPRESSION;
|
||||
}
|
||||
|
|
@ -2323,7 +2329,7 @@ syncoid - ZFS snapshot replication tool
|
|||
|
||||
Options:
|
||||
|
||||
--compress=FORMAT Compresses data during transfer. Currently accepted options are gzip, pigz-fast, pigz-slow, zstd-fast, zstdmt-fast, zstd-slow, zstdmt-slow, lz4, xz, lzo (default) & none
|
||||
--compress=FORMAT Compresses data during transfer. Currently accepted options are gzip, pigz-fast, pigz-slow, zstd-fast, zstd-medium, zstdmt-fast, zstd-slow, zstdmt-slow, lz4, xz, lzo (default) & none
|
||||
--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
|
||||
--skip-parent Skips syncing of the parent dataset. Does nothing without '--recursive' option.
|
||||
|
|
|
|||
Loading…
Reference in New Issue