From 4c174c8f72652d6650eb7b41c9bcd43a05d8e82e Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Sun, 5 Jun 2022 20:51:32 +0200 Subject: [PATCH] btrbk: honor --exclude on backup candidates --- btrbk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/btrbk b/btrbk index 22de3b7..8db4049 100755 --- a/btrbk +++ b/btrbk @@ -7013,6 +7013,10 @@ MAIN: DEBUG "Found correlated target of: $snapshot->{PRINT}"; next; } + if(my $ff = vinfo_match(\@exclude_vf, $snapshot)) { + INFO "Skipping backup candidate \"$snapshot->{PRINT}\": Match on exclude pattern \"$ff->{unparsed}\""; + next; + } DEBUG "Adding backup candidate: $snapshot->{PRINT}"; push(@schedule, { value => $snapshot,