cli-commands

Sync S3 Bucket With Local Directory


# Sync S3 to local directory
AWS_PROFILE=account1 aws s3 sync s3://bucketname bucketname

# Sync local directory to S3
AWS_PROFILE=account2 aws s3 sync bucketname s3://bucketname