Required tools
Capsule usespg_dump to create backups and psql to restore them. Install the PostgreSQL client tools on your server:
- Debian / Ubuntu
- RHEL / CentOS / Amazon Linux
- macOS
Connection details
When adding a PostgreSQL connection in the Capsule TUI, you’ll be prompted for:| Field | Example |
|---|---|
| Host | localhost or 10.0.0.5 |
| Port | 5432 |
| Database name | myapp_production |
| Username | myapp_user |
| Password | your database password |
Authentication
Capsule stores your password in an encrypted local file and passes it topg_dump via a temporary .pgpass file — the password never appears in the process list.
Docker
If your PostgreSQL instance runs in Docker, enter the container name in the Docker field when adding the connection. Capsule will runpg_dump inside the container via docker exec, so the host tools are not needed.
Connection string format
Capsule accepts individual fields (host, port, etc.) — not a connection string URL. If you have a URL like:Troubleshooting
pg_dump: error: connection to server failed
- Confirm the host and port are correct and reachable from the server
- Check that
pg_hba.confallows the connection fromlocalhost(or the server IP) - Verify the username and password are correct
pg_dump: command not found
Install the PostgreSQL client tools and run capsule doctor to confirm.