[GH-ISSUE #117] Using Cloudflare R2 Object Store #97

Closed
opened 2026-02-26 21:34:25 +03:00 by kerem · 4 comments
Owner

Originally created by @possebon on GitHub (May 1, 2025).
Original GitHub issue: https://github.com/eduardolat/pgbackweb/issues/117

It seems that it's not possible to use the R2 Object Store as the S3 destination.

Cloudflare R2 does not have the region concept, and on pgbackweb S3 configuration, it shows the Region as required. I tried to don't fill it and Test the connection, but did not work.

Image

Also at Cloudflare panel, when I create the access to R2 bucket, I received an API Token, I'm not sure if its required or not.

I use the R2 Object Store with success to backup Portainer config.

Image
Originally created by @possebon on GitHub (May 1, 2025). Original GitHub issue: https://github.com/eduardolat/pgbackweb/issues/117 It seems that it's not possible to use the R2 Object Store as the S3 destination. Cloudflare R2 does not have the region concept, and on pgbackweb S3 configuration, it shows the Region as required. I tried to don't fill it and Test the connection, but did not work. <img width="1217" alt="Image" src="https://github.com/user-attachments/assets/0ca6fed0-6f8c-4c17-a6af-20834535666c" /> Also at Cloudflare panel, when I create the access to R2 bucket, I received an API Token, I'm not sure if its required or not. I use the R2 Object Store with success to backup Portainer config. <img width="1479" alt="Image" src="https://github.com/user-attachments/assets/8f1447e0-5f07-497c-97b3-1d74692a6f70" />
kerem closed this issue 2026-02-26 21:34:25 +03:00
Author
Owner

@possebon commented on GitHub (May 1, 2025):

I also tested including the https on endpoint at pgbackweb and did not work

<!-- gh-comment-id:2844871740 --> @possebon commented on GitHub (May 1, 2025): I also tested including the https on endpoint at pgbackweb and did not work
Author
Owner

@eduardolat commented on GitHub (May 1, 2025):

@possebon According to the docs:

When using the S3 API, the region for an R2 bucket is auto. For compatibility with tools that do not allow you to specify a region, an empty value and us-east-1 will alias to the auto region.

Try setting to "auto"

https://developers.cloudflare.com/r2/api/s3/api/#bucket-region

<!-- gh-comment-id:2845214357 --> @eduardolat commented on GitHub (May 1, 2025): @possebon According to the docs: > When using the S3 API, the region for an R2 bucket is auto. For compatibility with tools that do not allow you to specify a region, an empty value and us-east-1 will alias to the auto region. Try setting to "auto" https://developers.cloudflare.com/r2/api/s3/api/#bucket-region
Author
Owner

@possebon commented on GitHub (May 1, 2025):

Worked perfectly! Thanks. To work it's required to put the https on the endpoint also.

<!-- gh-comment-id:2845792816 --> @possebon commented on GitHub (May 1, 2025): Worked perfectly! Thanks. To work it's required to put the https on the endpoint also.
Author
Owner

@eduardolat commented on GitHub (May 1, 2025):

You're welcome!

<!-- gh-comment-id:2845794151 --> @eduardolat commented on GitHub (May 1, 2025): You're welcome!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pgbackweb#97
No description provided.