Restore a database
Changed onReplaces the database's data, either with a named backup or with its state at a point in time. This is destructive: everything written after that point is discarded.
Asynchronous: the response is 202 with the restore pending and the database restoring. The database does not accept connections until the restore reports completed; its connection string is unchanged throughout, so nothing holding it needs updating.
Restores are in place. There is no way to restore into a second database, and a database's branches are never restored — they keep serving their own data, but resetting a branch from its parent is refused by the storage provider for up to 24 hours afterwards.
Request
- Base URLhttps://api.volcano.dev
- Auth
- HTTP bearer
- or HTTP bearer
Path parameters
Project ID
Database name (unique within project, lowercase letters, numbers, and underscores only)
Request body
Names what to restore. Supply exactly one of backup_name or restore_to.
A backup of this database to restore, exactly as returned by the list endpoint.
Deliberately looser than the names you can create, like the backup path parameter: a backup made by a schedule is named for you, so restoring one accepts any name a backup can have.
A point in time to restore to, which must fall inside the restore_window reported when listing backups.
Example request
{
"backup_name": "before_migration",
"restore_to": "2026-01-15T09:30:00Z"
}Response
Restore accepted and in progress
A restore of a database, either from a named backup or to a point in time. Restores run in the background and take longer than a request, so the database is unavailable until this reports completed.
Whether the restore targets a named backup or an arbitrary point in time. Both replace the database's data in place.
Restore status. pending and running both mean the restore is still in flight and the database is not connectable; an attempt that fails with tries left goes back to pending. failed and exhausted both mean Volcano gave up: the database is left failed if its data may already have been replaced, and active if the restore never started — a backup that no longer exists at the provider ends the restore without touching the database. A restore cannot be cancelled once it starts.
The backup restored, kept even if that backup is later deleted. Absent for a point-in-time restore.
The point in time restored to. Absent for a backup restore.
Why the most recent attempt failed, when one has.
Changes
- info
the endpoint scheme security
ProjectAccessTokenwas added to the API
- info
- breaking
added the new path request parameter
databaseName - breaking
added the new path request parameter
id
30 more changes in this revision
- breaking