Postgres backups, restore-tested · checked
Supabase's Free plan has no backups
Supabase's Free plan includes no automatic backups: its docs tell Free projects to export their data with supabase db dump and keep the copies elsewhere. Pro keeps 7 days of daily backups, Team 14 and Enterprise 30, and point-in-time recovery is an add-on from about $100 a month. No plan's backups hold the files in Supabase Storage, only their metadata.
- Free
- No automatic backups.
- Pro
- Daily backups, kept 7 days.
- Team
- Daily backups, kept 14 days.
- Enterprise
- Daily backups, kept 30 days.
- Point-in-time recovery
- An add-on on Pro, Team and Enterprise: about $100 a month for 7 days of history, $200 for 14 and $400 for 28.
- Storage files
- Not in any backup: backups hold the metadata of stored objects, not the files.
Supabase's own GitHub Actions recipe dumps the roles, schema and data every day and commits the three files to the repository. The same page says never to back up to a public repository, and nothing in the recipe restores what it saved.
From GitHub Actions, use the Session pooler connection string (port 5432 on *.pooler.supabase.com). The direct db.<ref>.supabase.co host is IPv6 only unless the project has the IPv4 add-on, and GitHub's hosted runners have no IPv6. The transaction pooler (port 6543) does not support prepared statements and cannot take a whole-database dump.
Every week, in your own GitHub Actions
$ npx --allow-remote=root https://agentwares.vercel.app/dl/restoreproof-0.1.0.tgz init
Writes .github/workflows/restoreproof.yml and .github/restoreproof/drill.mjs into your repository, then tells you which repository secret to add. Each run backs the database up, restores it into a throwaway PostgreSQL of the same version on the runner, compares the two, and fails the job when the backup would not restore. To test once from this machine: npx --allow-remote=root https://agentwares.vercel.app/dl/restoreproof-0.1.0.tgz check, with the URL in RESTOREPROOF_DATABASE_URL. Free and MIT licensed; nothing is sent to us.
restoreproof: the same test, every week
restoreproof backs the database up in your own GitHub Actions, restores the backup into a throwaway PostgreSQL of the same version on the runner, and fails the job when it would not restore. Each run checks:
- The backup restores:
pg_restore --exit-on-errorinto a throwaway PostgreSQL of the same major version, made on the runner withinitdb, on 127.0.0.1 with a random password. - Every table, column, constraint, index, view, function, trigger, row-level security policy, sequence, enum and domain of the source is in the copy, with the same definition.
- Every table's rows match the live count, taken in one READ ONLY snapshot just after the backup, give or take the rows written meanwhile (at most 10 or 10%). A table with rows that restores empty always fails.
- The database has not lost more than half its rows since the last good run, while last week's backup still holds them.
A recorded run, and what else exists.
An email when a weekly restore test fails or does not run is not built.
It would email the people you name when a weekly test fails, when the backup shrinks, or when no test has run for eight days, from outside GitHub's scheduler. Today GitHub emails one person when a scheduled run fails, and nobody when it never runs: it can drop a scheduled run under load, and it turns off a public repository's schedules after 60 days without activity. Part of it runs today: agentcheck's free plan checks one URL every hour and emails you when the answer stops matching, so a check that expects "passing" from the workflow's status badge, on a public repository, tells you when a test fails, though not when one never runs. Watch the badge, free. If you would pay for the whole of it, say so with one click. The click is counted, and nothing else is sent or stored unless you then leave an email.
Counted. Thank you; nothing else was sent.
Sources
- Supabase docs: Database backups (read 9 Oct 2026)
- Supabase docs: Point-in-time recovery usage and pricing (read 9 Oct 2026)
- Supabase docs: Automated backups using GitHub Actions (read 9 Oct 2026)
- Supabase docs: Backup and restore using the CLI (read 9 Oct 2026)
- Supabase docs: Connect to your database (read 9 Oct 2026)
Related
restoreproof is a free tool from agentcheck, which runs scheduled checks of your endpoints and alerts you when an answer changes. Facts come from each provider's own pages, read on the day shown.