Here's how to set up and handle server updates conveniently through Steam using
SteamCMD. Using SteamCMD, you minimize the effort to update the server files down to one command and only download changes since last time.
While this tutorial is for Linux, it should be easily adapted for Windows too.
Once you have everything set up, simply calling the following command will make the update happen.
Code:
./steamcmd.sh +runscript steamcmd_update_rwr.txt
So, let's prepare the stuff on your Linux box to get to that, we'll start from a situation where you don't have any previous server files in use. I'm going to assume you're not using the root account.
Create a folder for RWR server files, and access itCode:
mkdir rwr_server
cd rwr_server
Download SteamCMD and do the first-time launchCode:
curl -O http://media.steampowered.com/installer/steamcmd_linux.tar.gz
tar -xvzf steamcmd_linux.tar.gz
./steamcmd.sh
(type quit in SteamCMD to exit)
Download the update scriptCode:
wget http://www.runningwithrifles.com/wp/steamcmd_update_rwr.txt
Fill in your Steam account credentials in steamcmd_update_rwr.txt at <username> and <password>Code:
nano steamcmd_update_rwr.txt
(work)
- Steam has this to say about using SteamCMD and Steam accounts:
Quote:
Note:For security reasons it is recommended that you create a new Steam account just for your dedicated servers.
Note:A user can only be logged in once at any time (counting both graphical client as well as SteamCMD logins).
- Personally I'm using another account, but not sure if it's really
that relevant as long as you don't have several Steam clients logged in. Just remember your password is written in readable text in the script which is probably not the brightest idea out there. Feel free to edit the script if you want it to e.g. prompt the password instead.
Do the updateCode:
./steamcmd.sh +runscript steamcmd_update_rwr.txt
- Steam Guard will probably ask for a confirmation code, get it from your e-mail and fill it in, it's only asked once
That's it for the setup!
Next time when there's an update, just execute Do the update -part and you're done.
You may at this point need to re-copy your server specific changes (at least server_settings*, admin_settings*, could be others) in case SteamCMD just overwrote some of your files - I try to avoid touching those files in general but some changes are bound to happen eventually to the templates. It's a good idea to keep a copy of your own files for this case. There will be improvements in this stuff in the future, but we're not in future yet so just keep those backups.