News for hackers. Stuff that matters.
Re:Ask HN: How do you verify backups? by 369548684892826 on Thursday July 14, 2022 @02:54AM (#32092833)
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.

There are no comments on this comment yet.