backup.sh shows the days since the last simple_backup (orange from 7, red from 14); backup-reminder.timer notifies daily once it is overdue.
12 lines
307 B
Desktop File
12 lines
307 B
Desktop File
[Unit]
|
|
Description=Notify when the last simple_backup is 14 days old or more
|
|
StartLimitIntervalSec=2h
|
|
StartLimitBurst=4
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=%h/.config/xmobar/backup.sh remind
|
|
# no notification daemon yet (e.g. caught up right after login)? retry a few times
|
|
Restart=on-failure
|
|
RestartSec=5min
|