Add before_extract and after_extract hooks #347

Merged
witten merged 3 commits from :master into master 2020-08-12 21:14:18 +00:00
Contributor

adding before_extract and after_extract hooks based on #346

diverged from the original proposed naming of before_restore and after_restore to the actual command name, since there is a borgmatic restore command for restoring databases.

adding `before_extract` and `after_extract` hooks based on #346 diverged from the original proposed naming of `before_restore` and `after_restore` to the actual command name, since there is a `borgmatic restore` command for restoring databases.
witten reviewed 2020-08-12 21:05:47 +00:00
witten left a comment
Owner

Awesome, thanks for implementing this and adding a test! Looks great except for the very minor issue of the description strings. (See below.)

Awesome, thanks for implementing this and adding a test! Looks great except for the very minor issue of the description strings. (See below.)
@ -94,0 +96,4 @@
hooks.get('before_extract'),
hooks.get('umask'),
config_filename,
'pre-check',
Owner

This should be pre-extract.

This should be `pre-extract`.
@ -168,0 +178,4 @@
hooks.get('after_extract'),
hooks.get('umask'),
config_filename,
'post-check',
Owner

And post-extract.

And `post-extract`.
Author
Contributor

changed them

changed them
witten merged commit 93caeba200 into master 2020-08-12 21:14:16 +00:00
Owner

Thanks!

Thanks!
Owner

Just released in borgmatic 1.5.10!

Just released in borgmatic 1.5.10!
Sign in to join this conversation.
No reviewers
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#347
No description provided.