I'm trying to verify my rdiff-backup, but it seems like half of the files are missing their metadata hash. This means I get tons of errors when running the --compare-hash
function:
Warning: Metadata file has no digest for Distros/Linux/linuxmint-17.3-cinnamon-64bit.iso, unable to compare.
similarly the --verify
function produces tons of errors:
Warning: Cannot find SHA1 digest for file linuxmint-19.1-cinnamon-64bit.iso,
perhaps because this feature was added in v1.1.1
My rdiff-backup version is 2.05 so I don't understand why it's missing all of these SHA1 hashes. Is there anyway to regenerate these hashes without doing the whole backup over again?
I looked all over the internet for threads with the same error complaining about missing SHA1 sums, but no one ever seemed to have any solutions. Therefore, I decided to look at the metadata files manually and write a script to simply "fill in" the entries that had missing SHA1 sums.
You can run the script by tying
fix_metadata.py <your backup directory>
- The original metadata file is backed up, but so far in my testing, this seems to fix the problem. I would still like to know why so many files had missing checksums to begin with.