Copy all files from a folder to another S3 using aws cli

aws s3 cp <s3://><bucket/folder>/ <s3://><destiny_folder> --recursive
Example
aws s3 cp s3://my_bucket/image-folder/ s3://my_bucket2/backup/ --recursive
Or
aws s3 cp /image-folder/ s3://my_bucket/image-folder/ --recursive
Or
aws s3 cp s3://my_bucket/image-folder/ /image-folder/ --recursive

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.