mirror of https://github.com/digint/btrbk
ssh_filter_btrbk.sh: whitelist mkdir for 'btrbk archive' operations
parent
2d7f5ec5fe
commit
0f21df15c2
|
@ -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
|
||||
|
|
|
@ -125,6 +125,7 @@ while [[ "$#" -ge 1 ]]; do
|
|||
|
||||
-t|--target)
|
||||
allow_cmd "${sudo_prefix}btrfs receive"
|
||||
allow_cmd "${sudo_prefix}mkdir"
|
||||
;;
|
||||
|
||||
-c|--compress)
|
||||
|
|
Loading…
Reference in New Issue