These commands manage server saves.
save-all[]
This feature is exclusive to Java Edition.
Saves the server to the data storage device. Causes the server to mark all chunks and player data as needing to be saved. They are saved over time until all are flushed to the data storage device.
Syntax[]
save-all
- Normal mode.
save-all flush
- All the chunks are saved to the data storage device immediately, freezing the server for a short time.
Result[]
Command | Trigger | Java Edition |
---|---|---|
any | if an error occurs (such as the data storage device being full, or another copy of Minecraft has the map open) | Failed |
Otherwise | Successful |
Output[]
Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
---|---|---|---|---|---|
any | Java Edition | On fail | N/A | 0 | 0 |
On success | N/A | 1 | 1 |
save-off[]
This feature is exclusive to Java Edition.
Disables the server writing to the world files. All changes are temporarily queued.
Syntax[]
save-off
Result[]
Command | Trigger | Java Edition |
---|---|---|
any | if automatic saving have already been turned off | Failed |
Otherwise | Successful |
Output[]
Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
---|---|---|---|---|---|
any | Java Edition | On fail | N/A | 0 | 0 |
On success | N/A | 1 | 1 |
save-on[]
This feature is exclusive to Java Edition.
Enables the server writing to the world files.
Syntax[]
save-on
Result[]
Command | Trigger | Java Edition |
---|---|---|
any | if automatic saving have not been turned off | Failed |
Otherwise | Successful |
Output[]
Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
---|---|---|---|---|---|
any | Java Edition | On fail | N/A | 0 | 0 |
On success | N/A | 1 | 1 |
save[]
This feature is exclusive to Bedrock Edition.
Prepares a backup, queries its status, or resumes.
Syntax[]
save <hold|query|resume>
Result[]
When the backup is ready, save query outputs the path of every file and the amount of bytes to truncate it separated by a colon.
History[]
Java Edition Alpha | |||||
---|---|---|---|---|---|
v1.0.16_01 | Added /save-all , /save-off and /save-on . | ||||
Bedrock Edition | |||||
1.6.1 | Added /save . |