---
title: "Backup SQLite database"
method: POST
path: "/bus/system/sqlite3/backup"
tags: ["bus"]
---

# Backup SQLite database

`POST /bus/system/sqlite3/backup`

Creates a backup of the specified SQLite database.

## Request body

- object
  - `database` 'main' | 'metrics' — Which database to backup
  - `path` string — Path where to save the backup

## Response `200`

Successfully created backup

## Other responses

- `400` — Invalid database specified
- `404` — Backup not supported
- `500` — Internal server error

---

[API](https://skmtc.net/siafoundation/apis/renterd-api.md) · [All operations](https://skmtc.net/siafoundation/apis/renterd-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/siafoundation/renterd-api/versions/184a3d5207da/schema)
