|ida schmidt 9cd06eeafb||9 months ago|
|systemd||1 year ago|
|LICENSE||1 year ago|
|README.md||9 months ago|
|automate.sh||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
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 https://git.skehsucks.xyz/ida/auto-mc ~/auto-mc cd ~/auto-mc && sudo bash automate.sh
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
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
screen -r mc-server: connects to the server console
mc-backup: manually runs a backup