Explore Courses Blog Tutorials Interview Questions
0 votes
in AWS by (12.9k points)

In my amazon EC2 instance, I have a folder named uploads. In this folder I have 1000 images. Now I want to copy all images to my new S3 bucket. How can I do this?

1 Answer

0 votes
by (18.2k points)

You can achieve this using AWS CLI.

Use the following command in the AWS CLI:

aws s3 sync <source> <target> [--options]

Where the source will be the name of the bucket and target will be the folder name in your instance.

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

Browse Categories