Cloudflare R2 storage

To use Cloudflare R2 as an S3-compatible storage for your PostgreSQL backups, you'll need to configure your R2 bucket credentials and endpoint.

Configuration steps

1. Fill your bucket name

Enter your R2 bucket name in the storage configuration:

Fill your bucket name in Cloudflare R2

2. Set the region

In the 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 a new token and 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 values to Postgresus:

Generate Access Key ID and Secret Access Key

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):

Find your Account ID in Cloudflare dashboard

5. Construct the S3 endpoint

Use the following format for your S3 endpoint:

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

Replace <ACCOUNT_ID> with the value from your dashboard and enter it in Postgresus.

That's it! Your configuration should now look like this:

Configuration complete

Your Postgresus is now ready to use Cloudflare R2 as storage for your PostgreSQL backups.