ansible/roles/borgbackup_client/templates/borgmatic.timer.j2

18 lines
278 B
Text
Raw Normal View History

{{ ansible_managed | comment }}
[Unit]
Description=Timer for borgmatic backup
[Timer]
{% if borg_keep_hourly > 0 %}
2021-03-16 09:38:51 +01:00
OnCalendar=hourly
RandomizedDelaySec=60m
{% else %}
OnCalendar=daily
RandomizedDelaySec=24h
{% endif %}
FixedRandomDelay=true
[Install]
WantedBy=timers.target