How to copy files and folders between two buckets?

0 votes
I am looking for a tool to help me copy content of an S3 bucket into a second bucket without downloading the content first to a local system. I have tried AWS S3 console copy option but that resulted in some nested files being missing.
Jan 16 in AWS by Anjali
• 2,930 points
53 views

1 answer to this question.

0 votes

You can use AWS CLI to do that you can install AWS CLI from here http://aws.amazon.com/cli/ 

The command that you can use for copying the file is as follows:-

$ aws s3 sync s3://mybucket-src s3://mybucket-target --exclude *.tmp

This will copy from one target bucket to another bucket.

See the documentation here : S3 CLI Documentation

answered Jan 16 by Dhananjay

Related Questions In AWS

0 votes
1 answer

How do I invoke another lambda async and pass context to it?

I tried several times trying to pass ...READ MORE

answered Apr 27, 2018 in AWS by Cloud gunner
• 4,260 points
1,530 views
0 votes
1 answer

How can i copy tables from one database to other on AWS?

You can use AWS Data pipeline to ...READ MORE

answered Jul 5, 2018 in AWS by Priyaj
• 56,540 points
62 views
0 votes
1 answer

How to copy .csv file from Amazon S3 bucket?

Boto3 is the library to use for ...READ MORE

answered Jul 6, 2018 in AWS by Priyaj
• 56,540 points
383 views
0 votes
1 answer

how to access AWS S3 from Lambda in VPC

With boto3, the S3 urls are virtual by default, ...READ MORE

answered Sep 28, 2018 in AWS by Priyaj
• 56,540 points
1,696 views
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 56,540 points
231 views
0 votes
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 56,540 points
459 views
0 votes
1 answer

Import my AWS credentials using python script

Using AWS Cli  Configure your IAM user then ...READ MORE

answered Nov 16, 2018 in AWS by Jino
• 5,560 points
315 views
0 votes
1 answer

What is Iaas, PaaS and SaaS?

IaaS, PaaS and SaaS are cloud computing ...READ MORE

answered Jan 15 in AWS by Deeksha
154 views