Custom command option for SQLite hook #836
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#836
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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
shlex
shell 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!