Databases
Restore
Bring a Database back to any second inside its Recovery window, as a new Database or in place, and undelete a deleted Database within 7 days.
Every Database, on every Plan, can go back to any second inside its Recovery window. There is nothing to turn on, and it cannot be turned off.
Recovery window
| Plan | Recovery window |
|---|---|
| Start | 7 days |
| Hobby | 7 days |
| Pro | 14 days |
| Team | 14 days |
| Scale | 30 days |
| Business | 30 days |
Any second inside the window is a Restore point. The newest Restore point is normally less than 60 seconds old.
To see the window of one Database:
curl "https://api.nordbase.<base>/v1/databases/db-k7q2x9m4p1/recovery-window" \
-H "Authorization: Bearer $NORDBASE_ACCESS_TOKEN"{
"earliest": "2026-11-11T21:40:00Z",
"latest": "2026-11-25T21:39:17Z"
}How it works
NordBase archives every change your Database makes, continuously, plus a full base copy every day. The archive lives in object storage in a different data centre from the Database, and it is encrypted.
A Restore starts a fresh copy from the last base copy before your Restore point and replays every change up to that exact second. This is for SQL Databases; Document Databases are backed up every 6 hours and restored by request, see Document Databases.
Every week we restore a randomly chosen Database to a temporary copy and check it, so the restore path is tested, not assumed.
Choosing a Restore point
In the console, open the Database's restore timeline and drag it to the second you want, for example 23:52:10, the second before a bad migration. Then choose Restore.
Through the API, a Restore point is an RFC 3339 time in UTC with whole seconds:
2026-11-24T23:52:10ZA time outside the window is refused with outside_recovery_window.
As a new Database or in place
| As a new Database | In place | |
|---|---|---|
mode | new_database | in_place |
| The current Database | Untouched, keeps running | Its data is replaced by the data at the Restore point |
| Result | A second Database with its own id and Endpoints | The same Database, id and Endpoints |
| Undo | Delete the new Database | Possible for 24 hours |
As a new Database is the careful choice. You can look at the old data, copy back the rows you need, and leave production alone. The new Database has its own id and Endpoints, so create a Credential on it before you connect.
curl -X POST "https://api.nordbase.<base>/v1/databases/db-k7q2x9m4p1/restores" \
-H "Authorization: Bearer $NORDBASE_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 2b9c4e71-0a6d-4f3e-8c15-7d2a9b6e4f80" \
-d '{ "restore_point": "2026-11-24T23:52:10Z", "mode": "new_database", "name": "shop-production-before-migration" }'If the new Database does not fit your Pool, the API answers 402 with pool_exceeded and the smallest Plan that fits.
In place puts the whole Database back to the Restore point. Every Write made after that second is replaced. For 24 hours the replaced data is kept, so the Restore can be undone. Stop the parts of your app that write before you start, so nothing is written into a Database that is about to be replaced.
curl -X POST "https://api.nordbase.<base>/v1/databases/db-k7q2x9m4p1/restores" \
-H "Authorization: Bearer $NORDBASE_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 5e0a7c3d-9b2f-4d61-a8e4-1f6c3b9d2a57" \
-d '{ "restore_point": "2026-11-24T23:52:10Z", "mode": "in_place" }'While it runs, the Database's status is restoring.
How long it takes
A Restore replays history, so its length depends on two things: the size of the Database, and how many changes it made between the last daily base copy and your Restore point. A small, quiet Database comes back much faster than a large, busy one.
A Restore is an Operation. Follow its progress, from 0 to 100, in the console or with GET /v1/operations/{operation_id}:
{
"id": "op_9t2k7m4x1q8p3v6d",
"kind": "restore",
"status": "running",
"database_id": "db-k7q2x9m4p1",
"progress": 40,
"created_at": "2026-11-25T08:14:02Z",
"finished_at": null
}Restore from an AI agent
The MCP server has a restore_to_time tool. An agent with an Access token that has databases:write can start a Restore, so give that scope only to agents you trust with it.
Deleted Databases
Deleting a Database is not immediate. For 7 days it can be undeleted, with its data and history:
curl -X POST "https://api.nordbase.<base>/v1/databases/db-k7q2x9m4p1/undelete" \
-H "Authorization: Bearer $NORDBASE_ACCESS_TOKEN"After 7 days the Database and its history are purged, and undelete answers 410 with gone. Undeleting needs room in your Pool, like creating a Database.