How to use Postgresus with Cloudflare R2?

To obtain the credentials and endpoint for using your R2 bucket as an S3-compatible source, you'll need to:

1 Fill your bucket name

Enter your R2 bucket name in the storage configuration.

Step 1

2 Set the region

In region field, fill "auto"

3 Generate an Access Key ID & Secret Access Key

In the Cloudflare dashboard, go to R2 → API → Manage API Tokens. Create the token.

Grant it the permissions you need (e.g. "Object Read & Write").

When the token is created you'll see:

  • Access Key ID (the token's ID)
  • Secret Access Key (the SHA-256 hash of the token value)

Copy both now to Postgresus.

Step 2

4 Find your Account ID

On any R2 page in the dashboard, you'll see your Account ID near the top (or in your account settings).

Step 3

5 Construct the S3 endpoint

https://<ACCOUNT_ID>.r2.cloudflarestorage.com

Replace <ACCOUNT_ID> with the value from your dashboard.

Fill it to Postgresus as well.

🎉 Configuration Complete!

Now you have all fields filled and your Postgresus is ready to use Cloudflare R2 as storage for your PostgreSQL backups.

Step 4