---
title: "Back up a database"
method: POST
path: "/projects/{id}/databases/{databaseName}/backups"
tags: ["Database Backups"]
---

# Back up a database

`POST /projects/{id}/databases/{databaseName}/backups`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/databases/{databaseName}/backups`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

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.

## Path parameters

- `id` string, uuid, required
- `databaseName` string, required

## Request body

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

## Response `201`

Backup created

- DatabaseBackup: 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.

## Other responses

- `400`: Invalid backup name
- `403`: The database has reached its backup allowance, or the owner's plan does not include backups, which are available only on SUPERAGENT.
- `404`: Project or database not found
- `409`: A backup of that name already exists, the database is not active, a restore is running on it, or a backup was taken too recently.
- `503`: Backups are temporarily unavailable

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 info
  - the endpoint scheme security `ProjectAccessToken` was added to the API
- **2026-09-19** `3a6f365f3f35`: 10 breaking, 15 info
  - added the new path request parameter `databaseName`
  - added the new path request parameter `id`
  - added the new required request property `name`
  - the request's body type changed from no type to `object`
  - …21 more
- **2026-09-04** `c2ec82fb8ce8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/databases/:databaseName/backups/post.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
