ansible/roles/borgbackup_client/templates/borgmatic.timer.j2
Jeltz bb97bca456
Some checks reported errors
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build encountered an error
Increase RandomizedDelaySec when hourly = 0
2021-05-23 14:09:01 +02:00

17 lines
278 B
Django/Jinja

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