> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hyzecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Back up a database

> Create and restore database backups safely.

Backups protect data before migrations, risky changes, or production maintenance.

## Goal

Create a manual backup for a database.

## When to use

Use a backup before schema changes, imports, password rotation, or manual maintenance.

## Example

```bash theme={"system"}
curl -X POST https://api.hyzecloud.com/api/databases/db_001/backups \
  -H "Authorization: Bearer hyze_your_key"
```

## Restore

```bash theme={"system"}
curl -X POST https://api.hyzecloud.com/api/databases/db_001/restore \
  -H "Authorization: Bearer hyze_your_key" \
  -H "Content-Type: application/json" \
  -d '{ "backupId": "backup_db_001" }'
```

<Warning>
  Restores can replace live data. Confirm the target database before running this in production.
</Warning>

## Next steps

<CardGroup cols={2}>
  <Card title="Databases API" icon="database" href="/api-reference/databases">
    View backup and restore endpoints.
  </Card>

  <Card title="Provision a database" icon="plus" href="/en/guides/provision-a-database">
    Create a new database first.
  </Card>
</CardGroup>
