btrbk: honor --exclude on backup candidates

pull/542/head
Axel Burri 2022-06-05 20:51:32 +02:00
parent c0da910276
commit 4c174c8f72
1 changed files with 4 additions and 0 deletions

4
btrbk
View File

@ -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,