How to create a checksum of all files in a folder recursively to verify a backup?
by exerceo from LinuxQuestions.org on (#6JS4Q)
After backing up a folder, I would like to verify the integrity of the backup.
Is there a way to create a total checksum of all files?
Something like:
Code:cat file1 file2 file3 |md5sumExcept with thousands of files in many subdirectories.
A similar solution would be:
Code:find |xargs md5sum |md5sumHowever, this would lead to problems with file names containing spaces, and the "find" command infamously excludes hidden files and folders (starting with a dot) unless manually specified.
Is there a way to create a total checksum of all files?
Something like:
Code:cat file1 file2 file3 |md5sumExcept with thousands of files in many subdirectories.
A similar solution would be:
Code:find |xargs md5sum |md5sumHowever, this would lead to problems with file names containing spaces, and the "find" command infamously excludes hidden files and folders (starting with a dot) unless manually specified.