Search This Blog

2023/08/23

How to sync s3 bucket to local folder and vice versa

 run


aws configure

and give it required details

My bucket name is bucketofsangramdesai and my local folder is /home/sangram/Documents/developement/s3syncfolder


copes from s3 bucket to local folder
aws s3 sync s3://bucketofsangramdesai /home/sangram/Documents/developement/s3syncfolder

copies from local folder to s3 bucket:
aws s3 sync /home/sangram/Documents/developement/s3syncfolder s3://bucketofsangramdesai/

No comments:

Post a Comment