automate automation for minecraft servers
Find a file
2021-05-30 08:29:55 -07:00
systemd try to make this user agnostic 2020-04-23 00:03:54 -07:00
automate.sh move to curl and stop using regex to parse json like a fuckass 2021-05-30 08:29:55 -07:00
LICENSE Initial commit 2020-04-01 03:49:15 +00:00
README.md fix fuckywucky in grammer 2020-07-16 13:21:32 -07:00

auto-mc

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.

installation

to install, do:

sudo apt install git
git clone https://git.skehsucks.xyz/ida/auto-mc ~/auto-mc 
cd ~/auto-mc && sudo bash automate.sh

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.

structure

/srv/minecraft/server: server files

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

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

commands

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