I would like to compare the file contents of two S3-compatible buckets and identify files that are missing or that differ.
Should I use checksum to do it instead?
I would like to compare the file contents of two S3-compatible buckets and identify files that are missing or that differ.
Should I use checksum to do it instead?
It appears that your requirement is to compare the contents of two Amazon S3 buckets and identify files that are missing or differ between the buckets.
To do this, you could use:
Instead of doing all the above logic yourself, you can also use the AWS Command-Line Interface (CLI). It has a aws s3 sync
command that will compare files from the source and destination, and will then copy files that are modified or missing.