Minecraft on Linux VPS: systemd and резервные copies

Guides

Start Minecraft on Linux VPS of отдельного пользователя: Catalog, systemd, Magazine, Consistent backup, Storage and check восстановления.

  • 5 min read
  • 5 views
  • 10 sections
My Game select version

Save your preferences in this browser and apply them to supported tools. Settings in a shared link take priority. Wiki version labels are not affected.

On this page 10 sections

At a glance

Main points — details below

Split the installation into three test results: the server is running from a separate user, the service correctly stops it, the backup copy is actually recovering. A copied live world catalogue without matching the record is not yet a reliable image.

Prepare directory and runtime

Select the core and version of Minecraft, then Java from their documentation. New and old branches have different requirements. Create a separate system user with no extra rights and a catalogue like /srv/minecraft. Give it only the necessary files. Just download the formal JAR of the selected kernel, run the first time and read EULA before it is adopted. Open only the games ports used.

Minimal systemd service

Example for a server that is suitable for the selected Java; replace the path and memory size to suit your runtime and VPS.

[Unit]
Description=Minecraft server
After=network.target

[Service]
User=minecraft
WorkingDirectory=/srv/minecraft
ExecStart=/usr/bin/java -Xms1G -Xmx3G -jar /srv/minecraft/server.jar nogui
Restart=on-failure
TimeoutStopSec=180
KillSignal=SIGINT

[Install]
WantedBy=multi-user.target

Save as /etc/systemd/system/minecraft.service, execute sudo systemctl daemon-reload and sudo systemctl enable --now minecraft. Check systemctl status minecraft and journalctl -u minecraft -n 100. The 3G value is an example, not a universal recommendation; leave OS memory.

Checking stopping and restarting

Connect, create a test block, step out and stop the service. In the journal, wait until the worlds are preserved and the process is finished before TimeoutStopSec. Start again and check the block. If forced completion takes place on time-out, extend the reasonable limit and find a delay, rather than declare a successful stop on one systemd status.

Consistent backup

For the first replicable option, use a scheduled window: alert the players, stop the service, make sure you complete the storage, copy the server directory to a separate location, then start the service. In a copy, include all worlds, plugins/mods, seizures, player data and associated databases. If an external OBD is used, take off the agreed documentation dam of their engine. A live image can only be taken with a clearly built-in storage protocol and reconciliation of all storage facilities.

Schedule and storage

Enter the checked script into a separate service oneshot and systemd timer. Before setting up the schedule, run manually and check the completion code. Add the blocking of parallel launches, the time mark and the result log. Rotation should remove only old copies tested after successfully creating the new one. Keep at least one copy outside the VPS disk and limit access to user data archives.

Recovery rehearsal

Step Criterion
Развернуть in Individual Catalog Исходный Server not перезаписан
Set другой port and закрытый Access players not попадут in Test случайно
Launch нужную Java and Server software MIR читается Without миграции on случайную Version
Осмотреть MIR and Data buildings, инвентари, Permissions and Economy on месте
Write Runtime Известно реальное time восстановления

Until a successful rehearsal, the presence of the archive only confirms the creation of the file. After updates, repeat the recovery with a new set of versions.

Frequently asked questions

Is it possible to run the server as root?

This guide uses a separate user with limited access. A regular game does not require OS administrative rights.

Is it enough to archive only world?

No, multiple dimensions, playerdata, plugins, mods and external databases can be stored separately.

How often should I make copies?

Select the interval between the permissible loss of progress and the cost of the image. More important is a verified recovery and an external copy than a random number of archives.

Sources and related materials

Certificate verified on November 2, 2026. Project versions and example conditions are indicated in the text.

Next step

Read on

Tech Chunky and Paper Anti-Xray
4 min 5

Chunky and Paper Anti-Xray: Preparation world Servers

Предгенерация Chunky and Protection Paper Anti-Xray: Borders world, Disk position, Pause задач, Game modes обфускации and check клиентом.

Tech Minecraft domain without port
4 min 5

Minecraft domain without port: A, AAAA and SRV

Configuration адреса Java-сервера Via DNS and SRV: Name узла, port, check records, IPv6 and отдельные Conditions подключения Bedrock.

15 plugins
13 min 11

Plugins for Minecraft server: 15 обязательных on Paper

LuckPerms, EssentialsX, WorldGuard, CoreProtect, AuthMe, Grim, TAB and more восемь plugins, Without которых not обходится почти none Server no mods. What everyone does, what they need to do, and in what order.