Short answer: stop the server, put the old world aside instead of copying on top of it, then copy the whole folder in one go. From a terminal: scp -r user@server:/path/to/world ./ to download, scp -r ./world user@server:/path/to/ to upload. rsync does the same, faster the second time. The rest of this guide covers the traps that leave a world broken or half-copied.
Before copying
- Stop the server, or at least run
/save-offthen/save-alland wait for “Saved the game”. A running server keeps rewriting region and player files, and a copy taken in the middle of a write is damaged. Run/save-onafterwards. - Find the world's real name: it is
level-nameinserver.properties,worldby default. - Keep the old copy: rename it (
mv world world-old) rather than copying over it. You delete it once the new one works.
The world/world trap
With scp -r and cp -r, the result depends on whether the destination already exists:
scp -r user@server:/srv/mc/world ./Desktop/worldcreatesDesktop/worldif it doesn't exist yet, but if it does, you getDesktop/world/world, which Minecraft can't open.scp -r user@server:/srv/mc/world ./Desktop/, giving only the parent folder, always ends asDesktop/world. Use this form.
With rsync, the trailing slash on the source decides: rsync -a server:/srv/mc/world/ ./world/ copies the contents of world into ./world, whatever exists. Add -n first to see what it would do without copying anything.
Copying on top of an old world mixes them
Neither scp nor rsync replaces a folder as a whole: files with the same name are overwritten, and files that only exist in the old folder stay. You end up with regions, players and maps from two different worlds. Either move the old folder away first, or use rsync -a --delete, which removes files the source doesn't have. Check the command twice with -n before using --delete.
Paper and Spigot split the dimensions
A single-player world keeps the Nether and the End inside it, in DIM-1 and DIM1. Paper, Spigot and Bukkit servers keep them in separate folders next to the world: world_nether/DIM-1 and world_the_end/DIM1. When you move a world between the two:
- Download from Paper: copy all three folders, then move
world_nether/DIM-1andworld_the_end/DIM1intoworldbefore opening it in single player. - Upload to Paper: upload
worldas it is. Paper moves the Nether and End out on first start (keep a backup in case). - Vanilla and Fabric servers use the single-player layout, so nothing moves.
Useful commands
| Goal | Command |
|---|---|
| Download a world | scp -r user@server:/srv/mc/world ./ |
| Upload a world | scp -r ./world user@server:/srv/mc/ |
| SSH on another port | scp -P 2222 -r … (capital P) or rsync -e "ssh -p 2222" … |
| Fast repeat copies | rsync -avz --progress user@server:/srv/mc/world/ ./world/ |
| Skip logs and the editor's history | rsync -av --exclude 'logs/' --exclude '.dat-editor-history/' … |
| One file instead of thousands | tar czf world.tar.gz world, copy that, then tar xzf world.tar.gz |
On Windows 10 and 11, scp works in PowerShell as is. WinSCP, FileZilla and Cyberduck do the same with drag and drop: download the whole folder, and on upload choose to replace the folder rather than merge into it when they ask.
After an upload
- Permissions: if the server runs as its own user, give the files back to it, for example
chown -R minecraft:minecraft world. Otherwise it may fail to save, or start a new empty world. - Name: the folder must match
level-nameinserver.properties, or the server creates a fresh world next to it. - Players lose their inventory? A single-player world stores your inventory in
level.dat, and on a server each player has their own file inplayerdata. If the server runs in offline mode, UUIDs differ too: see switching online/offline mode. - Check before deleting the old copy: open the world, walk to a few places you know, and look at your inventory. To edit files right on the server instead of copying them back and forth, mount it over SFTP.