Add desktop notification screenshot

This commit is contained in:
Erik Westrup
2022-02-15 19:19:46 +01:00
parent 2c14351cd4
commit b00ae89812
2 changed files with 3 additions and 0 deletions

View File

@@ -436,6 +436,8 @@ To create a different backup and use you can do:
```
### Optional: Desktop Notifications
<img src="img/macos_notification.png" align="right" />
It's a good idea to be on top of your backups to make sure that they don't increase a lot in size and incur high costs. However it's notoriously tricky to make GUI notifications correctly from a non-user process (e.g. root).
Therefore this project provides a lightweight solution for desktop notifications that works like this: Basically `restic_backup.sh` will append a summary line of the last backup to a user-owned file (the user running your OS's desktop environment) in a fire-and-forget fashion. Then the user has a process that reads this and forward each line as a new message to the desktop environment in use.
@@ -459,6 +461,7 @@ To set desktop notifications up:
* [com.user.notificationqueue.plist](https://github.com/erikw/dotfiles/blob/c25f44db1cad675becf91fc3ff28a5a4dfc4a373/bin/com.user.notificationqueue.plist)
### Optional: Email Notification on Failure
#### Systemd
We want to be aware when the automatic backup fails, so we can fix it. Since my laptop does not run a mail server, I went for a solution to set up my laptop to be able to send emails with [postfix via my Gmail](https://easyengine.io/tutorials/linux/ubuntu-postfix-gmail-smtp/). Follow the instructions over there.

BIN
img/macos_notification.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB