Dokploy / Dokploy/dokploy

feat: Allow MongoDB backup of all databases (omit database name)

Open
#4,186 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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
  1. getMongoBackupCommand — Conditionally include the -d flag only when a database name is provided
  2. Schema validation — Allow empty database string specifically for MongoDB (other database types still require it)
  3. UI — Add a hint on the database field for MongoDB: "Leave empty to back up all databases"
Additional Context
  • mongodump natively supports this — omitting -d dumps 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.