Closed ericswpark closed 3 months ago
This looks like a borgmatic issue and not an issue with the Docker container. I recommend filing it here instead: https://torsion.org/borgmatic/#issues
Thank you!
@witten just transferred, closing this issue. Thanks and sorry for filing it in the wrong place.
Thank you! It's not a problem at all.
Consider not providing a --body
and leverage stdin
(I'm not sure if this is possible with the templating system in place?🤷♂️)
This would eliminate the need to do any escaping at all.
Currently, borgmatic hooks don't support stdin/stdout piping to/from borgmatic itself, although I suppose you could do it within a hook (e.g. echo {error} | apprise --stdin ...
). However, the good news is borgmatic now supports Apprise logging natively so such work-arounds should no longer be necessary!
Also see this borgmatic ticket, which @ericswpark filed based on this docker-borgmatic issue: https://projects.torsion.org/borgmatic-collective/borgmatic/issues/839
Here is the
on_error
hook I was using:It was working fine, until an update to borgmatic broke it. Now it fails with the following output:
It seems like the
{error}
variable does some quote escaping, which manages to escape out of the--body=""
quotes.