Hey, I wrote a thing. Thing being a piece of software. I have a collection of photos & documents that I really care about. I synch them between computers using syncthing and also run backups regularly. What I didn’t have was a way to quickly detect bitrot.
Enter legdur
legdur is a simple CLI program to compute hashes of large sets of files in large directory structures and compare them with a previous snapshot.
Another option is to use a filesystem such as btrfs or zfs which stores checksums in metadata, then use the included tools to verify file integrity and identify bit rot.
Another option is to use a filesystem such as btrfs or zfs which stores checksums in metadata, then use the included tools to verify file integrity and identify bit rot.
https://btrfs.readthedocs.io/en/latest/btrfs-scrub.html
https://openzfs.github.io/openzfs-docs/man/8/zpool-scrub.8.html