--- title: backup full: true --- import { Root, API, APIInfo, APIExample, Responses, Response, ResponseTypes, ExampleResponse, TypeScriptResponse, Property, ObjectCollapsible, Requests, Request } from "fumadocs-ui/components/api"; ## backup-create ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Minimum length: `1` Value in: `"postgres" | "mariadb" | "mysql" | "mongo"` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/backup.create" \ -d '{ "schedule": "string", "enabled": true, "prefix": "string", "destinationId": "string", "database": "string", "mariadbId": "string", "mysqlId": "string", "postgresId": "string", "mongoId": "string", "databaseType": "postgres" }' ``` ```js fetch("http://localhost:3000/api/backup.create", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## backup-one ### Authorization "} required={true}> In: `header` ### Query Parameters | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/backup.one?backupId=string" ``` ```js fetch("http://localhost:3000/api/backup.one?backupId=string", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## backup-update ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/backup.update" \ -d '{ "schedule": "string", "enabled": true, "prefix": "string", "backupId": "string", "destinationId": "string", "database": "string" }' ``` ```js fetch("http://localhost:3000/api/backup.update", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## backup-remove ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/backup.remove" \ -d '{ "backupId": "string" }' ``` ```js fetch("http://localhost:3000/api/backup.remove", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## backup-manualBackupPostgres ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/backup.manualBackupPostgres" \ -d '{ "backupId": "string" }' ``` ```js fetch("http://localhost:3000/api/backup.manualBackupPostgres", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## backup-manualBackupMySql ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/backup.manualBackupMySql" \ -d '{ "backupId": "string" }' ``` ```js fetch("http://localhost:3000/api/backup.manualBackupMySql", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## backup-manualBackupMariadb ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/backup.manualBackupMariadb" \ -d '{ "backupId": "string" }' ``` ```js fetch("http://localhost:3000/api/backup.manualBackupMariadb", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## backup-manualBackupMongo ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/backup.manualBackupMongo" \ -d '{ "backupId": "string" }' ``` ```js fetch("http://localhost:3000/api/backup.manualBackupMongo", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ```