Rustic restore errors on backup checking OK

Hi,

A bit bummed here. I have a restic backup of 90GB which tests ok:

restic check  
using temporary cache in /tmp/restic-check-cache-059313375
enter password for repository: 
repository xxxxxx opened successfully, password is correct
create exclusive lock for repository
load indexes
check all packs
check snapshots, trees and blobs
no errors were found

restic restore gives a couple of errors though (names altered):

restic restore --verify -t /data xxxxx

enter password for repository: 
repository xxxxx opened successfully, password is correct
restoring <Snapshot xxxxx of [/data] at 2018-09-26 06:42:56.640506178 +0000 UTC by @yyyyyy> to /data
ignoring error for xxxxx: EOF
ignoring error for yyyyy: unexpected EOF
ignoring error for zzzzz: EOF
[...]
verifying files in /data
ignoring error for xxxxx: EOF
ignoring error for yyyyy: unexpected EOF
ignoring error for zzzzz: EOF
[...]
finished verifying 81189 files in /data
There were 208 errors

All errors are on folders. Resulting restored topfolder has empty folders on the failed folders from above. Original backend is minio (S3) but fails same way on local: restore.

What to do? Can these folders be restored?

Oh, additional info. The restic ls command lists contents of these folders.

Tia
Steef

Hi, Welcome to the forum! We resolved a bug with the local metadata cache recently, can you tell us which version of restic you’re using? Next, you can try deleting the local cache (restic will just rebuild it), in ~/.cache/restic and report back :slight_smile:

Besides, restic check mostly only looks at the metadata and checks if the data is there, if you want it to try to read all data, then you need to pass --read-data.

Which Backend do you use?

1 Like
docker run --rm restic/restic version
restic 0.9.2 compiled with go1.10.3 on linux/amd64

Confirmed. Works without cache. Thanks!

docker run --rm -ti -e RESTIC_REPOSITORY=local:/s3/xxxx -v /tank/xxxxxx:/s3 -v $(pwd):/data restic/restic restore --no-cache --verify -t /data xxx
enter password for repository: 
repository xxx opened successfully, password is correct
restoring <Snapshot xxx of [/data] at 2018-09-26 06:42:56.640506178 +0000 UTC by @xxxx> to /data

verifying files in /data
finished verifying 83773 files in /data
1 Like