Synchronize a local directory to a bucket prefix.
Section: High-Level S3 Commands
Sync local directory to S3
bash
bash
aws s3 sync ./public s3://my-bucket/public/Explanation
Sync compares source and destination to transfer only needed changes.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing High-Level S3 Commands
Mirror local directory to S3 with deletes
Delete extra destination objects during sync.
List objects in a bucket
List top-level objects and prefixes in a bucket.