Backups and undo
How your project is backed up, how to get things back, and the limits of the free plans.
Mistakes happen — to everyone, and to AI agents too. Bumper Lanes backs up your project automatically, so almost anything can be put back. Your code and live site are covered from the start. Data backups get switched on just before your first database change.
Your project has three layers, and each one is backed up differently:
| Layer | What it is | How it's backed up | How to get it back |
|---|---|---|---|
| Code | The files that make up your app | Every change is saved in git history. Each night, a bookmark (a tag called backup/YYYY-MM-DD) marks what was live that day. |
Ask your agent to undo — it reverses a pull request. |
| Live site | The website people visit | Vercel keeps every version it has published. The nightly backup also records which version was live, and the names of your settings. | Ask your agent to undo — it can switch Vercel back to an earlier version in one click. |
| Data | Rows in your database, user accounts, and uploaded files | Every night, and automatically before every database change, an encrypted copy is saved in GitHub. | Ask your agent to restore (you'll type RESTORE to confirm). |
When backups happen
Once backups are on:
- Every night, automatically.
- Before every database change your agent makes (the change waits until the backup is saved).
- Before every restore — so even a restore can be undone.
- Whenever you want: ask your agent to run backup-now, or open your repository on GitHub → Actions → Backup → Run workflow.
Your site's /status page shows when the last backup ran and what it covered (database, stored files, code). It warns you if the last one is more than two days old or left something out.
Restoring data
Ask your agent: "I need to restore my data from yesterday." The restore skill will explain
what will change and ask you to type RESTORE. Behind the scenes it runs the Restore
workflow (GitHub → Actions → Restore), which:
- Checks you typed
RESTOREexactly. Anything else, and nothing happens. - Saves a backup of your data as it is right now.
- Puts back the rows and files from the backup you chose.
There are two kinds of restore:
- data (normal) — puts your rows, user accounts and files back the way they were, in your current project. Tables keep their current shape. Tables you added after the backup are left alone.
- full (disaster recovery) — rebuilds everything in a new, empty Supabase project, for when the old one is gone.
If a restore can't finish — for example, a table in the backup has since been removed — it stops and changes nothing, and tells you why.
Keeping backups safe
- Data backups are encrypted with your backup passphrase (the
BACKUP_PASSPHRASEsecret). Without it, nobody — including you — can open them. GitHub never shows it again, so save your own copy somewhere safe. - Backups never contain your passwords or keys. They record only the names of your settings.
- Backups are stored with your private GitHub repository, so only people with access to it can download them.
Free-plan limits
| Limit | What it means for backups |
|---|---|
| GitHub artifact storage: 500 MB (private repositories on the free plan) | Each data backup is kept for 14 days by default, so about 14 backups exist at once. Your database rows take up very little (a few KB); uploaded files are almost all of a backup's size — in our test, one 6.8 MB photo made a 6.9 MB backup. If your uploaded files add up to more than about 30 MB, lower retention_days in bumper-lanes.config.yaml, or talk to S3. |
| GitHub Actions: 2,000 minutes/month (private repositories) | A nightly backup takes about 2 minutes (1 min 49 s in our test) — roughly 60 minutes a month. |
| Supabase free plan: no backups of its own | That's why Bumper Lanes makes its own. |
| Supabase free plan: projects pause after 7 days without database activity | See below. |
Does the nightly backup stop Supabase pausing my project?
Most likely yes, but it isn't guaranteed, and it only helps once backups are on. Supabase pauses free projects that have had no "user database activity" for 7 days. The nightly backup reads your whole database every night, which is database activity. Supabase doesn't publish exactly what counts, though, so we can't promise it. If you get an email from Supabase saying your project will be paused, open your project in the Supabase dashboard (that counts as activity) and let us know. A paused project can be restored from the Supabase dashboard for up to 90 days.
Setting up backups
You switch backups on just before your first database change: your agent stops and walks you through it, and it takes about ten minutes. You add these three secrets yourself in GitHub → your repository → Settings → Secrets and variables → Actions, because an agent in the cloud doesn't have permission to. Ask your agent to "connect backups" for a direct link. Click-by-click steps, and what to save: Turn on backups.
| Secret | Where to find it |
|---|---|
SUPABASE_DB_URL |
Supabase → your project → Connect → Session pooler connection string (with your database password filled in) |
SUPABASE_SECRET_KEY |
Supabase → Project Settings → API Keys → Secret keys. Lets backups save your uploaded files. |
BACKUP_PASSPHRASE |
Make one up: a long sentence only you know. Save your own copy. |
If something is missing or wrong, the backup still saves what it can — your database first — and then shows a red ✗ with the reason, so a half-done backup never looks fine.
Use the Session pooler string, not the "direct" one: GitHub's computers can't reach the direct address.