ssh_filter_btrbk.sh: whitelist mkdir for 'btrbk archive' operations

pull/299/head
Ryan Young 2019-09-26 10:50:23 -07:00 committed by Axel Burri
parent 2d7f5ec5fe
commit 0f21df15c2
2 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,8 @@ OPTIONS
"btrfs send". Equivalent to "--snapshot --send".
-t, --target::
Allow commands for backup target: "btrfs receive".
Allow commands for backup and archive target: "btrfs receive",
"mkdir".
-d, --delete::
Allow commands for subvolume deletion: "btrfs subvolume

View File

@ -125,6 +125,7 @@ while [[ "$#" -ge 1 ]]; do
-t|--target)
allow_cmd "${sudo_prefix}btrfs receive"
allow_cmd "${sudo_prefix}mkdir"
;;
-c|--compress)