16 lines
360 B
Django/Jinja
16 lines
360 B
Django/Jinja
# Systemd timer for Minecraft backup
|
|
# Deployed by Ansible
|
|
|
|
[Unit]
|
|
Description=Minecraft Server Backup Timer
|
|
|
|
[Timer]
|
|
# Backup schedule (default: every 6 hours)
|
|
OnCalendar={{ backup.schedule | default('*-*-* */6:00:00') }}
|
|
|
|
# Run the backup immediately if the machine was powered off during the scheduled time
|
|
Persistent=true
|
|
|
|
[Install]
|
|
WantedBy=timers.target
|