Required tools
Capsule usesmongodump (from MongoDB Database Tools) and mongosh to connect and restore.
- Debian / Ubuntu
- RHEL / CentOS / Amazon Linux
Install MongoDB Database Tools directly from MongoDB’s package repo — not via
apt (the apt package is outdated and may be missing mongodump):Connection details
| Field | Example |
|---|---|
| Host | localhost |
| Port | 27017 |
| Database name | myapp |
| Username | myapp_user (leave blank if no auth) |
| Password | your password (leave blank if no auth) |
Authentication
If your MongoDB instance uses authentication, provide the username and password. Capsule passes them tomongodump as --username and --password flags — they are not exposed in process listings.
Replica sets and Atlas
For a replica set, enter any member’s host in the Host field. Direct member connections (directConnection=true) are used so Capsule doesn’t attempt to discover the full replica set topology.
For MongoDB Atlas, use the connection hostname from your Atlas dashboard (e.g., cluster0.abcde.mongodb.net).
Docker
If MongoDB runs in a container, enter the container name when adding the connection. Capsule will execmongodump inside the container via docker exec.
Troubleshooting
mongodump: command not found
The mongodb-database-tools package is separate from the MongoDB server. Install it explicitly and run capsule doctor to confirm.
mongosh: command not found
mongosh is a separate package from mongodb-database-tools. Install it alongside the tools (see installation steps above).
Auth failed
Ensure the user has the backup built-in role or equivalent read access on the target database.