Is it possible to move folders in R2?

I have quite a few files and ‘folders’ that I need to move to the root of the R2 bucket. Is there an easy way to do that?

or…

Is it possible for the R2 migration tool to migrate data into a different folder? What I need to do:

S3bucketROOT/folder1 —> R2bucketROOT/

There are tools like rclone ad cyberduck that work with the S3 API that I would recommend using for bulk moving tasks.

Yeah, I’m working with rclone right now. However, it is SOOOOOO slow.

1 Like

Are you downloading the files → changing the name → uploading? You can use server side items to handle it quicker

It looks like server side is default. I see this in progress:

Server Side Copies:587942 @ 8.940 GiB

But to copy 10GB has taken well over 24 hours and still isn’t done. Tons of small files, but still…

Anyone have any other ideas?

Should anyone actually ever have an odd use case where you need to remove an S3 folder/prefix during an R2 migration, here’s what I did:

I used s3p (Google as I can’t post links) to do an S3 > S3 migration.
Example: s3bucket1/folder > s3bucket2/

Then from there I did the R2 migration.
Example s3bucket2/ > R2bucket/

The default tools won’t easily let you remove a prefix and both the s3 cli and rclone were going to take days with just 10GB (600k files) of data. I hope that eventually prefixes can be edited in the R2 web console and/or we have the ability to change prefixes in the Super Slurper. In the meantime though, this convoluted process works.