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 |md5sum
Except with thousands of files in many subdirectories.
A similar solution would be:
Code:
find |xargs md5sum |md5sum
However, 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.