Additional Setup ‐ Backup and restore settings - MarechJ/hll_rcon_tool GitHub Wiki

🧭 You are here : Wiki home / Additional Setup / Backup and restore settings


0. Enter an SSH session on your VPS

See this guide to get into a SSH terminal prompt.

[!NOTE] We'll assume you have installed CRCON in its default /root/hll_rcon_tool folder, following the installation guide.
Adapt the commands given below if necessary.

Backup settings

Maybe you want to reinstall CRCON, but want to start a new database ?
As the user settings are stored in the database, if you want to keep them the same on your new CRCON, you'll have to manually copy/paste ALL of them from the "old" to the "new" CRCON UI.
That could be very time-consuming.

This command will export them all into a unique JSON file that will be located in CRCON's config/ folder.
You'll then be able to import this file in you new CRCON as easily.

cd /root/hll_rcon_tool
docker compose exec -it backend_1 python -m rcon.cli get_user_settings 1 /config/backup_settings_1.json

[!TIP] As you can guess, the 1 digit (in three different places) in the line above asks for game server #1 user settings.
If you're managing more than one game server in your CRCON, you'll have to repeat the command using 2, 3, etc.

Restore settings

This command is the reverse of the above one.
If you're managing more than one game server in your CRCON, you'll have to repeat the command using 2, 3, etc.

cd /root/hll_rcon_tool
docker compose exec -it backend_1 python -m rcon.cli set_user_settings 1 /config/backup_settings_1.json

Remember some settings are used to configure CRCON Docker containers.
So you'll be advised to restart CRCON after having them imported/restored.

cd /root/hll_rcon_tool
docker compose down
docker compose up -d --remove-orphans