Custom command options for MongoDB hook #837

Closed
opened 2024-03-03 22:42:11 +00:00 by witten · 8 comments
Owner

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 (mongodump and mongorestore, respectively).

Broken off from #311.

Other notes / implementation ideas

Make sure to use shlex shell escaping to prevent shell injections attacks. See the other database hooks for an example.

### 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 (`mongodump` and `mongorestore`, respectively). Broken off from #311. ### Other notes / implementation ideas Make sure to use `shlex` shell escaping to prevent shell injections attacks. See the other database hooks for an example.
witten added the good first issue label 2024-03-03 22:42:18 +00:00

I can take care of this and #836 (unless you want me to save them for others 😄).

I can take care of this and #836 (unless you want me to save them for others 😄).
Author
Owner

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. 😄

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. 😄
Contributor

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?

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?
Author
Owner

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!

Welcome! I'd recommend starting with the [docs on how to get started with development](https://torsion.org/borgmatic/docs/how-to/develop-on-borgmatic/). 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](https://docs.gitea.com/next/usage/pull-request). And let me know if you have any questions!
Author
Owner

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?

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?
Contributor

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?
yeah I was able to figure out the issue.Thanks ☺️.I will be submitting PR soon.

> 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? yeah I was able to figure out the issue.Thanks ☺️.I will be submitting PR soon.
Author
Owner

Implemented in main by @gautamaggarwal2810 and will be part of the next release!

Implemented in main by @gautamaggarwal2810 and will be part of the next release!
Author
Owner

Released in borgmatic 2.0.0!

Released in borgmatic 2.0.0!
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#837