From 32d92ff3b752df8cc53bc278f7095aa389690b89 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Fri, 19 Apr 2019 15:24:59 +0200 Subject: [PATCH] btrbk: allow space separated groups --- btrbk | 2 +- doc/btrbk.conf.5.asciidoc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/btrbk b/btrbk index f6915c1..c636778 100755 --- a/btrbk +++ b/btrbk @@ -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" ] }, diff --git a/doc/btrbk.conf.5.asciidoc b/doc/btrbk.conf.5.asciidoc index 4883af8..a8a8026 100644 --- a/doc/btrbk.conf.5.asciidoc +++ b/doc/btrbk.conf.5.asciidoc @@ -172,9 +172,9 @@ not be certain about this, such operations are disallowed in === Grouping Options -*group* [,]...:: - Add the current section (volume, subvolume or target) to a - user-defined group, which can be used as filter for most btrbk +*group* []...:: + 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.