Ravi Sir's Cards › AWS
S3 cp and sync
This revision card explains S3 cp and sync. It starts from the need that uploading a site folder file by file is slow. It describes cp copies what you name; sync copies only changed files. The how-to section notes --delete removes files gone from source. Use --dryrun first. An example on the card is verify: aws s3 ls s3://b --recursive --summarize.
Read card text
What this card says
Why do we need it?
Uploading a site folder file by file is slow.
What is it?
cp copies what you name; sync copies only changed files.
aws s3 sync site s3://b/site
How to do it
--delete removes files gone from source. Use --dryrun first.
Example
Verify: aws s3 ls s3://b --recursive --summarize.