Commands/save

From Minecraft Wiki
Jump to: navigation, search

These commands manage server saves.

save-all[edit]

Information icon.svg
This feature is exclusive to Java Edition.
save-all
Restrictions

Multiplayer
Operator
No command blocks

First introduced

Java Edition Alpha v1.0.16_02

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[edit]

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[edit]

CommandTriggerJava Edition
anyif an error occurs (such as the data storage device being full, or another copy of Minecraft has the map open) Failed
On successTurn off automatic saving.

Output[edit]

CommandEditionSituationSuccess Count/execute store succeess .../execute store result ...
anyJava EditionOn failN/A00
On successN/A11

save-off[edit]

Information icon.svg
This feature is exclusive to Java Edition.
save-off
Restrictions

Multiplayer
Operator
No command blocks

First introduced

Java Edition Alpha v1.0.16_01

Disables the server writing to the world files. All changes are temporarily queued.

Syntax[edit]

save-off

Result[edit]

CommandTriggerJava Edition
anyif automatic saving have already been turned off Failed
On successTurn off automatic saving.

Output[edit]

CommandEditionSituationSuccess Count/execute store succeess .../execute store result ...
anyJava EditionOn failN/A00
On successN/A11

save-on[edit]

Information icon.svg
This feature is exclusive to Java Edition.
save-on
Restrictions

Multiplayer
Operator
No command blocks

First introduced

Java Edition Alpha v1.0.16_01

Enables the server writing to the world files.

Syntax[edit]

save-on

Result[edit]

CommandTriggerJava Edition
anyif automatic saving have not been turned off Failed
On successTurn on automatic saving.

Output[edit]

CommandEditionSituationSuccess Count/execute store succeess .../execute store result ...
anyJava EditionOn failN/A00
On successN/A11

save[edit]

Information icon.svg
This feature is exclusive to Bedrock Edition.
save
Restrictions

Multiplayer
Operator
No command blocks

First introduced

Bedrock Edition 1.6.1

Prepares a backup, queries its status, or resumes.

Syntax[edit]

save <hold|query|resume>

Result[edit]

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[edit]

Java Edition Alpha
v1.0.16_01Added /save-all, /save-off and /save-on.
Bedrock Edition
1.6.1Added /save.