mirror of
https://github.com/restic/restic.git
synced 2025-10-27 12:28:34 +00:00
Implement per-repository cache
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user