Minecraft bin folder with some useful commands, based on this tutorial.
- Minecraft server runs as user systemd service.
- Daily backup.
- Warning near shut down.
- Switch server versions.
- Snapshot upgrade.
- Ubuntu 18.04 (or similar: apt, systemd).
- User
mc
with minimalsudo
during setup. - Cloned to
~/bin
. - Backups stored in
~/backups
. - Server(s) stored in
~/server
. - Shuts down at 22:00 PM.
- Symbolic link
current
for the running version. - Directory common with all files and directories shared across versions (
server.properties
,eula.txt
,*.json
,logs
, ...). ~/server/snapshot
for snapshot versions.
git clone https://github.com/FrankDeGroot/mcbin.git ~/bin
PATH=~/bin:$PATH
in your.bash_aliases
or whatever favorite startup script you have.mccreate
though I don't recommend running it blindly.
mkdir ~/server/newserver
cd ~/server/newserver
- Add
server.jar
and other desired jars (e.g. forge). - Optionally add world(s), link current with
ln -rs newworld world
. mccommonlinks