Database Backups

Back up a database

Changed on

Captures the database as it is now. The backup is available immediately; its size_bytes appears once the storage provider has costed it.

Backups are rate-limited to one per minute per database, and capped by the owner's plan.

post/projects/{id}/databases/{databaseName}/backups

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    • HTTP bearer
    • or HTTP bearer

Path parameters

id, string uuid required

Project ID

databaseName, string required

Database name (unique within project, lowercase letters, numbers, and underscores only)

Request body

CreateDatabaseBackupRequest required
name, string required

Backup name, unique within the database. Names beginning with volcano- are reserved for the platform's own snapshots.

Example request

{
  "name": "before_migration"
}

Response

Backup created

DatabaseBackup required

A point-in-time copy of a database, kept by the storage provider and restorable in place.

Backups cover the database itself, not its branches. Restoring one replaces the database's data and keeps its connection string.

name, string required

Backup name, unique within the database. Backups you create are named by you; scheduled backups are named by the storage provider.

source, 'manual' | 'scheduled' required

Whether the backup was requested explicitly or produced by the backup schedule. Only manual backups count against the plan's backup allowance.

size_bytes, integer

Storage the backup occupies. Absent until the provider has costed it, which takes a few minutes after the backup is taken; absent is not the same as empty.

expires_at, string date-time

When the backup is deleted automatically, from the plan's retention. Absent means it is kept until deleted explicitly.

created_at, string date-time required

The point in time the backup captures.

Changes

    • info

      the endpoint scheme security ProjectAccessToken was added to the API

    • breaking

      added the new path request parameter databaseName

    • breaking

      added the new path request parameter id

    23 more changes in this revision