How to copy files from one s3 bucket to another?


AWS does not replicate existing files from one bucket to another when you enable cross region replication from one bucket to another.

The easiest way to replicate existing files from one bucket to another is using AWS command line interface.

  • Install AWS CLI

  • Type the below commands from terminal. First command lists all the buckets and second one copies the files from one bucket to another recursively.

$ aws s3 ls 
$ aws s3 cp --recursive s3://sourceBucketName s3://destinationBucketName