diff --git a/btrbk b/btrbk index bb910b7..543f49c 100755 --- a/btrbk +++ b/btrbk @@ -52,6 +52,7 @@ my %compression = ( pigz => { name => 'pigz', format => 'gz', compress_cmd => [ 'pigz', '-c' ], decompress_cmd => [ 'pigz', '-d', '-c' ], level_min => 1, level_max => 9, threads => '-p' }, bzip2 => { name => 'bzip2', format => 'bz2', compress_cmd => [ 'bzip2', '-c' ], decompress_cmd => [ 'bzip2', '-d', '-c' ], level_min => 1, level_max => 9 }, pbzip2 => { name => 'pbzip2', format => 'bz2', compress_cmd => [ 'pbzip2', '-c' ], decompress_cmd => [ 'pbzip2', '-d', '-c' ], level_min => 1, level_max => 9, threads => '-p' }, + bzip3 => { name => 'bzip3', format => 'bz3', compress_cmd => [ 'bzip3', '-c' ], decompress_cmd => [ 'bzip3', '-d', '-c' ], threads => '-j' }, xz => { name => 'xz', format => 'xz', compress_cmd => [ 'xz', '-c' ], decompress_cmd => [ 'xz', '-d', '-c' ], level_min => 0, level_max => 9, threads => '-T' }, lzo => { name => 'lzo', format => 'lzo', compress_cmd => [ 'lzop', '-c' ], decompress_cmd => [ 'lzop', '-d', '-c' ], level_min => 1, level_max => 9 }, lz4 => { name => 'lz4', format => 'lz4', compress_cmd => [ 'lz4', '-c' ], decompress_cmd => [ 'lz4', '-d', '-c' ], level_min => 1, level_max => 9 }, diff --git a/doc/btrbk.conf.5.asciidoc b/doc/btrbk.conf.5.asciidoc index 2c21954..caa91ab 100644 --- a/doc/btrbk.conf.5.asciidoc +++ b/doc/btrbk.conf.5.asciidoc @@ -274,7 +274,7 @@ set to ``all'' (the default). remote locations. Defaults to ``no''. If enabled, make sure that '' is available on the source and target hosts. Supported '': gzip, pigz, bzip2, pbzip2, - xz, lzo, lz4, zstd. + bzip3, xz, lzo, lz4, zstd. *stream_compress_level* default|:: Compression level for the specified ''. Refer to @@ -289,7 +289,7 @@ set to ``all'' (the default). *stream_compress_threads* default|:: Number of threads to use for . Only supported - for "pigz", "pbzip2", "zstd" and recent versions of "xz". + for "pigz", "pbzip2", "bzip3", "zstd" and recent versions of "xz". *stream_compress_adapt* default|:: Enable adaptive compression for . Only supported @@ -633,8 +633,8 @@ Additional options for raw targets: *raw_target_compress* |no:: Compression algorithm to use for raw backup target. Supported - '': gzip, pigz, bzip2, pbzip2, xz, lzo, lz4, - zstd. + '': gzip, pigz, bzip2, pbzip2, bzip3, xz, lzo, + lz4, zstd. *raw_target_compress_level* default|:: Compression level for the specified . *raw_target_compress_long* default|:: diff --git a/doc/ssh_filter_btrbk.1.asciidoc b/doc/ssh_filter_btrbk.1.asciidoc index 6b1061c..0287409 100644 --- a/doc/ssh_filter_btrbk.1.asciidoc +++ b/doc/ssh_filter_btrbk.1.asciidoc @@ -39,8 +39,8 @@ The following commands are always allowed: - "readlink" - "test -d" (only if "compat busybox" configuration option is set) - "cat /proc/self/mountinfo" - - pipes through "gzip", "pigz", "bzip2", "pbzip2", "xz", "lzop", - "lz4", "zstd" (stream_compress) + - pipes through "gzip", "pigz", "bzip2", "pbzip2", "bzip3", "xz", + "lzop", "lz4", "zstd" (stream_compress) - pipes through "mbuffer" (stream_buffer, rate_limit) Example line in /root/.ssh/authorized_keys on a backup target host: diff --git a/ssh_filter_btrbk.sh b/ssh_filter_btrbk.sh index 5952f2e..5c57409 100755 --- a/ssh_filter_btrbk.sh +++ b/ssh_filter_btrbk.sh @@ -12,7 +12,7 @@ allow_exact_list= allow_rate_limit=1 allow_stream_buffer=1 allow_compress=1 -compress_list="gzip|pigz|bzip2|pbzip2|xz|lzop|lz4|zstd" +compress_list="gzip|pigz|bzip2|pbzip2|bzip3|xz|lzop|lz4|zstd" # note that the backslash is NOT a metacharacter in a POSIX bracket expression! option_match='-[a-zA-Z0-9=-]+' # matches short as well as long options