Skip to content

File Integrity

When copying files to archive on a server, or after they have been stored on the server for a while and may have bit rot, we need to ensure that we at least know what files are correct and those that are wrong.

In each new directory I copy across to the NAS for archive, I store a hashes.txt file which I generate with:

sha256deep -lr . > hashes.txt

This can then be verified on the remote box with:

sha256deep -x hashes.txt

This will print file names for files that do not match.

Comments