Created
August 2, 2025 09:37
-
-
Save sogaiu/46af2346af9acab2284a55fbb61deb38 to your computer and use it in GitHub Desktop.
verifying backup integrity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compute and collect checksums: | |
cd target-directory | |
time find . -type f -print0 | xargs -0 md5sum > checksums.md5 | |
verify: | |
time md5sum -c checksums.md5 > result.txt | |
adapted from: https://info.michael-simons.eu/2008/10/25/recursively-md5sum-all-files-in-a-directory-tree/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment