KenKundert / emborg

Interactive command line interface to Borg Backup
GNU General Public License v3.0
94 stars 8 forks source link

Optional notifications on successful completion #7

Closed Ingvarhost closed 5 years ago

Ingvarhost commented 5 years ago

Is it possible to make optional email notifications upon successful completion of a backup?

KenKundert commented 5 years ago

You can add something like this to your config file: run_after_backup = ['notify-send "backup succeeds"']

That will only run if there are no errors and it should raise a notification.

Ingvarhost commented 5 years ago

Thanks for the idea. As a result, I used the following: run_after_backup = ['echo "" | mail -s "Backup succeeds on {host_name}" root@localhost']