Download and install AWS CLI and then use the below command to do as you want it to do.
$ aws s3 sync s3://sourcebucket s3://targetbucket --exclude *.tmp
This command synchronizes the contents of the source bucket to the destination bucket.
For more information about the commands, check out the AWS CLI commands for S3 blog.
Also, for more insights about S3, check out this AWS S3 tutorial page. If you are looking for more insights about AWS, then visit the AWS Training page.
If you are more of a listener, the check out this informative S3 tutorial taken by an industry professional: