#checksum
3 one-liners with this tag.
All one-liners tagged checksum
Save checksums of all files in a directory
$cd /var/www/vhosts/example.com/httpdocs && find . -type f -exec sha256sum {} + > /tmp/example.com.sha256
Verify a backup against the original using checksums
$rsync -rcn --itemize-changes /var/www/vhosts/example.com/httpdocs/ /backup/example.com/httpdocs/
Verify files against saved checksums
$cd /backup/example.com/httpdocs && sha256sum -c --quiet /tmp/example.com.sha256