# dflow db:backups:create

> Request a backup of a PostgreSQL, MySQL, or Redis database.

Web page: /docs/cli/data/db-backups-create/

This requests a backup of a PostgreSQL, MySQL, or Redis database. With `--wait`, it polls until the backup is completed. The database has to be ready, and the object store driver has to be `s3`. When that driver is `s3`, the service already has a daily backup at 02:00 UTC, five-field cron `0 2 * * *`, kept 7 days. This command asks for one backup now. MongoDB backups are not available. The command returns that backups are not available.

```bash
dflow db:backups:create SOURCE
```

## Flags

`--wait` defaults to true. `--wait-timeout` defaults to 5m.

## What you see

The terminal prints `service`, `backup`, `status`, and `id`. With `--wait`, it polls until the backup is completed. `--wait=false` returns when the request is accepted.

## When it fails

A database that is not ready, or that sits on a platform with no backups configured, exits 6. MongoDB returns that backups are not available. A failed backup exits 5. A wait that ends first exits 7.
