btrbk: allow space separated groups

pull/286/head
Axel Burri 2019-04-19 15:24:59 +02:00
parent 0a2c5dbfb3
commit 32d92ff3b7
2 changed files with 4 additions and 4 deletions

2
btrbk
View File

@ -120,7 +120,7 @@ my %config_options = (
kdf_keysize => { default => "32", accept_numeric => 1 },
kdf_keygen => { default => "once", accept => [ "once", "each" ] },
group => { default => undef, accept_regexp => qr/^$group_match(\s*,\s*$group_match)*$/, allow_multiple => 1, split => qr/\s*,\s*/ },
group => { default => undef, accept_regexp => qr/^$group_match(\s*[,\s]\s*$group_match)*$/, allow_multiple => 1, split => qr/\s*[,\s]\s*/ },
noauto => { default => undef, accept => [ "yes", "no" ] },
backend => { default => "btrfs-progs", accept => [ "btrfs-progs", "btrfs-progs-btrbk", "btrfs-progs-sudo" ] },

View File

@ -172,9 +172,9 @@ not be certain about this, such operations are disallowed in
=== Grouping Options
*group* <group-name>[,<group-name>]...::
Add the current section (volume, subvolume or target) to a
user-defined group, which can be used as filter for most btrbk
*group* <group-name> [<group-name>]...::
Add the current section (volume, subvolume or target) to
user-defined groups, which can be used as filter for most btrbk
commands. This option can be set multiple times within the same
context.