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
README.md fix fuckywucky in grammer 9 months ago
automate.sh add mc-backup to mc's path 1 year ago

README.md

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