I would like to copy a list of files from one S3 bucket to another.
Iterating over the files and using boto3 "bucket.copy" (link) function is very slow.
Is there a way to perform a batch copy or speed things up?
I would like to copy a list of files from one S3 bucket to another.
Iterating over the files and using boto3 "bucket.copy" (link) function is very slow.
Is there a way to perform a batch copy or speed things up?
The AWS Command-Line Interface (CLI) has a aws s3 sync
option that recursively copies new and updated files from the source directory to the destination.
See: Sync documentation
For recursive copy using python, refer to: Boto3 to download all files from a S3 Bucket