Backups
Back up worlds/, server.properties, allowlist.json, root permissions.json, config/, keys/, and custom packs. config/ and keys/ may contain secrets.
Stopped backup
The simplest reliable method:
- Run
stop. - Wait for
bedrock_serverto exit. - Copy the files.
- Start the server.
Do not kill the process to begin a backup.
Live backup
text
save hold
save query
save resumesave holdrequests a snapshot and returns before it is necessarily ready.- Repeat
save queryuntil it says the files are ready. - Copy only the files it lists.
- Truncate every copied file to its listed byte length. The server keeps writing, so this step matters.
- Always run
save resume, even if copying fails.
When ready, save query prints Data saved. Files are now ready to be copied. and one comma-separated line. Paths start inside worlds/. The list pairs each path with a byte count, separated by a colon. For example, World/db/000123.ldb:45678 means keep exactly 45678 bytes.
A plain folder copy is not a live backup
Skipping truncation can create a backup that fails only when restored.
Scripts can use LevelStorage for the same workflow.
Restore
- Stop the server.
- Rename the damaged world; do not delete it.
- Copy the backup into
worlds/. - Match
level-name, start, and inspect the log.
Test this regularly. Keep copies on another device, and several generations of them.