digint / btrbk

Tool for creating snapshots and remote backups of btrfs subvolumes
https://digint.ch/btrbk/
GNU General Public License v3.0
1.71k stars 123 forks source link

ssh_filter_btrbk: mbuffer validation too strict #567

Open st31ny opened 1 year ago

st31ny commented 1 year ago

I am using btrbk 0.32.5 on a server and 0.27.1 on a client and noticed that the validation of mbuffer on the server end is too strict.

Particularly, ssh_filter_btrbk enforces a verbosity level of mbuffer of 1, however, the client uses mbuffer without increased verbosity level. Thus, the client was rejected.

By making the parameter -v 1 in mbuffer_match in ssh_filter_btrbk.sh optional, the command is accepted:

mbuffer_match="mbuffer( -v 1)? -q( -s [0-9]+[kmgKMG]?)?( -m [0-9]+[kmgKMG]?)?( -[rR] [0-9]+[kmgtKMGT]?)?"