-
Notifications
You must be signed in to change notification settings - Fork 85
Additional Setup ‐ Manual backup
🧭 You are here : Wiki home / Additional Setup / Manual backup
As CRCON is running in Docker containers, you don't have to backup anything else but its own folder on your VPS.
Caution
You SHOULD NOT backup a CRCON while it's running.
The CRCON's folder contains the database files, which are accessed multiple times per minute, even if there's no player on your game server.
Making a copy of a running CRCON's folder WILL lead to data loss in the backup.
You could even get a backup containing a corrupted database.
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.
cd /root/hll_rcon_tool
docker compose downcp -r /root/hll_rcon_tool "/root/hll_rcon_tool_backup_$(date '+%Y-%m-%d')"Note : this may take some time, especially on CRCON(s) that have been managing one or several crowded game servers for a while, as their database(s) contain all the logs the game server(s) have sent.
You now have a full copy of your CRCON installation on your VPS, in the /root/hll_rcon_tool_backup_XXXX-XX-XX folder.
docker compose up -d --remove-orphansCRCON's files aren't very large, but its database could grow to several GBs as it has been running for weeks/months/years.
So you may want to compress the backup folder, either to minimize the storage space it occupies, or to send a copy of it to another server or your personal computer.
-> Follow the Migrating steps.
Warning
Remember to replace the compressed folder's name in the commands
(hll_rcon_tool -> hll_rcon_tool_backup_XXXX-XX-XX).
If you want to revert your CRCON back to the state it was on backup time, you'll have to enter these commands:
cd /root/hll_rcon_tool
docker compose down
cd /
mv /root/hll_rcon_tool /root/hll_rcon_tool_bad
cp -r /root/hll_rcon_tool_backup_XXXX-XX-XX /root/hll_rcon_tool
cd /root/hll_rcon_tool
docker compose up -dYou'll then have three CRCON folders :
- the running version :
/root/hll_rcon_tool; - the initial backup, similar to the running version :
/root/hll_rcon_tool/backup_XXXX-XX-XX; - the reverted ("bad") version :
/root/hll_rcon_tool_bad.
Tip
We advise to keep it, as you want to have it handy in case of major failure of the running version.
rm -r /root/hll_rcon_tool_backup_XXXX-XX-XXDelete the "bad" version
rm -r /root/hll_rcon_tool_badHell Let Loose (HLL) Community RCON (CRCON) Wiki - Back to Home
Maps
Records
Settings
Others
Stats
(TODO)
- Admin panel (needs update)
- Migrate CRCON to another VPS
- Replace the game server managed in CRCON
- Adding a game server to manage in CRCON
- Overview Project Structure
- Development environment
- Building your own Docker images
- CRCON API
- Streaming Logs
- Remotely connect to the PostgreSQL database
- Miscellaneous (needs update)
- HLL RCON Commands
- HLL RCONv2 Commands
- Please look at this first
- Ask for help