aws s3 syncIT technician command center
AWS CLI · Amazon Web Services

aws s3 sync

Synchronize a directory with S3.

Copy-ready commandaws s3 sync
aws s3 sync /data s3://my-bucket/data --delete
Production warning

Start, stop, reboot, sync --delete, and write operations can affect production resources.

Requirements and permissions

Requirements
AWS CLI v2
Permissions
AWS IAM permissions vary
Last reviewed
2026-07-31

Examples

Basic example

Synchronize a directory with S3.

aws s3 sync /data s3://my-bucket/data --delete

Common errors

Command not found

Confirm AWS CLI v2 is installed and available in your current shell.