Backups and restore
Every database is backed up continuously and kept 30 days.
- Plans
- Every plan, including the free app
- Built on
- PostgreSQL
- Self-service restore
- Starter: 7 days · Team: 7 days · Business: 30 days · Enterprise: By agreement
What you get
- Continuous database backups
- A full backup every night
- Backups kept for 30 days on every plan
- Restore to any minute within your plan's window
- A restored copy you can check before it goes live
- A restore point before risky work
- The previous database kept after a swap
How it works
Every change to each PostgreSQL database is backed up as it happens, with a full backup every night, so a database can be rebuilt to any minute in the last 30 days. Stored files are backed up too.
Restoring a database yourself is part of the paid plans, and the table on this page shows how far back each plan goes. whisk restore --at builds a copy of the database at that moment, beside the live one, to check first. Adding --swap puts the copy live and keeps the previous database for a day.
whisk db snapshot marks a restore point before risky work, and a confirmed change through database access for agents takes one by itself.
Example
An electrical contractor's office imports a spreadsheet of labour rates on a Tuesday afternoon and overwrites the wrong rows. The agent restores the database to 2:00 that afternoon beside the live one and compares the rates. It swaps the copy in before the evening's job costing runs.
For your coding agent
whisk db snapshot whisk restore --at <time> whisk db query "<sql>" --database <restored database> --json whisk restore --at <time> --swap
The restore result names the restored database. Every flag is in the CLI reference.