How to Manage AWS S3 Bucket with AWS CLI - TheDBAdmin

How easy it would it be to sync your data between your local folder and s3 bucket with one command!! wouldn’t you love it?

Look here for installing AWS CLI in your PC if you don’t have it already: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html

After installing your AWS CLI, configure your AWS cli and associate it with your AWS account, you can follow this link for the same: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html

Assuming you have successfully downloaded and configured AWS CLI , here is the simple command to keep your folder in sync with your S3 bucket.

Navigate to the folder that you would like to sync it with the S3 bucket. Now open the command prompt from here.

Download from S3 bucket:

C:\Users\xxxx\Desktop\S3 bucket>aws s3 sync s3://my-bucket .

Upload to S3 bucket:

C:\Users\xxxx\Desktop\S3 bucket>aws s3 sync . s3://my-bucket

You can use this command to easily sync your folder and the s3 bucket.

Cloud storage has never been a problem or hassle after I started using this method.

Leave a Reply

Your email address will not be published. Required fields are marked *