Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
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

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

29.3k questions

30.6k answers

501 comments

104k users

Browse Categories

...