Closed tjheske closed 2 years ago
Good change, but can we make it happen without adding another argument borgmatic_hooks_multiple_commands
? E.g. by checking the input type for borgmatic_hooks
? Goal would be to:
This just bit me as I needed DB hooks. Hope the syntax can be a bit more readable. I know we are parsing yaml to yaml...
Should be possible with #93
Borgmatic allows running multiple commands for each hook. The role already allows this for
before_backup
,after_backup
andon_error
. This PR allows this also for any other hook to be defined by the user.To keep compatibility with existing configs, I added the variable
borgmatic_hooks_multiple_commands
, which isfalse
by default.