Is there a way to clone a directory in an S3 bucket to another path within the same bucket?

Viewed 4098

I've searched and read quite a bit but can't find an answer to this question so I assume it's not possible.

Can I clone (or copy) a path within an S3 bucket to another path and have it copy all sub-paths and files recursively?

I've seen similar things done with S3FS but I would rather not have to make that step.

I've tried from the shell and it creates the destination directory but nothing inside:

aws s3api copy-object --copy-source my-bucket/source/ --key dest/ --bucket my-bucket

1 Answers
Related