From 631e796812bdd9830fd2fb2f5c05d8323e67b50c Mon Sep 17 00:00:00 2001 From: KamiCreed <9517086+KamiCreed@users.noreply.github.com> Date: Wed, 25 Mar 2020 04:25:45 -0700 Subject: Add automated backup systemd scripts --- mc-backup.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 mc-backup.service (limited to 'mc-backup.service') diff --git a/mc-backup.service b/mc-backup.service new file mode 100644 index 0000000..d94656c --- /dev/null +++ b/mc-backup.service @@ -0,0 +1,15 @@ +[Unit] +Description=Automatic backup of Minecraft Server + +[Service] +Type=simple +User=minecraftuser +Group=minecraftuser +ExecStart=/var/minecraft/server.sh backup +Restart=on-failure +RestartSec=10s +StartLimitInterval=10min +StartLimitBurst=3 + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3