Skip to content

Instantly share code, notes, and snippets.

@sogaiu
Created August 2, 2025 09:37
Show Gist options
  • Save sogaiu/46af2346af9acab2284a55fbb61deb38 to your computer and use it in GitHub Desktop.
Save sogaiu/46af2346af9acab2284a55fbb61deb38 to your computer and use it in GitHub Desktop.
verifying backup integrity
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