简体   繁体   中英

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

在此处输入图像描述

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?

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM