No Backup for large files

Unfortunately, a backup of large files is not possible. When I back up a single .iso file, I always get errors on check --read-data or restore. I can’t recover the iso file. How can I back up large files with restic (without disassembling them)? How can I repair the errors? (Repo is local, ext4, home directory)

Can you please elaborate a bit? What errors (if any) do you see during backup? Can you paste what exactly restic check reports?

1 Like

backup - 4440719360 (size) OracleLinux-R7-U5-Server-x86_64-dvd.iso
no errors

restic -r ~/repo/ snapshots
7bad2b98 2018-05-18 08:03:36 xxx yyy

restic -r ~/repo/ check
enter password for repository:
password is correct
create exclusive lock for repository
load indexes
check all packs
check snapshots, trees and blobs
no errors were found

restic -r ~/repo/ check --read-data
enter password for repository:
password is correct
create exclusive lock for repository
load indexes
check all packs
check snapshots, trees and blobs
read all data
Pack ID does not match, want b4464fc5, got 4da91577
Pack ID does not match, want 4f5c9589, got f7ea0a56
Pack ID does not match, want 47a955f3, got 30c85233
Pack ID does not match, want 3759ee53, got 15c401c2
Pack ID does not match, want 4862056e, got da2bf9cb
Pack ID does not match, want a4bc865e, got 12bb88ad
Pack ID does not match, want 047f09d4, got 63844fe2
pack c2d425ce contains 1 errors: [Blob ID does not match, want
f3f6ba2c, got fdfef5b0]
Pack ID does not match, want 4c805373, got b3ff4e9d
Pack ID does not match, want 76239210, got f30b0a9a
Pack ID does not match, want 9cc90d23, got 50fb2c73
Pack ID does not match, want 5fc3b153, got 5685a25b
Pack ID does not match, want 0684a030, got cc9e8a36
Pack ID does not match, want 955a089d, got 50580dfa
Pack ID does not match, want 16821d8a, got ad3119ac
Pack ID does not match, want 6a329adc, got 60fe4ad9
pack 7b9e9021 contains 1 errors: [Blob ID does not match, want
1a3e1f22, got 31135ad8]
pack 62fdf0b9 contains 1 errors: [Blob ID does not match, want
83cb24b6, got 2e2df787]
[0:11] 100.00% 870 / 870 items
duration: 0:11
Fatal: repository contains errors

password is correct
restoring <Snapshot 7bad2b98 of [yyy] at 2018-05-18
08:03:36.110687445 +0200 CEST by xxx to yyy
ignoring error for /iso/OracleLinux-R7-U5-Server-x86_64-dvd.iso:
decrypting blob
78b3c8da2d7189086503a2ee1fdd1a8e290f7e893195789f133a6ede579271b0
failed: ciphertext verification failed
There were 1 errors

restore - 36597169 (size) OracleLinux-R7-U5-Server-x86_64-dvd.iso

Thanks for the feedback.

We’ve seen these kinds of errors a few times already. The error pack id does not match means that the data read from the repo is different from the data restic wrote to it. In most cases in the past, this turned out to be caused by hardware errors (mostly RAM, but also hd and a CPU).

For example, in the repo, the files below data/ have a name which corresponds to the SHA-256 hash of its contents. Restic encountered the following error:

Pack ID does not match, want b4464fc5, got 4da91577

It tried to load the file with the name b4464fc5[...], loaded the data, computed the SHA-256 hash of it, and hash starts with 4da91577. Can you run sha256sum data/b4/b4464fc5* and report back which hash is returned?

Thank you for your help. In the meantime, other errors have occurred on the computer. It seems to be a RAM error.

Nice, thank you very much for the feedback! I’m always wondering what the cause are when users report such strange behavior :wink: