From a6f7e67388f67d2320949406fb068671e71c1df1 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Sun, 16 Apr 2023 15:37:31 +0200 Subject: [PATCH] btrbk: filter for family=btrbk on archive We don't support families other than "btrbk" yet: timeshift uses subdirs, and there's too many places where the snapshot_dir is supposed to be the directory where the snapshots reside in. --- btrbk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btrbk b/btrbk index 91ec644..6515555 100755 --- a/btrbk +++ b/btrbk @@ -5900,7 +5900,7 @@ MAIN: { next unless($vol->{node}{readonly}); my $snapshot_name = $vol->{node}{BTRBK_BASENAME}; - unless(defined($snapshot_name)) { + unless(defined($snapshot_name) && ($vol->{node}{BTRBK_FAMILY} eq "btrbk")) { WARN "Skipping subvolume (not a btrbk subvolume): $vol->{PRINT}"; next; }