DBdock is an open-source CLI for PostgreSQL backups, restores, database copies, and cross-database migrations between MongoDB and PostgreSQL — with encryption, compression, and multi-cloud storage built in. Stop writing throwaway backup scripts. Stop maintaining migration code. One command, one tool.Documentation Index
Fetch the complete documentation index at: https://docs.dbdock.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Quickstart
Run your first backup in under 5 minutes.
Installation
Install globally or run with npx.
CLI Reference
Every command, every flag, every example.
Cross-database migration
MongoDB ↔ PostgreSQL with schema mapping.
What you can do
Features at a glance
Beautiful CLI
Real-time progress bars, speed tracking, smart filtering for 100+ backups.
Multiple storage
Local disk, AWS S3, Cloudflare R2, Cloudinary — swap with one line.
Security-first
AES-256-GCM encryption, env-var secrets, credential masking,
.pgpass support.Retention policies
Auto-clean by count or age. Safety net prevents accidental wipes.
Alerts
Email (SMTP) and Slack for backup success and failure.
Cross-database
MongoDB ↔ PostgreSQL with schema mapping and dry runs.
TypeScript SDK
Use DBdock programmatically in any Node.js app.
MIT licensed
Free forever. Self-hosted. No vendor lock-in.
Who it’s for
DBdock is built for developers and teams who:- Need reliable PostgreSQL backups without setting up a cloud service
- Want to copy a database between environments (prod → staging, staging → local)
- Are migrating from MongoDB to PostgreSQL (or the other way)
- Prefer a single CLI over stitching together
pg_dump, cron, and upload scripts - Don’t want to send their database dumps to a third-party SaaS
Get help
- GitHub Discussions — ask questions, share ideas
- Issue tracker — report bugs, request features
- Troubleshooting guide — common issues and fixes
- FAQ — quick answers

