Hacker News new | ask | show | jobs
by LinuxBender 1862 days ago
One method I use is to get the md5sum of files and create a manifest which is just a sorted text file with the file-names and checksums. If you create a periodic manifest, you can create a function to send you the diff of what files have changed. i.e. cat two files, sort and uniq -c them. If a filename has 2 or more hashes across multiple passes and you did not expect it to change, it should become obvious. md5sum is sufficient for this task and faster than sha256sum.

Another method would be to use rsync in "--dry-run" and see what changed that way between your backups. If you have sets of files you know should never change, you could filter on them as a canary.