Files
external-minecraft/roles/minecraft-podman/templates/minecraft-backup.timer.j2
2026-09-02 14:47:08 -06:00

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