diff --git a/doc/ssh_filter_btrbk.1 b/doc/ssh_filter_btrbk.1 index dc15a2b..0202500 100644 --- a/doc/ssh_filter_btrbk.1 +++ b/doc/ssh_filter_btrbk.1 @@ -20,11 +20,15 @@ the "\-\-source", "\-\-target", "\-\-delete" and "\-\-info" options. Note that the following btrfs commands are always allowed: "btrfs subvolume show", "btrfs subvolume list". .PP +Note that commands for stream compression (pipes through gzip, pigz, +bzip2, pbzip2, xz, lzo, lz4) as well as rate limiting (pipes through +"pv -L") are always allowed. +.PP Example line in /root/.ssh/authorized_keys on a backup target host: .PP .RS 4 .nf -command="ssh_filter_btrbk.sh \-\-target \-\-delete \-\-compress \-\-restrict\-path /mnt/btr_backup" ssh\-rsa AAAAB3NzaC1...hwumXFRQBL btrbk@mydomain.com +command="ssh_filter_btrbk.sh \-\-target \-\-delete \-\-restrict\-path /mnt/btr_backup" ssh\-rsa AAAAB3NzaC1...hwumXFRQBL btrbk@mydomain.com .fi .RE .SH OPTIONS diff --git a/ssh_filter_btrbk.sh b/ssh_filter_btrbk.sh index 335a0d8..ff7d453 100755 --- a/ssh_filter_btrbk.sh +++ b/ssh_filter_btrbk.sh @@ -10,7 +10,7 @@ restrict_path_list= allow_list= allow_exact_list= allow_rate_limit=1 -allow_compress= +allow_compress=1 compress_list="gzip|pigz|bzip2|pbzip2|xz|lzo|lz4" log_cmd() @@ -125,7 +125,7 @@ while [[ "$#" -ge 1 ]]; do ;; -c|--compress) - allow_compress=1 + # deprecated option, compression is always allowed ;; -d|--delete)