---
title: "Minecraft server backups: what to save and how to restore · CloudSat"
description: "Back up a Minecraft server properly: the files that matter on Java and Bedrock, clean saves while players are online, off-server copies and tested restores."
url: https://cloudsat.io/learn/minecraft-server-backups-and-restores
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Gaming](https://cloudsat.io/learn/topic/gaming)

# Minecraft server backups: what to save and how to restore

Back up a Minecraft server properly: the files that matter on Java and Bedrock, clean saves while players are online, off-server copies and tested restores.

CloudSat team November 18, 2026 8 min read

A Minecraft world is months of work stored in a few gigabytes of files that change every few seconds. It is rarely lost to anything dramatic. The usual causes are ordinary: a crash in the middle of a save, a plugin update that mangles its data, a moderator with too much access, an upgrade that cannot be undone, or a disk that quietly fills up. This guide covers what a complete backup holds on Java and Bedrock servers, how to copy a world while the server keeps running, where the copies should live, and how to restore one without making things worse.

## What a complete backup contains

The world folder is the obvious part. A server that comes back with the right world but the wrong whitelist, operator list or plugin data is only half restored, so copy the whole set:

| Server | Files and folders | Why they matter |
| --- | --- | --- |
| Java, vanilla, Fabric, NeoForge | `world/`, including `DIM-1` and `DIM1` inside it | Overworld, Nether and End in one folder |
| Java, Paper and other Bukkit-based servers | `world/`, `world_nether/`, `world_the_end/` | Each dimension lives in its own folder |
| Java, all | `server.properties`, `ops.json`, `whitelist.json`, `banned-players.json`, `banned-ips.json` | Settings, seed and who may join |
| Java with plugins | `plugins/` | Jars plus configs and databases: claims, economy, rollback logs |
| Java with mods | `mods/`, `config/`, `defaultconfigs/` | The exact mod files and their settings |
| Bedrock Dedicated Server | `worlds/<level-name>/`, `server.properties`, `allowlist.json`, `permissions.json` | World database, settings and access |
| Bedrock with add-ons | `behavior_packs/`, `resource_packs/` | Packs the world expects to find |

Two details trip people up. First, the dimension layout depends on the server software. A Paper backup that only includes `world/` restores an Overworld with no Nether and no End. Second, record the exact game version and server build next to every backup. Keep the server jar too, since it is small and a restore should not depend on finding an old build. You can leave out `logs/`, `crash-reports/`, `cache/` and `libraries/`, which the server rebuilds or downloads again.

## Copy a running world without catching it mid-write

The server writes region files constantly, and an archive taken in the middle of a write can contain a half-saved chunk. Each edition has a way to pause that.

**Java.** Turn automatic saving off, force a full save, copy, then turn saving back on:

```text
save-off
save-all flush
save-on
```

The copy happens between the second and third command. `save-all flush` writes every loaded chunk before the server prints `Saved the game`, so wait for that line rather than guessing. Players stay online the whole time; only the background autosave pauses.

**Bedrock.** Bedrock Dedicated Server has three commands built for backup tools:

```text
save hold
save query
save resume
```

`save hold` prepares the world. Repeat `save query` until it answers with a list of files and their sizes, then copy those files and truncate each copy to the size listed, because Bedrock may still be appending to them. Finish with `save resume`. Skipping the truncation step is the classic way to end up with a Bedrock backup that will not load.

If your community tolerates a nightly restart, a cold backup is simpler still: stop the server, copy the folder, start it again.

## Three copies with three jobs

One backup in one place protects against very little. Split the work:

| Layer | How often | Where it lives | What it saves you from |
| --- | --- | --- | --- |
| Local archives | Every few hours | A backup folder on the server | Griefing, a bad plugin update, an accidental `/fill` |
| Off-server copies | At least daily | Another machine or object storage | Disk failure, a deleted server, malware that reaches the server |
| Whole-server snapshot | Before every upgrade | Your host's snapshot feature | A broken OS, Java or game update |

On CloudSat, [snapshots](https://cloudsat.io/docs/take-a-snapshot) cover the before-upgrade layer, with up to 10 per server. They do not replace the off-server copy, which should sit where nothing running on the game server can delete it.

## Automate it with restic and a systemd timer

restic makes encrypted, deduplicated backups, so every run after the first only stores what changed. The example follows the layout from our [server setup guide](https://cloudsat.io/learn/make-a-minecraft-java-server-step-by-step): the game runs as the `minecraft` user from `/opt/minecraft/server`, inside a tmux session called `mc`, and that this user has an SSH key for a backup account on a second machine. Create the repository once:

```bash
sudo apt install restic
sudo -u minecraft sh -c 'umask 077; head -c 32 /dev/urandom | base64 > /opt/minecraft/.restic-pass'
sudo -u minecraft restic -r sftp:backup@198.51.100.20:/srv/restic/minecraft \
  --password-file /opt/minecraft/.restic-pass init
```

Store a copy of that password somewhere safe off the server. Without it, the repository cannot be read. Then the backup script:

```bash
#!/bin/bash
# /opt/minecraft/backup.sh, runs as the minecraft user
set -uo pipefail
export RESTIC_REPOSITORY="sftp:backup@198.51.100.20:/srv/restic/minecraft"
export RESTIC_PASSWORD_FILE="/opt/minecraft/.restic-pass"
console() { tmux send-keys -t mc "$1" Enter; }

# follow the log before asking for the save, so the reply is not missed
exec 3< <(timeout 180 tail -n 0 -F /opt/minecraft/server/logs/latest.log)
console "save-off"
console "save-all flush"
if ! grep -q -m 1 "Saved the game" <&3; then
  console "save-on"
  echo "save did not complete, backup skipped" >&2
  exit 1
fi
exec 3<&-

restic backup /opt/minecraft/server --tag minecraft \
  --exclude /opt/minecraft/server/logs --exclude /opt/minecraft/server/cache
status=$?
console "save-on"
[ "$status" -eq 0 ] || exit "$status"

restic forget --tag minecraft --keep-hourly 24 --keep-daily 7 --keep-weekly 8 --prune
```

Make it executable with `chmod 750 /opt/minecraft/backup.sh`, then schedule it with a service and a timer:

```ini
# /etc/systemd/system/minecraft-backup.service
[Unit]
Description=Back up the Minecraft server

[Service]
Type=oneshot
User=minecraft
ExecStart=/opt/minecraft/backup.sh

# /etc/systemd/system/minecraft-backup.timer
[Unit]
Description=Minecraft backup every three hours

[Timer]
OnCalendar=*-*-* 00/3:15:00
Persistent=true

[Install]
WantedBy=timers.target
```

```bash
sudo systemctl daemon-reload
sudo systemctl enable --now minecraft-backup.timer
systemctl list-timers minecraft-backup.timer
```

`Persistent=true` runs a missed backup as soon as the machine is back up. The retention line keeps a day of three-hourly points, a week of dailies and two months of weeklies. Check failures with `journalctl -u minecraft-backup`, and run `restic check` now and then to confirm the repository is healthy.

## Restore without making things worse

When something breaks, resist the urge to fix it in place. Stop the server, keep the damaged world, and restore beside it:

```bash
sudo systemctl stop minecraft
cd /opt/minecraft/server
sudo -u minecraft mv world world.broken-$(date +%F)
sudo -u minecraft restic -r sftp:backup@198.51.100.20:/srv/restic/minecraft \
  --password-file /opt/minecraft/.restic-pass snapshots
sudo -u minecraft restic -r sftp:backup@198.51.100.20:/srv/restic/minecraft \
  --password-file /opt/minecraft/.restic-pass restore latest \
  --target /opt/minecraft/restore --include /opt/minecraft/server/world
sudo -u minecraft mv /opt/minecraft/restore/opt/minecraft/server/world ./world
sudo systemctl start minecraft
```

restic recreates the full original path under the target folder, which is why the restored world sits in `/opt/minecraft/restore/opt/minecraft/server/world`. Replace `latest` with a snapshot ID from the list to go further back. On Paper, restore `world_nether` and `world_the_end` the same way if the damage reached them.

### Rolling back one area instead of the whole world

When the damage is local, such as a corrupted chunk or one destroyed base, restore only the region files that cover it. Each region file holds 32 by 32 chunks, or 512 by 512 blocks, and its name comes from the block coordinates divided by 512, rounded down. A base at x 1200, z -300 lives in `r.2.-1.mca`. Copy that file from the backup into `world/region/`, and the files with the same name from `world/entities/` and `world/poi/`, which hold the area's mobs, item frames and villager workstations. Everything else in the world keeps today's progress.

For griefing on a plugin server, a rollback plugin such as CoreProtect is usually the better tool: it undoes one player's changes without rewinding anyone else. Our list of [Paper plugins for a new server](https://cloudsat.io/learn/essential-paper-plugins-for-a-new-server) covers it.

## Test the restore before you need it

Once a month, restore the latest backup on a spare machine or into a separate folder with a different `server-port`, start it, join, and walk around. Check that the Nether exists, that plugin data loaded, and that the date of the newest build matches your expectations. A backup that has never been restored is a hope rather than a plan.

Test before upgrades as well. Minecraft converts worlds forward when a new version opens them, and an upgraded world cannot simply be opened by the old version again. Take a full copy or snapshot before changing the game version, the mod loader or a major plugin, and keep it until the new setup has run for a week.

## FAQ

### How often should I back up a Minecraft server?

Match it to how much play you can afford to lose. Every three to six hours suits most community servers, with a daily off-server copy. Busy servers with active economies back up hourly, which costs little with deduplicated backups.

### Can I back up while players are online?

Yes. With `save-off` and `save-all flush` on Java, or `save hold` and `save query` on Bedrock, players keep playing while you copy. Only the automatic saving pauses, and only for the length of the copy.

### How much storage do backups need?

The first backup is roughly the size of the server folder. After that, deduplicated tools such as restic store only changed data, so a week of frequent backups often takes a fraction of the world's size again. Exploration grows it fastest, because every new chunk is new data.

### My host or Realm already makes backups. Is that enough?

Treat provider backups as one layer, not the whole plan. Realms keep automatic backups and some panels do too, but you want at least one copy that you control, can download and have actually restored once.

**Run it on CloudSat.** Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. [See plans](https://cloudsat.io/plans) or [deploy a server](https://dash.cloudsat.io/console/deploy).

## Keep reading

[All guides in Gaming](https://cloudsat.io/learn/topic/gaming)

- [How to make a Minecraft Java server, step by step](https://cloudsat.io/learn/make-a-minecraft-java-server-step-by-step): Gaming How to make a Minecraft Java server, step by step 7 min read
- [Minecraft server commands: an admin cheat sheet for 26.x](https://cloudsat.io/learn/minecraft-admin-commands-cheat-sheet): Gaming Minecraft server commands: an admin cheat sheet for 26.x 7 min read
- [Game server security: the threats that hit community servers](https://cloudsat.io/learn/game-server-security-checklist): Security Game server security: the threats that hit community servers 6 min read
- [Minecraft server lag: find the cause, then fix it](https://cloudsat.io/learn/find-and-fix-minecraft-server-lag): Gaming Minecraft server lag: find the cause, then fix it 7 min read
