From fc198700f0454d5f145de19bb4da31ad46feffe8 Mon Sep 17 00:00:00 2001 From: KamiCreed <9517086+KamiCreed@users.noreply.github.com> Date: Sun, 29 Mar 2020 04:45:46 -0700 Subject: Change backups to only when a player is online Also, adds a fallback daily forced backup and error handling to prevent concurrent backup. --- mc-fbackup.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 mc-fbackup.service (limited to 'mc-fbackup.service') diff --git a/mc-fbackup.service b/mc-fbackup.service new file mode 100644 index 0000000..a922b69 --- /dev/null +++ b/mc-fbackup.service @@ -0,0 +1,15 @@ +[Unit] +Description=Force backup of Minecraft Server + +[Service] +Type=simple +User=minecraftuser +Group=minecraftuser +ExecStart=/var/minecraft/server.sh fbackup +Restart=on-failure +RestartSec=10s +StartLimitInterval=10min +StartLimitBurst=8 + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3