initial commital
This commit is contained in:
15
roles/minecraft-podman/templates/minecraft-backup.timer.j2
Normal file
15
roles/minecraft-podman/templates/minecraft-backup.timer.j2
Normal file
@@ -0,0 +1,15 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user