cancel
Showing results for 
Search instead for 
Did you mean: 

How we can Migrate s3 Bucket folders to Another Bucket

Rahul
New Contributor III

Hi,

I have a requirement to create s3 bucket folders from one bucket to another bucket with the same structure.

7 REPLIES 7

bojanvelevski
Valued Contributor

Hey @Rahul,

You can easily read one file that in the current bucket directories, and re-write it into the new bucket by replacing the old bucket with the new one in the content-location header.

image

Make sure you check the Create directory if not present option. You may achieve this with File Operation as well, but I’m not sure.

Rahul
New Contributor III

@bojanvelevski Thanks But in Source s3 folder have multiple subfolders and subfolders have multiple subfolders. we need to follow same hierarchy and create in Target S3 Bucket folder.

bojanvelevski
Valued Contributor

Yes, I already assumed that. My suggestion was to get all folders and subfolders with multiple Directory Browsers and at the end, one file from each lowest level is enough to recreate the whole structure.

Rahul
New Contributor III

@bojanvelevski can you Please Share your pipeline