mirror of
https://github.com/restic/restic.git
synced 2026-11-25 15:17:50 +00:00
wip
This commit is contained in:
1 parent
2f1137bac4
commit
f8f8107d55
8 files changed
+171
-59
No files matched your search
+1
-4
@@ -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