MOTOSHARE 🚗🏍️

Rent Bikes & Cars Directly from Owners

Motoshare connects vehicle owners with people who need bikes and cars on rent. Owners earn from idle vehicles, and renters get flexible ride options.

Visit Motoshare

How to setup AWS Command line to Sync S3 Bucket in Windows?

Uncategorized

Step 1 – Install AWS Command line

Download this file – https://awscli.amazonaws.com/AWSCLIV2.msi

Step 2 – Run following command

$ aws configure
AWS Access Key ID: <ENTER AWS ACCESS ID>
AWS Secret Access Key: <ENTER AWS ACCESS Key>
Default region name: ap-south-1
Default output format: 

Step 3 – Verify AWS configure and access

$ aws s3 ls

Step 4 – Create a empty directory where you want to sync S3 Bucket usign cmd.

$ cd d:/
$ mkdir aws-s3
$ cd aws-s3
$ start .

Step 5 – Create a 2 Bat file.

#pull.bat content
----------
aws s3 sync s3://<NameOfBucket> .

#push.bat content
----------
aws s3 sync . s3://<NameOfBucket>

Step 6 – Open cmd line and run pull.bat for pull the content

Step 7 – Open cmd line and run push.bat for push the content

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x