mirror of
https://github.com/restic/restic.git
synced 2025-10-09 23:14:08 +00:00
Add command 'fsck'
This commit is contained in:
@@ -68,6 +68,8 @@ func LoadSnapshot(repo *Repository, id ID) (*Snapshot, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// TODO: maybe inject a hashing reader here and test if the given id is correct
|
||||
|
||||
dec := json.NewDecoder(rd)
|
||||
sn := &Snapshot{}
|
||||
err = dec.Decode(sn)
|
||||
|
Reference in New Issue
Block a user