feat: Allow MongoDB backup of all databases (omit database name)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 37.4k
- Forks
- 3k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 73
Description
Feature Request
Problem
Currently, when creating a MongoDB backup in Dokploy, the database name field is required. This means users must create a separate backup entry for each database in their MongoDB instance. There is no way to back up all databases at once.
Proposed Solution
Allow the database name field to be left empty for MongoDB backups. When empty, mongodump runs without the -d flag, which causes it to dump all databases in the instance.
This is a common use case — users often want a full instance backup rather than individual database backups.
Changes Required
getMongoBackupCommand— Conditionally include the-dflag only when a database name is provided- Schema validation — Allow empty database string specifically for MongoDB (other database types still require it)
- UI — Add a hint on the database field for MongoDB: "Leave empty to back up all databases"
Additional Context
mongodumpnatively supports this — omitting-ddumps all databases- This only affects MongoDB; other database types (Postgres, MySQL, MariaDB) still require a database name
- No breaking changes — existing backups with a database name continue to work as before
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the getMongoBackupCommand entry point and trace the MongoDB backup schema and database-field UI described in the issue. The change is done when an empty MongoDB database value omits -d, shows the requested hint, and other database types still require a name.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mongodb, typescript
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100