How to copy all the files and folders to Cloudflare R2 by wrangler

Why Wait
Don’t wait for an answer, find it fast! Search for #CommunityTip error:
Example: #CommunityTip 521

Test Before You Post
Unsure of the issue? Test before posting using the Cloudflare Diagnostic Center: Diagnostic Center | Check SSL and Test Website Security | Cloudflare

I was trying to backup all the files and folders in my local PC.

I figure it out how to connect to R2 by wrangler.
screenshot_2022-06-07 11-57-01

Is there away to copy an hole folders to R2?

For example there’s a bucket ‘A’ in R2.

And I want to copy all the files and folders from my local path(example : /home/alex/A) to R2 bucket ‘A’

Is there a cli(wrangler) to copy? or do I need to use an other way?

wrangler can’t currently do that - you’ll want to use a utility like rclone.

https://developers.cloudflare.com/r2/examples/rclone/

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.