forked from TrueCloudLab/restic
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.
This commit is contained in:
parent
48e065d971
commit
07a44a88f2
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ func (f *SnapshotFilter) findLatest(ctx context.Context, be Lister, loader Loade
|
||||||
}
|
}
|
||||||
absTargets = append(absTargets, filepath.Clean(target))
|
absTargets = append(absTargets, filepath.Clean(target))
|
||||||
}
|
}
|
||||||
|
f.Paths = absTargets
|
||||||
|
|
||||||
var latest *Snapshot
|
var latest *Snapshot
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue