New — Iris AI drafts your firewall, routing & rate-limit rules. Explore AI features →
Changelog
Databases

Managed databases: backups, restores and exports

Back up a managed database on demand or on a schedule, restore it after typing its name, and export a paused database whenever you need its data.

Managed databases: backups, restores and exports

A migration that goes wrong, a script that deletes the wrong rows: the data in your database is the one thing a redeploy can't bring back. You need a copy you can return to, and a way to get your data out even when the database is paused.

Every managed database now has a Backups tab. Take a backup whenever you want or on a schedule, download any backup as a compressed SQL file, restore one into the database, and export a paused database as often as you like.

The Automatic backups card: on, Daily, 03:00 UTC, keep the last 7, next run in 13 hours
Acme Labs' orders database backs up every day at 03:00 UTC and keeps the last 7. Yesterday afternoon someone also took one by hand.
The restore dialog: a warning that all data in orders is replaced, the connected apps orders-api and console, and orders typed to confirm
A cleanup script deleted the wrong rows an hour ago, so Acme restores this morning's automatic backup. The dialog names both apps that use the database and asks for the database's name before Restore turns on.
The Export data card of the paused reports-archive database: an export ready to download, with Download and Export again
An old reports-archive database is paused, so no app can connect to it. Its data is kept: Export data makes a fresh copy whenever the team asks, and the latest one waits under Download.

What you can do

  • Back up now. A copy of the whole database: its tables, data and views.
  • Automatic backups. Daily or weekly, at the hour you pick (UTC), keeping the last N. Backups you take by hand count toward N.
  • Download. Any completed backup, as a .sql.gz file you can import into an empty database anywhere.
  • Restore. Replaces all of the database's data with the backup, for every app connected to it. You type the database's name first, and there is no undo, so take a fresh backup before you restore.
  • Export a paused database. As often as you like. Each export replaces the previous one, so the latest copy is the one you download.
  • Who can take data out. Downloads and exports need the Database data permission, so you choose which roles can.

Backups, restores, schedules and exports are in the API and the MCP server too.

Get started

  1. In the dashboard, go to Storage → Databases and open a database.
  2. On the Backups tab, click Back up now, or switch on Automatic backups, pick the frequency, time and how many to keep, and click Save schedule.
  3. To restore, open a backup's ⋮ menu, choose Restore…, type the database's name and click Restore.
  4. On a paused database, click Export data, then Download when it's ready.
  5. Read the docs: Backups, Automatic backups, Export a paused database and the API reference.

Read the docs

Ask an AI to summarise this page
Deploy
App hosting Edge functions Domains & certificates
Connect
Secure tunnels API gateway Multi-region edge
Protect
Bot protection & challenge WAF & firewall Edge login
Observe & AI
Monitoring Inspector & replay Iris AI MCP server AI Gateway
Developers
Developer tools Docs ngrok policy converter Blog Changelog
Compare
Ngris vs ngrok Ngris vs Cloudflare Tunnel Ngris vs Vercel Ngris vs Netlify Expose localhost guide
More
Solutions Pricing Enterprise Sign in Get Started Free