Merge pull request #4705 from MichaelEischer/snapshot-statistics

Store snapshot statistics & print snapshot size
This commit is contained in:
Michael Eischer 2024-03-28 22:41:45 +01:00 committed by GitHub
commit 7f9ad1c3db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 369 additions and 160 deletions

View file

@ -32,7 +32,7 @@ func TestSnapshot(t testing.TB, repo restic.Repository, path string, parent *res
}
opts.ParentSnapshot = sn
}
sn, _, err := arch.Snapshot(context.TODO(), []string{path}, opts)
sn, _, _, err := arch.Snapshot(context.TODO(), []string{path}, opts)
if err != nil {
t.Fatal(err)
}