Merged
Conversation
Contributor
Author
|
Also generated the Wiki Plugins / Database help text: Gist |
marcpope
added a commit
that referenced
this pull request
Mar 30, 2026
Adds MongoDB backup/restore plugin (mongo_dump) and fixes restore performance and safety across MySQL, PostgreSQL, and MongoDB: - Extract only requested database files (not entire dump directory) - Safety backup before replace restores - Accurate job timing via immediate progress reporting
Owner
|
Merged! Thank you for the great contribution. We applied a few additional fixes on top of your code: Fixes applied:
Bonus: Also fixed the same issues for PostgreSQL restore — targeted extract, safety backup, and progress reporting were missing there too. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Love you software, but i also love MongoDb, so me and my friend Claude, created and tested the this new plugin.
This pull request adds comprehensive support for MongoDB backup and restore operations to the system. It introduces a new
mongo_dumpplugin that usesmongodumpfor backups andmongorestorefor restores, integrates MongoDB into the backup/restore workflow and UI, and updates both backend and database schema to support this new functionality.MongoDB Backup/Restore Plugin and Workflow Integration:
mongo_dumpplugin for MongoDB database backups usingmongodump, with support for per-database dumps, gzip compression, and automatic cleanup. The plugin is registered in both the migration (070_mongo_dump_plugin.sql) and schema (schema.sql). [1] [2]execute_plugin_mongo_dump, including database discovery, authentication, and error handling. Added cleanup and connectivity test functions.restore_mongotask type, with corresponding logic inexecute_restore_mongoto extract and restore database dumps usingmongorestore. [1] [2]Database and Metadata Updates:
backup_jobsschema to include themongo_dumpplugin and newrestore_mongotask type, ensuring MongoDB jobs are tracked and categorized correctly. [1] [2] [3] [4]Other Improvements:
2.20.0.Testing