Custom command option for SQLite hook #836

Open
opened 2024-03-03 22:39:44 +00:00 by witten · 2 comments
Owner

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.

### 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.
witten added the
good first issue
label 2024-03-03 22:39:52 +00:00
witten changed title from Custom command options for SQLite hook to Custom command option for SQLite hook 2024-03-03 22:40:15 +00:00

Such 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".

Such 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".
Author
Owner

Yeah, unlocking use cases like that is one of the primary reasons to do this ticket!

Yeah, unlocking use cases like that is one of the primary reasons to do this ticket!
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#836
No description provided.