Tree Host

How to Back Up a Minecraft Server (and Restore It)

Updated · by the Tree Host team

To back up a Minecraft server, stop it and zip the world folder and the plugins folder. To back up while it runs, use save-off and save-all flush in the console, copy the files, then run save-on. To restore, stop the server, swap the world folder for the backup copy and start it again.

Why backups matter more than you think

A world can break in many ways. A plugin update corrupts chunks. A griefer wipes a build. A crash happens while the game is saving. You change the Minecraft version and the world won't load (more on that in our guide to changing the version of your server). A backup turns every one of these from a disaster into a ten minute fix.

The rule most server owners learn the hard way is simple: a backup you have never restored is only a hope. This guide shows how to make backups, how to automate them and how to test that they work.

1. Know what to copy

Not every file matters equally. Here is what each part of a Java server folder holds.

PathWhat it holdsBack it up?
world/Your map: terrain, builds, chests, player data and, on newer versions, the Nether and EndAlways
world_nether/, world_the_end/The Nether and End on some Paper and Spigot setupsAlways, if they exist
plugins/Plugin jars plus their configs and data (homes, economy, claims)Yes, if you use plugins
server.propertiesYour server settings, including level-nameYes
ops.json, whitelist.jsonOperators and the whitelistYes
logs/, cache/, libraries/Logs and downloaded files the server rebuildsNo

The world folder name comes from level-name in server.properties. If you changed it, back up that folder instead. Our server.properties guide lists every setting in that file.

2. Back up by hand: the safe way

The safest backup is one taken while the server is stopped, because nothing is being written. Do this:

3. Back up while the server is running

Stopping the server for every backup is annoying. On Java Edition you can make a safe copy of a running server with three console commands.

Never forget save-on. While saving is off, changes only stay in memory. If the server crashes before you turn saving back on, you lose everything built since the last save. If you script this, make the script run save-on even when the copy fails.

Some recent versions have been reported to autosave in spite of save-off. Because of that, the stopped-server method is still the most reliable. Use the running method for routine backups, and the stopped method before big changes.

4. Automate it

People forget to back up. Computers don't. Pick a rhythm that matches how much you can afford to lose:

Server typeBackup rhythmWhy
Small friends serverOnce a dayYou lose at most one day of play
Busy survival or SMPEvery 6 hoursBig builds are hard to redo
Before any changeRight before itUpdates, new plugins and world settings are the usual culprits

On a server you run yourself, that means a script and a scheduler such as cron, plus a way to keep only the newest copies so the disk does not fill up. Old backups pile up fast: a world of a few hundred megabytes becomes tens of gigabytes within weeks.

5. Restore a backup

Restoring puts everything back to the moment of the backup. Anything built after that is gone, which is why you rename the current world instead of deleting it.

6. Test your backup

Once a month, unzip a backup into a fresh folder on your own computer, start a local server on the same Minecraft version and walk around. If the world loads and your builds are there, the backup works. This takes five minutes and saves you from finding out too late.

Bedrock servers

Bedrock Dedicated Server has no save-all flush. It uses save hold to prepare the files, save query to check they are ready and save resume to go back to normal. The world sits in worlds/<level-name>. Players who join a Java server through Geyser are covered by the normal Java backup, because the world is a Java world.

How backups work on Tree Host

Tree Host has a Backups tab on every server. It copies your overworld, Nether, End and your plugins/ folder, including plugin configs and data. You can make a named backup with one click while the server runs, and the world is saved first. You can also turn on automatic backups every 6 hours, every 12 hours or once a day. The newest 3 automatic backups are kept, plus up to 5 that you made yourself.

To restore, stop the server and click Restore on a backup. The current world and plugins folder are replaced, so make a fresh backup first if you might want the current state back. You can also download the world as a zip from the same tab. The full steps are in the server help guide, and the features page lists everything the dashboard does.

Backups are a safety net, not a vault. Download a copy of anything you can't lose now and then. Tree Host also hasn't launched yet: you can try the shared demo server, and creating your own servers opens at launch. See the plans for what is coming.

A short checklist

Tree Host servers have one-click and automatic backups, so you can undo a bad update.

More guides

← More guides