How to make report only send on failure? (Pushover notification)

So for pushover notification of my backups, I followed this thread:

I made the following report.tmpl which works

{
"BackupResult": "{{.result}}",
"BeginTime": "{{.start_time}}",
"TotalFiles": "{{.total_files}}",
"Storage": "{{.storage_url}}",
"token": "apptoken",
"user": "usertoken",
"message": "Backup {{.result}}. {{.total_files}} files in {{.directory}}",
"title": "Duplicacy Backup Completed"
}

However, what does not work is that it will send push notification no matter if the Backup fails or succeeds. Even if I have checked this:

image

So what am I doing wrong? Or must my template be different for it to have the behavior I’m looking for?

This is quite nice, but I might look into the healthchecks.io solution, which will instead notify me if Duplicacy hasn’t checked in for a set amount of time, because if my backup unit or container has some problems I’ll never know about it otherwise. :slight_smile:

Okay, so I dropped these URL notifications on the backup tab and instead use e-mail notifications under ‘Schedule’, which fulfills all roles perfectly.

I send the e-mails to healthchecks.io with subject: {{status}}
{{status}} can be:
success
error

And then in healthchecks.io I set up filtering rules on “subject” on the ping job
success keywords: success
failure keywords: error

In addition to this I have a ‘Period’ & ‘Grace’ set up on the job, so if the ping job doesn’t hear from Duplicacy in x amount of time, the ping job will go ‘down’

And then I have added Pushover integration in healthchecks.io & I only receive notifications when a ping job goes ‘down’

1 Like

This same thing happens to me and I just thought I was doing something wrong so I disabled it. I am going test what you did and see if I like it.

It would be nice to know if the send on failure is not working as intended or something else going on.