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.
init creates your initial configuration. It’s interactive — DBdock asks questions, you answer, and it generates the right files.
What it asks
- Database connection — host, port, user, database name
- Storage provider — local, S3, R2, or Cloudinary
- Storage credentials (for cloud providers)
- Encryption — enable/disable, generates a key if yes
- Compression — enable/disable, compression level
- Alerts — optional email (SMTP) and Slack setup
What it creates
Two files:dbdock.config.json
Non-sensitive configuration. Commit this.
.env
Secrets. Never commit. Automatically added to
.gitignore..gitignore to include .env, backups/, and *.backup.
Environment-only setup
If you prefer to skip the config file entirely, you can configure DBdock via environment variables alone. Set these in.env:
Re-running init
Runninginit again in a directory that already has a config file will ask whether to overwrite it. Existing values become defaults in the prompts, so you only need to change what you want to change.
After init
Verify setup
Run
dbdock test to validate everything.First backup
Run
dbdock backup to create your first backup.
