Quick Actions
aws s3 sync
Description
Syncs directories and S3 prefixes. Recursively copies new and updated files.
Command
aws s3 sync
Examples
Sync a local directory with an S3 bucket
aws s3 sync . s3://my-website-bucket
Sync an S3 bucket to a local directory and delete extra files
aws s3 sync s3://my-data-backup ./local-backup --delete
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
<LocalPath> <S3Uri> |
string | No | Sync a local directory to S3. |
<S3Uri> <LocalPath> |
string | No | Sync an S3 prefix to a local directory. |
--delete |
string | No | Files that exist in the destination but not in the source are deleted during sync. |
Command Info
Category:
S3
Type:
Aws
Views:
14
Status:
Active
Tags
aws
s3
storage
sync
backup