ansible/roles/borgbackup_client/templates/borgmatic.timer.j2
Jeltz c6b768e1bb
Some checks failed
continuous-integration/drone/push Build is failing
Don't run borgmatic every hour if not needed
2021-05-10 13:02:45 +02:00

16 lines
255 B
Django/Jinja

{{ ansible_managed | comment }}
[Unit]
Description=Timer for borgmatic backup
[Timer]
{% if borg_keep_hourly > 0 %}
OnCalendar=hourly
{% else %}
OnCalendar=daily
{% endif %}
RandomizedDelaySec=60m
FixedRandomDelay=true
[Install]
WantedBy=timers.target