aboutsummaryrefslogtreecommitdiff
path: root/daily-mc-backup.timer
diff options
context:
space:
mode:
authorGravatar KamiCreed <9517086+KamiCreed@users.noreply.github.com> 2020-03-29 04:45:46 -0700
committerGravatar KamiCreed <9517086+KamiCreed@users.noreply.github.com> 2020-03-29 04:45:46 -0700
commitfc198700f0454d5f145de19bb4da31ad46feffe8 (patch)
tree465a53285650af05b5112d542f2ec7c2a8ff7317 /daily-mc-backup.timer
parent631e796812bdd9830fd2fb2f5c05d8323e67b50c (diff)
downloadminecraft-server-tools-fc198700f0454d5f145de19bb4da31ad46feffe8.tar.gz
Change backups to only when a player is online
Also, adds a fallback daily forced backup and error handling to prevent concurrent backup.
Diffstat (limited to 'daily-mc-backup.timer')
-rw-r--r--daily-mc-backup.timer9
1 files changed, 9 insertions, 0 deletions
diff --git a/daily-mc-backup.timer b/daily-mc-backup.timer
new file mode 100644
index 0000000..eef3832
--- /dev/null
+++ b/daily-mc-backup.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=Force Backup Minecraft Server Daily
+
+[Timer]
+OnCalendar=daily
+Unit=mc-fbackup.service
+
+[Install]
+WantedBy=multi-user.target