Custom command options for MongoDB hook #837
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'd like to do and why
Implement two new configuration option for the existing MongoDB hook to run custom MongoDB command for each of dumping and restoring instead of the defaults (
mongodumpandmongorestore, respectively).Broken off from #311.
Other notes / implementation ideas
Make sure to use
shlexshell escaping to prevent shell injections attacks. See the other database hooks for an example.I can take care of this and #836 (unless you want me to save them for others 😄).
Nobody else has stepped up in the five hours since these tickets have existed, so as far as I'm concerned they're all yours if you want 'em. 😄
I would like to work on this issue. @witten can u please guide me as to how to get started as I am new to open source?
Welcome! I'd recommend starting with the docs on how to get started with development. And if you want to outline your approach to the ticket here, I'd be happy to provide feedback before you start writing code. But it's also small enough that you could probably just submit a PR if you don't mind the risk of re-work.
In terms of the mechanics of submitting your changes, here are some docs on submitting a pull request.
And let me know if you have any questions!
I got an email notification about a question you had on this, but I'm not seeing the comment posted here. Did you figure out the issue you were having?
Implemented in main by @gautamaggarwal2810 and will be part of the next release!
Released in borgmatic 2.0.0!