Kashyap Sharma
Kashyap Sharma

Reputation: 119

Getting no error but AWS S3 sync does not work at all

I have the proper access and role in IAM. I have administrator access. My aws s3 ls command works alright. I have done aws configure as well. But when I run the command :

aws s3 sync s3://my-bucket local_destination_folder

It only downloads until the last folder of the bucket and that folder is empty. I even tried the aws s3 cp command with --recursive switch, but nothing gets downloaded. I don't get any error as well.

Upvotes: 3

Views: 15288

Answers (2)

Pawan V
Pawan V

Reputation: 121

I had the same issue, turns out windows is case insensitive so the path used in s3://.. is case sensitive. So make sure your s3 path all cases are as per the s3 bucket.

Upvotes: 0

Alfonso Flores
Alfonso Flores

Reputation: 110

I had same result, but the error was how I was setting the command for sync.

a) From local to S3 Bucket: Eg. create a file 'hi.txt' inside this path '/home/ec2-user/src_folder'

The sync command should be similar as:

aws s3 sync src_folder s3://your-bucket/dest_folder

Verify your files with:

aws s3 ls s3://your-bucket/dest_folder/

b) From S3 bucket all content to local

aws s3 sync s3://your-bucket .

Upvotes: 7

Related Questions