Commands/save
Minecraft Wiki article. Categories: Java_Edition_specific_information, Bedrock_Edition_specific_information, Commands
This article is reproduced from Commands/save on the Minecraft Wiki. Mirrored from revision 3506722. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
These commands manage server saves.
save-all
/save-all{
"title": "<code>/save-all</code>",
"rows": [
{
"field": "4",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "Dedicated server<br>",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Saves the server to the data storage device.
Syntax
save-all
- Normal mode. Saves player data immediately. Marks all chunks as needing to be saved. They get saved over time to the data storage device.
- This includes when auto-saving has been disabled using the "save-off" command. (see below)
save-all flush
- All the players and chunks are saved to the data storage device immediately, freezing the server for a short time.
Result
| Command | Trigger | Java Edition |
|---|---|---|
| Any | The command is incomplete. | Unparseable |
| An error occurs (such as the data storage device being full). | 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
/save-off{
"title": "<code>/save-off</code>",
"rows": [
{
"field": "4",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "Dedicated server<br>",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Disables the server writing to the level files (except player, advancement, stat files), in order to copy them for backup. All level changes are temporarily queued. This option is reset each time the server restarts.
Syntax
save-off
Result
| Command | Trigger | Java Edition |
|---|---|---|
| Any | Level file writing has 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
/save-on{
"title": "<code>/save-on</code>",
"rows": [
{
"field": "4",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "Dedicated server<br>",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Enables the server writing to the level files.
Syntax
save-on
Result
| Command | Trigger | Java Edition |
|---|---|---|
| Any | Level file writing has 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
/save{
"title": "<code>/save</code>",
"rows": [
{
"field": "4",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "(link to Cheat article, displayed as Cheat) only<br>Dedicated server<br>",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Prepares a backup, queries its status, or resumes.
Syntax
save hold- Disables the server writing to the world files. All changes are temporarily queued.
save query- Shows the path of every file and the amount of bytes to truncate it separated by a colon.
save resume- Enables the server writing to the world files.
Result
| Command | Trigger | Bedrock Edition |
|---|---|---|
| Any | The command is incomplete. | Unparseable |
save hold | File writing has already been turned off. | Failed |
save query | File writing has not been turned off. | |
save resume | File writing has not been turned off. | |
| Any | Otherwise | Successful |
History
Java Edition
| Java Edition Alpha | |||||||
|---|---|---|---|---|---|---|---|
| v1.0.16_01 | server 0.1.2 | Added /save-all, /save-off and /save-on. | |||||
Bedrock Edition
| Bedrock Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.6.1 | Added /save. | ||||||
External links
- "
/saveCommand" – Microsoft Learn, October 11, 2023.
Navigation
Sources
- Commands/save — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3506722.