Skip to content

Instantly share code, notes, and snippets.

@Getty
Created July 18, 2015 09:46
Show Gist options
  • Save Getty/27fc659594854501aac7 to your computer and use it in GitHub Desktop.
Save Getty/27fc659594854501aac7 to your computer and use it in GitHub Desktop.
#!/bin/sh
set +x
TIMESTAMP=$( date +%y%m%d_%H%M )
~/save_server
cd ~/iceage
tar cvzf ~/backups/iceage_${TIMESTAMP}.tar.gz ShooterGame/Saved
#!/bin/sh
nano ~/iceage/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini
#!/bin/sh
set +x
cd ~/
bin/rcon -P"xxxxxx" -a127.0.0.1 -p27020 saveworld
sleep 5
#!/bin/sh
~/stop_server
cd ~/iceage/ShooterGame/Binaries/Linux
screen -d -m -S iceage ./ShooterGameServer TheIsland?listen -server -log
#!/bin/sh
~/save_server
screen -S iceage -X quit
#!/bin/sh
~/stop_server
~/backup_server
cd ~/SteamCmd
./steamcmd.sh +login anonymous +force_install_dir /home/iceage/iceage +app_update 376030 validate +exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment