Can't invoke scripts before/after #199
Labels
No labels
blocked
breaking
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 a new issue
No description provided.
Delete branch "%!s()"
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.yamlhas those lines:then I run
sudo borgmatic --verbosity 2 -c /etc/borgmatic.d/nextcloud.yamlActual 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.