0

I'm trying to copy data from one s3 bucket to another s3 bucket. In source s3 bucket I've data in recursive folders structure.

How can I copy data to destination s3 bucket in same way data is present in source recursive folder structure manner ?

any suggestions ?

Oxana Grey
  • 327
  • 2
  • 12
  • Does this answer your question? [AWS S3 copy files and folders between two buckets](https://stackoverflow.com/questions/9295587/aws-s3-copy-files-and-folders-between-two-buckets) – Venkatesh Wadawadagi Jan 18 '23 at 14:06

1 Answers1

0

There are few ways to achieve data copy between s3 buckets in recursive way.

  1. Using AWS CLI's sync command:

Eg: aws s3 sync s3://mybucket-src s3://mybucket-target --exclude *.tmp

  1. Using CopyObject API when you're working with AWS SDK. This can be done across given programming languages as documented here.
Venkatesh Wadawadagi
  • 2,793
  • 21
  • 34
Kevin Lee
  • 86
  • 2