Raised This Month: $32 Target: $400
 8% 

csgo backup cfg update restore cfg simple script


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
marcintojatak
BANNED
Join Date: Sep 2010
Location: PL
Old 10-05-2013 , 19:26   csgo backup cfg update restore cfg simple script
Reply With Quote #1

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 <--
Attached Files
File Type: txt csgo-cfg_back_up-update-cfg_restore.sh.txt (1.7 KB, 451 views)

Last edited by marcintojatak; 03-27-2014 at 18:45.
marcintojatak is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-06-2013 , 04:41   Re: csgo backup cfg update restore cfg simple script
Reply With Quote #2

no no no, leave valve default cfg's alone. Don't edit those.
If you look csgo default gamemodes.txt
Code:
					"exec"
					{
						"exec" "gamemode_competitive.cfg"
						"exec" "gamemode_competitive_server.cfg"
					}
You create ...csgo/cfg/gamemode_competitive_server.cfg for override gamemode_competitive.cfg cvars

*edit
Use these cfg files for override game modes


*edit
and leave gamemodes.txt alone, use gamemodes_server.txt
__________________
Do not Private Message @me

Last edited by Bacardi; 10-06-2013 at 04:45.
Bacardi is offline
marcintojatak
BANNED
Join Date: Sep 2010
Location: PL
Old 10-06-2013 , 06:20   Re: csgo backup cfg update restore cfg simple script
Reply With Quote #3

connect <---

========================
---->>>> FOTO TUTORIAL CS:GO
ALL MAPS WORKS & CUSTOM PLAYERS
SKINS & NO PROBLEM WITH MAP GROUPS
CONNECT TO SRV AND PLAY <<<<----
========================

YES YES YES i use my cfg files configurated [not valve standard file that restore its
ok for me:] this script update srv but old cfg i restore working cfg i use
gamemodes.txt and all works greate for me.I am using this method but yours method
are working and meabe evriting next to valve update will be work but i use my method and all work fine

on pictures see:/csgo/gamemodes.txt , /csgo/cfg/autoexec.cfg , /csgo/cfg/gamemode_competitive.cfg ,
my start line command thats too maybe be useful
Attached Thumbnails
Click image for larger version

Name:	start_line.png
Views:	982
Size:	6.3 KB
ID:	126507   Click image for larger version

Name:	autoexec_cfg.png
Views:	1110
Size:	73.0 KB
ID:	126508   Click image for larger version

Name:	csgo1.png
Views:	659
Size:	33.1 KB
ID:	126509   Click image for larger version

Name:	csgo2.png
Views:	889
Size:	52.8 KB
ID:	126510   Click image for larger version

Name:	csgo3.png
Views:	674
Size:	21.9 KB
ID:	126511  

Click image for larger version

Name:	csgo4.png
Views:	862
Size:	26.7 KB
ID:	126512   Click image for larger version

Name:	csgo5.png
Views:	550
Size:	38.4 KB
ID:	126513   Click image for larger version

Name:	cfg.png
Views:	733
Size:	27.8 KB
ID:	126515   Click image for larger version

Name:	gamemodes.txt1.png
Views:	737
Size:	95.2 KB
ID:	127398   Click image for larger version

Name:	gamemodes.txt2.jpg
Views:	691
Size:	86.3 KB
ID:	127399  


Last edited by marcintojatak; 11-02-2013 at 08:29.
marcintojatak is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode