MineBackup Integration Mod Deep Dive
MineBackup is the Minecraft-side integration mod that connects in-game runtime actions (save, exit, rejoin) with FolderRewind / MineRewind backup and restore flows.
The dedicated MineBackup v1 documentation section is now available (Chinese-first release):
You can treat it as an in-process coordination layer:
- MineRewind handles FolderRewind plugin-side orchestration (discovery, backup/restore coordination)
- MineBackup handles Minecraft runtime cooperation (save-before-hot-backup, exit-before-hot-restore, rejoin-after-restore)
- KnotLink transports commands and events between both sides
1) Scenarios and capability boundaries
Recommended for:
- Long-term singleplayer survival users (corruption, misoperations, rollback continuity)
- Small server owners or modpack testers (frequent rollback workflows)
- Users who want standardized backup pipelines instead of manual file copy
MineBackup delivers value in two key areas:
- Hot backup coordination: before host backup starts, it triggers in-game full save to reduce runtime inconsistency.
- Hot restore coordination: before restore starts, it saves and exits the current world, then auto-rejoins after restore and reports result.
Operational boundary to keep in mind:
- This is not a guarantee layer. Timeouts, insufficient permissions, or backend communication failures can interrupt the chain.
- Always run at least one full hot-restore drill in a test world first.
2) Installation and prerequisites
Environment prerequisites
Based on current integration setup, prepare:
- KnotLink server
- FolderRewind host + MineRewind plugin
- MineBackup main program
The last two are alternatives. You only need one of them according to your deployment path.
Suggested setup order
- Install and verify FolderRewind runs normally.
- Install MineRewind plugin in FolderRewind.
- Install MineBackup mod in Minecraft.
- Run the shortest-path validation first (see Scenario 1 below).
Permission model
- Singleplayer:
/mbcommands are directly usable. - Dedicated server: operator-level permission is usually required (moderator-level command check).
3) Integration flow (critical runtime chain)
Hot backup chain
When host triggers hot backup, MineBackup:
- Receives
pre_hot_backup - Performs full world save
- Freezes auto-save (to avoid write interference during backup window)
- Sends
WORLD_SAVED - Host executes backup
- Unfreezes auto-save after backup completes
Safety fallback:
- Auto-save freeze has timeout protection (about 3 minutes), then it auto-recovers with warning broadcast.
Hot restore chain
When host triggers hot restore, MineBackup:
- Handles
pre_hot_restore - Saves and exits current world/session
- Sends
WORLD_SAVE_AND_EXIT_COMPLETE - Waits for restore completion (
restore_finished/restore_success) - Handles
rejoin_worldand starts auto-rejoin - Sends
REJOIN_RESULT success|failure ...
Handshake stage:
- On receiving
handshake, mod repliesHANDSHAKE_RESPONSE <mod_version>and performs minimum-version compatibility checks.
4) Full command reference (/mb)
In v1.7.0, the
LIST_WORLDSremote command parsing issue has been fixed. If this command was unstable in older versions, upgrade and retest.
| Category | Command | Description |
|---|---|---|
| Local save | /mb save | Immediately saves all loaded dimensions on current server |
| Config query | /mb list_configs | Queries available configurations from backend |
| World query | /mb list_worlds <config_id> | Lists worlds under a config |
| Backup query | /mb list_backups <config_id> <world_index> | Lists backups for a specific world |
| Remote backup | /mb backup <config_id> <world_index> [comment] | Triggers backup for a target world with optional comment |
| Remote restore | /mb restore <config_id> <world_index> <backup_file> | Restores target world from a specific backup file |
| Quick backup | /mb quicksave [comment] | Runs local save first, then triggers backup for current world |
| Quick restore | /mb quickrestore [backup_file] | No arg restores latest; with arg restores specified backup |
| Auto backup | /mb auto <config_id> <world_index> <internal_time> | Starts auto backup and persists local auto-backup config |
| Stop auto backup | /mb stop <config_id> <world_index> | Stops auto backup for target world and clears local config |
| WE snapshot bridge | /mb snap <config_id> <world_index> <backup_file> | Triggers WorldEdit snapshot-related backend command |
| Manual freeze | /mb freeze | Saves and freezes auto-save for external-tool window operations |
| Manual unfreeze | /mb unfreeze | Resumes auto-save |
5) Two practical scenarios
Scenario 1: Validate the shortest working chain
Goal: verify MineBackup ↔ backend communication works.
Steps:
- In target world, run:
/mb quicksave baseline_before_test
- After command/backup response appears, run:
/mb quickrestore
- Confirm these milestones appear:
- Restore preparation notification
- World exit and restore waiting
- Auto-rejoin success
- Backend receives
REJOIN_RESULT success
Success criteria:
- Full
backup -> restore -> rejoinloop completes and world remains playable.
Scenario 2: Precise rollback to a specific backup
Goal: roll back to a known good point after corruption/misoperation.
Steps:
- List available backups:
/mb list_backups <config_id> <world_index>
- Restore to selected backup file:
/mb quickrestore <backup_file>
- If you operate in multi-world / config-scoped workflow, you can also run:
/mb restore <config_id> <world_index> <backup_file>
Success criteria:
- Player state reaches expected time point and key world states match target backup.
6) Common issues and boundaries
Command sent but no result
Possible causes:
- Backend is not running
- KnotLink channel is not established
- Port/local communication is blocked
Recommendation:
- Start troubleshooting with read-only query commands like
/mb list_configs.
Hot restore fails or no auto-rejoin
Common causes:
- Invalid world identifier (missing world / illegal path)
- Rejoin timeout
- Retry budget exhausted
Recommendation:
- Reproduce with
quickrestorein a test world first. - If failed, manually enter world from world selection to verify world integrity.
Commands unavailable on dedicated server
Common cause:
- Insufficient executor permission.
Recommendation:
- Grant adequate operator/management permission and retry.
Worried about forgetting to unfreeze auto-save
Notes:
- Mod has freeze-timeout fallback and auto-recovers with warning.
- Still recommended to run
/mb unfreezeproactively after operations.
7) Suggested reading path with MineRewind docs
- Start with Minecraft Guide Overview
- Read this page for MineBackup runtime capabilities
- Continue with KnotLink and Integration Mod for protocol-level details
- Then deep-dive into Hot Backup Mechanism and Hot Restore Mechanism
If you are implementing integration/protocol side, continue with KnotLink Protocol and Integration.