Discord notifications


Has anybody found a way to get discord notification after a backup ?

Not discord, but here are the scripts I use to get notified in Slack:

My “after” script is:

bash /home/david/bin/send2slack.sh $DUPLICATI__backup_name finished $DUPLICATI__OPERATIONNAME with $DUPLICATI__PARSED_RESULT

And ~/bin/send2slack.sh is

#! /bin/bash
# to send a message to my Slack
# Uses a command of the basic form
# curl -X POST -H 'Content-type: application/json' --data '{"text":"Hello, World!"}' YOUR_WEBHOOK_URL_HERE
# modified 2021-09-26 to prepend hostname to all msgs
[ ! -z "$message" ] && curl -s -X POST -H 'Content-type: application/json' --data "{
              \"text\": \"`uname -n`: ${message}\"
      }" https://hooks.slack.com/services/{Your Webhook Secret Here}
echo " "

You have to set up a Webhook to the channel in Slack where you want the notification. The extra echo at the end is because after curl responds ok it forgets to append a newline.

1 Like

A search found Notificiation Discord apprise how? which has some steps you could try if setting up dupReport and Apprise has more appeal than trying to script something yourself following the Slack example seen above.

I’m not doing any of this, just pointing, but dupReport does have support from its author and users.