Skip to content
NordBaseDocs

Search the docs

Find a page or a section of the NordBase docs

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

PlanRecovery window
Start7 days
Hobby7 days
Pro14 days
Team14 days
Scale30 days
Business30 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:

bash
curl "https://api.nordbase.<base>/v1/databases/db-k7q2x9m4p1/recovery-window" \
  -H "Authorization: Bearer $NORDBASE_ACCESS_TOKEN"
json
{
  "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:10Z

A time outside the window is refused with outside_recovery_window.

As a new Database or in place

As a new DatabaseIn place
modenew_databasein_place
The current DatabaseUntouched, keeps runningIts data is replaced by the data at the Restore point
ResultA second Database with its own id and EndpointsThe same Database, id and Endpoints
UndoDelete the new DatabasePossible 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.

bash
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.

bash
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}:

json
{
  "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:

bash
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.