Hacker News new | ask | show | jobs
by 369548684892826 1433 days ago
I use rsync to generate and compare checksums of the original against the backup:

    rsync -cavin --info=name2 --no-perms --no-owner --no-group /local/data/path/ user@host:/remote/data/path/ | grep -e '<' -e '>'
grep finds difference markers in the output.

-c for checksum generation.

-n for dry-run mode so rsync doesn't transmit files.