/save-all
Forces the server to save all chunks and player data to disk. The flush option ensures data is written synchronously.
Syntax
/save-all [flush]Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| flush | literal | Optional | If specified, forces all data to be written to disk synchronously before returning. |
Examples
/save-allSaves all world data to disk asynchronously.
/save-all flushSaves all data and waits for the write to complete before continuing.
Common Mistakes
- Using /save-all flush too frequently on a live server, synchronous writes can cause lag spikes.
- Assuming saves happen instantly, without flush, the save is asynchronous.
Notes
Automatic saves already happen periodically. Use /save-all before backing up the server to ensure data consistency.
Related Commands
Need a Minecraft server?
Try these commands on Astroworld or host your own server.
Try Astroworld Hosting