From 2841a87cc6e37c961bf6d4b2ca2cc8b888f1a5e9 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 14 Apr 2023 21:53:55 +0200 Subject: [PATCH] Fix snapshot filtering for relative paths in the backup command The snapshot filtering internally converts relative paths to absolute ones to ensure that the parent snapshots selection works for backups of relative paths. --- internal/restic/snapshot_find.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/restic/snapshot_find.go b/internal/restic/snapshot_find.go index 4d4bb4957..8d6f8c4b1 100644 --- a/internal/restic/snapshot_find.go +++ b/internal/restic/snapshot_find.go @@ -46,6 +46,7 @@ func (f *SnapshotFilter) findLatest(ctx context.Context, be Lister, loader Loade } absTargets = append(absTargets, filepath.Clean(target)) } + f.Paths = absTargets var latest *Snapshot