/save
< Commands
These commands manage server saves.
save-all
[edit | edit source]This feature is exclusive to Java Edition.
/save-all| Permission level required |
4 |
|---|---|
| Restrictions |
Dedicated server |
{
"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
[edit | edit source]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
[edit | edit source]
| 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
[edit | edit source]
| 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
[edit | edit source]This feature is exclusive to Java Edition.
/save-off| Permission level required |
4 |
|---|---|
| Restrictions |
Dedicated server |
{
"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
[edit | edit source]save-off
Result
[edit | edit source]
| Command | Trigger | Java Edition |
|---|---|---|
| Any | Level file writing has already been turned off. | Failed |
| Otherwise | Successful |
Output
[edit | edit source]
| 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
[edit | edit source]This feature is exclusive to Java Edition.
/save-on| Permission level required |
4 |
|---|---|
| Restrictions |
Dedicated server |
{
"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
[edit | edit source]save-on
Result
[edit | edit source]
| Command | Trigger | Java Edition |
|---|---|---|
| Any | Level file writing has not been turned off. | Failed |
| Otherwise | Successful |
Output
[edit | edit source]
| 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
[edit | edit source]This feature is exclusive to Bedrock Edition.
/save| Permission level required |
4 |
|---|---|
| Restrictions |
Cheat only |
{
"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
[edit | edit source]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
[edit | edit source]
| 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
[edit | edit source]| Java Edition Alpha | |||||||
|---|---|---|---|---|---|---|---|
| v1.0.16_01 | Added /save-all, /save-off and /save-on. | ||||||
| Bedrock Edition | |||||||
| 1.6.1 | Added /save. | ||||||
External links
[edit | edit source]- "
/saveCommand" – Microsoft Learn, October 11, 2023.