I occasionally run an external check of my repository data consistency by calculating the
sha256sum of each file and comparing it to the filename. (Not as good as --read-data, but much much faster).
Today, I found an error. One of my data files is corrupted. Only one. Index and snapshot files are OK.
At this point, I don’t want to focus on HOW it became corrupted… I want to understand how to return my repository to a healthy status.
- Is there a process for identifying the data that is contained in that data file, and removing references to it?
- Or can I identify which files in which snapshots are affected?