add systemd timer for backups
This commit is contained in:
parent
baa9bd7bed
commit
6c214a2330
6 changed files with 59 additions and 0 deletions
11
templates/timer.j2
Normal file
11
templates/timer.j2
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Execute backup job
|
||||
|
||||
[Timer]
|
||||
Persistent=true
|
||||
{% if "OnCalendar" in backups.jobs[item] %}
|
||||
OnCalendar={{ backups.jobs[item].OnCalendar }}
|
||||
{% endif %}
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue