feat: wowmine: immersive portals

This commit is contained in:
2026-11-24 09:05:38 +00:00
parent 8c42bef13f
commit 05198a98f8
44 changed files with 1517 additions and 5 deletions
+30
View File
@@ -14,6 +14,21 @@ Set `services.minecraft-backups.onCalendar` to change the schedule. Its default
is `"*-*-* 00/6:00:00"` (00:00, 06:00, 12:00, and 18:00 in the host timezone).
S3 retention is configured separately with `services.minecraft-backups.s3.retentionDays`.
## Shutdown warnings
wowMineMap broadcasts chat warnings five minutes before a backup stop, one
minute before it, and immediately before stopping. The countdown starts after
the maintenance lock is acquired and pending uploads have succeeded. It waits
240 seconds between the first two messages, then 60 seconds before the last.
The server remains playable during this interval.
`services.minecraft-backups.servers.<name>.announcementCommand` enables these
warnings. Its executable receives one plain-text message argument; wowMineMap
delivers it through its existing Minecraft console using `say`. Other servers
retain their previous behavior unless this option is set. Inactive servers
receive no warnings and incur no countdown. A failed announcement aborts that
backup before stopping or copying the server.
## Snapshot and local storage
A running server is shut down through its normal systemd stop command while
@@ -39,6 +54,21 @@ S3 cleanup only deletes names matching that server's timestamped archive format.
Manual archives and other prefixes are preserved. Cleanup uses the same helper
as PZ: individual object deletions and explicit validation of S3 deletion errors.
## Clean shutdown verification, 2026-11-22
The deployed stop script sends Minecraft's `stop` command and waits until
the server exits. Minecraft 1.21.1 `MinecraftServer.stopServer` saves all
players, disconnects them, saves all levels with flushing enabled, closes
the levels, and releases world storage. The backup waits for systemd stop
to finish and requires `Result=success` before rsync starts.
The last inspected production shutdown logged `Saving players` followed by
`Saving worlds` at 17:02:56 UTC, then all chunks and dimensions saved at
17:02:57 UTC. Thus a normal backup copies the final stopped state rather
than combining a live inventory with an older frozen map. Process crashes,
power loss and save errors are separate failure cases; systemd success alone
does not certify that every mod or storage operation saved without error.
## wowMineMap live-backup investigation, 2026-11-16
Read-only inspection through `ssh neuro` confirmed that wowMineMap is running