---
search:
  tags:
    - Admin
    - GET
seo:
  description: >-
    Admins only. A consistent copy of piecemeal's database: settings, users, API
    keys,… Reference for the GET /admin/backup endpoint in the piecemeal API.
sidebar:
  label: Download a backup of the database
  badge: GET
title: Download a backup of the database
type: openapi-operation
---
Admins only. A consistent copy of piecemeal's database: settings, users, API keys, torrents, categories, tags and RSS. Restore it with `piecemeal restore FILE` while piecemeal is stopped. Downloaded data isn't included; piece completion is rebuilt by checking the data.

`GET /admin/backup`

**Responses**

- `200` — The SQLite database.
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

Response example, 200:

```json
"string"
```
