Copy all files of an R2 bucket to another R2 bucket using rclone

Hi, I'm trying to use rclone to copy a R2 bucket to another R2 bucket.

[sample-dev]
type = s3
provider = Cloudflare
access_key_id = secret
secret_access_key = secret
endpoint = https://same-sample-endpoint.r2.cloudflarestorage.com
acl = private

[sample-production]
type = s3
provider = Cloudflare
access_key_id = secret
secret_access_key = secret
endpoint = https://same-sample-endpoint.r2.cloudflarestorage.com
acl = private


I have followed the reference: https://developers.cloudflare.com/r2/examples/rclone/

Whenever I run that: (log.txt)

I always get error about ListBuckets, and 403.

Can someone please help?
log.txt2.43KB
Cloudflare Docs
You must generate an Access Key before getting started. All examples will utilize access_key_id and access_key_secret variables which represent the Access Key ID and Secret Access Key values you generated.
Was this page helpful?