Skip to content
S3 object opsAWS CLI

aws s3 sync

Synchronize directories while preserving differential changes.

Command
aws s3 sync s3:///

Example usage

Mirror folders between local storage and S3 with optional deletions.

aws s3 sync <local_dir> s3://<bucket>/<prefix>
aws s3 sync s3://<bucket>/<prefix> <local_dir> --delete

Related tags

S3 object opsclouds3ec2iam