Skip to content

zimeg/minecraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minecraft

a small home server for the block game

starting a server

find process to run a server with @theorderingmachine:

$ systemctl start minecraft-server.service

following the logs

inspect service outputs with machine startup:

$ journalctl -u minecraft-server.service

joining the world

connect to the server with a hostname and port:

tom:25565

changing the saves

update the server.properties then restart:

- level-name=world
+ level-name=skyblock

backups

one world is saved in safekeepings from deletion.

creating the cloud

a unique bucket on amazon web services is needed:

$ vim ./backup/tofu.auto.tfvars.json

some changes to the backend backups can happen:

$ vim ./backup/main.tf

then configuration can change the currents cloud:

$ tofu init
$ tofu apply

saving a backup

it is often a scheduled time to perform backups:

$ systemctl start restic-backups-minecraft.service

reloading from save

with more luck past files can be used for game:

$ systemctl stop minecraft-server.service
$ restic -r s3:s3.us-east-1.amazonaws.com/tom.25565 restore latest --target /tmp/backup
$ rsync -av --delete /tmp/backup/srv/minecraft/world/ /persistent/srv/minecraft/world/
$ chown -R minecraft:minecraft /persistent/srv/minecraft/world
$ systemctl start minecraft-server.service

About

💎

tom:25565

Resources

License

Stars

Watchers

Forks