Merge pull request #4499 from MichaelEischer/modular-backend-code

Split backend code from restic package
This commit is contained in:
Michael Eischer
2023-10-27 20:19:20 +02:00
committed by GitHub
132 changed files with 1145 additions and 1062 deletions

View File

@@ -295,7 +295,7 @@ func (d *SnapshotsDirStructure) updateSnapshots(ctx context.Context) error {
}
var snapshots restic.Snapshots
err := d.root.cfg.Filter.FindAll(ctx, d.root.repo.Backend(), d.root.repo, nil, func(id string, sn *restic.Snapshot, err error) error {
err := d.root.cfg.Filter.FindAll(ctx, d.root.repo, d.root.repo, nil, func(id string, sn *restic.Snapshot, err error) error {
if sn != nil {
snapshots = append(snapshots, sn)
}