Skip to content

Whole-database recovery in the dashboard and MCP ​

The existing HTTP backup and restore guide describes the underlying API.

Restore retained point-in-time history into a new database in the same project, leaving the source unchanged, or rewind the source database in place to a chosen time.

Access, history and quota ​

Use an active customer database you can manage as an organization owner or admin. Restore also requires provisioning rights and a unique new name. Existing access, retention, erasure and quota checks still apply.

Choose platform (default) or customer as the source backup bucket. This selects existing history, not the new database's storage configuration. Each destination has its own actual earliest/latest window; there is no fallback between buckets. A null window reports no retained history for that destination; an error may instead mean history or access is unavailable. A manual backup is separate from this continuous PITR window.

A restore consumes one additional organization database slot and normal storage quota; the plan reserves neither. Free allows one database, so retaining its source leaves no slot for a new database. See plan limits. Do not delete the source to make room: deleting it also removes its backups. Recovery does not extend retention or bypass erasure.

In the dashboard ​

  1. Open the source database, choose Backups, then Restore database at UTC time.
  2. Select the backup source bucket and Read retained window. Review its actual UTC bounds and the organization database allowance.
  3. Enter a retained UTC timestamp and a unique new database name. The timestamp defaults to the latest retained point; the form performs no local-time conversion.
  4. Choose Preview plan. Review the source bucket, chosen time, snapshot time and applicable segment count/latest time. This is metadata only: it does not verify replay bytes, object integrity, segment continuity or transaction times, reserve history, or guarantee a successful restore.
  5. To restore into a new database, explicitly approve the source bucket, time and new name. Type that new name exactly into the confirmation field, then choose Restore as new database. The source remains unchanged. Successful identity readback opens the new database; independently read its expected application records before using it.
  6. To restore in place instead, type the source database's exact name into the confirmation field under the plan, then choose Restore in place. This rewinds the database to the chosen time in one transaction: every table, index, view and trigger returns to its state at that time, the database keeps its id, name, credentials and allowance, and changes committed after that time are discarded. The typed name must match exactly, so read it back from the plan before approving.

Over MCP ​

Connect through the MCP sign-in workflow. Use get_context and list_databases to identify the source; databaseId is its ID, not its name. These tools accept optional organizationId and projectId; pass both consistently to make the scope explicit. All calls require management access, and restore also checks provisioning rights.

ToolRequired argumentsResult
get_point_in_time_windowdatabaseIddestination, actual window (earliest/latest, or null), databasesInUse, databaseLimit
plan_point_in_time_recoverydatabaseId, pointInTimeAdvisory window, pointInTime, snapshotAt, latestSegmentAt, segmentCount, historyCheck: "metadata"
restore_database_point_in_timedatabaseId, pointInTime, name, confirmNameNew databaseId, name, status: "ready" after identity readback

Each tool accepts destination, either platform (default) or customer. Pass pointInTime as a UTC ISO timestamp ending in Z, for example 2026-10-25T12:10:00.000Z, inside that destination's actual window. Read the window, request the advisory plan, then obtain the user's explicit consent for the exact source, bucket, time and new name before calling restore. Never derive consent by automatically copying a proposed name into confirmName.

For example, after the user approves, the MCP tools/call parameters are:

json
{
  "name": "restore_database_point_in_time",
  "arguments": {
    "organizationId": "YOUR_ORGANIZATION_ID",
    "projectId": "YOUR_PROJECT_ID",
    "databaseId": "SOURCE_DATABASE_ID",
    "destination": "platform",
    "pointInTime": "2026-10-25T12:10:00.000Z",
    "name": "orders-before-import",
    "confirmName": "orders-before-import"
  }
}

Replace the IDs and example time with the reviewed values. Window and plan use current-user project tokens with databases:read; restore uses databases:write, followed by databases:read for identity readback. MCP sign-in credentials and project API tokens have separate authentication contracts; do not substitute one for the other. The dashboard routes these operations to one region of the source database's set.

Refusals, unknown outcomes and cleanup ​

Retention can advance after planning. For unavailable, incomplete or unproven history, refresh the selected destination's window and review another retained point. Unreadable history may need support; retain the request ID. For a name conflict choose another new name; for a quota refusal review the organization allowance. None of these conditions bypasses access checks, and restore into a new database never overwrites the source; only the explicit in-place confirmation above restores over the source, and a refusal leaves the source unchanged.

An interrupted request, timeout or unavailable response can leave the restore outcome unknown, including when the new database was created but readback failed. Inspect the same project's database list and the proposed new name before submitting another restore. Reconcile its identity and read expected records; a missing response is not proof that nothing was created. Do not automatically retry with another name or a broader identity. For a confirmed temporary refusal, respect Retry-After when supplied.

Keep the original source until you have verified the new database and decided how your application will use it. Delete an unwanted restored database only after checking its distinct ID/name and approving that deletion; its backups expire with it. Whole-database PITR does not automatically switch application traffic or clean up either database.