3eabe0dce5498e11cd9a470e8b833626893f1355

Author
Tunghsiao Liu <t@sparanoid.com>
Committer
Tunghsiao Liu <t@sparanoid.com>
Date

Message

Add config sample for Slack notifications

Diff

 1diff --git a/duplicity-backup.conf.example b/duplicity-backup.conf.example
 2index 30185115e53c37eb7fe4cf6bc4164ac8da74427a..e9273a65b9a1f3a4aa7c583c66f4808d1500dfb8 100644
 3--- a/duplicity-backup.conf.example
 4+++ b/duplicity-backup.conf.example
 5@@ -387,6 +387,24 @@ MAIL="mailx"     # default command for Linux mail
 6 #MAIL="msmtp"
 7 
 8 
 9+# ------------------------------------------------------------------------------
10+# NOTIFICATIONS
11+# ------------------------------------------------------------------------------
12+#
13+# Third-pary notification services. If no NOTIFICATION_SERVICE provided, no
14+# notifications will be sent.
15+
16+# NOTIFICATION_SERVICE="slack"
17+NOTIFICATION_SERVICE=
18+NOTIFICATION_FAILURE_ONLY="yes" # send notifications only if there was an error while creating backup
19+
20+# Provider: Slack
21+SLACK_HOOK_URL="https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
22+SLACK_CHANNEL="#general"
23+SLACK_USERNAME="duplicity-backup"
24+SLACK_EMOJI="package"
25+
26+
27 # ------------------------------------------------------------------------------
28 # TROUBLESHOOTING
29 # ------------------------------------------------------------------------------