---
title: "POST /backup/export"
method: POST
path: "/backup/export"
tags: ["backup"]
---

# POST /backup/export

`POST /backup/export`

Export a database backup to file

## Request body

- BackupConfig
  - `collections` string[]
  - `filepath` string
  - `format` string
  - `pretty` boolean

## Response `200`

ok

## Other responses

- `400` — error

---

[API](https://skmtc.dev/sourcenetwork/apis/defradb-api.md) · [All operations](https://skmtc.dev/sourcenetwork/apis/defradb-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sourcenetwork/defradb-api/revisions/659e79583f79/schema)
