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, 2019 in AWS by Anjali
• 2,950 points
254 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, 2019 by Dhananjay

Related Questions In AWS

0 votes
1 answer

How to transfer files between AWS s3 and AWS ec2?

Hi@akhtar, You can use the AWS CLI command to ...READ MORE

answered Sep 22, 2020 in AWS by MD
• 95,360 points
312 views
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,660 points
5,495 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
• 58,080 points
1,997 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
• 58,080 points
8,299 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
• 58,080 points
3,512 views
–1 vote
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
• 58,080 points
3,695 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,810 points
1,970 views
0 votes
1 answer

What is Iaas, PaaS and SaaS?

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

answered Jan 16, 2019 in AWS by Deeksha
1,036 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP