Can't invoke scripts before/after #199
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#199
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'm trying to do and why
Run a script before and after the actual backup process
Steps to reproduce (if a bug)
/etc/borgmatic.d/nextcloud.yaml
has those lines:then I run
sudo borgmatic --verbosity 2 -c /etc/borgmatic.d/nextcloud.yaml
Actual behavior (if a bug)
Expected behavior (if a bug)
Run the command
Other notes / implementation ideas
Line 197 is the first before command.
I also tried the "standard" command (
echo "Starting a backup job."
) in the yaml config, same resultAm I missing something or is this a bug (can't be the first one)?
Environment
borgmatic version: [1.3.12]
borgmatic installation method: pip
Borg version: 1.1.9
Python version: 3.5.2
operating system and version: Ubuntu 16.04, 4.15.0-52-generic
Thank you for reporting this! I managed to get a reproduction of the same error message by using tabs to indent the hook command lines instead of spaces. If you indeed have tabs there, could you try replacing them with the requisite number of spaces?
Yes that's absolutely the case! Didn't even realize... Thx alot!
Glad that was it! I'm adding info about this to the documentation, as it's not at all obvious from the error message. Thanks again for filing.