Implement per-repository cache

This commit is contained in:
Alexander Neumann committed 2015-03-14 12:16:28 +01:00
1 parent f69a39cff5
commit e1fc17aeb1
5 files changed
+25 -12

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ func (cmd CmdCache) Execute(args []string) error {
return err
}
cache, err := restic.NewCache()
cache, err := restic.NewCache(s)
if err != nil {
return err
}
+1 -1
View File
@@ -79,7 +79,7 @@ func (cmd CmdInit) Execute(args []string) error {
os.Exit(1)
}
fmt.Printf("created restic backend at %s\n", opts.Repo)
fmt.Printf("created restic backend %v at %s\n", s.ID().Str(), opts.Repo)
return nil
}