mirror of
https://github.com/restic/restic.git
synced 2025-08-21 21:17:27 +00:00
wip
This commit is contained in:
@@ -140,13 +140,10 @@ func BenchmarkArchiveDirectory(b *testing.B) {
|
||||
key := setupKey(b, be, "geheim")
|
||||
server := restic.NewServerWithKey(be, key)
|
||||
|
||||
tree, err := restic.NewScanner(nil).Scan(*benchArchiveDirectory)
|
||||
ok(b, err)
|
||||
|
||||
arch, err := restic.NewArchiver(server, nil)
|
||||
ok(b, err)
|
||||
|
||||
_, id, err := arch.Snapshot(*benchArchiveDirectory, tree, nil)
|
||||
_, id, err := arch.Snapshot(*benchArchiveDirectory, nil)
|
||||
|
||||
b.Logf("snapshot archived as %v", id)
|
||||
}
|
||||
|
Reference in New Issue
Block a user