---
title: "Create database cluster backup"
method: POST
path: "/namespaces/{namespace}/database-cluster-backups"
tags: ["Backup"]
---

# Create database cluster backup

`POST /namespaces/{namespace}/database-cluster-backups`

This API creates a new database cluster backup in the specified `namespace`.

## Path parameters

- `namespace` string, required

## Request body

- DatabaseClusterBackup — DatabaseClusterBackup is the Schema for the databaseclusterbackups API.
  - `apiVersion` string — APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  - `kind` string — Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  - `metadata` object
  - `spec` object — DatabaseClusterBackupSpec defines the desired state of DatabaseClusterBackup.
    - `backupStorageName` string, required — BackupStorageName is the name of the BackupStorage used for backups.
    - `dbClusterName` string, required — DBClusterName is the original database cluster name.
  - `status` object — DatabaseClusterBackupStatus defines the observed state of DatabaseClusterBackup.
    - `completed` string, date-time — Completed is the time when the job was completed.
    - `created` string, date-time — Created is the timestamp of the upstream backup's creation.
    - `destination` string — Destination is the full path to the backup.
    - `gaps` boolean, required — Gaps identifies if there are gaps detected in the PITR logs
    - `state` string — State is the DatabaseBackup state.

## Response `200`

Successful operation

- DatabaseClusterBackup — DatabaseClusterBackup is the Schema for the databaseclusterbackups API.
  - `apiVersion` string — APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  - `kind` string — Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  - `metadata` object
  - `spec` object — DatabaseClusterBackupSpec defines the desired state of DatabaseClusterBackup.
    - `backupStorageName` string, required — BackupStorageName is the name of the BackupStorage used for backups.
    - `dbClusterName` string, required — DBClusterName is the original database cluster name.
  - `status` object — DatabaseClusterBackupStatus defines the observed state of DatabaseClusterBackup.
    - `completed` string, date-time — Completed is the time when the job was completed.
    - `created` string, date-time — Created is the timestamp of the upstream backup's creation.
    - `destination` string — Destination is the full path to the backup.
    - `gaps` boolean, required — Gaps identifies if there are gaps detected in the PITR logs
    - `state` string — State is the DatabaseBackup state.

## Other responses

- `201` — Created success
- `202` — Accepted
- `400` — Unsuccessful operation
- `500` — Internal server error

## Changes

- **2024-06-19** `00f3dd8cb624` — 2 info
  - api tag `Backup` added
  - api tag `databaseClusterBackup` removed
- **2024-04-12** `dec31e5eea8e` — 12 warning, 2 info
  - removed the request property `status/inUse`
  - removed the request property `status/latestRestorableTime`
  - removed the request property `status/size`
  - removed the optional property `status/inUse` from the response with the `200` status
  - …10 more

[Change history](https://skmtc.dev/openeverest/apis/openeverest-schema/changes/namespaces/:namespace/database-cluster-backups/post.md)

---

[API](https://skmtc.dev/openeverest/apis/openeverest-schema.md) · [All operations](https://skmtc.dev/openeverest/apis/openeverest-schema/llms.txt) · [OpenAPI document](https://skmtc.dev/openeverest/apis/openeverest-schema/revisions/b95843bd60b2?raw)
