mirror of
https://github.com/restic/restic.git
synced 2026-11-28 23:27:49 +00:00
new sub-option for backup: time
New option to specify the timestamp for a backup
This commit is contained in:
1 parent
5c75a98053
commit
43ff971dfd
6 files changed
+19
-8
No files matched your search
@@ -164,7 +164,7 @@ func TestCreateSnapshot(t testing.TB, repo Repository, at time.Time, depth int,
|
||||
t.Logf("create fake snapshot at %s with seed %d", at, seed)
|
||||
|
||||
fakedir := fmt.Sprintf("fakedir-at-%v", at.Format("2006-01-02 15:04:05"))
|
||||
snapshot, err := NewSnapshot([]string{fakedir}, []string{"test"}, "foo")
|
||||
snapshot, err := NewSnapshot([]string{fakedir}, []string{"test"}, "foo", time.Now())
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user