The world data, which also includes player inventories, is saved to a folder in the current working directory of the server.
The name of said folder depends on the level-name
setting in server.properties
, and defaults to world
. Thus, you can start a new world and toggle between the saves by simply changing this setting.
Vanilla server commands related to saving/backups:
/save-all
- forces the server to save./save-off
- disables saving; yousaving. You should definitely execute this before making a backup of a running server to ensure that the server doesn't save while you're copying, which could result in a corrupt backup./save-on
- re-enables saving.