Skip to main content

Import Server

If you already have a FiveM server and want to move it to Raznar, you can upload the old data to the new server. This guide focuses on moving:

  • Resource data (the contents of the resources folder) → to /home/container/resources
  • txAdmin data (the contents of the txData folder) → to /home/container/txData

1. Prepare the Old Data

From the old hosting, prepare two archives. Zip the contents of the folders, not the folders themselves — so that when you Unarchive, the files land directly in the target folder without a nested folder (for example resources/resources).

  1. resources.zip → the contents of the resources folder (all files and folders inside it, without the resources folder itself, and without the built-in cfx-server-data).
  2. txdata.zip → the contents of the txData folder (all files and folders inside it, without the txData folder itself).
UPLOADING LARGE FILES

Uploading through the File Manager (Control Panel) is capped at 100 MB. For larger archives, separate out large resources and upload them one by one, or use SFTP so the upload process is faster and more stable — read How to Upload/Download Files via SFTP for the steps.

2. Upload Resources

  1. In the Game Panel, stop the server first through the Console menu → Stop.
  2. Open the Files menu, then go into the /home/container/resources folder.
  3. Upload resources.zip into that folder:
    • Through the File Manager (the Files menu) if it is under 100 MB.
    • Through SFTP if it is more than 100 MB, because uploads in the Control Panel are capped at 100 MB. Guide: How to Upload/Download Files via SFTP.
  4. Once finished, click the three-dot icon on the resources.zip file and choose Unarchive.

Uploading resources.zip to /home/container/resources

3. Make Sure server.cfg Runs the Resources

  1. Open server.cfg.
  2. Make sure all resources are ensured, for example:
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure [pma-voice]
  1. Save the changes.

List of ensured resources in server.cfg

4. Upload txAdmin Data

  1. Go back to the Files menu.
  2. Go into the /home/container folder. If it doesn't exist yet, create a txData folder (click New Folder), then go into /home/container/txData.
  3. Upload txdata.zip into that folder:
    • Through the File Manager (the Files menu) if it is under 100 MB.
    • Through SFTP if it is more than 100 MB, because uploads in the Control Panel are capped at 100 MB. Guide: How to Upload/Download Files via SFTP.
  4. Once finished, Unarchive txdata.zip in that folder.

Uploading txAdmin data to /home/container/txData

IMPORTANT

The /home/container/resources and /home/container/txData folders are two different locations. Make sure the contents of the resources are uploaded into the resources folder, and the contents of txData are uploaded into the txData folder. Zip the contents of the folders (not the folders themselves) to avoid nested folders such as resources/resources or txData/txData.

SET THE SERVER DATA FOLDER IN TXADMIN

In txAdmin → Settings → FXServer, change Server Data Folder to /home/container. This folder is the folder that contains the resources folder (and is also where server.cfg lives).

If you don't point it there, txAdmin won't recognize your resources and old data. If needed, use the Reset button next to that field to return to the Setup page.

5. Import Database (Optional)

If the old server used a database, first export the database from the old hosting (.sql), then import it into a new database on Raznar. Create the database through Setup Database.

6. Run the Server

  1. Open the Console menu.
  2. Click Start.
  3. Check the log to make sure the resources load without errors and txAdmin recognizes the old data.
  4. Connect to the server and make sure everything runs normally.

Server running with the old data

tip

Still have a resource erroring? Double-check the folder names in resources (they must match what is ensured) and make sure dependencies such as oxmysql are installed.