automate automation for minecraft servers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ida schmidt 9cd06eeafb fix fuckywucky in grammer 9 months ago
systemd try to make this user agnostic 1 year ago
LICENSE Initial commit 1 year ago fix fuckywucky in grammer 9 months ago add mc-backup to mc's path 1 year ago


automate automation for minecraft servers.

this is just a few systemd units and a backup script that auto install, the server runs inside a gnu screen session controlled by the user mc. while i wrote this with ubuntu in mind, i dont see why it wouldnt work on any debian based distro.


to install, do:

sudo apt install git
git clone ~/auto-mc 
cd ~/auto-mc && sudo bash

usage notes

if you're familiar with the everything i mentioned in the first section you already know how to use this, but you probably wouldnt be downloading this if you did.


/srv/minecraft/server: server files

/srv/minecraft/backups: backups of ../server (taken daily, retained for 14 days)

/etc/systemd/system/mc-*: services and timers


ran as root*:

systemctl start mc-server: starts the minecraft server

systemctl stop mc-server: stops the minecraft server

systemctl restart mc-server: restarts the minecraft server

(* = either by logging into root, or prefixing any command with sudo)

ran as mc

screen -r mc-server: connects to the server console

mc-backup: manually runs a backup