launchroom
Databases and backups

Backups to Cloudflare R2

Store launchroom's encrypted backups in a Cloudflare R2 bucket. R2 has no egress fees, so restores cost nothing.

Cloudflare R2 is S3-compatible and has no egress fees, so restores cost nothing. launchroom encrypts everything with restic on your servers before upload, so R2 stores only encrypted data. This guide takes about five minutes.

Set up the bucket

Create a bucket

In the Cloudflare dashboard, open R2 Object Storage → Create bucket. Name it, for example, launchroom-backups, and leave the location on automatic.

Create an API token

Open R2 → Manage API tokens → Create API token:

  • Permissions: Object Read & Write
  • Specify bucket: only launchroom-backups

Copy the Access Key ID and the Secret Access Key. The secret is shown once.

Note your account ID

Your account ID is on the R2 overview page. Your endpoint is:

https://<account id>.r2.cloudflarestorage.com

Add the destination in launchroom

Open Settings → Backups and choose Connect storage (Add storage when you already have one). Choose Cloudflare R2 as the storage provider and fill in:

FieldValue
NameCloudflare R2
Endpointhttps://<account id>.r2.cloudflarestorage.com
Bucketlaunchroom-backups
Regionauto
Folder (optional)for example team-acme. One folder per team keeps repositories apart.
Access key ID, Secret access keyFrom step 2

launchroom tests the connection right away and shows "Connected", or the cause and its fix when it fails. Daily backups start at a staggered time between 01:00 and 07:00 UTC.

Back up launchroom itself

If you are an instance owner, leave Also protect launchroom itself ticked in the same setup. launchroom keeps its own backups in the same bucket, in a launchroom folder (inside the folder you chose, if any), with its own repository password. The setup then asks for the recovery passphrase and the recovery kit. See backing up launchroom itself.

Tips

  • R2 lifecycle rules aren't needed. launchroom's retention deletes old data itself.
  • Don't enable object lock on this bucket. Pruning needs to delete old data.

On this page