Rollback: restore a server's world from any of its backups, with a Current marker
Manage gets a Backup section (between World and Logs) listing the server's automatic and manual backups. Rolling back is only allowed while the server is stopped and nothing else, such as an automatic backup, is running on it; the server claims the busy flag atomically so the two can't race. A run players were on is backed up first. The new world is extracted to a staging folder and checked before the old one is deleted. The backup that holds the world as it is now is marked Current (its button is disabled, and the Backups page tags it). It's tracked in backups/<game>/<container>.current: set by automatic backups and rollbacks, none while players have been on, newest automatic backup when there's no record. Rolling back to an automatic backup can keep the Current backup as a manual one (or make one if nothing is current), warning when that pushes out the oldest of 5 manual backups. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
87b92f8332
commit
51db28f3d5
5 changed files with 429 additions and 12 deletions
|
|
@ -69,6 +69,8 @@ header { display: flex; justify-content: space-between; align-items: center; gap
|
|||
.backups-table th { text-align: left; color: var(--muted); font-weight: normal; padding: 0 8px 6px 0; }
|
||||
.backups-table td { padding: 6px 8px 6px 0; border-top: 1px solid var(--border); vertical-align: middle; }
|
||||
.backups-table a.button.small { padding: 4px 10px; font-size: 13px; }
|
||||
.current-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px;
|
||||
color: var(--ok); border: 1px solid currentColor; vertical-align: 1px; }
|
||||
#about-backups h3 { font-size: 15px; margin: 16px 0 6px; }
|
||||
.about-list { margin: 0; padding-left: 20px; font-size: 14px; }
|
||||
.about-list li { margin: 4px 0; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue