Add a kopia_backup role for the daily Kopia snapshot script and timer against an existing S3 repository

This commit is contained in:
2026-10-07 20:54:52 +00:00
parent c87af201aa
commit c9d2334906
5 changed files with 199 additions and 0 deletions
@@ -0,0 +1,13 @@
# {{ ansible_managed }}
[Unit]
Description=Daily Kopia backup to {{ kopia_backup.endpoint }}
[Timer]
OnCalendar={{ kopia_backup.on_calendar }}
{% if kopia_backup.randomized_delay %}
RandomizedDelaySec={{ kopia_backup.randomized_delay }}
{% endif %}
Persistent=true
[Install]
WantedBy=timers.target