Add nm-unmetered-connection checks

This commit is contained in:
Todd E Johnson
2019-07-15 20:45:24 -05:00
parent 348fee95a5
commit d8c0a8d2d6
4 changed files with 26 additions and 3 deletions
+2 -1
View File
@@ -1,10 +1,11 @@
[Unit]
Description=Backup with restic to Backblaze B2
OnFailure=status-email-user@%n.service
Requires=nm-unmetered-connection.service
[Service]
Type=simple
Nice=10
ExecStart=/usr/local/sbin/restic_backup.sh
# $HOME or $XDG_CACHE_HOME must be set for restic to find /root/.cache/restic/
Environment="HOME=/root"
Environment="HOME=/root"