---
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

## Changes

- **2024-12-18** `922f156353c9` — 1 breaking, 1 info
  - removed the media type `text/plain` for the response with the status `500`
  - api tag `bus` added
- **2024-12-17** `82af1ae6c6d8` — 1 info
  - endpoint added
- **2024-12-09** `f062c35d8f47` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/siafoundation/apis/renterd-api/changes/bus/system/sqlite3/backup/post.md)

---

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