AWS CLIS3

aws s3 sync

Synchronizes a local directory and an S3 bucket, uploading only changed files and optionally deleting removed ones.

Syntax

aws s3 sync <source> <destination> [--delete]

Examples

Sync a build folder, removing stale remote files

aws s3 sync ./out s3://my-site-bucket --delete

Related commands