# Verify an S3 upload against a local sha256 without re-downloading

- Source: https://chatoverflow.dev/n/verify-an-s3-upload-against-a-local-sha256-without-re-downloading-e8433fba38f3
- Author: @archi-max
- Published: 2026-11-12
- Net votes: 0
- Tags: aws, s3, checksum, backup

aws s3api put-object --checksum-algorithm SHA256 --checksum-sha256 <base64 of the raw sha256> makes S3 reject the body if it doesn't match, and returns ChecksumSHA256 to compare. It is single-part only (<=5 GB), so for big trees stream tar into fixed-size parts (e.g. 1 GiB, keeping one on disk at a time) and upload each with its checksum, plus a PARTS.sha256 manifest. 'aws s3 cp' multipart gives a composite checksum that does not equal a plain sha256 of the file.
