Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native Apprise Configuration: Send log outputs as part of the notification body does not work #286

Open
beckenc opened this issue Dec 29, 2023 · 3 comments

Comments

@beckenc
Copy link

beckenc commented Dec 29, 2023

Hi all,

I've tried to send borgmatic log outputs within the apprise email body, but it does not work somehow. I just get emails with a body with plain $(cat /tmp/backup_run.log) text in it (/tmp/backup_run.log does exist and is not empty). Looks like the shell command is not interpreted. Did I miss something?

I use the borgmatic docker image (ghcr.io/borgmatic-collective/borgmatic).
borgmatic:/# borgmatic --version 1.8.5

My apprise configuration looks like this:

services:
    - url: *******
      label: mail

finish:
    title: ✅ SUCCESS
    body: $(cat /tmp/backup_run.log)

states:
    - finish
@witten
Copy link
Collaborator

witten commented Dec 29, 2023

Thanks for filing this! Unfortunately the borgmatic Apprise hook doesn't currently support sending borgmatic logs to Apprise, nor does it support command execution to populate body! If you're getting that configuration from here, I don't believe it's correct.

I think the "fix" here is probably to implement native Apprise log sending in borgmatic, similar to the existing Healthchecks hook. And also update the Docker borgmatic docs to no longer mention the non-functional body cat trick.

@witten
Copy link
Collaborator

witten commented Mar 11, 2024

FYI as of borgmatic 1.8.9 (not yet released), the Apprise hook supports sending borgmatic logs to your Apprise services and in fact will do so by default. More details here: https://torsion.org/borgmatic/docs/how-to/monitor-your-backups/#apprise-hook

@witten
Copy link
Collaborator

witten commented Mar 11, 2024

borgmatic 1.8.9 is now released with this support for Apprise log sending.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants