mirror of https://github.com/jimsalterjrs/sanoid
add xz compression
This commit is contained in:
parent
eeedf38d57
commit
f51bb9db7e
10
syncoid
10
syncoid
|
|
@ -509,6 +509,12 @@ sub compressargset {
|
||||||
decomrawcmd => '/usr/bin/zstd',
|
decomrawcmd => '/usr/bin/zstd',
|
||||||
decomargs => '-dc',
|
decomargs => '-dc',
|
||||||
},
|
},
|
||||||
|
'xz' => {
|
||||||
|
rawcmd => '/usr/bin/xz',
|
||||||
|
args => '',
|
||||||
|
decomrawcmd => '/usr/bin/xz',
|
||||||
|
decomargs => '-d',
|
||||||
|
},
|
||||||
'lzo' => {
|
'lzo' => {
|
||||||
rawcmd => '/usr/bin/lzop',
|
rawcmd => '/usr/bin/lzop',
|
||||||
args => '',
|
args => '',
|
||||||
|
|
@ -519,7 +525,7 @@ sub compressargset {
|
||||||
|
|
||||||
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', 'lzo', 'xz', '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, xz, 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