pg_dump, optionally compresses and encrypts the output, and streams it directly to your configured storage provider. You’ll see real-time progress:
Options
Examples
Standard backup
Uses everything from your config file:Force maximum compression
Fast backup, no compression
One-off with explicit encryption key
DBDOCK_ENCRYPTION_SECRET just for this run.
Backup formats
The format comes fromdbdock.config.json:
See Concepts → backup formats for when to pick which.
What happens under the hood
- Connect — validates database credentials
- Dump — runs
pg_dumpwith your configured format - Compress (if enabled) — zstd at configured level
- Encrypt (if enabled) — AES-256-GCM with key derived from secret
- Upload — streams to your storage provider, no temp files
- Record metadata — size, duration, flags, storage key
- Send alerts (if configured) — Slack/email
- Retention (if
runAfterBackup: true) — cleanup old backups
After the backup
Generating an encryption key
.env as DBDOCK_ENCRYPTION_SECRET. See Security for key management.
