diff options
author | KamiCreed <9517086+KamiCreed@users.noreply.github.com> | 2020-03-25 04:25:45 -0700 |
---|---|---|
committer | KamiCreed <9517086+KamiCreed@users.noreply.github.com> | 2020-03-25 04:25:45 -0700 |
commit | 631e796812bdd9830fd2fb2f5c05d8323e67b50c (patch) | |
tree | 6b82515121c46a0cdf17ad0883e14f173b4146d8 /mc-backup.service | |
parent | ac7b43637873f0b4a3d370939343f98e30f95715 (diff) | |
download | minecraft-server-tools-631e796812bdd9830fd2fb2f5c05d8323e67b50c.tar.gz |
Add automated backup systemd scripts
Diffstat (limited to 'mc-backup.service')
-rw-r--r-- | mc-backup.service | 15 |
1 files changed, 15 insertions, 0 deletions
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 |