feat: zomboid to neuro
This commit is contained in:
@@ -7,7 +7,8 @@ or pausing the server. The default schedule is every 30 minutes. Each run:
|
||||
period;
|
||||
2. rsyncs `Zomboid/Saves/Multiplayer/<serverName>` and non-secret server
|
||||
settings (`SandboxVars`, spawn-points, and spawn-regions) from
|
||||
`Zomboid/Server` into a private staging tree;
|
||||
`Zomboid/Server`, together with local `Zomboid/mods`, into a private staging
|
||||
tree;
|
||||
3. waits five seconds and repeats the rsync to narrow the live-write window;
|
||||
4. publishes a timestamped `tar.zst` archive; and
|
||||
5. uploads it to S3 when enabled, then applies local retention.
|
||||
@@ -33,9 +34,9 @@ host-generated password files, or the S3 credentials file. The server INI is
|
||||
generated again during service startup; provision secret-backed values separately
|
||||
after a restore.
|
||||
|
||||
## hectic-lab
|
||||
## neuro
|
||||
|
||||
hectic-lab runs the timer every 30 minutes and stores timestamped backups in
|
||||
neuro runs the timer every 30 minutes and stores timestamped backups in
|
||||
S3 for 14 days. It keeps no regular timestamped backup archives locally:
|
||||
|
||||
```text
|
||||
@@ -83,7 +84,7 @@ available; it remains the stronger recovery and cleanup control.
|
||||
Restoring must be done while the server is stopped so it cannot modify files
|
||||
during extraction:
|
||||
|
||||
On hectic-lab, regular timestamped archives are retained only in S3. With
|
||||
On neuro, regular timestamped archives are retained only in S3. With
|
||||
valid S3 credentials, download the chosen archive before restoring it:
|
||||
|
||||
```sh
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
# Project Zomboid on neuro
|
||||
|
||||
The native NixOS service is `project-zomboid.service`. Its configuration lives
|
||||
in `nixos/system/neuro/project-zomboid.nix`; the effective non-secret INI and
|
||||
sandbox settings are captured in the adjacent JSON files. Runtime state lives
|
||||
in `/var/lib/project-zomboid`, owned by UID 988 and GID 985.
|
||||
|
||||
Players connect to `95.31.254.84:36565`. The server uses UDP 36565 for
|
||||
discovery and UDP 36566 for game traffic. Existing MikroTik rules forward
|
||||
both ports unchanged to `192.168.88.10`. RCON TCP 27015 is not forwarded.
|
||||
|
||||
The port change was deployed through NixOS after a graceful save and shutdown.
|
||||
External A2S_INFO on UDP 36565 succeeded; independent external probes reached
|
||||
both 36565 and 36566. Minecraft, BlueMap and nginx retained their processes.
|
||||
|
||||
The migrated installation is Build 42.21.0, Steam build 25485538.
|
||||
`updateOnStart = false` prevents an incidental SteamCMD upgrade. A deliberate
|
||||
version upgrade must include a stopped-server backup and client compatibility
|
||||
check before changing this setting.
|
||||
|
||||
The installed LuaDigitalWatchUI 1.0 and RC_RealisticColdMod 2.2.0 snapshots
|
||||
are copied into `Zomboid/mods/LuaDigitalWatch` and
|
||||
`Zomboid/mods/RealisticTemperature`. Their `common` and `42` directories remain
|
||||
intact. Their mod IDs remain enabled; `WorkshopItems` is empty because the
|
||||
game otherwise automatically replaces the temperature mod with a newer
|
||||
published version on startup. Clients need matching mod files; automatic
|
||||
Workshop provisioning is no longer advertised by this server. Preserve these
|
||||
local copies during updates and restores.
|
||||
|
||||
The save remains `servertest`, with the original world identities, account
|
||||
database, player database, vehicle database and passwords. S3 credentials are
|
||||
provided by `sus/neuro-project-zomboid.yaml`. Never put runtime passwords or
|
||||
decrypted SOPS contents in the Nix store.
|
||||
|
||||
Backups retain the existing bucket `backup-hectic-lab`, prefix
|
||||
`project-zomboid`, half-hour schedule and 14-day remote retention.
|
||||
Local mods are included. See [backup and restore instructions](project-zomboid-backups.md).
|
||||
|
||||
Migration recovery copies live under the private directory
|
||||
`/var/backups/project-zomboid/migration-20261120` on neuro. The former neuro
|
||||
installation must remain separate from the authoritative hectic-lab save.
|
||||
Do not restore either copy over a running server.
|
||||
|
||||
## Cutover evidence, 2026-11-20
|
||||
|
||||
The old server was saved and gracefully stopped with no connected players.
|
||||
The final offline rsync used content checksums. Independent SHA-256 inventories
|
||||
matched for all 718,669 regular files (15,939,182,014 bytes), including file
|
||||
paths, modes and symlink targets:
|
||||
|
||||
```text
|
||||
11082cc5c3386ae591ffe8ce67d8dec57d1f2d53a66fe17fdbee54cc6df84167
|
||||
```
|
||||
|
||||
All three account/player/vehicle databases passed SQLite `quick_check` and
|
||||
matched byte-for-byte before startup. Counts were two network players, 1,009
|
||||
vehicles and three whitelist records. Both local mod copies matched their
|
||||
installed Workshop originals, and startup logs confirmed both loaded.
|
||||
All 140 captured INI settings matched after the intentional Workshop and
|
||||
announced-IP changes. All 191 sandbox settings, including nested mod settings,
|
||||
also matched the original Lua values after startup.
|
||||
|
||||
Native NixOS activation on neuro succeeded. External A2S_INFO returned the
|
||||
server on UDP 16261; independent probes also reached UDP 16262. Authenticated
|
||||
local RCON succeeded, and external TCP 27015 was unreachable. A full game
|
||||
client join was not tested.
|
||||
|
||||
The first native backup completed successfully and its S3 object was checked:
|
||||
|
||||
```text
|
||||
project-zomboid/project-zomboid-servertest-20261120T123322Z.tar.zst
|
||||
149420409 bytes
|
||||
```
|
||||
|
||||
The local mod files were verified in backup staging. Regular local archive
|
||||
retention remains zero after successful upload.
|
||||
|
||||
The hectic-lab service and backup timer are absent from the active system.
|
||||
The original data remains in its private
|
||||
`/var/backups/project-zomboid/retired-20261120` recovery directory.
|
||||
Temporary migration masks were removed. The old host's existing D-Bus reload
|
||||
timeout caused activation to return exit 4; the new system profile, Zomboid
|
||||
removal, firewall changes and shared nginx/SSH were verified separately.
|
||||
|
||||
BlueMap and nginx kept their processes. Minecraft recorded a clean restart at
|
||||
12:24:30 UTC, before Zomboid activation at 12:31:10 UTC; its cause was not
|
||||
investigated. No kernel OOM event was found.
|
||||
|
||||
The `migration-20261120/cold` directory on neuro is an incomplete copy from an
|
||||
interrupted transfer and must not be used for recovery. Use the verified
|
||||
`hectic-lab` snapshot instead. Rolling back an entire old host configuration
|
||||
can re-enable its former server; restore game data deliberately to one host.
|
||||
Reference in New Issue
Block a user