In short
A game server test environment is a copy of your live server's files and database running on a separate machine. You create an hourly VDS, copy the live server with rsync and mysqldump, disable external connections such as webhooks and tokens, test the update, document the result and delete the server. You pay only for the testing time, and your live players are never affected.
In this guide
A server test environment (staging) is an exact copy of your live game server running on a separate machine. A new FiveM script, a framework update, a Minecraft version upgrade or a large modpack gets tried here first; if something breaks, only the copy breaks and your players never notice. Because testing lasts a few hours or a few days, an hourly billed VDS is the most economical option: you create the environment, test, delete it and pay only for the time you used.
Why you should not test on your live server
- Errors that are hard to undo: A bad database migration can corrupt player inventories, money or characters.
- Downtime: A resource that fails to start or an incompatible plugin can keep the server down for minutes, sometimes hours.
- Performance surprises: A new script can look fine at first and then slow the server down under load.
- Loss of trust: A server that breaks often loses players.
Which plan is enough for a test environment?
Usually only you and a few teammates connect to a test environment, so you do not need a machine as powerful as your live server. As a rough guide:
| Server being tested | Starting recommendation |
|---|---|
| Discord bot, small Minecraft (few plugins) | 2 cores, 2-4 GB RAM |
| Plugin-based Minecraft, FiveM + MariaDB (with few players) | 2 cores, 4-6 GB RAM |
| Heavy modpack, large FiveM script bundle, load testing | 4+ cores, 8+ GB RAM |
For most script and plugin testing, the FLEX-XEON-2 hourly Intel VDS (2 CPU, 4 GB RAM, 40 GB NVMe disk) is a balanced starting point. If you are testing a heavier modpack or running a load test, choose a plan with more RAM from the hourly Intel VDS plans. If possible, the test environment should run the same operating system as your live server; otherwise version differences can give misleading results.
Step-by-step test environment setup
1. Back up your live server
Before you start copying, make sure you have a current backup of the live server. Even while setting up the test environment, it is possible to send a command to the live server by mistake. The backup saves you not when something goes wrong in testing, but when something goes wrong on live.
2. Create the hourly VDS and set up basic security
Pick the operating system with automatic provisioning and create the server. Since the test environment is a server exposed to the internet, the first thing to do is lock down the firewall and allow only your own IP address (Ubuntu example):
ufw default deny incoming
ufw default allow outgoing
ufw allow 22/tcp
ufw allow from SIZIN_IP to any port 30120
ufw --force enable
In this example, the FiveM port (30120) is open only to your IP address; use 25565 for Minecraft. That way players cannot find and use the test server.
3. Copy the files
On Linux, the most practical method is rsync. Run this on the test server:
apt update && apt install -y rsync
rsync -avz --exclude 'cache/' root@CANLI_IP:/opt/fivem/ /opt/fivem-test/
In FiveM, the cache folder can be regenerated, so there is no need to copy it. In Minecraft, copy the world folders, plugins and config files together. On Windows servers, you can do the same by archiving and transferring the files or with robocopy.
4. Copy the database
Take a consistent dump on the live server, transfer it to the test server and load it into a new database:
# On the live server
mysqldump -u root -p --single-transaction --routines canli_db > canli_db.sql
# On the test server (MariaDB must be installed)
scp root@CANLI_IP:/root/canli_db.sql ./
mysql -u root -p -e "CREATE DATABASE test_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
mysql -u root -p test_db < canli_db.sql
Then point the connection setting on the test server to the new database. In FiveM, this is usually the mysql_connection_string line in server.cfg. If that line still points to the live database, you will change live data during testing, so do not skip this step. For MariaDB and oxmysql configuration, see the FiveM oxmysql and MariaDB setup guide.
5. Disable external connections
The copy carries over all of the live server's integrations. To keep notifications from reaching players and to keep logs from getting mixed up during testing, disable the following or replace them with test values:
- Discord webhook URLs and logging systems
- Discord bot tokens (if the same token runs in two places, the live bot's connection can drop)
- Store, donation and payment integrations
- Server list voting (Votifier) and promotion integrations
- Remote backup jobs (so they do not overwrite live backups)
- Server name: add
[TEST]at the front to avoid confusion
For FiveM, we recommend using a separate key from the Cfx.re portal in the test environment instead of the live server's license key.
6. Apply the change and test it
Now apply the update you want to test. Instead of poking around at random, work through a short test checklist:
- Does the server start without errors? Note any red lines and warnings in the console.
- Does the changed feature work as expected?
- Is existing player data (inventory, money, rank) preserved?
- Has resource usage changed? Measure it with
resmonin FiveM and Spark in Minecraft. - Does everything come back up automatically when the server restarts?
For performance measurement, you can freely apply the methods in the FiveM script optimization with resmon guide in your test environment.
7. Document the result and move it to live
If the test passes, write down the steps you applied in order: which files changed, which SQL commands ran and which config lines were updated. Roll it out to live following that list, at the time with the fewest players, and take a backup first. If the test fails, fix the issue on the copy and repeat the test.
Also prepare a short rollback plan for the live rollout: write down in advance which backup you will restore, and in what order, if the server does not start after the update. That plan keeps you from making panicked decisions when the server breaks at midnight, and it shortens downtime.
8. Delete the test environment
When you are done, do not just power off the server; a stopped server still reserves resources. Download anything you want to keep (for example, fixed config files) and delete the server from the client area. That stops billing and ensures a machine holding a copy of your live database is not left exposed on the internet.
Extra notes for Minecraft servers
In Minecraft, version upgrades and major plugin updates are the operations that need testing most. When you move to a new version, world files are converted on first launch and the conversion cannot be undone, so run the conversion on a copy of the world first. In the test environment, pay special attention to these:
- Do all plugins load on the new version? Are there lines like
Could not load pluginin the console? - Is the rank and permissions data (for example, LuckPerms) preserved?
- Are economy balances, plots and protected regions still in place?
- When you take a profile of a few minutes with Spark, is TPS close to 20?
In the test environment, keep the online-mode setting in server.properties the same as on the live server; if it differs, player IDs (UUIDs) change and data such as inventories and ranks get matched to the wrong players.
Make your test environment reusable
Repeating the same steps by hand for every update wastes both time and hourly charges. As you build your first test environment, collect the commands you run into a single script: package installation, firewall rules, rsync and database transfer, webhook and token changes. For the next test, you just create a new hourly server and run the script. Keep sensitive values (passwords, test tokens) in a separate file instead of hardcoding them in the script, and never upload that file to a public repository.
Test environment security: the overlooked risks
Test servers are often the weakest link. Development tools, ports left open and a copy of live data together create a serious leak risk. Follow these rules:
- Never run development servers (such as Vite, webpack dev server or phpMyAdmin) on a port exposed to the internet; use an SSH tunnel.
- Do not expose the database port (3306) externally.
- Delete the server when testing is over; forgotten test servers are a target for attackers.
For firewall and SSH hardening details, see the game VDS security: SSH, RDP and firewall settings guide.
Next step: spin up your test environment
To try your next big update without risking your live server, you can start with FLEX-XEON-2, or choose one of the OyunBulut hourly Intel VDS plans for heavier testing. If you get stuck during setup, open a support ticket for help (support is provided in Turkish).
Frequently asked questions
Does a test environment need to be as powerful as the live server?
No. Only a few people connect for functional testing, so a smaller plan is usually enough. A plan close to your live server makes sense only if you are running a load test.
Can players see the test server?
If you open the game port in the firewall only to your own IP address, players cannot connect to the server. Adding [TEST] to the server name also prevents confusion.
Can I use the same Discord bot token in the test environment?
It is not recommended; if the same token runs in two places, the live bot's connection can be affected. Create a separate bot application for testing in the Discord Developer Portal.
How do I copy the database to the test environment?
Take a dump on the live server with mysqldump, transfer it to the test server and load it into a new database. Then be sure to point the test server's connection setting to the new database.
Is powering off the server enough once testing is done?
No. A stopped server still reserves resources and still holds a copy of your live data. Downloading the files you need and deleting the server is the right move for both cost and security.