Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Backup Orchestrator Guide

The Backup Orchestrator provides centralized backup management for all databases and Docker volumes on your server. It supports AES-256 encryption, automated policies, restore verification, and a health dashboard.

Overview

Unlike per-site backups (see Backups), the Backup Orchestrator works at the infrastructure level:

  • Database backups: Any PostgreSQL, MySQL/MariaDB, or MongoDB container
  • Volume backups: Any Docker named volume
  • Policies: Automated schedules with retention rules
  • Encryption: Optional AES-256 encryption at rest, for database dumps only
  • Verification: Automated restore tests to confirm backup integrity
  • Destinations: Push backups to S3, SFTP, Backblaze B2, or Google Cloud Storage

Quick Start: Protect Everything

The fastest way to get started is the one-click preset.

  1. Go to Backup Orchestrator in the sidebar
  2. Click Protect Everything
  3. DockPanel creates a policy that backs up all sites, databases, and volumes daily at 2 AM, keeps 7 days of history, and verifies each backup after creation.

Creating Backup Policies

For more control, create a custom policy.

  1. Go to Backup Orchestrator > Policies
  2. Click Create Policy
  3. Configure:
    • Name: A label (e.g., production-dbs-nightly)
    • What to back up: Toggle sites, databases, and/or volumes
    • Schedule: Cron expression (default: 0 2 * * * = daily at 2 AM)
    • Destination: Optional remote destination
    • Retention: Backups to keep, 1-365 (default: 7)
    • Encrypt DB dumps: Enable AES-256 encryption for this policy’s database dumps. Site and volume archives are always written and uploaded unencrypted
    • Verify after backup: Run automated verification after each backup
  4. Click Save

Policies run on schedule. The last run time and status are shown in the policy list.

Database Backups

Create a Database Backup

  1. Go to Backup Orchestrator > Database Backups
  2. Select the database
  3. Click Create Backup

The backup runs pg_dump or mysqldump inside the container and stores the compressed result.

From the CLI:

dockpanel backup db-create dockpanel-db-myapp myapp --db-type postgres --user root --password secret

List Database Backups

dockpanel backup db-list myapp

Restore a Database

  1. Find the backup in the Database Backups list
  2. Click Restore
  3. Confirm

The restore replaces the database contents. Encrypted backups are decrypted automatically.

Volume Backups

Create a Volume Backup

  1. Go to Backup Orchestrator > Volume Backups
  2. Select the container and volume
  3. Click Create Backup

From the CLI:

dockpanel backup vol-create my_app_data my-app-container

List Volume Backups

dockpanel backup vol-list my-app-container

Restore a Volume

  1. Find the backup in the Volume Backups list
  2. Click Restore
  3. Confirm

The container is temporarily stopped during restore, then restarted.

Backup Verification

Verification confirms a backup is intact and restorable by checking file integrity, decompression, headers, and structure.

Automatic Verification

Enable Verify after backup on a policy to verify every backup automatically. Results appear in the Verifications tab.

Manual Verification

  1. Find any backup in the list and click Verify
  2. The check runs in the background

From the CLI:

dockpanel backup verify --type database myapp myapp_2026-03-22_020000.sql.gz

Sample output:

Verifying database backup: myapp_2026-03-22_020000.sql.gz...
  Verification PASSED (4/4 checks, 320ms)
    File exists and readable
    Decompresses without errors
    SQL header valid
    Table count matches (23 tables)

Verification types: site, database, volume.

Backup Destinations

Store backups off-server. There are exactly two destination types — s3 and sftp — and every S3-compatible provider uses the first:

ProviderTypeEndpoint example
AWS S3s3https://s3.us-east-1.amazonaws.com
Backblaze B2s3https://s3.us-west-001.backblazeb2.com
Google Cloud Storages3https://storage.googleapis.com
DigitalOcean Spacess3https://nyc3.digitaloceanspaces.com
MinIO (self-hosted)s3https://minio.example.com:9000
Cloudflare R2s3https://<account>.r2.cloudflarestorage.com
Any SFTP serversftpsftp://backup.example.com:22

Add a destination under Backup Manager > Destinations, then select it on a policy.

A policy with no destination writes its archives to this server’s own disk and nowhere else. DockPanel says so on the Backup Manager overview rather than leaving you to discover it — see What DockPanel checks for you.

Retention off-site covers site archives only. The prune that enforces a retention count at the destination is keyed on a site’s domain, so remote copies of database and volume backups accumulate there even as their local copies are pruned. Watch the bucket, or prune it on the provider’s own lifecycle rules, until this is resource-agnostic.

Encryption

Encryption covers database dumps, and only those. The agent has no encryption path for a site or volume archive, so ticking Encrypt DB dumps on a policy that also backs up sites or volumes leaves those archives in cleartext both on disk and at the destination. A site archive is the whole webroot — configuration files, and any database credentials in them — and since v2.34.0 it also carries a dump of every database attached to that site. So an encrypted policy covering sites ships an encrypted copy of that data and an unencrypted copy of the same data to the same destination.

When encryption is enabled, for the database dumps it covers:

  • Algorithm: AES-256-CBC with PBKDF2 (100,000 iterations), then an HMAC-SHA256 tag over the ciphertext (encrypt-then-MAC) so a corrupted or tampered backup is rejected before it is ever decrypted, rather than decrypting silently into wrong bytes. The MAC key is derived from the same backup passphrase via a domain-separated HMAC, independent of the key openssl derives for encryption itself. A backup encrypted before this scheme shipped has no tag and is still decrypted, unauthenticated, for backward compatibility.
  • Key management: Keys are stored encrypted in the panel database
  • Encrypted backups have a .enc extension
  • Decryption happens automatically during restore and verification

Health Dashboard

From the panel: Go to Backup Orchestrator to see the health overview.

From the CLI:

dockpanel backup health

The dashboard shows:

  • Backup counts: Site, database, and volume backups with total storage
  • Last 24h: How many scheduled backups succeeded or failed
  • Active policies: Enabled vs total policies
  • Verification rate: Passed vs failed verifications
  • Stale resources: Sites or databases with no backup in over 7 days

Storage Tracking

The Storage History chart shows backup storage growth over the last 30 days. Use it to plan disk capacity.

API Reference

MethodEndpointDescription
GET/api/backup-orchestrator/healthHealth dashboard (admin)
GET/api/backup-orchestrator/policiesList policies
POST/api/backup-orchestrator/policiesCreate a policy
PUT/api/backup-orchestrator/policies/{id}Update a policy
DELETE/api/backup-orchestrator/policies/{id}Delete a policy
POST/api/backup-orchestrator/policies/protect-allCreate “Protect Everything” policy
POST/api/backup-orchestrator/db-backupCreate a database backup
GET/api/backup-orchestrator/db-backupsList database backups
DELETE/api/backup-orchestrator/db-backups/{id}Delete a database backup
POST/api/backup-orchestrator/db-backups/{id}/restoreRestore a database
POST/api/backup-orchestrator/volume-backupCreate a volume backup
GET/api/backup-orchestrator/volume-backupsList volume backups
POST/api/backup-orchestrator/volume-backups/{id}/restoreRestore a volume
POST/api/backup-orchestrator/verifyTrigger verification
GET/api/backup-orchestrator/verificationsList verifications
GET/api/backup-orchestrator/storage-historyStorage growth (30 days)

All endpoints require authentication. Health and storage endpoints require admin access.