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
Latest posts by rajeshkumar (see all)