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
819 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,460 points
1,490 views
0 votes
1 answer

How to connect between AWS VPC and a Raspberry Pi?

Here, you can connect your Raspberry Pi ...READ MORE

answered Oct 28 in AWS by anonymous
89 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,670 points
6,343 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,020 points
10,152 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,020 points
6,015 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,020 points
5,234 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,820 points
2,885 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
2,225 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP