Alex
Alex

Reputation: 7491

How to copy data from one AWS S3 folder to another folder in the same bucket?

enter image description here

Trying to copy data from one folder in the S3 bucket to another folder in the same bucket. Is it possible from GUI or AWS CLI?

Upvotes: 3

Views: 4996

Answers (1)

You can copy the contents of one prefix (folder) to another prefix (folder) by using this command -

aws s3 cp --recursive s3://<bucket-name>/<source-folder-name> s3://<bucket-name>/<target-folder-name> --region <region-name>

Upvotes: 7

Related Questions