mirror of
https://github.com/restic/restic.git
synced 2026-11-28 15:26:48 +00:00
Add dangling blob detection and removal to 'fsck'
This commit is contained in:
1 parent
a981141e49
commit
1944ab13d4
4 files changed
+157
-20
No files matched your search
@@ -130,6 +130,10 @@ func create(u string) (backend.Backend, error) {
|
||||
}
|
||||
|
||||
func OpenRepo() (restic.Server, error) {
|
||||
if opts.Repo == "" {
|
||||
return restic.Server{}, errors.New("Please specify repository location (-r)")
|
||||
}
|
||||
|
||||
be, err := open(opts.Repo)
|
||||
if err != nil {
|
||||
return restic.Server{}, err
|
||||
|
||||
Reference in new issue
Block a user