Implement per-repository cache

This commit is contained in:
Alexander Neumann
2015-03-14 12:10:08 +01:00
parent f69a39cff5
commit e1fc17aeb1
5 changed files with 25 additions and 12 deletions

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
}

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
}