Skip to content

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:

  1. Validates the container configuration (required environment variables, etc.)
  2. Executes the appropriate backup command inside the container
  3. Streams the output to storage (with optional compression)
  4. 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

    PostgreSQL

  • MySQL / MariaDB


    Backup MySQL and MariaDB databases using mysqldump

    MySQL

  • Volume


    Backup all mounted volumes from a container

    Volume