This guide walks you through moving an existing FiveM server from another host to Imperial Hosting, including its resources, server.cfg, and database.
Because a server usually contains thousands of files, this guide uses SFTP to transfer them.
Keep your old server running until your new server is set up and working. This gives you something to go back to if anything goes wrong.
You will need:
There are two ways to move your server. Decide which one you want before you start downloading files.
| Option | What happens | Best for |
|---|---|---|
| Option 1: New txAdmin setup | You move your server files and run the txAdmin setup wizard on Imperial Hosting. Your txAdmin admins, bans, warnings, and player history start fresh. | Servers that did not use txAdmin before, or owners who want a clean start. |
| Option 2: Keep your existing txAdmin data | You move your whole txData folder along with your server files. Your txAdmin admins, settings, bans, warnings, and player history come with you. |
Servers already running txAdmin that want to keep their history. |
Connect to your old host with SFTP and download the following:
| What to download | When |
|---|---|
Your server data folder, the folder that contains your resources folder and server.cfg |
Always |
Your whole txData folder |
Only if you are using Option 2 |
On many hosts, your server data folder is inside txData. If so, downloading txData downloads both.
You do not need to download the following:
| Folder or files | Why |
|---|---|
cache |
Temporary files that are rebuilt automatically when your server starts. |
| Server artifacts | The files that run FiveM itself, often in a folder named artifacts, server, or alpine. Imperial Hosting provides these for you. |
If your server uses a database, export it from your old host and import it into a new database on Imperial Hosting. Follow Moving a Database, then come back to this guide.
You will update your server's database details later, in Updating server.cfg.
Follow these steps if you want to run the txAdmin setup wizard and start with a fresh txAdmin profile.
To use txAdmin with your migrated server, follow the Setting Up txAdmin guide.
Pause the setup process when txAdmin prompts you to select your existing server data. You will upload your server files before continuing.
txData directory.txData.
Give your server data folder a short name without spaces, such as
myServer. You will need to locate this folder when returning to txAdmin.
server.cfgOpen server.cfg in your uploaded server folder from the Files page, and update it as described in Updating server.cfg.
Return to the txAdmin setup wizard.
txData.server.cfg.
Do not select the
txDatadirectory itself or a parent folder that contains your server folder. Select the actual server data folder containingserver.cfg.
When setup is complete, continue to Finish the Migration.
Follow these steps if you want to keep your txAdmin admins, settings, bans, warnings, and player history from your old host.
Imperial Hosting starts txAdmin with a profile named
default. Your old txAdmin profile folder must use this name, or txAdmin will not find it.
Do not start your server yet. If you have already started it and completed txAdmin setup, create a backup and then delete everything inside your Imperial Hosting txData folder before continuing.
txData FoldertxData directory.txData folder into it, such as your profile folder and admins.json.txData folder, upload it into txData as well.When you are done, your txData folder should look similar to this:
txData/
├── default/
├── myServer/
│ ├── resources/
│ └── server.cfg
└── admins.json
Upload the contents of
txData, not thetxDatafolder itself. A path liketxData/txData/defaultwill not work.
Your txAdmin profile is the folder inside txData that contains txAdmin's config.json and data folder.
If your profile folder is already named default, skip this step. Otherwise:
txData on the Files page....) menu and select Rename.default.server.cfgOpen server.cfg in your server data folder from the Files page, and update it as described in Updating server.cfg.
Because your admin accounts were moved with txData, txAdmin does not show the setup wizard or ask for a registration PIN.
txAdmin remembers where your server data folder was on your old host. Because that location is different on Imperial Hosting, txAdmin may report that it cannot find your server data.
/home/container/txData/myServer/
The path must be the folder that directly contains
server.cfg. Paths from your old host, such asC:\FXServer\server-data, do not work on Imperial Hosting.
When your server starts successfully, continue to Finish the Migration.
Both options require you to update your server configuration to use your Imperial Hosting allocations and database.
| Setting | What to change |
|---|---|
endpoint_add_tcp |
Set to "0.0.0.0:PORT", using your primary port from the Network page. |
endpoint_add_udp |
Use the same primary port as endpoint_add_tcp. |
set mysql_connection_string |
Update with your new database connection details. See Connecting a Resource to a Database. |
sv_licenseKey |
Use a server registration key created for your Imperial Hosting server through the Cfx Portal. |
For example, if your primary port allocation is 30143, your endpoint settings should look like this:
endpoint_add_tcp "0.0.0.0:30143"
endpoint_add_udp "0.0.0.0:30143"
Replace 30143 with the primary port assigned to your server.
The primary allocation is the port players use to connect to your server. Do not use the secondary allocation reserved for txAdmin.
If you need to keep your old server running while testing the new one, create a separate server registration key for the new server. If you intend to reuse your existing key, check its restrictions and shut down the old server if necessary.
Save your changes before continuing.

If resources fail to start, see the console messages table in Installing a Resource.
Once your new server is working correctly:
cfx.re/join link with your players. If you use a new server registration key on Imperial Hosting, your join link changes and saved favorites will not work. See Connecting to Your Server.Learn how to enable and configure txAdmin for your FiveM server.
Learn what each folder inside txData is for.
Connect to your server and upload large numbers of files.
Export your old database and import it into Imperial Hosting.
Find your database details and configure your resources to use them.
Connecting a Resource to a Database
Find your server's address and primary port.
If you run into any issues or need support, our team is here to help.
Join our Discord.
Open a support ticket through our Help Desk.