Hello everybody.
I need some help to restore data from a repo possibly corrupted.
I use restic v0.9.5. Repository is on an Openstack Swift cloud (OVH).
Backup script issue a forget
command each days but never do a prune
command. That make the repo huge, 1.5To. It contains 40 snapshots.
I’ve downloaded all datas on a separate server and began cleaning data with prune
and rebuild-index
.
Now the repo is lighter. A check command output:
check snapshots, trees and blobs
error for tree c9037c03:
tree c9037c03: file "3693.dat.gz" blob 89 size could not be found
tree c9037c03: file "3693.dat.gz" blob 90 size could not be found
tree c9037c03: file "3693.dat.gz" blob 91 size could not be found
tree c9037c03: file "3740.dat.gz" blob 31 size could not be found
tree c9037c03: file "3740.dat.gz" blob 165 size could not be found
tree c9037c03: file "3740.dat.gz" blob 178 size could not be found
tree c9037c03: file "3740.dat.gz" blob 179 size could not be found
tree c9037c03: file "3740.dat.gz" blob 271 size could not be found
tree c9037c03: file "3740.dat.gz" blob 272 size could not be found
tree c9037c03: file "3742.dat.gz" blob 22 size could not be found
tree c9037c03: file "3750.dat.gz" blob 0 size could not be found
tree c9037c03: file "3752.dat.gz" blob 99 size could not be found
tree c9037c03: file "3752.dat.gz" blob 101 size could not be found
tree c9037c03: file "3752.dat.gz" blob 115 size could not be found
tree c9037c03: file "3752.dat.gz" blob 212 size could not be found
tree c9037c03, blob c48928df: not found in index
tree c9037c03, blob 73ee660c: not found in index
tree c9037c03, blob 4e93af8a: not found in index
tree c9037c03, blob 448c3d61: not found in index
tree c9037c03, blob 534d2730: not found in index
tree c9037c03, blob cb7d1d9f: not found in index
tree c9037c03, blob 95d48cb8: not found in index
tree c9037c03, blob 3deda202: not found in index
tree c9037c03, blob 981f0747: not found in index
tree c9037c03, blob c86ea602: not found in index
tree c9037c03, blob 6b94347c: not found in index
tree c9037c03, blob 97d9bec2: not found in index
tree c9037c03, blob edba18d1: not found in index
tree c9037c03, blob 3760e354: not found in index
tree c9037c03, blob 413bf97d: not found in index
error for tree 9f0f7fca:
tree 9f0f7fca: file "3698.dat.gz" blob 69 size could not be found
tree 9f0f7fca: file "3700.dat.gz" blob 89 size could not be found
tree 9f0f7fca: file "3700.dat.gz" blob 90 size could not be found
tree 9f0f7fca: file "3700.dat.gz" blob 91 size could not be found
tree 9f0f7fca: file "3700.dat.gz" blob 148 size could not be found
tree 9f0f7fca: file "3700.dat.gz" blob 298 size could not be found
tree 9f0f7fca: file "3700.dat.gz" blob 583 size could not be found
tree 9f0f7fca: file "3700.dat.gz" blob 687 size could not be found
tree 9f0f7fca: file "3700.dat.gz" blob 847 size could not be found
tree 9f0f7fca: file "3700.dat.gz" blob 848 size could not be found
tree 9f0f7fca: file "3700.dat.gz" blob 849 size could not be found
tree 9f0f7fca: file "3769.dat.gz" blob 0 size could not be found
tree 9f0f7fca, blob f986edd8: not found in index
tree 9f0f7fca, blob c48928df: not found in index
tree 9f0f7fca, blob 73ee660c: not found in index
tree 9f0f7fca, blob 4e93af8a: not found in index
tree 9f0f7fca, blob 30b83bc6: not found in index
tree 9f0f7fca, blob 3199be1c: not found in index
tree 9f0f7fca, blob d0871610: not found in index
tree 9f0f7fca, blob bb33e0fb: not found in index
tree 9f0f7fca, blob a07bc4f6: not found in index
tree 9f0f7fca, blob 65913ec9: not found in index
tree 9f0f7fca, blob 7b07cdbb: not found in index
tree 9f0f7fca, blob 3aac0653: not found in index
...
Error happen on each snapshots. When i try to restore one i get the message:
Unknown blob c48928df2f19c6f7596324f8da318b67e02a0c6e298616c934d84c28a70141c6
github.com/restic/restic/internal/restorer.(*filePackTraverser).forEachFilePack.func1
/restic/internal/restorer/filepacktraverser.go:21
github.com/restic/restic/internal/restorer.(*filePackTraverser).forEachFilePack
/restic/internal/restorer/filepacktraverser.go:32
github.com/restic/restic/internal/restorer.newPackQueue
/restic/internal/restorer/packqueue.go:52
github.com/restic/restic/internal/restorer.(*fileRestorer).restoreFiles
I searched the file data/c48928df2f19c6f7596324f8da318b67e02a0c6e298616c934d84c28a70141c6 in repo and it is missing.
I think 23 files/blob are missing from the repo.
Which possibilities i have to fully recover (or some part) the backup file ?
Can i do a repair action ?
Thanks for your help and I apologize for my english