forked from TrueCloudLab/restic
Rename backend subdir 'blobs' to 'data'
This commit is contained in:
parent
b403769ae8
commit
804cebde67
8 changed files with 22 additions and 31 deletions
|
@ -35,14 +35,14 @@ func commandCat(be backend.Server, key *khepri.Key, args []string) error {
|
|||
switch tpe {
|
||||
case "blob":
|
||||
// try id
|
||||
data, err := ch.Load(backend.Blob, id)
|
||||
data, err := ch.Load(backend.Data, id)
|
||||
if err == nil {
|
||||
_, err = os.Stdout.Write(data)
|
||||
return err
|
||||
}
|
||||
|
||||
// try storage id
|
||||
buf, err := be.Get(backend.Blob, id)
|
||||
buf, err := be.Get(backend.Data, id)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue