---
title: "POST /backup.create"
method: POST
path: "/backup.create"
tags: ["backup"]
---

# POST /backup.create

`POST /backup.create`

## Request body

- object
  - `backupType` 'database' | 'compose'
  - `composeId` string, nullable
  - `database` string, required
  - `databaseType` 'postgres' | 'mariadb' | 'mysql' | 'mongo' | 'web-server', required
  - `destinationId` string, required
  - `enabled` boolean, nullable
  - `keepLatestCount` number, nullable
  - `mariadbId` string, nullable
  - `metadata` unknown
  - `mongoId` string, nullable
  - `mysqlId` string, nullable
  - `postgresId` string, nullable
  - `prefix` string, required
  - `schedule` string, required
  - `serviceName` string, nullable
  - `userId` string, nullable

## Response `200`

Successful response

## Other responses

- `default` — Error response

---

[API](https://skmtc.net/charliedevelops/apis/dokploy-api.md) · [All operations](https://skmtc.net/charliedevelops/apis/dokploy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/charliedevelops/dokploy-api/revisions/50e2e470fdd0/schema)
