Answers for "copy all files from s3 to local"

1

copy folder from s3 to local

aws s3 cp s3://myBucket/dir localdir --recursive
Posted by: Guest on April-21-2020
0

copy files from s3 to s3 bucket

import boto3
s3 = boto3.resource('s3')
copy_source = {
    'Bucket': 'mybucket',
    'Key': 'mykey'
}
s3.meta.client.copy(copy_source, 'otherbucket', 'otherkey')
Posted by: Guest on December-08-2021

Code answers related to "copy all files from s3 to local"

Browse Popular Code Answers by Language