From 07a44a88f2ebc9456ef2a75d2aa2a4ff25ccdc5d Mon Sep 17 00:00:00 2001
From: Michael Eischer <michael.eischer@fau.de>
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