venerdì 15 marzo 2019

Synchronize an AWS S3 Bucket in local file system

Dear Folks,
Today I want to synch a S3 Bucket on my laptop to move files (generated in last month by a crawler) in a new destionation.

The solution is so easy:

... in a bash ...

>export AWS_ACCESS_KEY_ID=....
>export AWS_SECRET_ACCESS_KEY=....
>aws s3 sync s3://test.lighthouse .

You have to refer to AWS CLI DOC for other details.

You can also do S3 bucket to S3 bucket, or local to S3 bucket sync.
Check out the documentation and other examples.
Regards.