a small home server for the block game
find process to run a server with @theorderingmachine:
$ systemctl start minecraft-server.serviceinspect service outputs with machine startup:
$ journalctl -u minecraft-server.serviceconnect to the server with a hostname and port:
tom:25565update the server.properties then restart:
- level-name=world
+ level-name=skyblockone world is saved in safekeepings from deletion.
a unique bucket on amazon web services is needed:
$ vim ./backup/tofu.auto.tfvars.jsonsome changes to the backend backups can happen:
$ vim ./backup/main.tfthen configuration can change the currents cloud:
$ tofu init
$ tofu applyit is often a scheduled time to perform backups:
$ systemctl start restic-backups-minecraft.servicewith 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