Your phone buzzes at 3:04 a.m. and the Discord webhook says the server is down with 40 players online. What you do in the next fifteen minutes decides whether players lose a night or lose a world. This runbook exists to help you spend those minutes on the right commands instead of on panic and a blind restart.
It is written for owners and admins who can read a log but were never taught an order of operations. The timings come from our own crash lab: Paper 26.2, 16 vCPU, a 512 MB heap, an empty test world, and a systemd unit using Restart=on-failure with RestartSec=2. We ended the JVM three different ways and timed what systemd did about it. An empty world boots faster than your live one, so treat every number here as a floor, not a guarantee.
Why Most Crashes Are Not Crashes
A crash is a process that exits. systemd only restarts a process that exits. That single sentence explains almost every “it did not come back” page you will ever get, and it is the reason a triage runbook beats a monitoring dashboard at 3 a.m.
In the lab, a hard kill (kill -9) behaved exactly as advertised. systemd restarted the process in 2.07 seconds, and the server logged “Done” again 7.12 seconds after the kill. That is the happy path, and it is why people trust restart policies.
Out-of-memory was not the happy path. A purpose-built leak plugin drove the JVM to OutOfMemoryError 8.74 seconds after startup, and the server never auto-restarted within 120 seconds. The JVM stayed alive, thrashing in garbage collection, so systemd saw a running process rather than an exit. A frozen JVM was worse still: after a SIGSTOP, nothing restarted it within 95 seconds, and no watchdog thread-dump lines appeared, because a frozen JVM cannot run its own watchdog. External health checks are the only thing that catches that state.
The lesson: uptime is not health. Before you touch anything, work out which of those states you are actually in.
The First 15 Minutes, Minute by Minute
0-2 minutes: declare, stop the loop, preserve evidence
Declare the incident out loud in staff chat so two people are not debugging the same box. Then stop the restart loop with systemctl stop minecraft if the unit is cycling. A looping service rewrites latest.log on every boot and will erase the evidence you are about to collect.
Copy, do not move, the whole logs folder and crash-reports to a dated directory outside the server root. If a Java process is still alive, take a heap dump before you kill it: jcmd <pid> GC.heap_info for a fast summary, then jcmd <pid> GC.heap_dump /var/backups/heap.hprof. The dump is large, so confirm free space first with df -h.
Classify the Failure
Exit codes tell you who ended the process. 137 means 128 + 9, SIGKILL: either you or the kernel OOM killer ended it without warning. 143 means 128 + 15, SIGTERM: a polite stop, usually systemctl stop or a shutdown command. Both count as failures to systemd unless you configured otherwise, which is why a clean planned restart can look identical to a crash in the journal.
Failure class
Symptom
Auto-recovered?
First action
Clean shutdown
Exit 143, “Stopping server” in log
No, by design
Confirm it was planned, then start
Hard exit
Exit 137 or 1, no shutdown lines
Yes, ~2 s in our test
Read journal, check for OOM kill
OOM inside JVM
OutOfMemoryError, process still alive
No
Heap dump, then restart by hand
Frozen JVM
Port open, no ticks, no log lines
No
Thread dump, then hard restart
World corruption
Fails during chunk load, repeats
Loops forever
Stop unit, restore last good world
Plugin crash loop
Same stack trace every boot
Loops forever
Stop unit, disable the plugin jar
Disk full
Odd IO errors, missing Done line
No
df -h and df -i
That is why a crash loop needs systemctl stop before you edit anything. While the unit keeps restarting, your edits race the boot sequence, half-written configs get read, and the log you need is truncated. Stop the service, fix the file, then start once and read the result. If you are unsure how much history you are losing, our guide to reading Minecraft server logs covers where Paper writes each message.
Stabilise and Recover
5-10 minutes: remove the cause, not the symptom
With the unit stopped, disable the suspect plugin by renaming the jar (mv plugins/Suspect.jar plugins/Suspect.jar.disabled) so a later restart cannot load it. Then confirm the JVM was not killed by the kernel rather than Java itself:
Raising heap is the most misapplied fix on the internet. Set -Xms equal to -Xmx, leave room for the OS, the page cache, and any other JVM on the box, and remember that a heap larger than physical RAM converts a Java error into a kernel kill. A 512 MB heap was enough for an empty world and is nowhere near enough for 40 players with plugins, which is exactly why the lab numbers are floors.
If the world itself is the problem, restore the last known-good world and config set from your automated backups and accept the rollback. A partially loaded region file will otherwise crash you again on the next boot, ten seconds after players rejoin.
10-15 minutes: verify, then communicate
Join with a test account. Check TPS and MSPT with /tps and /mspt, watch chunk loads as you fly, confirm permissions and economy commands still resolve, and only then reopen the whitelist or the proxy. Tell players what happened in one sentence, when it was fixed, and whether anything rolled back. Silence is what turns a 12-minute outage into a trust problem.
Prevent the Next 3 A.M. Page
Automation covers exits, not health. Configure systemd.service with Restart=on-failure, a short RestartSec, and StartLimitBurst so a broken jar cannot hammer the CPU forever. Then add an external check that queries the port and TPS from outside the JVM, because in our SIGSTOP test the frozen process produced no watchdog output at all. For tuning advice, read the PaperMC documentation rather than copying flags from a forum post.
Alert on MSPT and player count, not just on process state. Pair that with scheduled restarts at a quiet hour, and write a postmortem every time.
Root cause: the specific plugin, file, or allocation.
Detection gap: why monitoring missed it or paged late.
Corrective actions: each with an owner and a date.
Automated vs. manual recovery
Automated pros: fast, consistent, works while you sleep; 2.07 s beats any human response.
Automated cons: restarts on exit only, hides root causes, and can loop a corrupt world.
Manual pros: preserves evidence, catches OOM and frozen states, fixes the cause.
Manual cons: slow, depends on who is awake, easy to skip steps under pressure.
Use both. Let systemd handle exits, and let a human handle anything a restart fails to fix twice.
Common mistakes and how to avoid them
Restarting first. You overwrite the log that names the cause. Copy evidence at minute zero.
Editing configs during a crash loop. Stop the unit; racing boots produce half-read files.
Raising heap blindly. Bigger than RAM means the kernel kills you, not Java.
Trusting uptime. A frozen JVM reports “active (running)” while doing nothing.
Never testing restores. A backup you have not restored is a guess.
Ignoring inodes.df -i catches a full disk that df -h hides.
Expert tip: keep a one-page card taped to your desk with the five commands above. Under pressure, nobody remembers flags, and a card beats a search engine.
Frequently Asked Questions
What does exit code 137 mean for a Minecraft server?
The process was ended by SIGKILL, which is 128 + 9. Either someone ran kill -9 or the Linux OOM killer stepped in. Check dmesg -T | grep -i oom and the unit’s journal before restarting.
Why did systemd not restart my server after an OutOfMemoryError?
Because the JVM never exited. It stayed alive and thrashed while systemd kept seeing a running process. In our lab test it did not recover within 120 seconds. You must restart it by hand, and take a heap dump first if you want to find the leak.
How do I stop a Minecraft server crash loop?
Run systemctl stop minecraft so the unit cannot restart, then read journalctl -u minecraft -n 200 and logs/latest.log. Rename the suspect plugin jar or roll back the world, then start the service once and watch the full boot.
How long should a Minecraft server take to restart after a crash?
On our test box systemd relaunched the JVM 2.07 seconds after a hard kill, and the server logged Done again 7.12 seconds later. A production world with plugins and pregenerated chunks takes far longer, so plan for 30 to 90 seconds and alert on anything beyond that.
Conclusion
Fifteen minutes of ordered work beats three hours of guessing. Stop the loop, keep the evidence, classify the failure, remove the cause, then verify before you reopen. If a crash ever looks like a freeze, remember that no JVM can diagnose itself once it has stopped scheduling, which is why your monitoring has to live outside it. For official flag reference, keep the jcmd documentation and the kernel OOM tunables bookmarked. Then rehearse the runbook on a test box this week, while nobody is watching.
This guide exists to help you stop losing the parts of your Minecraft server that are not blocks. Most owners back up the world, feel safe, and then discover after a crash that every player rank is gone, the shop balances reset, and CoreProtect has no history to roll back. The world is the biggest file in the folder, not the whole server.
It is written for owners, administrators, and the staff who inherit a server and a backup drive with one lonely world folder on it. The numbers below come from a lab run on Paper 26.2 with Ubuntu 26.04, a 16 vCPU host, and local NVMe. We measured what a full backup set actually contains, timed restic, and compared copying a live SQLite database against the supported backup methods. Then we restored a file and checked its hash.
The World Is Not the Server
Our test server’s backup set came to 260,767,199 bytes, about 249 MiB. Of that, the world was 247,428,400 bytes. Everything else, meaning every plugin configuration, the permission data, the economy database, the whitelist, the server properties, and the startup scripts, fit in roughly 13 MB. That is five percent of the set and about ninety-five percent of the pain when it goes missing.
The two failure modes are different. Losing region files costs you builds and terrain, and players understand that, because the damage is visible. Losing plugin data costs you trust. Ranks disappear, claim ownership detaches from UUIDs, shop chests hold items nobody can prove they owned, and the punishment history you need for a ban appeal is simply absent. Restoring a world from Tuesday while leaving the economy at Friday’s state also duplicates every purchase made in between.
There is a third problem: a world folder alone does not rebuild a server. You need the exact jar, the plugin list with versions, the flags in server.properties, and whatever cron entry ran the restart at 4 AM. That is why the inventory below treats configuration as data, not as something you will “just set up again.”
A Complete Backup Inventory
Work through this table once and add the paths you actually use to your job. The “live copy” column is the important one: it tells you whether a running server will hand you a consistent file.
Region files are written lazily, so a plain copy of a live world can catch a half-written chunk. Send save-off so the server stops writing, then save-all flush so pending writes land on disk, copy, and turn saving back on. On a Paper server that is three console commands, and the window is short enough that nobody notices. Never restore region files while the server is running: it has the old chunks mapped in memory and will happily overwrite your restored data with stale copies.
save-off
save-all flush
# copy world folder, then:
save-on
Databases Need Their Own Method
SQLite in WAL mode keeps recent commits in a separate -wal file until a checkpoint folds them into the main database. Copy the .db file alone and you get a perfectly valid database that is missing the newest rows. Our test made this concrete. A live cp of a 120,000-row database finished in 0.004 seconds and passed integrity_check, yet 1,762 committed rows were absent. Using SQLite’s online backup API took 0.040 seconds, also passed the check, and lost only the 1,150 rows committed after the copy began.
The fix is one line. The SQLite backup API takes a consistent snapshot even while writers are active, and the CLI exposes it as .backup. VACUUM INTO works too and produces a compact copy, and Python’s sqlite3.Connection.backup() is the right tool if you already have a script. Each of these reads the WAL correctly, which cp does not.
sqlite3 plugins/CoreProtect/database.db ".backup '/srv/backup/coreprotect.db'"
sqlite3 plugins/CoreProtect/database.db "VACUUM INTO '/srv/backup/coreprotect-compact.db'"
MySQL and MariaDB
For LuckPerms, shop plugins, and anything else on a real database server, dump with --single-transaction so InnoDB gives you a consistent read without locking players out. Add --routines and --triggers or your stored logic vanishes, and keep binary logs if you want point-in-time recovery. The MariaDB dump documentation covers the flags; our own walkthrough of MariaDB for LuckPerms and CoreProtect covers the schema side.
Use a content-addressed tool rather than a folder of tarballs. restic, Borg, and Kopia all split files into chunks, hash them, and store each chunk once, so a second “full” snapshot of a 249 MiB server costs only what actually changed. With compression on, our first restic backup took 1.178 seconds and produced a 153,851,624-byte repository. We then added one config file and 2,000 database rows. The next run took 0.825 seconds and grew the repository by about 421 KB.
Run the database dumps first and let the snapshot pick up the output, so the two are minutes apart at worst. Snapshotting a live SQLite file is no better than cp, which is why the dump step is not optional. The restic documentation explains the retention and check commands in full; our automated backup setup guide shows how to wire this to a systemd timer, and reducing backup size and time covers pruning logs and caches. Our timings came from warm cache on local NVMe, so budget more for a cold cache and an off-site upload.
Follow the 3-2-1 rule: three copies, two media, one off-site. The 3-2-1 strategy explainer is a good sanity check. Encrypt the repository, because plugin databases contain IP addresses, private messages, and payment records.
Test the Restore Before You Need It
An untested backup is a hypothesis. In our drill, restoring a single file out of the restic snapshot took 0.745 seconds, and the SHA-256 of the restored file matched the original exactly. That is the whole point of the exercise: you learn the commands, the password location, and the path layout while nobody is shouting in Discord.
Restore into a temporary directory first, never over the live server. Verify checksums, then start a staging instance on a different port with its own directory so you can confirm the world loads, LuckPerms resolves ranks, and the shop plugin reads its tables. Only then do you stop the production server and swap. Our MySQL versus SQLite comparison helps you decide which plugins should even be on a file database.
Quarterly drill checklist
Confirm the repository opens with the stored password file, not a password from memory.
Restore the newest snapshot into an empty directory and verify three checksums.
Boot a staging server on an alternate port and join it.
Check that ranks, claims, balances, and block logs survived.
Record how long the full drill took, and fix whatever surprised you.
Pros and Cons of Each Approach
File-level copies
Simple, readable, and restorable by hand with no tooling. But live databases and region files are inconsistent, there is no deduplication, and a folder of nightly tarballs fills a disk fast.
Database dumps
Consistent and portable across hosts, and a dump can be edited before restore. The downside is restore time on large tables and the need to script each engine separately.
Snapshots
Fast, deduplicated, encrypted, and versioned, which is why a full-server snapshot every hour is realistic. The cost is a repository you must learn, and a snapshot of a live database is still only as good as the flush behind it.
Common Mistakes and How to Avoid Them
Backing up only the world. Add plugin data, access lists, and config to the job the same day you read this.
Copying a live database. Use .backup, VACUUM INTO, or a dump. A file that passes integrity_check can still be missing rows.
Excluding plugin jars. Configs are meaningless without the exact plugin build. Record versions or keep the jars.
Keeping backups on the same disk. A failed NVMe takes the server and the backup together. Push off-site.
Never testing a restore. Schedule the drill and put it in the staff calendar.
No encryption. Player IPs and chat logs are personal data. Encrypt at rest and restrict the key.
Frequently Asked Questions
Does backing up the world folder back up my whole Minecraft server?
No. The world is usually the largest part, but plugin configs, LuckPerms data, economy and protection databases, access lists, and server.properties all live outside it. In our test the world was 247 MB of a 260 MB backup set, and the missing 13 MB held every permission and balance.
Is it safe to copy a live SQLite database with cp?
No. In WAL mode recent commits sit in a separate -wal file, so a plain copy can be valid and still miss rows. In our test cp lost 1,762 committed rows while passing integrity_check. Use sqlite3 .backup, VACUUM INTO, or a python sqlite3 backup connection instead.
How often should I back up a Minecraft server?
Nightly at minimum, plus a manual snapshot before every plugin update, map reset, or version upgrade. With restic or Borg you can run hourly instead, because deduplication means an unchanged server adds almost nothing to the repository.
Can I restore a backup while the server is running?
No. Stop the server before restoring region files or databases. A running server holds chunks and open database handles in memory and will overwrite what you just restored. Restore into a temp directory, verify, then swap.
Make the Full Set, Then Prove It Restores
The world is one folder. Your server is the world plus permissions, economy, protection logs, configuration, and the scripts that keep it running, and all of that fits in a set small enough to snapshot hourly. Start this week: add the missing paths to your job, switch database copies to .backup and mysqldump, push the repository off-site, and run one restore drill into a temp directory.
If you are rebuilding the whole backup pipeline, begin with automated Minecraft server backups on Linux, then add the database layer and schedule the quarterly drill. Your players will never notice a backup. They will absolutely notice a restore.
A status page is the cheapest trust-building tool a Minecraft server can own, and the easiest one to build wrong. Most owners wire a port check to a green dot, then discover during the first real outage that the dot stayed green while players timed out at login. This guide is for owners, admins, and staff who want a page that reports the truth.
It is built on measurement. We ran a 90-second probe loop against a Paper 26.2 server on Ubuntu in our lab, a timed TCP connect to the game port and an RCON list call, logging every sample. We also compared the four realistic ways to publish a status page and read each project’s documentation.
Port Open Is Not Healthy: Three Layers to Check
A Minecraft server can accept a TCP connection on port 25565 while being completely unplayable. The kernel backlog and Netty’s accept threads keep working when the main game thread hangs on a world save, a plugin deadlock, or a garbage-collection spiral. Logins sit at “Joining world” and never proceed, yet a socket connect still finishes in under a millisecond. That gap is why port checks produce false green.
Layer 1, port reachable. A socket connect to 25565 finishes. This catches a dead JVM, a crashed container, a firewall edit, or a suspended VPS. Necessary, cheap, and proof of almost nothing.
Layer 2, tick loop responsive. The server answers a request in plausible time. This catches a hung main thread or a plugin blocking on I/O. A reply in four seconds is worse news than no reply: the server is alive and drowning.
Layer 3, world reacting. An RCON command returns real state, such as list with names and counts. This catches a frozen world and gives you a number to chart.
Most public status pages stop at layer one, the layer players never experience. If you can afford one check beyond the port, make it an RCON round trip; the protocol is documented at wiki.vg/RCON and runs on a port you already control.
What 90 Probes Measured on a Paper Server
The lab server was a Paper 26.2 build on Ubuntu with no plugins, sampled once per second for 90 seconds from localhost. Each sample did a timed TCP connect to 25565 and a timed RCON list, recording success and latency.
Check
Samples
Success rate
Median
p95
TCP connect to 25565
90
100%
0.41 ms
0.65 ms
RCON list round trip
90
100%
3.08 ms
4.81 ms
The absolute numbers matter less than their scale. A full port-plus-command probe costs about 3.5 milliseconds and no measurable CPU, so at 60-second intervals it is 1,440 probes and roughly five seconds of work per day. “We cannot afford to monitor often” is the wrong conversation.
The two decisions that shape the design are where the probe runs and what a failure means. A probe on the same box cannot see the failures players complain about most: a dead ISP uplink, a route flap, or a saturated NIC. Those look healthy from inside the machine, while an off-site probe travels the same path your players do. Run a fast local probe for ticks and a slower outside one for the network.
A Drop-In Probe You Can Run Anywhere
This script uses only the standard library and writes one JSON object per line, so the log stays append-only and readable by a static page. Set RCON_PASS and point HOST at your public address when running it elsewhere.
Schedule it with cron as * * * * * /usr/bin/python3 /opt/mc-probe/probe.py, with a systemd timer every two minutes, or in a container via docker run --network host. A $4 VPS is enough for the off-site copy, and it can host the public page too. Because the output is one JSON line per sample, a single HTML template can read the last 1,440 lines and draw a 24-hour uptime bar without a database. Keep that log somewhere durable, the habit behind How to Set Up Automated Minecraft Server Backups on Linux.
Hand-Rolled, Uptime Kuma, or Commercial: The Tradeoffs
Option
Cost
Setup effort
Minecraft-aware
Alerting
Hand-rolled probe plus static page
VPS only, ~$4/mo
2 to 4 hours
Full, you write the checks
Whatever you script
Uptime Kuma, self-hosted
VPS or spare box
20 to 30 minutes
TCP, HTTP keyword, push monitors
90+ channels, including Discord
Pterodactyl panel status
Included with panel
None
Container and process state only
Panel and email
Commercial monitors
Free tier, paid from ~$7/mo
5 minutes
Port and keyword checks
Email, SMS, webhooks
Uptime Kuma is the pragmatic default for most communities. It is a single Node application, it stores history in SQLite, it ships a clean public status page, and its monitor types cover TCP ports, HTTP responses, and keywords, which is enough for layers one and two if you expose a small health endpoint. Its weakness is shared with every self-hosted monitor: if it runs on the machine it watches, it dies with it.
Commercial monitors are the least effort and the least insight. They will check that port 25565 answers from three continents, which spots regional routing problems, but they cannot tell you the tick loop is stalled. Pterodactyl’s built-in status is a container view: it says the process is running, which you already knew.
Alerts That Respect Sleep, and What List Pings Really Show
An alert that fires on the first missed packet trains staff to ignore alerts. Stagger the thresholds. Three consecutive failures at a 60-second interval is three minutes of real downtime, worth a Discord ping. Ten minutes deserves a louder message. Twenty minutes with no recovery should reach a phone, and a recovery notice closes the loop.
Down: layer one failing, three consecutive samples, webhook plus a status-page banner.
Cannot tick: port open but RCON failing or slower than two seconds, warning at five minutes.
Degraded: RCON answering but MSPT above 50 for ten minutes, no page, just a channel note.
Recovered: always send it, even at night.
Suppress alerts during planned work. A maintenance window that mutes the monitor for the restart and the two minutes after it removes most false pages, and How to Set Up Scheduled Restarts Without Angering Players shows how to make restarts predictable. Keep the window short.
A ping is not a status page
Server list ping and a status page answer different questions. The ping is the handshake your client performs when it refreshes the multiplayer list, documented at wiki.vg/Query: it returns the MOTD, version, protocol number, and player count. It says nothing about whether a login will succeed, and it is rate-limited and cached by clients and list sites. Because it is answered before the world is involved, it stays green while the tick loop is frozen. Players see a nice MOTD, then get stuck at “Joining world”.
Pros and Cons of Running Your Own Status Page
Pro: it tells the truth. You choose the checks, so you report tick health and player counts instead of a decorative port light.
Pro: it costs almost nothing. About 3.5 ms per sample, one small VPS, one cron entry.
Pro: it is a support tool. When a player says the server is down, you link the page.
Con: you own the outages. The monitor, the page, and the DNS break eventually, usually during the incident they were meant to catch.
Con: it needs tuning. Thresholds and routing are ongoing work.
Common Mistakes That Make Monitoring Useless
Monitoring from the same box you host on. The monitor shares the failure domain, so a dead network takes both down and you learn nothing.
Probing so often you look like an attack. Dozens of parallel connections can trip host anti-DDoS rules. Stay at 30 to 60 seconds.
Ignoring the restart pattern. Uptime alone hides a server that restarts every four hours and recovers in 40 seconds.
Treating 99.9 percent as a promise. It is a measurement of the past. The same figure still allows 43 minutes of downtime a month.
Forgetting the human path. An alert that only lands in an unread channel is a log entry, not an alert.
Two habits separate a page people trust from one they ignore. Log MSPT alongside uptime so you chart health, not existence, and write the server and probe versions into every row. When a Paper update introduces a stutter, that column dates the change.
Frequently Asked Questions
What is the difference between a server list ping and a status page?
A ping is the handshake your client sends to refresh the multiplayer list. It returns the MOTD, version, and player count, and it is rate-limited and cached. A status page probes the port and the game loop repeatedly, so it reports downtime a ping cannot see.
Can Uptime Kuma monitor a Minecraft server?
Yes. Add a TCP port monitor for 25565 to catch a dead server, and a push monitor fed by your own probe to catch a stalled tick loop. Host it on a different machine than the server it watches.
How often should I probe a Minecraft server?
Every 30 to 60 seconds suits almost everyone. Our probe cost about 3.5 ms, so the limit is not load but your host’s anti-DDoS rules and alert noise.
Why did the TCP check pass while players still report lag?
The socket is accepted by the kernel and by Netty’s accept threads, which keep working while the main game thread is blocked. A port check only proves something is listening. Probe an RCON command and time it to prove the tick loop answers.
Start With One Probe From Outside the Box
You do not need a monitoring stack to begin. Add the RCON check to a script, run it from a cheap VPS, log one JSON line per minute, and point a single page at the log. That takes an afternoon and beats every green dot that only tests a port. Once the page is trustworthy, layer alerts on top, then add MSPT and restart counts so the graph shows health. If you run a How to Set Up a "Fallback" Server: Prevent Downtime, monitor both addresses.
The Ubuntu versus Debian question turns up in nearly every “first Minecraft server” thread, and the replies are usually brand loyalty in a trench coat. For a JVM game server only a few differences change your day: kernel age, package freshness, how much memory the OS holds at idle, and whether you can install the Java version Paper wants. This comparison stays on those, because they are the ones you will live with at 2 a.m. when a restart fails.
We installed both minimal on identical 4 GB VMs, measured memory and disk right after boot, then ran the same Paper 1.21 build with identical flags on each. It is written for owners choosing a VPS template, admins who inherited a machine, and staff who have to justify the choice in a wiki page. Neither distro is faster at serving chunks. The decision is about maintenance, not speed.
Release Cadence, Kernel Age, and Support Windows
Debian freezes at release and stays frozen. Debian 13 “Trixie” landed in August 2025 with kernel 6.12, and the packages inside it barely move until Debian 14 ships, apart from security patches. Ubuntu takes that same base, refreshes it every six months, and freezes an LTS every two years in April. Debian is a snapshot with a long warranty; Ubuntu LTS is a snapshot with a newer starting point.
Debian 13
Ubuntu 24.04 LTS
Ubuntu 26.04 LTS
Kernel at release
6.12
6.8
Newer than 6.8
Release rhythm
Every ~2 years
Every 2 years, April
Every 2 years, April
Security support
~2028
2029
2031
Extended support
LTS to ~2030
ESM with Ubuntu Pro
ESM with Ubuntu Pro
Default OpenJDK
21
21
21 or 25
Kernel age. Newer kernels handle recent NICs, NVMe controllers, and hybrid CPU scheduling better. Older ones have fewer regressions. Neither changes TPS, because Paper is limited by the JVM and single-threaded chunk work.
Package freshness. glibc, OpenSSL, and the default JDK are newer on Ubuntu. Debian backports fixes instead of versions, which is safer and sometimes leaves a tool two years behind.
Support window. Both outlive your world. Neither vendor is going to strand you next year, so this should not decide it.
If the hardware is brand new, the newer kernel is the safer bet. If you want the machine to stop changing under you, Debian wins. Full release notes live at debian.org/releases/stable and ubuntu.com/server/docs.
RAM, Disk, and Idle Footprint at a Clean Boot
On our VMs, a panel-less Debian 13 install used roughly 140 MB of RAM after boot and about 1.3 GB of disk. Ubuntu 24.04 Server used roughly 420 MB and 2.6 GB. The gap is real, and it is not mysterious: snapd, cloud-init, needrestart, multipath tooling, and a larger set of enabled units. A minimal Debian install is close to a kernel, systemd, and sshd, which is exactly what a headless Minecraft box needs.
Then put it in perspective. A Paper server with -Xmx6G plus off-heap allocations will sit near 7 GB resident. The 280 MB the distro costs you is noise, and it disappears the moment you install a panel or a second service. Choose on RAM only if you are squeezing a 1 GB or 2 GB VPS, where 280 MB is a plugin’s worth of headroom.
Swap and journald defaults
Ubuntu’s installer writes a swap file, usually sized to RAM and capped by available disk, so a fresh 4 GB VPS boots with 4 GB of swap. Debian’s guided partitioning makes a swap partition, but an unattended or minimal install often leaves you with none at all. That matters: without swap, a JVM that overshoots its heap gets the OOM killer instead of a slow page file. Check with swapon --show, and on Debian add a 2 GB file if the line is empty.
Both distros persist the journal to /var/log/journal, and both let it grow. On a 25 GB VPS that quietly eats gigs. Cap it in /etc/systemd/journald.conf with SystemMaxUse=500M and restart systemd-journald, on either system, and read errors with journalctl -u minecraft once logs are trimmed.
Package Tooling: Snaps, PPAs, and apt-Only
Ubuntu ships software-properties-common, so add-apt-repository works out of the box, PPAs are one command, and snapd is installed and running whether you want it or not. Debian is apt and nothing else by default: no snapd, no PPAs, third-party repositories added by hand with a signed keyring, and newer packages pulled from backports rather than a vendor channel.
Where Ubuntu annoys people running servers:
Snap auto-refresh can restart a snapped service on its own schedule, which is the last thing you want mid-backup.
Every snap is a loopback mount, so df output fills with noise on a small disk.
PPAs are pinned to a release name. Upgrade to the next LTS and third-party entries break until you re-add them.
Where Debian annoys people: no PPA convenience, and if you want a newer Maven, JDK, or monitoring agent you either enable backports or manage an external repo and its key yourself. Since Debian 12, apt-key is gone and every third-party repo needs signed-by= in the source line, which trips up copy-pasted tutorials.
Java: Default Repos, Temurin, and the Same systemd Unit
Java is the one package that genuinely decides whether your server boots. Modern Paper builds target Java 21 and newer, and the newest Mojang versions have started pushing toward 25. Debian 13 and Ubuntu 24.04 both ship OpenJDK 21 in the default repos, so apt install openjdk-21-jre-headless works on both and gets you a working server today.
When the repo is behind, the fix is identical on both distros. Adoptium publishes a signed apt repository for Debian and Ubuntu, and a plain tarball for anything else, so adoptium.net gives you Temurin 21 or 25 with the same two commands regardless of which base you chose. That is the great equalizer: no distro has a monopoly on a good JDK.
The service definition does not change either. Create /etc/systemd/system/minecraft.service:
Then systemctl daemon-reload, enable --now minecraft, and check java -version reports the same build your unit points at. On Debian, install openjdk-21-jre-headless; on Ubuntu, the same. The unit above is byte-for-byte portable. Paper’s own requirements are at docs.papermc.io.
Support Ecosystem, Host Images, and Picking One
Ubuntu has more tutorials, and the numbers are not close. Ask a search engine how to install anything, and the top results assume Ubuntu. Paper’s docs use Debian-family commands but lean on Ubuntu examples, and most video guides for panels, backups, and firewalls are recorded on Ubuntu. Debian rewards command-line fluency: fewer guides, but the ones that exist are accurate, and the system is small enough that you can read what it does.
Hosting images tell their own story. Most game panels, including Pterodactyl’s yolks images, are built on Debian slim. If you rent a Minecraft panel, you are already running Debian underneath, whether or not the marketing says so. If you rent a plain VPS and pick the template yourself, Ubuntu is usually the default for a reason: more hand-holding when the network stack misbehaves.
Decision table
Your situation
Pick
Why
First home server, learning as you go
Ubuntu Server LTS
More guides, newer kernel for recent hardware
Small 2-4 GB VPS, one Paper server
Debian stable
Lowest idle footprint, fewer services to patch
Rental host or panel image
Whatever ships
The provider controls the kernel and updates
Single-purpose headless box, set and forget
Debian stable
Frozen packages, minimal moving parts
And when the answer is simply “whatever the host offers,” that is fine. Both need the same three hardening steps: key-only SSH, a default-deny firewall (ufw or nftables), and unattended-upgrades for security patches. Our SSH keys and UFW firewall guide covers the exact rules, and the 10-minute Ubuntu Server install guide walks the other path end to end.
Pros and Cons of Each
Ubuntu Server
Pros: newest kernel and JDK, the largest tutorial ecosystem, HWE kernels, five years of free security updates, predictable April LTS dates.
Cons: snapd runs whether you want it or not, roughly 300 MB more RAM at idle, more enabled services, release upgrades every two years if you chase them.
Debian stable
Pros: smallest idle footprint, no snap layer, glacial package churn, the base every game panel image is built from, excellent documentation for admins who read it.
Cons: older kernel and userland, no PPAs, third-party repos need manual keyring work, and fewer beginner-oriented guides that match your exact version.
Common Mistakes and How to Avoid Them
Installing a desktop. Ubuntu Desktop adds a display server and a browser stack, costing 700 MB to 1.2 GB of RAM that should be heap. Use Server or Debian with no GUI.
Running the server as root. Create a minecraft user and run the unit as that user. A plugin exploit should not get root on the host.
Ignoring swap on Debian. No swap file plus a tight heap means the OOM killer, not a slowdown. Check swapon --show before you blame Paper.
Applying random tuning guides. Swappiness and dirty-ratio tweaks pasted from a 2014 forum post usually hurt. Measure first, change one thing, keep notes.
Frequently Asked Questions
Is Ubuntu LTS better than Debian stable for Minecraft?
Neither is inherently better. Ubuntu LTS gives you a newer kernel, a newer default JDK, and far more tutorials. Debian stable gives you a smaller footprint and fewer services to maintain. Pick Ubuntu for new hardware or a first server, Debian for a lean single-purpose box.
Which distro uses less RAM at idle?
A minimal Debian install, typically around 140 MB versus roughly 420 MB for Ubuntu Server 24.04 in our tests. The difference is snapd, cloud-init, and extra services. It is minor next to a 6 GB Java heap.
Do Paper or plugin installs differ between them?
No. The jar, plugins, configs, and JVM flags are identical. Only the package name and Java path can differ, and installing Temurin from Adoptium makes even that the same. The systemd unit ports unchanged.
Should I run Ubuntu Desktop for a server?
No. A desktop session consumes 700 MB to 1.2 GB of RAM and runs services a server never needs. Use Ubuntu Server or Debian and manage it over SSH.
The Short Answer
For a first server or a VPS on current hardware, install Ubuntu Server LTS. For a lean, single-purpose box you intend to leave alone, install Debian stable. Everything above that layer, from the Paper jar to your plugin list to the JVM flags, is identical, which is the most useful fact in this whole comparison. Pick one, harden it, and spend your time on view distance and heap sizing instead of distro shopping. When a plugin inevitably fails, our guide to reading Minecraft server logs will get you to the cause faster than a reinstall ever will.
Every Minecraft server problem eventually becomes a reading problem. The server already told you what broke, in plain text, usually within two seconds of it happening. The trouble is that the answer is buried in four hundred lines of INFO chatter, wrapped in a Java stack trace, and phrased in a dialect that only looks readable once someone shows you the map. This guide is that map. It exists to help you stop guessing, stop restarting blindly, and stop pasting screenshots into Discord hoping a stranger decodes them.
It is written for server owners who administer their own Linux box, for staff who get handed a console tab and told “it crashed”, and for plugin developers who would rather read a log than ask for one. You do not need to know Java to use this. You need to know where to look, what order to read things in, and which lines are the cause rather than the echo.
Everything below was reproduced on purpose. We ran a Paper 26.2 test server (build 129) on Ubuntu 26.04 with Java 25.0.4.1, broke it in seven specific ways, and kept the exact wording of each failure so you can compare it against your own console. That matters, because log wording drifts between versions and between forks, and a tutorial that invents example errors teaches you to look for text that will never appear on your screen.
The Log Level Ladder, Decoded
Minecraft servers log through Log4j 2, which is configured by the log4j2.xml file inside your server jar. The level on each line is a severity tag, not a verdict. Reading it correctly is the first half of triage: it tells you whether you are looking at context, a warning that was handled, or a genuine failure. The Apache Log4j documentation defines the ladder formally; here is what it means on a Minecraft server in practice.
Level
What it usually means here
Do you act?
TRACE
Extremely granular internals, almost never enabled by default. Packet-level or per-tick detail.
No. Noise unless you are debugging a specific subsystem.
Normal operation: world loaded, player joined, plugin enabled, backup finished.
No. This is your timeline anchor.
WARN
Something unexpected that the server worked around. Fallbacks, deprecated calls, ignored config keys.
Often. Not fatal, but it is technical debt.
ERROR
A task failed. A plugin may disable itself, a command may error, an event may drop.
Yes, but read the whole line: the server is usually still running.
FATAL
The process cannot continue. Startup aborts or the JVM exits.
Immediately. Nothing else matters until this is fixed.
The single most expensive misconception in Minecraft administration is that ERROR means the server is down. It does not. A plugin can throw an ERROR, disable itself, and leave the world running perfectly for the other nineteen plugins. You will see the pairing constantly: an error line, then Disabling PluginName, then business as usual. The server is up. One feature is gone. That is a very different incident from a crash, and it needs a very different response.
WARN is not a synonym for broken. A warning that says the server is falling back to a default is information about a config you should fix later.
ERROR is scoped. Ask “what failed”, not “is it dead”.
FATAL is the only level that reliably means stop-the-world. Even then, read upward: the cause sits above the fatal line, not below it.
Absence of errors is not health. A server can sit at 8 TPS with a perfectly clean log.
Where Minecraft Keeps Its Logs
Before you can read a log you have to find it. On a Linux server there are five places worth knowing, and they answer different questions.
logs/latest.log is the live file for the current run. It is rewritten every time the server starts, which is exactly why you should copy it somewhere before restarting. This is the file you tail while the server is running.
logs/2026-10-19-3.log.gz and its siblings are the rotated archives. The number is the run index for that day. These are gzipped, so plain grep will not read them; you need zgrep or zcat. If you restarted to “fix” something, the evidence is here, not in latest.log.
The console is the same stream you see in the terminal or panel, but truncated by scrollback. Never trust it as a record. If it scrolled, it is gone.
journalctl captures stdout and stderr when the server runs under systemd, along with the exit code and the OOM killer’s opinion. This is the only place that survives the JVM dying mid-write, and its filtering is far better than grepping a 200 MB file. See the journalctl manual for the full filter syntax.
crash-reports/ and hs_err_pid*.log appear when the JVM itself dies. A crash report is a formatted summary with the description, the stack, and the loaded plugin list. An hs_err_pid file is a HotSpot fatal error dump: it names the failing frame, the memory map, and the JVM flags. Both are gold when the server vanished without a graceful shutdown line.
Where that output lands is partly a server setting. The vanilla and Paper server.properties options and the Paper configuration reference cover the knobs, but logging behavior itself comes from the bundled Log4j config, and Paper’s official documentation is the place to check before editing it.
Anatomy of a Stack Trace
A stack trace is a receipt for a failure. It has five parts, and once you can name them you can read any of them in about fifteen seconds.
[12:04:31 ERROR]: [Chunky] Failed to load configuration
org.bukkit.configuration.InvalidConfigurationException: while parsing a flow sequence
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:60) ~[paper-api.jar:?]
at com.popcorn.chunky.ChunkyConfig.load(ChunkyConfig.java:47) ~[Chunky-1.4.36.jar:?]
Caused by: while parsing a flow sequence
at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:171) ~[snakeyaml.jar:?]
The exception line is the full class name and the message: InvalidConfigurationException: while parsing a flow sequence. This is what you search for. It is stable across servers and worth quoting verbatim.
The at frames are the call stack, newest call on top. Each frame is class, method, file, and line number. The square-bracket suffix names the jar and version, which is how you learn a failing method lives in Chunky 1.4.36 and not in Paper.
Caused by is the real exception, wrapped by a friendlier one. The last Caused by in the chain is almost always the actual fault. Read these before you read a single frame.
Suppressed appears when cleanup code also fails. It is context, not cause. Ignore it on the first pass.
Line numbers point at the source file of the jar that threw. If the line number is inside a plugin’s own class, the bug is that plugin’s config or code, not the server core.
Top-down versus bottom-up
Read top-down when you want to know what the server was doing: the top frames are the trigger, often an event handler or a scheduled task. Read bottom-up when you want to know why it failed: the bottom of the Caused by chain is the primitive fault. For plugin crashes, the practical habit is to jump to the lowest Caused by, read its message, then walk back up to the first frame that mentions a plugin jar. That pair of lines is your whole diagnosis most days.
Seven Real Errors, Reproduced on a Test Server
These are deliberately triggered failures with the wording left intact. Compare them against your own console before you search the internet; the exact phrasing is what makes a search work.
1. Broken plugin YAML
org.bukkit.configuration.InvalidConfigurationException: while parsing a flow sequence
in 'reader', line 12, column 5:
- [unclosed
expected ',' or ']', but got <stream end>
Caused by: while parsing a flow sequence
One missing closing bracket in a Chunky config produced this. Notice what the message gives you: a file position, line 12, column 5, and a plain-English expectation. The stack is not the story here; the coordinates are. Open the file at that line, fix the bracket, done. Chasing the SnakeYAML frames is wasted effort because the parser is behaving correctly.
2. Missing plugin dependency
[ChestShop] No Economy adapter found! You need to install either Vault or Reserve!
[ChestShop] Disabling ChestShop v3.13-pre-1 (build 474)
Two lines, no stack trace, complete diagnosis. The plugin names its missing dependency, then disables itself. Note the version string, because “ChestShop 3.13-pre-1” is what you will need in a bug report. This is the classic shape of a soft failure: the server is fine, players can still build, but every shop command now fails. If a player reports “shops are broken” and nothing is crashing, this is what you go looking for.
3. Port already in use
**** FAILED TO BIND TO PORT!
The exception was: io.netty.channel.unix.Errors$NativeIoException: bind(..) failed with error(-98): Address already in use
java.lang.IllegalStateException: Failed to bind to port
Starting a second server from a clean directory on port 25565 gave this. The tell is the native errno, error(-98), and the phrase Address already in use. There is nothing wrong with your world, your plugins, or your Java version; something else owns the port. Find it with ss -ltnp, look at the PID column, then decide whether that process is a zombie server you forgot about or a service you should stop properly.
4. Out of memory before the world loads
java.lang.reflect.InvocationTargetException
Caused by: java.lang.OutOfMemoryError: Java heap space
With -Xmx96M, startup died inside Paperclip before any world was touched. That is the lesson: OOM can happen during class loading and library scanning, long before chunks exist. If your startup log ends abruptly with an invocation wrapper, do not assume the plugin list is at fault. Check the Caused by line, then check your start script’s memory flags. The wrapping exception exists only because reflection rethrows checked exceptions, so ignore the wrapper entirely.
5. Watchdog after a 65-second stall
The server has stopped responding! This is (probably) not a Paper bug.
Server thread dump (Look for plugins here before reporting to Paper!):
Current Thread: Server thread
... hundreds of lines ...
Stopping server
We froze the JVM with SIGSTOP for 65 seconds. The watchdog fired, dumped every thread, and killed the server. Read this as evidence, not as blame. The watchdog detected a stall; it did not cause one. Start at the top of the Server thread dump and look for a frame belonging to a plugin jar, because that is where the main thread was when time stopped. Everything below it is the rest of the server idling, and the length of the dump is normal.
6. Datapack metadata warning
Error reading pack metadata, attempting fallback type
com.google.gson.JsonParseException: Pack declares support for version newer than 81, but is missing mandatory fields min_format and max_format
An older datapack loaded anyway, thanks to the fallback. The word “fallback” is your signal that the server is continuing. Fix it because version drift compounds, but do not panic-restart at 2 AM over a WARN.
7. Log spam has a measurable cost
We wiped 2,000 villagers in one event. The server wrote 2,002 lines and 498,607 bytes of Villager was killed, averaging about 249 bytes per line. That is half a megabyte from one command, on one quiet test server. Scale that to a farm running in the background of a 60-player server and you get a log that rotates every hour, destroys your history, and buries the actual error you will need tomorrow. The fix is at the source: reduce the noisy event, raise that logger’s threshold, or filter it out of your daily reading. Either way, spam is not free.
The Seven-Step Triage Workflow
This order is intentional. Each step narrows the search space, and doing them out of order is what produces twenty-minute guesswork sessions over a thirty-second fix.
Note the timestamp and reproduce. Write down the exact time a player reported the problem, then try to trigger it yourself. A timestamp turns a 200,000-line log into a 300-line window.
Find the first ERROR or WARN, not the last line. The bottom of a log is whatever happened to be printing when you looked. The first anomaly is the seed; everything after it is fallout.
Read the exception message and the whole Caused by chain. Skip the frames until this step. Messages are written for humans; frames are written for debuggers.
Identify the thread.Server thread means the main tick loop. A named plugin thread or a ForkJoinPool or pool-N-thread worker means async work. This tells you whether the symptom is a lag spike or a background failure.
Map the top plugin frame to a plugin and version. The jar name in brackets plus the class package usually answers “whose bug is this” without any searching.
Check the config line or dependency name. If the message contains a line and column, open that file. If it names another plugin, confirm it is installed and enabled.
Fix one thing, restart, verify. One change per restart. If you change three things and the error vanishes, you have learned nothing and will meet it again.
Command Cheat Sheet for Linux Servers
These are the commands worth memorizing. Run them from your server directory.
# Watch the live log
tail -f logs/latest.log
# Every error and exception, with line numbers
grep -n -i -E "error|exception" logs/latest.log
# Context around a specific failure
grep -n -B 5 -A 20 "OutOfMemoryError" logs/latest.log
# Search rotated archives
zgrep -i "Failed to bind to port" logs/*.log.gz
# systemd-managed servers
journalctl -u minecraft -f
journalctl -u minecraft --since "2026-10-19 12:00" --until "2026-10-19 12:30"
journalctl -u minecraft -p err -b
# Who owns the port?
ss -ltnp | grep 25565
# Disk and memory pressure
df -h; du -sh logs/
free -h
ps aux --sort=-%cpu | head -n 15
tail -f plus a second terminal is the fastest way to correlate a player action with a log line.
grep -n gives you line numbers so you can reopen the file at the right offset in an editor.
journalctl -p err -b shows only error priority from the current boot, often the cleanest view of a crash you missed.
zgrep is mandatory for archives; plain grep on a .gz file silently returns nothing, which has convinced many admins a log was empty.
ss -ltnp needs root to show the owning process; without it you see the socket but not the PID.
df -h and du -sh logs/ catch the forgotten failure mode where logging filled the disk and the JVM died on write.
Error Text to Cause: Quick Reference
Log text
Likely cause
First check
Address already in use / error(-98)
Another process owns the port
ss -ltnp
OutOfMemoryError: Java heap space
Heap exhausted, or -Xmx too low
Start flags, then free -h
UnsupportedClassVersionError
Java too old for the jar
java -version
No Economy adapter found
Missing Vault or economy provider
Plugin list and load order
while parsing a flow sequence
Malformed YAML in a plugin config
Line and column in the message
has stopped responding! plus thread dump
Main thread stalled past the watchdog limit
Top plugin frame in the dump
Error reading pack metadata
Datapack format drift
pack.mcmeta format fields
Failed to load eula.txt
EULA not accepted
eula=true in eula.txt
Unknown or incomplete command
Typo, or the plugin owning it is disabled
Plugin enabled state
Reporting a Crash the Right Way
When a stack trace genuinely belongs to Paper or a plugin author, your report decides whether you get help. Screenshots get ignored because nobody can search or copy text from them. Paste the full log to a paste service, not a 4,000-character Discord message that truncates the middle, and never post the same log in three channels at once.
Full log from startup to the failure, uploaded to a paste site and linked. The startup block contains every version they need.
Exact versions: server jar and build, Java, the failing plugin and its build number.
Reproduction steps in numbered order, including what you expected to happen.
What you already tried, so nobody repeats your work.
No secrets: strip tokens, database passwords, IP addresses, and player identifiers before pasting. Config files often carry all four.
Raw Logs vs Panels and spark: Pros and Cons
Panels, log viewers, and profilers are excellent additions. They are not replacements, and knowing when each wins saves time.
Raw logs, pros: nothing is filtered out; every line is attributable and searchable; archives survive for weeks; you can script them. Cons: no aggregation, no charts, and a wall of text that hides the signal in the noise.
Panels and viewers, pros: instant access, search highlighting, color by level, readable on a phone. Cons: scrollback limits, dropped lines during a crash, and no access to rotated archives. If the panel lost the line, the panel cannot help.
spark and profilers, pros: they answer “what is eating the tick” in a way no log can, and the output is shareable as a link. Cons: they diagnose performance, not exceptions. A clean profiler run tells you nothing about a missing dependency.
The practical split: logs for correctness and crashes, spark for performance, the panel for convenience. Read the raw file when the answer actually matters.
Common Mistakes and How to Avoid Them
Grepping only the last line. The last line is a symptom of the shutdown, not the cause. Search for the first ERROR or WARN and read forward from there.
Ignoring the first Caused by. The outermost exception is usually a friendly wrapper. The bottom of the chain is the truth.
Pasting an entire log into Discord. It gets truncated at the exact point where the useful frames were. Use a paste service and a link.
Assuming every WARN is fatal. A fallback warning is the server telling you it recovered. Silence it with a config fix, not a rollback.
Deleting or rotating logs before reading them. Copy latest.log to a dated file before every restart. This one habit prevents most “the log is gone” emergencies.
Restarting before reading. A restart overwrites the file that contains your answer.
Changing three things at once. You lose the ability to attribute the fix, which means the problem returns as a mystery.
<!– wp:yoast/faq-block {"questions":[{"id":"faq-question-1","question":"Where are Minecraft server logs stored?","answer":"In the logs folder of your server directory. latest.log is the current run; older runs are saved as dated .gz archives such as 2026-10-19-3.log.gz and must be read with zgrep or zcat. Servers run under systemd also log to journalctl -u <service>.","images":[],"jsonQuestion":"Where are Minecraft server logs stored?","jsonAnswer":"In the logs folder of your server directory. latest.log is the current run; older runs are saved as dated .gz archives such as 2026-10-19-3.log.gz and must be read with zgrep or zcat. Servers run under systemd also log to journalctl -u .”},{“id”:”faq-question-2″,”question”:”Does an ERROR in the log mean my server crashed?”,”answer”:”No. ERROR usually means one task or plugin failed. If the next line says the plugin is disabling itself, the server is still running and only that feature is gone. Only FATAL, a crash report, or a missing shutdown line point to a full crash.”,”images”:[],”jsonQuestion”:”Does an ERROR in the log mean my server crashed?”,”jsonAnswer”:”No. ERROR usually means one task or plugin failed. If the next line says the plugin is disabling itself, the server is still running and only that feature is gone. Only FATAL, a crash report, or a missing shutdown line point to a full crash.”},{“id”:”faq-question-3″,”question”:”How do I read a Java stack trace in a Minecraft log?”,”answer”:”Start with the exception message on the first line, then read the last Caused by in the chain, which holds the real fault. After that, find the first at frame that names a plugin jar. The jar name and version tell you whose code failed; the line number tells you where.”,”images”:[],”jsonQuestion”:”How do I read a Java stack trace in a Minecraft log?”,”jsonAnswer”:”Start with the exception message on the first line, then read the last Caused by in the chain, which holds the real fault. After that, find the first at frame that names a plugin jar. The jar name and version tell you whose code failed; the line number tells you where.”},{“id”:”faq-question-4″,”question”:”How do I fix Address already in use when starting a server?”,”answer”:”Another process already holds the port. Run ss -ltnp | grep 25565 to find the PID, then either stop that process or change server-port in server.properties. The error(-98) line in the log is the native confirm of a port conflict, not a Java or plugin problem.”,”images”:[],”jsonQuestion”:”How do I fix Address already in use when starting a server?”,”jsonAnswer”:”Another process already holds the port. Run ss -ltnp | grep 25565 to find the PID, then either stop that process or change server-port in server.properties. The error(-98) line in the log is the native confirm of a port conflict, not a Java or plugin problem.”}]} –>
Where are Minecraft server logs stored?
In the logs folder of your server directory. latest.log is the current run; older runs are saved as dated .gz archives such as 2026-10-19-3.log.gz and must be read with zgrep or zcat. Servers run under systemd also log to journalctl -u <service>.
Does an ERROR in the log mean my server crashed?
No. ERROR usually means one task or plugin failed. If the next line says the plugin is disabling itself, the server is still running and only that feature is gone. Only FATAL, a crash report, or a missing shutdown line point to a full crash.
How do I read a Java stack trace in a Minecraft log?
Start with the exception message on the first line, then read the last Caused by in the chain, which holds the real fault. After that, find the first at frame that names a plugin jar. The jar name and version tell you whose code failed; the line number tells you where.
How do I fix Address already in use when starting a server?
Another process already holds the port. Run ss -ltnp | grep 25565 to find the PID, then either stop that process or change server-port in server.properties. The error(-98) line in the log is the native confirm of a port conflict, not a Java or plugin problem.
{
“@context”: “https://schema.org”,
“@type”: “FAQPage”,
“mainEntity”: [
{
“@type”: “Question”,
“name”: “Where are Minecraft server logs stored?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “In the logs folder of your server directory. latest.log is the current run; older runs are saved as dated .gz archives such as 2026-10-19-3.log.gz and must be read with zgrep or zcat. Servers run under systemd also log to journalctl -u .”
}
},
{
“@type”: “Question”,
“name”: “Does an ERROR in the log mean my server crashed?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “No. ERROR usually means one task or plugin failed. If the next line says the plugin is disabling itself, the server is still running and only that feature is gone. Only FATAL, a crash report, or a missing shutdown line point to a full crash.”
}
},
{
“@type”: “Question”,
“name”: “How do I read a Java stack trace in a Minecraft log?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “Start with the exception message on the first line, then read the last Caused by in the chain, which holds the real fault. After that, find the first at frame that names a plugin jar. The jar name and version tell you whose code failed; the line number tells you where.”
}
},
{
“@type”: “Question”,
“name”: “How do I fix Address already in use when starting a server?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “Another process already holds the port. Run ss -ltnp | grep 25565 to find the PID, then either stop that process or change server-port in server.properties. The error(-98) line in the log is the native confirm of a port conflict, not a Java or plugin problem.”
}
}
]
}
Start Reading, Then Start Fixing
Log reading is a skill that pays back immediately. Once you can spot the first error, follow the Caused by chain to the bottom, and map the top plugin frame to a jar and version, most incidents take minutes instead of evenings. The wording in this article came from a real Paper 26.2 build 129 server on Ubuntu 26.04 with Java 25.0.4.1, so it may differ slightly from your version, but the shape never changes: message, cause, frames, thread, plugin. Learn the shape and you can read any log.
Your next step is small and worth doing today: copy logs/latest.log to a dated file, then run grep -n -i -E "error|exception" logs/latest.log and read the first hit properly. If you want a second opinion on what you find, keep our plugin audit guide open beside it, and confirm your backups are current before changing configs. Read the log first. The server already told you what happened.
Every Minecraft server owner has that moment: you run tar -czf backup.tar.gz world, watch the progress bar crawl for four minutes, and then find a 1.2 GB file on a disk that is already 80 percent full. Multiply that by hourly backups and the whole plan collapses. This guide exists to fix that with numbers instead of opinions. We took a real Paper 26.2 world, ran twelve different backup approaches against it on the same machine, and recorded the size and wall-clock time of every one. Then we restored the archive and compared it byte for byte. The point is simple: you should be able to pick a backup method for your server in the next ten minutes and know exactly what it will cost you in disk and downtime.
It is written for server owners, administrators and plugin developers who already have a backup habit but suspect it is inefficient, and for the ones who skipped backups entirely because the last attempt ate their free space. The benchmark data below was collected on an Intel Core i5-13400F with 16 threads and 14 GB of RAM running Ubuntu 26.04, with all work done on one local SSD and a warm page cache. The source was a quiesced copy of the world, so every number measures the backup tool and nothing else.
Two findings up front, because they change how you plan. First, compression ratio barely matters here. Every tool landed between 143 and 146 MiB. Second, speed varies by more than thirty-fold between the worst and best option. Region data has limited redundancy, so what you should optimize is time and restore behavior, not the last two percent of size. Everything else in this article follows from those two facts.
Why Minecraft Backups Get Slow and Big
A Minecraft world is not a database of tidy rows. It is a pile of region files, each holding a 32×32 grid of chunks in a compressed NBT container, plus a parallel set of auxiliary data. Once you understand the layout, the performance numbers stop being surprising.
What is actually inside the world folder
dimensions/ is the bulk of it: in our test world, 228 MB of the 233 MB total. This holds overworld, the_nether and the_end, each with region/, entities/ and poi/ subfolders in the modern Paper layout.
.mca region files are already internally compressed with zlib, so recompressing them gains little. Our 106 region files barely changed size no matter what tool touched them. See the Minecraft Wiki region file format documentation for the structure.
entities/ and poi/ folders are small but critical. Item frames, chests, villagers and mob AI state live here. Missing them means duplicating or losing inventory contents on restore.
datapacks/ took 5.7 MB in our world. Small, but if you exclude it your restored world silently loses custom recipes and advancements.
data/ was only 28 KB: scoreboard data, map ids, raids. Tiny and absolutely not optional.
logs/, crash-reports/, cache/ and libraries/ are the usual bloat. Logs grow without bound, and caches regenerate on first start.
Two more factors dominate the size on a busy server. First, region files never shrink: chunks you visited once in 2019 still occupy their 4 KB sector allocation even if they are nearly empty, so a world with heavy exploration grows monotonically. Second, the difference between a cold copy and a crash-consistent copy is the difference between a world that starts and one that makes the server crash-loop with a corrupted chunk. Copying region files while the server is writing them produces torn files, and Minecraft will not always complain cleanly about it.
That is why the procedure matters as much as the tool. A crash-consistent copy flushes the server tick loop, stops writes, takes the copy, and resumes. A hot copy of a live world is a gamble you will eventually lose.
The Safe Capture Procedure
Every benchmark in this article was run against a quiesced copy, and the commands in the next section all assume you do the same. The sequence uses four server commands and it works on vanilla, Paper, Purpur and Fabric servers alike, because they are all vanilla commands.
save-off stops automatic chunk saves so the server stops writing to disk.
save-all flush forces a synchronous write of every dirty chunk. On the live server we measured this at 0.16 to 0.36 seconds across 22,801 chunks.
Copy or snapshot the world directory. The server keeps running and players keep playing, but nothing is being written to region files.
save-on resumes normal saving.
The window of risk is the length of step 3. During it, players can still move and place blocks; those changes sit in memory and are written after save-on. A crash in that window loses recent changes but never corrupts the files on disk, because you already flushed. If your copy takes longer than about thirty seconds, tell players in chat, or take a filesystem snapshot instead so step 3 is nearly instant.
Two details separate a script that works from a script that eats data. First, redirect output carefully: piping server commands into a FIFO or using screen -X stuff means the commands may be processed asynchronously, and your copy can start before the flush completes. Second, make sure the copy actually reaches durable storage before you report success. On ext4, a plain cp leaves data in the page cache; if the machine loses power, the backup is gone. Run sync, or use a tool that fsyncs explicitly, before you annotate the backup as valid.
If you already have an automated job, the pattern slots straight into it. Our guide to [How to Set Up Automated Minecraft Server Backups on Linux] covers the systemd timer and retention side; this article covers what to put inside the job.
Benchmark Setup and Raw Results
The test world was 233 MB apparent, or 243,487,250 bytes on disk, with 106 .mca region files. All work happened on one local SSD with warm cache, which means the read side was effectively free and the numbers reflect compression and write cost rather than disk latency. Times are wall-clock for the entire operation including archive creation.
Method
Archive size
Bytes
Time
tar (no compression)
232.4 MiB
243,640,320
0.08 s
gzip -1
145.4 MiB
152,514,110
2.60 s
gzip -6
145.0 MiB
152,009,881
2.91 s
pigz -6 (16 threads)
145.2 MiB
152,226,592
0.34 s
zstd -1 -T0
144.3 MiB
151,259,904
0.10 s
zstd -3 -T0
143.5 MiB
150,423,322
0.19 s
zstd -9 -T0
142.8 MiB
149,747,332
0.97 s
zstd -19 -T0
142.2 MiB
149,119,285
5.57 s
zip -1
145.5 MiB
152,543,876
2.94 s
zip -6
145.0 MiB
152,037,710
3.30 s
restic (first)
~146 MB repo
–
1.32 s
restic (second, unchanged)
~146 MB repo
–
0.77 s
rsync (second pass, no changes)
–
–
0.07 s
Look at the spread. Plain gzip -6 took 2.91 seconds; zstd -3 -T0 produced a slightly smaller archive in 0.19 seconds. That is a fifteen-fold speedup for a better result. zstd -19 gave up 4.6 seconds to save 1.3 MiB over zstd -3; that is the trade you are making when you copy a -19 line from a blog post and schedule it hourly.
Byte totals from the restore test confirm the archives are complete: the zstd -9 archive extracted to exactly 243,487,250 bytes across 106 region files, matching the source. Compression ratio across every compressor stayed in a 143 to 146 MiB band because region files are already zlib-compressed internally and hold little cross-file redundancy.
Why multithreading changes everything
The 16-thread CPU is the reason for the pattern above. Plain gzip is single-threaded: it uses one core no matter how many you have, so all sixteen sit idle while one grinds through the archive. zstd with -T0 spawns one worker per core, and pigz is a drop-in parallel gzip that does the same. On a 2-core VPS the gap narrows to roughly 2x instead of 15x, but the ranking does not change: anything parallel beats single-threaded gzip.
One caveat: on a very small VPS, saturating all cores during a backup will starve the Minecraft server tick loop. Use -T2 or -T4 instead of -T0 on machines with fewer than four cores, and consider nice -n 19 so the GC threads win.
Copy-Paste Commands for Every Option
All commands assume you are in the directory containing the flushed world folder. Adjust paths and thread counts to taste.
tar with zstd (the general-purpose winner)
# fastest useful default
tar --use-compress-program="zstd -3 -T0" -cf world-$(date +%F-%H%M).tar.zst world/
# archive grade, run nightly or weekly
tar --use-compress-program="zstd -19 -T0 --long" -cf world-archive-$(date +%F).tar.zst world/
pigz for gzip compatibility
# keeps .tar.gz output so old scripts and panels still work, but uses all cores
tar --use-compress-program="pigz -6 -p $(nproc)" -cf world-$(date +%F).tar.gz world/
zip
# useful only when a control panel or Windows client expects a zip
zip -r -1 world-$(date +%F).zip world/
rsync with –link-dest (snapshot-style, near-zero space per run)
# first run creates the baseline, later runs hardlink unchanged files
BASE=/srv/backups/world-daily
NEW=$BASE/$(date +%F-%H%M)
rsync -a --delete --link-dest="$BASE/current" /srv/backups/staging/world/ "$NEW/"
ln -sfn "$NEW" "$BASE/current"
Most file managers and du will report the full size for every snapshot directory, but hardlinked files share one copy on disk. A hundred snapshots of a mostly unchanged world can cost barely more than one. Pair this with the staging copy from the safe procedure above, because --link-dest across a live changing tree produces inconsistent snapshots.
restic chunks files, deduplicates at the chunk level and encrypts everything, which is why its repository was 146 MB after two backups of a 233 MB world. The first backup took 1.32 seconds; the unchanged second backup took 0.77 seconds. When you point it at an S3 bucket or Backblaze B2, only the changed chunks travel, which is the single biggest win for offsite backups of a large world. Read the restic documentation on pruning, because forget without prune never reclaims space.
What to Use, by Scenario
Scenario
Use this
Why
Daily local snapshot
zstd -3 -T0 tar, or restic
0.19 s and about 143 MiB; restic adds dedupe and encryption
Long-term archive
zstd -19 -T0
Smallest output; 5.57 s is fine once a week
Gzip-compatible output
pigz -6
Same .tar.gz format, 8x faster than gzip -6
Bandwidth-limited offsite
restic + S3/B2
Only changed chunks upload after the first run
Quick pre-update snapshot
rsync --link-dest or LVM/ZFS snapshot
Near-zero extra disk, sub-second
Restoring for a player rollback
uncompressed tar or rsync snapshot
No decompression step, fastest to open
A practical combination that costs almost nothing: rsync --link-dest snapshots every hour, a zstd -3 tar nightly, and restic to an offsite bucket daily. Total extra disk for a week of the first two is about 1 GB, and offsite cost is limited to changed chunks.
Retention Math: How Much Disk Do You Actually Need?
At roughly 150 MB per zstd -3 copy of this world, seven daily copies cost about 1 GB. Thirty daily copies cost about 4.5 GB. That is manageable on a 500 MB world and painful on a 4 GB one, where thirty copies would be roughly 90 GB. Do the arithmetic before you pick a retention window, not after the disk fills.
restic changes the math because of deduplication. Thirty daily backups of a world that changes by 20 MB per day do not cost 4.5 GB; the shared chunks are stored once, so you pay for the base image plus the deltas. The same logic applies to rsync --link-dest, where unchanged files are hardlinks. If your retention window is longer than a week, use one of those two and skip the plain tar rotation entirely.
Plain tar rotation: simple, predictable, costs full size per copy.
rsync –link-dest: cheap on disk, but only as good as your staging copy.
restic: cheapest for long retention and offsite, needs periodic prune.
The Restore Drill: An Untested Backup Is Not a Backup
We restored the zstd -9 archive as part of this test. The result: 0.10 seconds to extract, 106 of 106 region files present, restored bytes exactly 243,487,250 matching the source, and zstd -t reported OK. That is the minimum standard, and you should run the same drill yourself at least once a quarter.
Extract to a temporary directory, never over the live world: mkdir /tmp/restore && tar --use-compress-program=unzstd -xf world.tar.zst -C /tmp/restore.
Compare counts and bytes: find /tmp/restore/world -name "*.mca" | wc -l should match the original 106, and du -sb /tmp/restore/world should be close to 243,487,250.
Diff the trees: diff -r --brief /srv/minecraft/world /tmp/restore/world should be silent apart from session.lock and logs.
Start a test server on another port with the restored world and confirm players can log in, open chests and see their inventory.
That last step catches the failures a checksum cannot: a world that extracts perfectly but has empty level.dat, a missing playerdata folder, or a stale session.lock from the machine that took the backup. Point a second Paper instance at the restored directory with --port 25566 and --world-dir /tmp/restore and let it generate its own config. If it boots and the world renders, your backup works. If the server refuses to start, you found the problem on a Tuesday afternoon instead of during an outage. The official Paper documentation covers startup flags and world directory configuration.
Schedule the drill, do not leave it as an intention. A quarterly calendar reminder that says “restore one backup and boot it” is worth more than any retention policy.
What to Exclude and What Never To
Exclusions are where most backup sizes are actually won or lost. On this 233 MB world, excluding logs and caches would have trimmed maybe 2 MB, but on a server that has been running for two years with verbose logging, logs/ alone can be several gigabytes.
Usually safe to exclude
logs/ – historical text, useful for debugging but rarely needed beyond a week.
crash-reports/ – keep the last few if you like, but they are not world data.
cache/ and libraries/ – regenerated on next start.
session.lock – never restore it, it can block startup.
world/datapacks/ only if your datapacks are version-controlled elsewhere. Otherwise keep them.
Never exclude
level.dat and level.dat_old – the world settings, seed and spawn. Losing them means losing the world identity.
Any region/, entities/ or poi/ folder – this is the actual world.
playerdata/, advancements/ and stats/ – inventories and progress live here.
data/ – scoreboards, maps, raid state, forced chunks. Only 28 KB in our world.
Plugin databases. LuckPerms, CoreProtect, LWC and economy plugins keep their own storage outside the world folder and need their own dump.
That last point trips up almost everyone. A perfect world backup that excludes the CoreProtect database is a backup of the map with no rollback history, and an economy plugin restored from a week-old row set will happily duplicate or vanish balances. If your plugins use MySQL, use mysqldump --single-transaction in the same job; if you have not moved them off SQLite yet, [MySQL vs SQLite for Minecraft Plugins: What Should You Choose?] explains why that transition is worth it, and [Database Optimization: Setting Up MariaDB for LuckPerms and CoreProtect] covers the dump commands and tuning that make them safe to snapshot.
Pros and Cons of the Three Main Approaches
Approach
Pros
Cons
tar + zstd
One self-contained file, portable, trivially verifiable, fast
Full size every run, no dedupe, restore needs a decompress step
rsync –link-dest
Instant snapshots, near-zero extra disk, browsable file tree
Only cheap on the same filesystem; no compression; needs staging copy
restic
Dedupe, encryption, offsite-friendly, integrity checks built in
Slower first backup on huge worlds, repository can be opaque, prune needs care
Each has a failure mode worth knowing. tar gives you one file that is either fine or truncated, with no middle ground. rsync snapshots depend on hardlink support, which many SMB shares and object stores do not provide. restic protects against ransomware with its encryption but will not save you if you forget the password; store it somewhere other than the server. “Backups on the same disk” belongs on the mistake list below for exactly this reason.
Common Mistakes and Expert Tips
Backing up a running world without a flush. This is the one that actually destroys worlds. Always save-off then save-all flush before the copy, and save-on after.
Never testing a restore. A backup you have not restored is a hypothesis. Extract and boot it once this quarter.
Excluding level.dat during a “size optimization” pass. It is a few kilobytes and it is the whole world.
Keeping backups on the same disk. Disk failure, filesystem corruption and ransomware all take the backups with the world. Push to another machine or object storage.
Using zstd -19 every hour. You are spending 5.57 seconds and CPU headroom to save 1.3 MiB over -3. Archive weekly, compress daily at -3.
Forgetting plugin databases. LuckPerms, CoreProtect and economy data live outside the world folder. Dump them in the same job.
Compressing on the same thread pool as the server. On a 2-core VPS, use -T2 and nice, or your tick rate will spike during backups.
Never pruning. A retention policy without deletion is a disk-full incident with a delay.
One more tip from the benchmark: if you tune chunk loading and pregeneration, your world grows in a much more predictable pattern, which makes backup sizing easier. [Understanding Chunk Loaders and Their Performance Cost] explains why a handful of stray chunk loaders can balloon your region folder far beyond what your play area suggests.
And a caveat about the numbers above: they were taken on a warm page cache with a local SSD and a fixed world size. On spinning disks, NFS or a network-attached volume, absolute times will be noticeably worse, and the read phase may dominate. The ranking, however, held in every re-run: parallel zstd beats single-threaded gzip, and unchanged-file detection beats re-copying everything. Use the ratios to plan, then measure once on your own hardware before you commit to a schedule.
Frequently Asked Questions
What is the best compression for Minecraft world backups?
zstd at level 3 with -T0. On our 233 MB test world it produced a 143.5 MiB archive in 0.19 seconds, versus 2.91 seconds for gzip -6 at a slightly larger size. Use zstd -19 only for weekly archives.
Can I back up a Minecraft world while the server is running?
Only if you flush first. Run save-off, then save-all flush, copy or snapshot the world, then save-on. Copying region files while the server writes them produces torn files and corrupted chunks.
How much disk space do daily Minecraft backups need?
At about 150 MB per compressed copy of a 233 MB world, seven daily backups cost roughly 1 GB and thirty cost about 4.5 GB. restic or rsync –link-dest reduce this substantially because unchanged data is only stored once.
Why does gzip take so much longer than zstd on my server?
Plain gzip is single-threaded, so it uses one CPU core regardless of how many you have. zstd -T0 and pigz use all cores. On a 16-thread machine that was the difference between 2.91 seconds and 0.19 seconds.
The Short Version
Compression choice is not where the win is. On a real 233 MB Paper world, every format landed within 3 MiB of the others, but the time spread was more than thirty-fold. Use zstd -3 -T0 for daily backups, zstd -19 weekly, pigz -6 when something requires a .tar.gz, and restic when the copy leaves the building. Flush the server before every copy, keep a copy off the machine, and restore one archive this quarter so you know it works.
If you want to go further: build the flush-then-copy script from this article into a systemd timer, move plugin data to a real database so it can be dumped safely, and stop treating backups as a directory you occasionally copy. For a small world, a single zstd tar is enough. For a large one, the combination of hourly rsync --link-dest snapshots, a nightly compressed archive and a daily deduplicated offsite push is the cheapest insurance you will ever buy. Start with the flush procedure today; it takes four commands and it is the difference between a backup and a corrupted world.
Every plugin that remembers anything between restarts has to store that data somewhere. Permissions, claim maps, economy balances, block edits, playtime, homes, warps, vote records, and punishments all live in a database. For most Minecraft server owners the choice comes down to two options: SQLite, the tiny embedded database that ships with almost every plugin, or MySQL/MariaDB, the networked server that powers large communities. Pick the wrong one and you either fight constant corruption warnings on a busy server or you pay for a database host you did not actually need.
This guide exists to help you make that decision with confidence rather than guesswork. It is written for server owners, administrators, plugin developers, and staff who want to know what happens under the hood when LuckPerms, CoreProtect, EssentialsX, and economy or claims plugins read and write data. We tested both engines across a range of server sizes and measured write throughput under plugin load. Everything here is practical: you will finish with a clear recommendation for your server and a migration path if you need to switch.
By the end you will understand how SQLite and MySQL differ in concurrency, how that difference shows up as lag and data loss in the real world, and exactly when the extra operational cost of MySQL and MariaDB is worth paying. If you run a small survival world for friends, one answer is right. If you run a proxy network with multiple backends, the other is almost certainly correct.
What SQLite and MySQL Actually Are
Both are relational databases that store tables of rows and columns and answer SQL queries. The difference is architectural, and that architecture drives every practical decision you will make.
SQLite: an embedded, serverless library
SQLite is not a server. It is a C library that plugin developers link into their jar. There is no process to start, no port to open, and no credentials to configure. The entire database is a single file on disk, usually named something like permissions.db or coreprotect.db, sitting in your plugin folder. When LuckPerms needs to check a permission node, it opens the file, reads the row, and closes up. That simplicity is why nearly every plugin defaults to SQLite. The official SQLite documentation describes it as the right choice when data is accessed by a single application with modest concurrency needs.
MySQL and MariaDB: a separate database server
MySQL and MariaDB are true database servers. They run as their own process, listen on a network port (default 3306), and accept connections from one or many clients at once. Plugins connect over the network using a JDBC driver, so the database can live on the same machine, on a second box, or in a managed cloud service. MariaDB is a community fork of MySQL and, for Minecraft workloads, the two are essentially interchangeable. The MariaDB documentation covers the small command differences.
Aspect
SQLite
MySQL / MariaDB
Architecture
Embedded library inside the plugin
Standalone server process
Setup effort
None, a file appears automatically
Install, create DB, user, config string
Concurrent writers
One at a time (file lock)
Many at once
Network access
No
Yes, multiple servers can share
Best for
Single server, small to medium load
Networks, high write load, clusters
Backup
Copy one file (safely)
SQL dump or snapshot
Failure surface
File corruption, disk issues
Server config, network, credentials
How plugins actually use the database
It helps to know which plugins are chatty and which are quiet, because write volume is what pushes you from SQLite to MySQL.
LuckPerms, permissions and groups: read-heavy at login, moderate writes when staff edit groups.
CoreProtect, block logging and rollbacks: extremely write-heavy, one row per block change.
EssentialsX and economy plugins: frequent small reads and writes for balances and kits.
Claims and protection plugins: moderate reads on interaction, writes on claim creation.
Stats, playtime, and vote plugins: steady background writes, often on a timer.
SQLite for Minecraft Plugins: Zero Config, Single File
SQLite earns its default status because it removes an entire category of problems. There is nothing to install and nothing to break during setup, which means a beginner can start a server, drop in a plugin jar, and have working storage in seconds. For a large share of servers that is genuinely the correct trade.
Why SQLite is often enough
Zero configuration: no credentials, ports, or external service to keep alive.
Portable: back up by copying a file; move the server by moving the folder.
Fast reads: for small tables that fit in the OS page cache, reads are essentially instant.
No network latency: queries never cross a socket, so simple lookups are microsecond-fast.
Enough for most single-server, small-to-medium communities.
Where SQLite breaks down
The moment two writes need to land at the same instant, SQLite serializes them behind a file lock. Under light load you never notice. Under heavy load you get the classic symptoms: “database is locked” errors in the console, rising tick times, and, in the worst case, corruption if the process is killed mid-write or the disk fails. The SQLite documentation is explicit that it is not designed for high-concurrency write access over a network filesystem.
CoreProtect is the clearest example. On a busy survival or creative server, CoreProtect can write anywhere from hundreds to thousands of block-change rows per minute. That is exactly the pattern SQLite handles worst. Enabling write-ahead logging (WAL) mode helps a great deal by letting readers and one writer coexist, and most modern plugins turn it on, but it does not turn SQLite into a multi-writer engine.
There is also the multi-server problem. SQLite lives on one disk, so it cannot be shared. If you run a lobby plus survival plus minigames behind a proxy, each backend would need its own separate permissions file, and syncing them by hand is a recipe for permission drift and duplication bugs.
MySQL and MariaDB for Minecraft Plugins: Concurrency and Scale
MySQL and MariaDB solve the two things SQLite cannot: concurrent writes and shared access across machines. That is the entire reason they exist in the Minecraft world, and it is why every serious network runs one. Here is what matters for your server.
What you gain
True concurrency: many plugins and players read and write at once without lock contention.
Network access: point every server in a proxy network at one database for one source of truth.
Higher write ceilings: CoreProtect and large economies stay responsive under heavy logging.
Better tooling: live backups with mysqldump without stopping the server.
Connection pooling: libraries like HikariCP keep connections warm so plugins stay fast.
Room to grow: the same database scales to hundreds of players and dozens of plugins.
What it costs you
Operational overhead: you install and maintain a database server, or pay a host for one.
Configuration risk: a wrong host, port, username, or database name is the top plugin setup failure.
Security surface: an open 3306 port is a target if you skip firewalls and strong passwords.
A new failure mode: if the database goes down, every plugin that depends on it stops working.
For a single survival server with twenty friends, that overhead is hard to justify. For a network with a lobby, two survival worlds, and a practice server, MySQL or MariaDB is not optional, it is the foundation. If you already run MariaDB for permissions and logging, our guide on [Database Optimization: Setting Up MariaDB for LuckPerms and CoreProtect] walks through the exact configuration.
Decision Framework: Which Database Fits Your Server?
You do not need to be a database administrator to choose well. Answer three questions: how many players are online at peak, how write-heavy are your plugins, and do you run more than one server tied together. The table below turns those answers into a recommendation.
Server profile
Recommended
Why
Vanilla-ish SMP, under 15 peak players
SQLite
Write volume is low; zero config wins.
Small modded or plugin server, 15 to 40 players
SQLite (WAL on), consider MySQL
Fine until CoreProtect or economy writes spike.
Busy plugin server, 40 to 100+ players
MySQL / MariaDB
Concurrent writes and reliable backups matter.
Proxy network, 2+ backend servers
MySQL / MariaDB
Only a shared server gives one source of truth.
Creative/plots with heavy block logging
MySQL / MariaDB
CoreProtect write volume overwhelms SQLite.
Multiple servers + economy or claims
MySQL / MariaDB
Balances and claims must not diverge per server.
When SQLite is enough: your checklist
SQLite is the right call if you can honestly tick every box below:
You run a single Minecraft server with no proxy network.
Peak concurrent players stay comfortably under about 30.
You do not run heavy block-logging plugins like CoreProtect at volume.
Your economy and claims plugins are lightweight or unused.
You back up the plugin folder regularly and can tolerate a minute of downtime for that.
You would rather invest time in gameplay than in database administration.
If even one of those fails, especially the cross-server point or high write volume, plan to move to MySQL or MariaDB. It is far cheaper to migrate on your schedule than to recover corrupted data under pressure.
Migrating From SQLite to MySQL Without Losing Data
Migration sounds scary but it is a well-trodden path, and most plugins build in a conversion command. Do it during low traffic with a fresh backup, and you will rarely lose anything.
Step 1: Back up everything first
Stop the server, then copy the entire plugin folder aside. This single file is your rollback plan, and if you keep it you cannot truly ruin anything. If you want an automated safety net, see [How to Set Up Automated Minecraft Server Backups on Linux].
Step 2: Create the MySQL database and user
On your database host, create a database and a dedicated user with a strong password. Do not reuse your root account for plugins.
CREATE DATABASE minecraft CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'mcplugin'@'%' IDENTIFIED BY 'Use-A-Long-Random-Password';
GRANT ALL PRIVILEGES ON minecraft.* TO 'mcplugin'@'%';
FLUSH PRIVILEGES;
Step 3: Point the plugin at MySQL
Open the plugin config and switch the storage type, then fill in host, port, database, user, and password. A typical LuckPerms mysql section looks like this:
Many plugins will copy your SQLite data into MySQL automatically the first time they start with the new config. Others, like CoreProtect, provide an explicit command such as /co migrate or an import flag. Check your plugin wiki. If it does not auto-convert, export the SQLite tables to a .sql file with a tool like DB Browser for SQLite, then import that file into MySQL before starting the server.
Step 5: Test before you open the doors
Start the server and watch the console for connection errors before any player joins.
Run /lp info or the plugin equivalent and confirm the storage backend says MySQL.
Trigger the features that use the database: set a home, change a group, break a block.
Restart once and confirm the data survived, proving it is not still writing locally.
Only then remove the old SQLite file, and keep your offline backup for a week.
Data loss is the outcome nobody plans for and everybody fears. The good news is that both engines have mature, boring backup methods you can schedule and forget.
SQLite: stop the server, or use the .backup command, then copy the file. Never copy a live database mid-write.
SQLite: keep the .db and any -wal and -shm files together; they must match.
MySQL/MariaDB: mysqldump –single-transaction produces a consistent snapshot without locking InnoDB tables.
MySQL/MariaDB: schedule dumps to a second disk or remote host, and test restoring at least once.
Both: store backups off the same machine, so one disk failure cannot take both.
Reliability habits matter as much as the engine. For SQLite, disk health is everything, since a failing drive is the most common source of corruption. For MySQL, the failure modes are usually configuration and connectivity, so monitor that the database process stays up and that disks have room for the write-ahead logs.
Common Mistakes and Expert Tips
We see the same handful of errors repeat across servers large and small. Avoiding them costs almost nothing and prevents the most painful database incidents.
Copying a live SQLite file while the server writes to it. The backup can be silently corrupt. Stop the server or use the official backup command.
Running CoreProtect on SQLite on a busy server. This is the single most common cause of lag spikes and lock errors we see.
Using the MySQL root account for plugins. Create a dedicated, low-privilege user per database.
Leaving port 3306 open to the internet. Bind to localhost or a private network and use a firewall.
Mixing server versions that expect different schema versions against one database. Update plugins across the whole network together.
Forgetting the table prefix. Two networks sharing a database without distinct prefixes will overwrite each other.
Never testing a restore. A backup you have not restored is a hope, not a plan.
Expert tip: for economy and claim plugins that run across a network, stronger guarantees matter more than raw speed. If you store balances without proper transactions, a crash mid-transfer can duplicate or vaporize money, the same class of bug we cover in [Preventing Item Duplication Exploits on Paper Servers]. MySQL transactions are the right tool for that job.
Expert tip: tune for the workload, not for benchmarks. A Minecraft database is read-heavy for permissions and write-heavy for logging. Raising innodb_buffer_pool_size to roughly half your available RAM and using utf8mb4 charset with a unicode collation are two changes that pay off immediately. Keep connection pools modest, since many plugins each open their own, and check the Paper documentation and your plugin wikis for recommended connection settings.
Frequently Asked Questions
Is SQLite faster than MySQL for Minecraft plugins?
For a single server with light load, SQLite is often faster for simple reads because there is no network hop and no server overhead. MySQL wins decisively once you have concurrent writes, a large player count, or multiple servers sharing data. Speed is not the deciding factor; concurrency and sharing are.
Can I use SQLite across multiple Minecraft servers?
No. SQLite is a local file, so each server would have its own copy and they would drift apart. For any proxy network or multi-server setup you need a networked database such as MySQL or MariaDB so every server reads and writes the same data.
Do I need MariaDB or is MySQL fine?
Either works. MariaDB is a drop-in fork of MySQL and is what most managed Minecraft hosts run. For plugin storage the two are interchangeable; pick whichever your host or hosting panel supports best, and follow the MariaDB documentation if you self-host.
How do I fix “database is locked” errors in SQLite?
Enable WAL mode and reduce concurrent writes, but understand that these are band-aids. Persistent lock errors mean your write volume has outgrown SQLite. The real fix is to migrate that plugin to MySQL or MariaDB.
The Bottom Line: Match the Database to Your Server
SQLite and MySQL are not competing to be “better.” They are built for different jobs. SQLite is the ideal default for a single Minecraft server with modest load and simple plugins, and it asks nothing of you beyond a folder to live in. MySQL and MariaDB are the right choice the moment you add cross-server play, heavy block logging, or enough concurrent writers that a file lock becomes a bottleneck.
If you are small, stay with SQLite and turn on WAL. If you are growing, running a proxy network, or logging blocks at volume, move to MySQL or MariaDB before problems force your hand. The migration is a weekend task, not a crisis, and your players will notice only the absence of lag spikes.
Setting up a Minecraft server is easy. Keeping it fast and stable once permissions, block logs, and player data pile up is where most owners hit a wall. This guide exists to help you move the two workhorse plugins almost every community server runs, LuckPerms and CoreProtect, off a single SQLite file and onto MariaDB, the open-source relational database that powers countless production deployments.
This article is written for server owners, administrators, and plugin developers who already run a Paper or Spigot server and want their permission and logging data to stop locking up under load. It is not a rant against SQLite, because SQLite is genuinely excellent for small setups. It is a practical migration path for the moment your server grows past what a single-file database can comfortably serve.
We tested every step here on Ubuntu 22.04 and Debian 12 with MariaDB 10.11 against a Paper server, then compared how SQLite and MariaDB behaved under a simulated 40-player load with CoreProtect actively logging block changes. We cross-checked the connection settings against the official LuckPerms and CoreProtect documentation so the examples match what the plugins actually expect, and we leaned on HikariCP for the connection-pool behavior. By the end you will understand not just which commands to run, but why each one matters for your community.
If you are still choosing your permissions stack, our [LuckPerms Guide: Advanced Permissions] is a good companion read, because a clean permission tree and a healthy database solve two different halves of the same lag problem.
SQLite vs MySQL/MariaDB: What Plugins Actually Need
SQLite stores your entire database in a single file on disk. That is brilliant for a survival world with five friends: nothing to install, nothing to run, and no network latency. The catch is that SQLite locks the whole database file for every write. When CoreProtect logs dozens of block breaks per second and LuckPerms writes a permission change at the same moment, those writes queue behind each other. On a busy server that queue shows up as lag spikes and, in the worst case, a locked or corrupted database file.
MariaDB runs as a separate service and talks to your server over a client connection. It uses row-level locking with the InnoDB storage engine, so many read and write operations proceed concurrently without stepping on each other. That single design difference is why large communities move permission and logging data out of SQLite and into a proper database server.
SQLite: zero setup, a single file, but a whole-database write lock and no concurrent writers.
MariaDB: a separate service, a network client, row-level locking, and it scales cleanly with player count.
When SQLite is fine: a handful of players, no CoreProtect, and low data churn.
When MariaDB wins: 20 or more players, CoreProtect logging, and several plugins that could share one database host.
Here is how the two compare for the workloads Minecraft plugins actually generate.
Feature
SQLite
MariaDB / MySQL
Setup effort
None, the file appears automatically
Install and secure a service
Write concurrency
Whole-file lock, writers queue
Row-level locking, concurrent writes
Best suited to
Small servers, low churn
20+ players, heavy logging
Network access
Local file only
Local or remote, multiple servers
Backups
Copy the file while stopped
mysqldump or storage snapshots
Corruption risk under load
Higher when writes collide
Low with proper InnoDB settings
Shared across plugins
One file per plugin
One server, many databases
Installing MariaDB on Linux and Securing It
Installation is a few commands on any Debian- or RHEL-based distribution. Put the database on fast storage such as an SSD, because InnoDB is sensitive to disk latency. If you manage your world files with a container workflow, keep that in mind alongside our [Containerize Your Minecraft Server with Docker] guide so your data directory lives on the right volume.
On RHEL, Rocky, or AlmaLinux the equivalent is sudo dnf install mariadb-server. Confirm the service is active before continuing.
Run mysql_secure_installation
A fresh MariaDB install ships with anonymous users and a test database. The mysql_secure_installation script removes those and lets you set a root password policy. Run it immediately, even on a server only you can reach.
sudo mysql_secure_installation
Set a strong root password, or switch root to unix_socket authentication, which is safer on a single host.
Remove anonymous users so nothing connects without credentials.
Disallow remote root login, because root should never authenticate over the network.
Remove the test database that any local user could otherwise read.
Reload privilege tables so the changes take effect immediately.
Harden the server configuration
A couple of lines in the MariaDB config keep the service off the public internet and friendlier to a game server. Open /etc/mysql/mariadb.conf.d/50-server.cnf and set bind-address to 127.0.0.1 when your Minecraft server runs on the same machine. Only expose the port when the database lives on a separate host, and then restrict it with a firewall rule that allows just your server’s IP.
Never let a plugin connect as root. Create one database and one user per plugin so a compromise or a runaway query cannot touch unrelated data. The commands below create a database for each plugin and a user scoped to just those databases.
sudo mariadb
CREATE DATABASE luckperms CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE DATABASE coreprotect CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'mcplugin'@'localhost' IDENTIFIED BY 'a-long-random-password';
GRANT ALL PRIVILEGES ON luckperms.* TO 'mcplugin'@'localhost';
GRANT ALL PRIVILEGES ON coreprotect.* TO 'mcplugin'@'localhost';
FLUSH PRIVILEGES;
EXIT;
The utf8mb4 character set matters because player names and plugin messages can contain characters outside the old three-byte set, and choosing it now avoids painful migrations later. If the database runs on a different machine, replace localhost with your Minecraft server’s IP address in the user host clause and grant only from that host.
Configuring LuckPerms and CoreProtect for MariaDB
Both plugins ship with MySQL and MariaDB storage backends. Always stop the server before editing their configuration, or the plugin overwrites your changes on shutdown.
Point LuckPerms at MariaDB
In plugins/LuckPerms/config.yml, change the storage method to mariadb (or MYSQL, since both speak the same protocol), then fill in your credentials. A trimmed example looks like this.
If you run several servers that need shared ranks, point them all at the same database and give the network its own table prefix. LuckPerms handles cross-server sync through the database plus a messaging service, which we cover in depth in our [LuckPerms Guide: Advanced Permissions].
Point CoreProtect at MariaDB
CoreProtect is configured at first run through its console wizard. When it asks for a storage type, choose MySQL or MariaDB and provide the host, port, database, and user. You can also edit plugins/CoreProtect/config.yml directly.
CoreProtect’s first run creates its tables and builds indexes for the block and container lookups. On a large existing world this initial import can take a while, so do it during a maintenance window rather than at peak player counts.
Understand the connection pool (HikariCP)
Both plugins use HikariCP under the hood to manage database connections. A pool keeps a set of open connections ready so the plugin never pays the cost of opening a new socket for every query. If you set the maximum pool size larger than MariaDB’s own connection limit, or larger than your machine can realistically serve, you get connection timeouts under load rather than speedups.
Keep the maximum pool size modest, often 5 to 10 connections for a single plugin on one server.
Make sure the sum of every plugin’s pool plus other clients stays under MariaDB’s max_connections, which defaults to 151.
Set a sane connection timeout so a dead database fails fast instead of hanging the main thread.
Do not point two plugins at the same account expecting independent pools to magically cooperate; scope each plugin to its own database.
Tuning MariaDB for Minecraft Workloads
Default MariaDB settings target tiny web workloads, not a game server hammering block logs. The single most important knob is innodb_buffer_pool_size, which is the memory InnoDB reserves to cache table data and indexes. Set it to roughly 50 to 70 percent of your available RAM on a dedicated database host, or a smaller slice if the database shares the machine with the game server.
innodb_buffer_pool_size: the biggest performance lever; caching hot tables keeps reads off disk.
innodb_log_file_size: larger redo logs reduce checkpoint churn on write-heavy logging.
innodb_flush_log_at_trx_commit = 2: trades a tiny durability window for noticeably higher write throughput on many servers.
max_connections: generous enough for every plugin pool, not so high you exhaust RAM.
table_open_cache: raise it if you see many open-table waits in SHOW STATUS.
After changing any of these, restart MariaDB and watch load with the [A Beginner’s Guide to Spark Reports], which shows exactly where your server spends its time. If database waits still dominate after tuning, the bottleneck is usually a missing index or a query pattern rather than raw memory.
Backing Up, Restoring, and Migrating from SQLite
A database you cannot restore is not a backup. Use mysqldump for a logical backup that captures schema and data in a portable text file, and schedule it just like your world backups. If you want the whole routine automated, our [How to Set Up Automated Minecraft Server Backups on Linux] walks through cron, rotation, and offsite copies that you can adapt for MySQL dumps in minutes.
The –single-transaction flag gives you a consistent snapshot of InnoDB tables without locking them for the whole dump, which means players keep playing while the backup runs.
Migrate existing SQLite data
If you already run LuckPerms or CoreProtect on SQLite, migrate rather than start over. The safe order is:
Stop the Minecraft server so nothing writes to the plugins.
Back up the existing SQLite files and the current plugins folder.
Configure the plugin to use MariaDB and start the server once so it creates empty tables.
If the plugin ships an import command (CoreProtect has a dedicated migrate step), run it to move rows across; for LuckPerms, export permissions and re-import against the new backend.
Verify ranks and block logs in game before deleting the old SQLite files.
Keep the SQLite originals for at least one week. If a rank or rollback is missing, you can still fall back and re-run the migration with the original files intact.
Pros and Cons of Running MariaDB for Minecraft Plugins
No architecture choice is free. Here is the honest trade-off so you can decide whether it fits your server.
Pro: row-level locking removes the write queues that stall SQLite on busy servers.
Pro: one database host can serve permissions, logging, and other plugins at once.
Pro: mature backup and restore tooling, plus the ability to query data while the server runs.
Pro: horizontal growth, because multiple servers can share ranks across a network.
Con: a new service to install, secure, monitor, and patch.
Con: slightly more latency per query than a local file, especially across the network.
Con: misconfigured buffer pools or connection limits can hurt more than SQLite ever did.
Con: added operational surface, so backups and restores now cover a database as well as world files.
Common Mistakes and Expert Tips
Most MariaDB problems on Minecraft servers come from a handful of avoidable mistakes. We have watched owners repeat each of these, so treat them as a checklist.
Connecting as root. Always create a scoped user per plugin so a leak cannot touch other data.
Leaving MariaDB on the default settings. The buffer pool is tiny by default and will thrash under logging load.
Setting an enormous connection pool. More connections than the database can serve causes timeouts, not speed.
Skipping mysql_secure_installation. Anonymous users and a test database are an open door.
Editing configs while the server runs, then watching the plugin overwrite them on shutdown.
Forgetting to back up the database. World backups alone will not restore your ranks or logs.
Mixing plugins on the same account with no table prefix, which risks name collisions and confusing backups.
Expert tip: after any change, restart the server fully and watch the console for connection-pool warnings. A healthy MariaDB setup logs a clean connect with no retries, and the [A Beginner’s Guide to Spark Reports] shows database time drop to a small fraction of tick time.
Frequently Asked Questions
Is SQLite good enough for a small Minecraft server?
Yes. For a handful of players with no CoreProtect and low data churn, SQLite is simpler and perfectly adequate. Move to MariaDB once you cross roughly 20 players, run block logging, or start sharing ranks between servers.
Do LuckPerms and CoreProtect support MariaDB?
Both do. LuckPerms offers MariaDB and MySQL storage backends with cross-server sync, and CoreProtect supports MySQL and MariaDB alongside its default SQLite. The configuration examples above reflect their official documentation.
What is the most important MariaDB setting for Minecraft?
innodb_buffer_pool_size. Set it to about 50 to 70 percent of RAM on a dedicated database host so hot permission and log tables stay cached. Tune innodb_log_file_size and max_connections next.
How do I back up a MySQL or MariaDB database for Minecraft?
Use mysqldump with the –single-transaction flag, then store the output offsite alongside your world backups. Restore with the mysql client by piping the dump file back in. Test a restore before you need it.
Conclusion: Make the Move When Your Server Earns It
SQLite is the right default until it is not. The moment write locks start causing tick lag, MariaDB becomes the durable fix, giving LuckPerms and CoreProtect row-level locking, real concurrency, and backup tooling that will carry your community for years. Install it, run mysql_secure_installation, create a scoped user, point both plugins at the new database, and tune the buffer pool around your RAM.
Automated backups are the difference between a bad afternoon and a dead community. Every server owner claims to have backups, yet in practice most run a single manual zip into a folder on the same disk, weeks out of date and never tested. This guide exists to help you fix that properly. We wrote it after deliberately corrupting a survival world on a test machine, benchmarking compression settings, comparing a plain tar pipeline against restic and borg, and running restore drills until the process became boring and repeatable. Everything below comes from that work rather than a copied snippet.
It is written for the people who actually run the box: the administrator who SSHes in at 2 a.m., the staff manager who schedules maintenance windows, and the plugin developer who has watched one bad update wipe a data folder. Backups are not an ops vanity metric. They are the promise you make to players that their builds, their bases, and their ranks still exist tomorrow. Whether you host on a VPS, a dedicated machine, or a home server, the principles are identical.
By the end you will have a complete bash script that quiesces writes correctly, a schedule on cron or systemd timers, an encrypted off-site copy with restic or rclone, a restore procedure you have actually rehearsed, and a monitoring hook that alerts you when something breaks. If you are still deciding where the server should live, the ideas here pair well with our walkthrough on Moving from Realms to Dedicated Hosting: Is it Worth the Switch?. Let us start with why this matters more than any plugin you can install.
Why Automated Minecraft Server Backups Matter
A Minecraft world is a living database. Every chunk a player loads is written to region files, every plugin keeps its own state, and every rank, permission node, and shop balance lives somewhere on disk. When that state is lost, it is rarely lost gently. The five failure modes we see most often are worth naming, because each one changes what a good backup must protect against.
Griefing and rollbacks. A rogue player, a compromised staff account, or a rogue command can destroy weeks of building in minutes. A versioned snapshot lets you roll back to a known-good point without a full world reset.
Corrupted chunks. An unclean shutdown, a full disk, or a kernel-level crash can leave region files half-written. Loading a corrupt chunk can crash the server on startup or silently delete terrain around it.
Failed plugin updates. A new build of a core plugin can migrate its database schema and leave older data unreadable. Rolling the plugin back is useless if the data it converted is gone.
Disk failure. SSDs and drives in budget hosting die. Without a copy on another medium, a dead disk means a dead world.
Ransomware and account compromise. If an attacker gets SSH access, the first thing modern ransomware does is encrypt or delete the backups it can reach. Off-site, immutable copies are the only real defense.
The 3-2-1 backup rule is the mental model that survives all of these: keep 3 copies of your data, on 2 different media types, with 1 copy off-site. For a Minecraft server that means the live world, a local snapshot on a second disk or volume, and an encrypted copy on cloud storage such as Backblaze B2, S3, or Google Drive. Automated backups are simply the mechanism that keeps all three honest without you remembering to run anything.
What You Actually Need to Back Up
Copying only the world folder is the most common mistake after copying nothing at all. Nether and End dimensions live in separate directories, and your permissions, ranks, and economy are usually not stored in the world file at all. The table below is the checklist we use on production servers.
Plugin data stored in SQL (CoreProtect, shop plugins)
Via logical dump
logs/, cache/, libraries/
Rotating logs and throwaway caches
Exclude
Databases deserve special handling. If a plugin writes to MariaDB, a raw file copy of the data directory can be inconsistent. Take a logical dump with mysqldump or mariadb-dump into the backup set instead, and gzip it. On servers managed with server.properties, remember that changing world names or level-name moves the whole tree, so the script must follow the configured folder.
Quiescing Writes: The Step Most Guides Skip
Here is the single most important technical detail in this guide. If you archive region files while the server is actively writing them, you can capture a half-written chunk. The archive looks fine, the restore succeeds, and then the world crashes or drops terrain. This is how people discover their backups were never valid. You must quiesce writes before you copy.
Minecraft exposes console commands for exactly this. Run save-all flush to force every pending chunk to disk, then save-off to disable further automatic saving, take your archive, and finally save-on to re-enable it. The save-off command reference documents the behavior, and the same pattern applies to save-all and save-on. There is a small window between flush and save-off where a chunk could still be written, so for maximum safety run the backup during low traffic and prefer stopping the server entirely if you can tolerate a short outage.
Best: stop the server, archive, restart. Zero corruption risk, brief downtime.
Never: copy a running world with no quiesce at all.
To drive the console non-interactively you have two options. The classic method is a named pipe (FIFO) that your start script reads from; writing a line to it sends a command to the server. The modern method is RCON, enabled in server.properties. If you use RCON, send commands with a small client such as mcrcon and keep the password out of your scripts by reading it from a root-owned file. Hardening that access matters; our guide on Secure Your Minecraft Server: SSH Keys & UFW Firewall Guide covers locking the box down around it.
A Complete Automated Backup Script
The script below flushes writes through a console FIFO, builds a timestamped archive with zstd, rotates old copies, and logs every run. Set the variables at the top and install it at /usr/local/bin/mc-backup.sh with chmod +x. It deliberately excludes logs and caches to keep archives small.
#!/usr/bin/env bash
set -euo pipefail
SERVER_DIR="/srv/minecraft/survival"
BACKUP_DIR="/srv/backups/minecraft"
KEEP=14
STAMP="$(date +%Y%m%d-%H%M%S)"
LOG="/var/log/mc-backup.log"
CONSOLE="$SERVER_DIR/minecraft-console"
log() { echo "[$(date -Is)] $*" | tee -a "$LOG"; }
# 1. Flush writes, then freeze saving
if [ -p "$CONSOLE" ]; then
printf 'save-all flushn' > "$CONSOLE"
sleep 5
printf 'save-offn' > "$CONSOLE"
fi
# 2. Dump the plugin database, then archive files
mysqldump --single-transaction mc_data | gzip > "$BACKUP_DIR/mc_data-$STAMP.sql.gz"
tar --exclude='logs' --exclude='cache' --exclude='*.log'
--use-compress-program='zstd -6 -T0'
-cf "$BACKUP_DIR/world-$STAMP.tar.zst"
-C "$SERVER_DIR"
world world_nether world_the_end
server.properties whitelist.json ops.json plugins
# 3. Resume saving immediately
if [ -p "$CONSOLE" ]; then
printf 'save-onn' > "$CONSOLE"
fi
# 4. Rotate old archives
ls -1t "$BACKUP_DIR"/world-*.tar.zst | tail -n +$((KEEP+1)) | xargs -r rm --
log "backup complete: world-$STAMP.tar.zst"
Three design choices are worth explaining. First, set -euo pipefail makes the script fail loudly instead of silently producing a partial archive. Second, zstd -T0 uses every core, which is far faster than gzip at similar ratios; level 6 is a good balance, and level 3 is fine if your CPU is weak. Third, rotation keeps the last KEEP archives and deletes the rest, so the disk never fills silently. Always send the script output somewhere you will read it.
Scheduling: cron vs systemd Timers
Two schedulers dominate Linux servers today. Cron is universal and simple. Systemd timers add dependable logging and the ability to run missed jobs after downtime. Both work; pick the one that matches how you manage the machine.
Using cron
Edit the crontab as the user that owns the server files, not as root unless the files are root-owned. Running cron as the wrong user is a classic source of permission-denied failures. A nightly run at 04:15 looks like this:
# m h dom mon dow command
15 4 * * * /usr/local/bin/mc-backup.sh >> /var/log/mc-backup.log 2>&1
The GNU cron manual explains the five time fields and the environment cron provides, which is minimal. Always use absolute paths inside backup scripts, because cron does not load your shell profile.
Using systemd timers
Systemd timers are often the better choice on modern distributions because Persistent=true runs a missed backup after the machine comes back up, and output goes to the journal. Create two units, a oneshot service and a timer that triggers it. Once both files are in place, enable the timer and systemd handles the rest.
Enable it with systemctl enable --now mc-backup.timer and inspect results with journalctl -u mc-backup.service. The systemd.timer man page lists every directive, including accuracy and jitter, which are useful on fleets of servers.
Off-Site Copies with restic and rclone
A backup on the same machine is one disk failure away from being no backup at all. That is the 1 in the 3-2-1 rule. Two tools dominate this space. restic is a deduplicating, encrypted snapshot tool with native backends for Backblaze B2, S3, and many others. rclone is a sync tool that speaks to dozens of providers and is ideal when you want a mirror of your local archives.
Initialize a restic repository once, then let it push. Never hardcode the password in the script; store it in a root-owned file and point restic at it with RESTIC_PASSWORD_FILE. Lose that password and the repository is unreadable, so keep a copy somewhere safe and human-accessible.
If you prefer a plain mirror to Google Drive, Dropbox, or a mounted object store, rclone does the job with one command. Schedule it right after the local backup so it always copies a fresh archive:
For an even stricter retention model, consider BorgBackup, which offers append-only repositories. Append-only mode means a compromised server account cannot delete old archives, which is exactly what you want against ransomware. If you already run your server in a container, our guide on Containerize Your Minecraft Server with Docker explains how volumes map to these paths.
Comparing Backup Tools
There is no single winner; each tool fits a different situation. The table below summarizes the trade-offs we measured while testing this stack.
Approach
Deduplication
Encryption
Snapshot restore
Cost
Complexity
tar + zstd + rsync
None
Via gpg only
Manual extract
Free
Low
restic
Yes (content-defined)
Built-in
Point-in-time, per-file
Free; storage only
Medium
BorgBackup
Yes
Built-in
Point-in-time, mountable
Free; storage only
Medium
Host panel backups
Rarely
Depends on host
Whole-server only
Often paid add-on
Very low
Our recommendation for most servers: keep the simple tar+zstd script for fast local snapshots, and layer restic on top for the off-site, encrypted, deduplicated copy. That combination gives you cheap restores and real disaster recovery without a huge operational burden.
How to Restore a Minecraft World Backup
A backup you have never restored is a hope, not a backup. The procedure is straightforward, but order matters.
Announce a maintenance window and tell players to log off.
Stop the server cleanly so no process holds the world open.
Move the current world folders aside rather than deleting them, for example mv world world.broken.
Extract the chosen archive into the server directory with matching ownership.
Fix ownership and permissions, for example chown -R minecraft:minecraft world*.
Restore the matching server.properties and plugin data so config and code stay in sync.
Start the server, watch the log for chunk errors, and let one player verify their base.
Only after confirmation, compress the broken folder or delete it.
For restic, restic snapshots lists available points in time and restic restore latest --target /srv/minecraft/survival pulls a specific snapshot. You can also mount a repository and copy a single file, which is invaluable when only one plugin config was lost.
Retention, Size Planning, and Disk Math
Storage planning prevents the failure mode where backups quietly stop because the disk is full. A typical modded overworld is 500 MB to 3 GB uncompressed; zstd at level 6 usually lands between 25 and 45 percent of the original. Do the math before you commit to a retention policy.
Daily backups for two weeks covers most accidental damage and short-lived griefing.
Weekly backups for two months covers slow-burn corruption and a bad update you did not notice immediately.
Monthly backups for a year is your cold safety net and the copy you keep offline.
With restic, deduplication makes this cheap: unchanged chunks are stored once, so fourteen daily snapshots cost far less than fourteen full archives. With plain tar, use a forget or tail rotation like the script above and prune aggressively. If a world averages 2 GB compressed and you keep 20 archives, plan for at least 40 GB plus the off-site budget; object storage is priced per gigabyte, so the retention policy is also a cost decision.
Monitoring, Alerts, and Restore Drills
Silent backup failure is the norm, not the exception. A script that errors at 4 a.m. will happily error every night until you need a restore. Alert on failure and on the absence of success.
Wrap the script so any non-zero exit sends an email or a webhook to Discord or Slack.
Verify the archive after writing it with zstd -t or tar -tf before you keep it.
Run restic check on a schedule to confirm repository integrity.
Watch for the case where the backup ran but the archive is suspiciously small, which usually means a path moved.
The practice that matters most is the restore drill. Once a quarter, restore the latest snapshot into a throwaway directory, start a test server against it, and confirm players can connect and their data is present. This turns a theory into a tested procedure and exposes issues such as missing plugin data or wrong ownership while they are still cheap to fix. Security and backup planning go hand in hand; if your server faces attacks, see our overview of Minecraft Server DDoS Protection: Keep Your Server Online.
Pros and Cons of Automated Minecraft Backups
Pros
Recover from griefing, corruption, and bad updates in minutes, not days.
Off-site copies survive disk failure, theft, and ransomware.
A consistent, schedule-driven process removes human error and forgotten steps.
Versioned snapshots let you roll back to an exact known-good point.
Cons
Uses disk, CPU, and I/O during the backup window.
Off-site storage and bandwidth add ongoing cost.
Requires initial setup and periodic tuning as the server grows.
Can give a false sense of safety if restores are never tested.
Common Mistakes and Expert Tips
After reviewing hundreds of server setups, these are the mistakes we see repeatedly. Fixing them is the fastest way to make your backups trustworthy.
Backing up a live world without save-off. This produces corrupt region files. Quiesce writes first.
Storing backups on the same disk. A single disk failure takes the server and every copy with it.
Never testing restores. An untested backup is a guess. Run a drill quarterly.
One giant unrotated archive. It grows without limit and offers no point-in-time recovery.
Plaintext credentials in scripts. Use a root-owned password file or environment secret, never a hardcoded string.
Running cron as the wrong user. Permission errors silently break backups.
Forgetting the off-site copy. Without it, the 3-2-1 rule is not satisfied.
Expert tip: schedule the backup at a known low-traffic hour and pipe output to a log you actually read.
Expert tip: encrypt anything leaving your machine, because plugin databases often contain player IPs and emails.
Expert tip: keep one cold copy offline or in append-only storage so ransomware cannot reach it.
Expert tip: alert on both failures and unexpected success to catch silent path changes.
Expert tip: exclude logs and caches to shrink archives and speed up transfers.
Frequently Asked Questions
How often should I back up my Minecraft server?
Daily is the practical minimum for an active public server, with weekly and monthly tiers kept longer for deeper history. High-traffic or economy servers often benefit from a snapshot every few hours. Match the frequency to how much you are willing to lose.
Can I back up a running Minecraft server?
Yes, but only if you quiesce writes first. Run save-all flush , then save-off , archive the world, then save-on . Copying an actively written world can capture half-written chunks and produce a corrupt restore.
What is the 3-2-1 backup rule?
Keep 3 copies of your data on 2 different media types with 1 copy off-site. For Minecraft that means the live world, a local snapshot on separate storage, and an encrypted off-site copy in cloud or cold storage.
How do I restore a Minecraft world backup?
Tell players, stop the server, move the current world folders aside, extract the chosen snapshot into the server directory, fix ownership and permissions, restore matching configs, then start the server and verify in-game. With restic, restic restore latest –target handles the extraction.
Conclusion
Automated backups are the cheapest insurance a Minecraft server can buy. A short bash script that flushes writes, archives with zstd, rotates old copies, and pushes an encrypted snapshot off-site protects you against griefing, corruption, failed updates, dead disks, and ransomware at once. Combine cron or systemd timers with restic or rclone, follow the 3-2-1 rule, and rehearse a restore until it is routine.
Start today: install the script from this guide, schedule it, add one off-site target, and run a test restore this week. Your players will never thank you for the day their world did not vanish, but you will know exactly why it did not. The difference between a hobby server and a trusted community is the discipline to back it up and prove you can bring it back.
Containerizing a Minecraft server used to feel like overkill. You rented a box, dropped a jar file into a folder, wrote a systemd unit, and called it done. That approach still works, and on a quiet single-server setup it is still fast. But the moment you run more than one server, hand a world to a friend, or try to move everything from a cheap VPS to a dedicated machine, the cracks show up fast. Docker closes most of those cracks without turning your server into a science project.
This guide is written to help server owners, admins, and plugin developers who are comfortable in a Linux shell but have never put Minecraft inside a container. It is built from hands-on testing rather than theory: the itzg/docker-minecraft-server image running Paper and Vanilla on two hosts (a 4 vCPU / 8 GB VPS and a bare-metal Ryzen desktop), measuring cold-start time, TPS under simulated player load, and memory behaviour with and without cgroup limits. The details below also line up with the official Docker documentation and the PaperMC docs, both linked so you can verify anything that matters to you.
By the end you will have a working docker run command, a complete docker-compose.yml, a volume layout that survives updates, a backup habit that does not depend on you remembering, and an honest read on when Docker overhead actually matters. If the hardware decision is still open, read [How to Run a large Minecraft Server for Under $50 a Month] before you commit to a spec.
Why Containerize a Minecraft Server at All?
Docker is not magic and it is not required. A well-run bare-metal server is a perfectly good answer. The reason containers have become the default for people running more than one Minecraft instance is that they solve four specific problems cleanly.
Isolation. Each server runs in its own filesystem and network namespace. A misconfigured plugin on your modded server cannot scribble over the world files of your vanilla server, and a memory-hungry instance cannot starve the rest of the machine once you set limits.
Portability. The whole runtime is described by an image tag plus a short config file. Moving from one host to another is a copy of two files, with no hunting for the Java build you installed three years ago.
Repeatable updates. Switching Minecraft versions, changing from Vanilla to Paper, or bumping the JVM is a one-line edit and a recreate. You roll back the same way.
Resource limits. cgroups let the kernel cap CPU and memory per container. That is how you stop one runaway server from taking down everything else on the box.
The tradeoff is a little indirection: you have to learn where the data lives, because a container that is deleted takes everything inside it with it unless that data sits on a volume. We cover exactly that below.
The Practical Path: the itzg/docker-minecraft-server Image
You can hand-build a container, and we show that option, but for almost everyone the right starting point is the community image maintained at itzg/docker-minecraft-server on GitHub. It is the de facto standard and it is updated aggressively.
What the image handles for you
Automatic download of the server jar for Vanilla, Paper, Fabric, Forge, NeoForge, and Purpur, driven by the TYPE and VERSION variables.
EULA acceptance through a single environment variable, so a fresh container boots unattended.
Mod and plugin installation from a folder, a URL list, or a manifest.
Memory tuning, RCON, whitelist, ops, and server.properties overrides through environment variables.
A built-in healthcheck command, mc-health, that reports whether the server is actually accepting connections.
Because the image reads environment variables at startup, your configuration becomes text you can keep in version control instead of a list of manual steps you have to remember.
The manual Dockerfile alternative
If you want full control, or you run a patched jar, a Dockerfile is short. The important parts are a matching Java runtime and an entrypoint that never allocates the whole container to the heap.
Build it with docker build -t my-mc-server . and treat the image as something you maintain by hand. For most readers the itzg image saves a weekend and keeps you patched.
A Working docker run Command
Here is a single command that starts a Paper server with a named volume for its data, which is the simplest option for a single host.
Two things matter here. The -v mc-data:/data line is what keeps your world after the container is replaced, and -e EULA=TRUE is you agreeing to the Minecraft End User License Agreement on behalf of the server. Accept it deliberately, not by copy-paste reflex.
The full docker-compose.yml
For anything you actually care about, use Compose. It documents every setting in one file, and docker compose up -d reproduces the whole server on any machine with Docker installed.
A few notes on the file. Compose reads a .env file alongside it, which is a good home for secrets. The ./mc-data bind mount on the left side of the colon means your world lives in a normal folder you can back up with any tool. The healthcheck block tells Docker and any dependent service when the server is genuinely ready, not just started. Install Compose as described in the Docker Compose documentation if the command is missing.
Persistent Data with Volumes
Containers are ephemeral by design, which is a feature until you delete a container and lose a three-year-old world. The rule is simple: anything you want to keep must live on a volume or a bind mount. Here is the layout that matters.
Path inside the container
What it holds
Keep it?
/data
World, server.properties, ops, whitelist, logs
Yes, always
/data/plugins (or /data/mods)
Plugin and mod jars
Yes, if you manage them by hand
/data/world and dimension folders
Overworld, Nether, and End regions
Yes
/backups
Exported archive output
Yes
/data/logs
Most recent logs
Optional
The most common split is a named volume for the whole /data directory, plus a host bind mount for a plugins folder so you can drop jars in from your editor. Both work at once: mount /data as a volume and mount ./plugins over /data/plugins.
Environment Variables, Healthchecks, and Restart Policies
The image is configured almost entirely through environment variables. These are the ones you will touch most often.
Variable
Purpose
Example
EULA
Accept the Minecraft EULA
TRUE
TYPE
Server flavour
PAPER
VERSION
Minecraft version or LATEST
1.21.4
MEMORY
Heap passed to the JVM
4G
ONLINE_MODE
Enforce Mojang authentication
TRUE
ENABLE_RCON
Turn RCON on or off
false
RCON_PASSWORD
RCON secret when enabled
change-me
DIFFICULTY
Server difficulty
normal
A healthcheck is what separates a container that is merely running from one that is serving players. The itzg image ships mc-health, so the check is a single line. Wire it into Compose and Docker marks the container healthy only once the server answers a real query.
Restart policies decide what happens after a crash or a reboot. restart: unless-stopped keeps the server alive across both while still respecting a deliberate docker stop. Reach for restart: always only if you never want a manual stop to stick. The full set of options is documented in the Docker restart policy reference.
Automated Backups and Safe Updates
Backups you do not have to remember
Run the archive from the host on a schedule. A short cron entry that tars the world folders into your mounted backup directory is enough to start:
0 4 * * * docker exec minecraft tar czf /backups/world-latest.tar.gz -C /data world world_nether world_the_end
Also enable the image’s built-in backup-on-stop support so a clean shutdown produces an archive, and copy the results off the host. A backup that lives only on the machine it protects is not a backup. If you host several servers, schedule the runs so they do not all compress at once and starve the CPU.
Safe updates: pull and recreate
Read the changelog for the new image tag and the new Minecraft version.
Take a backup and confirm the archive actually opens.
Edit the image tag or the VERSION variable in your Compose file.
Run docker compose pull and then docker compose up -d. Compose recreates the container and reuses the same volume.
Watch docker compose logs -f until you see the server listening, then join and verify with a real client.
Because the data is on a volume, the update is reversible: point VERSION and the image tag back to the previous values and recreate again. Never edit a running server’s jar in place and hope for the best.
Performance Considerations
cgroup memory limits versus -Xmx
This is the single most misunderstood part of running Minecraft in Docker. -Xmx tells the JVM how much heap to use. A cgroup limit tells the kernel how much memory the whole container may use, including the JVM’s non-heap memory, native libraries, and child processes. Set the container limit comfortably above the heap, typically heap plus 1 to 2 GB. If you set a 4 GB container limit and MEMORY=4G, the JVM can push the container past its cap and the kernel will kill it, which players experience as a random crash with no obvious cause.
CPU pinning and thread behaviour
Minecraft is largely single-threaded for tick logic, so adding cores does not raise TPS on its own. Pinning the container to a couple of dedicated cores with –cpuset-cpus can reduce jitter, and giving the main tick thread a fast, quiet core helps on a shared host. Over-limiting CPU with a hard quota, on the other hand, causes tick spikes when the server needs a burst during world generation. Match the limits to the workload rather than the spec sheet.
When Docker adds overhead, and when it does not
In our tests the container added a low single-digit percentage of CPU overhead in steady state, which is within noise for most servers, and startup was a few seconds slower, mostly because of jar download and JVM warmup. The overhead becomes real in two cases: I/O-bound workloads where a bind mount over a network filesystem adds latency, and memory-constrained hosts where the extra daemon overhead matters. On a machine that is already tight on RAM, bare metal can genuinely win. On a normal 8 GB or 16 GB VPS, the convenience of containers costs you almost nothing.
Security: Locking Down Your Container
Do not publish RCON. Port 25575 should stay inside the Docker network. Reach it with docker exec or from another container, never by mapping it to the host and opening it to the internet.
Run as non-root. Set the UID and GID so files written to a bind mount are owned by your normal user rather than root, which also keeps the container from editing host files it should not touch.
Isolate networks. Put the Minecraft container on its own user-defined bridge network and expose only 25565. A plugin that tries to reach your database should not be able to see the host’s other services.
Keep the image and the host patched. A stale image is a stale attack surface. Watch the itzg releases and your distro advisories, and rebuild on a schedule even when nothing feels urgent.
Data lives outside the container, so backups are on you
Easy to run several servers side by side
Debugging goes through logs and exec
Portable between VPS and dedicated hosts
The image is third-party and needs tracking
None of the cons are dealbreakers for a hobby or community server, and all of them are manageable with a little discipline around volumes and backups.
Common Mistakes and Expert Tips
Forgetting the volume. If your world is not on a volume or bind mount, it dies with the container. Check docker inspect before you trust it.
Setting MEMORY equal to the container limit. Leave 1 to 2 GB of headroom for non-heap memory, or the kernel will outsourced your server as an OOM kill.
Publishing RCON to the world. A mapped RCON port with a weak password is a remote admin interface for anyone who scans your IP.
Editing files inside a running container. Changes vanish on recreate. Edit the mounted folder on the host, then restart.
Tracking LATEST in production. A surprise world upgrade breaks plugins. Pin the version, test, then move deliberately.
Backups that never leave the host. Copy archives to another machine or object storage on a schedule.
Ignoring log growth. Logs and crash reports fill disks quietly. Rotate them or archive and prune.
The expert habit underneath all of these is to treat your Compose file as documentation. Anyone who reads it should be able to rebuild your server, and a fresh host should reach identical state with docker compose up -d.
Frequently Asked Questions
Is Docker slower than running a Minecraft server on bare metal?
Only slightly. In steady state the overhead is a low single-digit percentage of CPU, and start-up is a few seconds slower. It becomes noticeable mainly on I/O-bound storage or hosts that are already tight on memory.
Should I use a named volume or a bind mount for my world?
Use a bind mount when you want to browse, back up, and edit the files directly from the host, which is most people. Use a named volume when you want Docker to manage the storage location, such as on a host with a dedicated data disk.
How do I update the Minecraft version without losing my world?
Your world lives on a volume, not inside the container, so changing VERSION or the image tag and running docker compose up -d keeps it in place. Always back up first, because world upgrades can be one-way.
Can I run several Minecraft servers on one Docker host?
Yes, and this is where containers shine. Give each server its own Compose service, its own volume, and its own port or network, then set memory limits so they share the host predictably.
Conclusion: Start Small, Then Scale
Containerizing your Minecraft server is less about trend-chasing and more about turning a pile of manual steps into a file you can read, copy, and roll back. Start with the itzg image, a single volume, and a Compose file. Add a healthcheck, a restart policy, and a nightly backup the same week. Tune memory headroom and CPU limits once you have real player load, and keep the image patched.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.