---
title: "Backup server"
method: POST
path: "/v0/server/backup"
tags: ["server"]
---

# Backup server

`POST /v0/server/backup`

Backup the API server database. The user must be an admin on the server to use this route.

## Request body

- JsonBackup
  - `compress` boolean, nullable — Compress the database backup with gzip. This operation runs first.
  - `data_store` 'aws_s3'
  - `remove` boolean, nullable — Remove the local copy of the database backup. This operation runs third.

## Response `201`

successful creation

- JsonBackupCreated
  - `created` string, date-time, required

## Other responses

- `4XX` — Error
- `5XX` — Error

---

[API](https://skmtc.net/bencherdev/apis/bencher-api.md) · [All operations](https://skmtc.net/bencherdev/apis/bencher-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bencherdev/bencher-api/revisions/84086e99e6cd/schema)
