# Your infrastructure. Your data. Your backups.

Brewless backs your databases, files and configuration up into another region of your own Scaleway account, encrypted, with a recovery key only you hold.

Brewless backs up the databases, files and configuration of your environments into another region of your own Scaleway account. A job in that account does the work and encrypts everything before it leaves. You hold the recovery key, and you can restore without us. Backups are in beta: you can switch them on for your environments now. We run them on our own applications first, and publish measured figures after that pilot.

## In short

- Switch backups on per environment, in the console or in brewless.yml, and Brewless backs it up each day into a bucket in another region of your own Scaleway account: Paris to Amsterdam, the other regions to Paris.
- The backups are made by the open source runner brewless/backup, as Serverless Jobs in your account, and encrypted by restic before they leave the job; your data never passes through Brewless.
- The backup bucket has Object Lock, in Governance mode by default and Compliance if you choose, and the identity that makes the backups cannot delete them.
- With the Recovery Kit and your recovery key you restore without Brewless, with the runner or with plain restic.
- Backups are opt-in per environment, and part of every Brewless plan, Solo, Business and Enterprise alike; you pay only Scaleway, which bills you directly for the storage and the minutes the jobs run.

## From a schedule to a recovery point

Brewless plans the backup and watches it. The work itself runs in your Scaleway account, on Scaleway's own schedule, also when Brewless is unreachable.

### The job starts (Every day at 03:30)

A Serverless Job in your project starts on a schedule kept by Scaleway. Daily is the default once you switch backups on; hourly or a cron expression is a line in brewless.yml.

### Databases first (Without waking them)

A daily backup exports the provider's own newest backup of the database, so a Serverless SQL Database stays asleep. More often than daily, the runner dumps it directly, and brewless plan says what that adds.

### Then the buckets (Only what changed)

Every bucket of the environment is read through a read-only mount. Unchanged objects are only listed, and restic stores each piece of data once, so a run adds what is new.

### Encrypted and checked (Before it counts)

restic encrypts every byte in the job before it is written to the bucket in the other region. The new snapshots are checked, and a run only counts as successful when every resource it should hold is in it.

### Reported to you (Right after)

The job sends Brewless a signed report with names, sizes and times. No backup within the schedule and three hours is overdue, and you get a mail.

## What a backup holds

Brewless backs up the resources it knows the environment by, and lists what it leaves out and why.

- **Databases** — Serverless SQL and Managed Databases for PostgreSQL and MySQL, as plain SQL that any psql or mysql reads, with the versions and extensions next to it.
- **Buckets** — Every bucket of the environment, with each object's content type, cache headers and other metadata, so a restore puts them back as they were.
- **Configuration** — brewless.yml, the release, the DNS records and the edge settings. The variables only when you switch secrets on: they are read in your account and encrypted with the rest.
- **Left out, by name** — A cache, the storage zones at the edge and the buckets that hold backups themselves. A database or bucket that environments share is backed up once, by production first.

## Who holds the keys

Encryption is only as private as the keys. This is where they are, including what Brewless could do.

- **The runner key, in your Secret Manager** — The job makes the key the backups are encrypted with and keeps it in your own Secret Manager. Brewless creates the jobs that read it, so Brewless could technically read it too. We say so, rather than call this something it is not.
- **The recovery key, only with you** — A second key, made in your account and encrypted for your browser alone. It is shown once; Brewless never holds it, only an encrypted copy for at most a day until you confirm you stored it.
- **Adding is not deleting** — The identity that makes the backups may add to the bucket but not delete from it. Only a separate maintenance identity removes backups past their retention, and its key is out of the runner's reach.
- **Lose both, lose the backups** — Without the runner key and without the recovery key the backups cannot be read, by you or by anyone. Keep the recovery key away from your Scaleway account.

## Where the backups go

The primary destination is a bucket Brewless makes in your own account. You can add second places of your own; the job copies the checked snapshots there.

| Destination | Where | Immutable |
| --- | --- | --- |
| Primary | Your Scaleway project, in another region | Yes: Object Lock, Governance by default, Compliance if you choose |
| Another Scaleway bucket | A bucket of your own, also in another account | When Object Lock is on for that bucket; the destination test shows it |
| Any S3 service | A bucket of your own at another provider | When Object Lock is on for that bucket; the destination test shows it |
| bunny.net Storage | A storage zone of your own | No: Bunny Storage has no versioning or Object Lock |

Governance keeps a backup from being changed or deleted before its lock ends, except by an account admin who explicitly bypasses it. Compliance cannot be bypassed or shortened, also not by the account owner.

## Included in Brewless. Storage billed by Scaleway.

Backups are part of every Brewless plan: Solo, Business and Enterprise, with nothing held back for a higher one. You switch them on per environment, and you pay only Scaleway, which bills you directly for the storage in the other region and the minutes the jobs run. The console shows the estimate for each environment before anything costly is switched on.

The estimate assumes daily backups kept for 30 days, in One Zone storage in the other region. What deduplication and compression save depends on your data, which Brewless never reads, so it stays an estimate. An hourly schedule wakes a Serverless SQL Database for each backup, and costs more.

## What to know

Backups by Brewless do what the providers make possible, and say where that ends.

- **No point-in-time recovery** — You restore to a backup run: by default at most a day old, at most an hour with an hourly schedule. Changes since the last backup are not in it.
- **Database and files are not one moment** — The databases are taken first and the buckets after, so a recovery point is not one consistent instant across both.
- **Restore times** — A restore makes a new database or bucket next to the current one, and you switch over when you have looked. How long it takes depends on how much you restore; we publish no restore times before we have measured them.
- **Not every resource yet** — A cache is not backed up: it is not data to keep. A resource that cannot be backed up is named on the environment, which is then never shown as fully protected.

## Questions

### Does my data pass through Brewless?

No. The backups are made by Serverless Jobs in your own Scaleway account and written to a bucket there. Brewless receives a signed report with names, sizes and times, never rows, files or variable values.

### Can Brewless read my backups?

Brewless never reads them, and the backup bucket's policy does not let Brewless's own key read its objects. But the key the job encrypts with is in your Secret Manager, and Brewless creates the job that reads it, so technically Brewless could. Your recovery key is never with Brewless.

### Can I restore without Brewless?

Yes. Every destination holds a Recovery Kit that says where everything is and how to get it back. With your recovery key you restore with the open source brewless-backup tool or with plain restic.

### What happens to my backups when I leave Brewless?

They stay in your Scaleway account. Brewless never deletes a backup bucket or a key because you detach or stop, and the jobs keep their schedule at Scaleway. Removing them is yours to do there.

### Are the backups immutable?

The primary bucket has Object Lock: in Governance mode an account admin can still bypass it on purpose, in Compliance mode nobody can before the lock ends. A second destination at bunny.net Storage has no Object Lock and is never called immutable.

### What do backups cost?

Nothing at Brewless: they are part of every plan, Solo, Business and Enterprise. Scaleway bills you for the storage and the job minutes; the console shows the estimate for each environment at Scaleway's list prices.
