Backup Types¶
docker-backup supports multiple backup types, each designed for specific applications. The backup type is specified using the docker-backup.<name>.type label.
Supported Types¶
| Type | Description | Output |
|---|---|---|
postgres |
PostgreSQL database backup | .tar.zst |
mysql |
MySQL/MariaDB database backup | .tar.zst |
volume |
Docker volume backup | .tar.zst |
How Backup Types Work¶
Each backup type:
- Validates the container configuration (required environment variables, etc.)
- Executes the appropriate backup command inside the container
- Streams the output to storage (with optional compression)
- Supports restoration from backup files
Choosing a Backup Type¶
Select the backup type that matches your application:
| Application | Backup Type |
|---|---|
| PostgreSQL | postgres |
| MySQL | mysql |
| MariaDB | mysql |
| Generic file data | volume |
Backup Type Reference¶
-
PostgreSQL
Backup PostgreSQL databases using
pg_dump -
MySQL / MariaDB
Backup MySQL and MariaDB databases using
mysqldump -
Volume
Backup all mounted volumes from a container