This was the keynote
============================================
working cfg back up->valve update->restore working cfg->
restart srv->play on update srv
============================================
hello i have simple script to back up cfg files on srv update him and restore working cfg to yours
linux csgo srv + valve update srv dont run properly this simple script = server work properly with
old cfg
Daily update, or which hour you set
useful to me somebody could also be useful
download script
change name to csgo-valve-update-restore.sh or another small size name cut .txt
run in directory with script
dos2unix csgo-cfg_back_up-update-cfg_restore.sh
chmod +x csgo-cfg_back_up-update-cfg_restore.sh
crontab -e
0 4 * * * cd /home/srv/csgo && ./csgo-cfg_back_up-update-cfg_restore.sh >/dev/null 2>&1
server on 4am update itself & restart.
* edit screen name to yours startline screen name & edit directory access path to
yours game srv and steamcmd directory & ftp user name who can access to yours
csgo srv that all
happy playing on yours updated srv
this is in file:
#!/bin/bash
cp /home/srv/csgo/maplist.txt /home/srv/csgo/maplist.txt.update
cp /home/srv/csgo/mapcycle.txt /home/srv/csgo/mapcycle.txt.update
cp /home/srv/csgo/motd.txt /home/srv/csgo/motd.txt.update
cp /home/srv/csgo/gamemodes.txt /home/srv/csgo/gamemodes.txt.update
cp /home/srv/csgo/cfg/gamemode_competitive.cfg /home/srv/csgo/cfg/gamemode_competitive.cfg.update
cp /home/srv/csgo/cfg/gamemode_casual.cfg /home/srv/csgo/cfg/gamemode_casual.cfg.update
cp /home/srv/csgo/cfg/gamemode_armsrace.cfg /home/srv/csgo/cfg/gamemode_armsrace.cfg.update
cp /home/srv/csgo/cfg/gamemode_demolition.cfg /home/srv/csgo/cfg/gamemode_demolition.cfg.update
cp /home/srv/csgo/cfg/gamemode_training.cfg /home/srv/csgo/cfg/gamemode_training.cfg.update
cd /home/steamcmd && ./steamcmd.sh +login anonymous +force_install_dir /home/srv/csgo/ +app_update 740 validate +quit
mv /home/srv/csgo/maplist.txt.update /home/srv/csgo/maplist.txt
mv /home/srv/csgo/mapcycle.txt.update /home/srv/csgo/mapcycle.txt
mv /home/srv/csgo/motd.txt.update /home/csgo/srv/motd.txt
mv /home/srv/csgo/gamemodes.txt.update /home/srv/csgo/gamemodes.txt
mv /home/srv/csgo/cfg/gamemode_competitive.cfg.update /home/srv/csgo/cfg/gamemode_competitive.cfg
mv /home/srv/csgo/cfg/gamemode_casual.cfg.update /home/srv/csgo/cfg/gamemode_casual.cfg
mv /home/srv/csgo/cfg/gamemode_armsrace.cfg.update /home/srv/csgo/cfg/gamemode_armsrace.cfg
mv /home/srv/csgo/cfg/gamemode_demolition.cfg.update /home/srv/csgo/cfg/gamemode_demolition.cfg
mv /home/srv/csgo/cfg/gamemode_training.cfg.update /home/srv/csgo/cfg/gamemode_training.cfg
chown -R csgo-ftp:csgo-ftp /home/srv/csgo
screen -dr srv-csgo -X quit
screen -wipe
cd /home/srv/csgo && ./srv-csgo.sh
change name to smaller
edit with notepad++
csgo-update.sh <--