Custom command option for SQLite hook #836
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 a new configuration option for the existing SQLite hook to run a custom SQLite command for dumping or restoring instead of the default
sqlite3.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.Custom command options for SQLite hookto Custom command option for SQLite hookSuch an option (in analogy to the ones for PostgreSQL) would also be very useful in case sqlite3 has to execute within a container, while borgmatic is running on the host. At least until borgmatic comes up with a global option that says "run this hook in a docker container".
Yeah, unlocking use cases like that is one of the primary reasons to do this ticket!
I want to work on this issue.
I am working on a similar issue #837 . Is it alright if I work on this too?
@120EE0980 commented first, so unless they want to give up the ticket, I'd say it's theirs to implement for now. With a larger ticket, there might be an opportunity to collaborate, but I think this one is pretty small.
@gautamaggarwal2810, there are plenty of other "good first issues" issues though to choose from. Hopefully something there looks interesting to you.
I will say that I appreciate both of your interest here!
Released in borgmatic 2.0.0!