Integrity check when pruning

Hi,

With prune necessarily temporarily downloading data from the repo I was wondering whether restic actually uses the opportunity to verify the integrity of these blobs (similar to check --read-data). Glancing over the Repack function doesn’t suggest so but I might have missed it.

Any reason not to have this functionality? With people converting their repos to v2 and hence needing to eventually download all the data this would add the value of having data consistency verified.

Thanks!

The check to verify the integrity of each blob is hidden behind the call to StreamPack in line 60.

You’re right, found it. Thanks for the quick response and great to see it’s already implemented!