a small home server for the block game
find process to run a server with @theorderingmachine
:
$ systemctl start minecraft-server.service
inspect service outputs with machine startup:
$ journalctl -u minecraft-server.service
connect to the server with a hostname and port:
tom:25565
update the server.properties
then restart:
- level-name=world
+ level-name=skyblock
one world is saved in safekeepings from deletion.
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
it is often a scheduled time to perform backups:
$ systemctl start restic-backups-minecraft.service
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