backups for mine
This commit is contained in:
@@ -124,3 +124,52 @@ Archives contain paths relative to that directory. Restore file ownership to the
|
||||
game service's user (`minecraft` for Java servers, `horizon` for Horizon),
|
||||
reapply the matching Nix configuration and runtime secrets, then start the game
|
||||
and its backup timer.
|
||||
|
||||
## Isolated wowMineMap restore test
|
||||
|
||||
Neuro declares `wowMineMapRestore` as a separate, manually started Minecraft
|
||||
instance. It reuses the production NeoForge package, pinned WorldOfSosal
|
||||
modpack import, and shared modpack adjustments. It uses an 8 GB heap and reduced
|
||||
view/simulation distances for the test. Its directory is
|
||||
`/srv/minecraft/wowMineMapRestore`; its game socket is `127.0.0.1:25568`.
|
||||
RCON, public firewall access, and scheduled backups of this copy are disabled.
|
||||
It does not use the production source-map importer or reset service.
|
||||
|
||||
After deploying the neuro NixOS configuration normally, start the copy:
|
||||
|
||||
```sh
|
||||
ssh neuro 'systemctl start minecraft-server-wowMineMapRestore.service'
|
||||
ssh neuro 'journalctl -u minecraft-modpack-import-wowMineMapRestore -u minecraft-backup-restore-wowMineMapRestore -u minecraft-server-wowMineMapRestore -n 100 --no-pager'
|
||||
ssh neuro 'tail -n 80 /srv/minecraft/wowMineMapRestore/logs/latest.log'
|
||||
```
|
||||
|
||||
The first start installs the matching modpack, then downloads this exact object:
|
||||
|
||||
```text
|
||||
s3://backup-hectic-lab/minecraft/neuro/wowMineMap/minecraft-wowMineMap-20261117T172531Z.tar.zst
|
||||
```
|
||||
|
||||
The restore uses the existing root-only S3 credentials file. The key needs
|
||||
`GetObject` access in addition to the backup permissions above. It checks the
|
||||
compressed size (9,206,330,929 bytes), zstd integrity, archive paths, and the
|
||||
configured world's `level.dat`. Backup data, including player and mod state,
|
||||
overrides bootstrap configuration; regenerated mods remain installed.
|
||||
It refuses to replace an existing world. A completion marker binds the
|
||||
restored directory to this S3 object, and subsequent starts skip both bootstrap
|
||||
and restoration so that restored configuration is preserved.
|
||||
|
||||
Connect using the matching WorldOfSosal client through an SSH tunnel:
|
||||
|
||||
```sh
|
||||
ssh -N -L 25568:127.0.0.1:25568 neuro
|
||||
```
|
||||
|
||||
Use `localhost:25568` in Minecraft. Confirm startup reaches `Done`, enter the
|
||||
restored Azeroth dimension, and inspect known builds, player inventory, and mod
|
||||
objects. A running systemd unit alone does not prove that the saved world
|
||||
loaded correctly. These real-world checks remain to be performed after deploy.
|
||||
Stop the test when finished:
|
||||
|
||||
```sh
|
||||
ssh neuro 'systemctl stop minecraft-server-wowMineMapRestore.service'
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user