Comparing two snapshots whose files only differ by their (modification) timestamps shows no differences:
restic init -r repo touch thing.txt && restic -r repo backup thing.txt touch thing.txt && restic -r repo backup thing.txt restic -r repo diff 9c2a58ee 0a5ddce8
The final cmd gives:
repository 358a1f67 opened successfully, password is correct comparing snapshot 9c2a58ee to 0a5ddce8: Files: 0 new, 0 removed, 0 changed Dirs: 0 new, 0 removed Others: 0 new, 0 removed Data Blobs: 0 new, 0 removed Tree Blobs: 0 new, 0 removed Added: 0 B Removed: 0 B
I am wondering whether this could be considered a bug? I was recently comparing backups from before/after a significant system change and thought all was well but in fact some files had their timestamps altered by mistake.