This is a simple guide to setup a Rust Oxide Server with automatic updates every time the server restarts in anyway.
First, lets get what you need to make this server. {This has only been tested on Windows Server 2008, but should work with all other Windows operating systems}
SteamCMD:
https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip
WGet:
http://pilotfiber.dl.sourceforge.net/project/gnuwin32/wget/1.11.4-1/wget-1.11.4-1-setup.exe
7Zip:
Download
Second, lets install both 7Zip and Wget and you will need there locations(C:\\Program Files x86 or whatever). Lets also copy and paste SteamCMD into a folder somewhere on your computer this location you will need as well so we can update Rust to the latest version.
Third, after everything is installed create a folder on your computer/server for your rust server directory. After you have done this create a batch file and add the text below.
Finally, start up your batch file and let it run and it will update and add all necessary items including oxide as well as start up your server. A quick way to shutdown your server during an update is by typingCode::STEAM @echo off "Location of your SteamCMD Folder\steamcmd.exe" +login anonymous +force_install_dir "Where your batch file and rust server folder is located" +app_update 258550 validate +quit goto OXIDE:OXIDE @echo offfor /F "tokens=2,3,4 delims=/ " %%i in ('date/t') do set y=%%k for /F "tokens=2,3,4 delims=/ " %%i in ('date/t') do set d=%%k%%i%%j for /F "tokens=5-8 delims=:. " %%i in ('echo.^| time ^| find "current" ') do set t=%%i%%j set t=%t%_ if "%t:~3,1%"=="_" set t=0%t% set t=%t:~0,4% set "theFilename=%d%%t%" echo %theFilename%cd "Where your WGet folder is located\GnuWin32\bin" wget.exe --no-check-certificate https://raw.githubusercontent.com/OxideMod/Snapshots/master/Oxide-Rust.zip --output-document "Where ever you want this zip to save will be delete by the end on update\Oxide-Rust.zip""Where your 7Zip folder is located\7-Zip\7z.exe" x -spe "Where ever you want this zip to save will be delete by the end on update\Oxide-Rust.zip" -o"Where your Rust server directory and batch file folder is located" -aoa del "Where ever you want this zip to save will be delete by the end on update\Oxide-Rust.zip" del "Where your Rust server directory and batch file folder is located\_start-example.bat" goto SERV:SERV @echo off cd "Where your Rust server directory and batch file folder is located" RustDedicated.exe -batchmode -server.port 28017 -rcon.port 28018 -rcon.password "Muffin" -server.seed 5692 -server.identity yourserviden_Server -server.hostname "Your Server Name" -server.maxplayers 75 -autoupdate goto STEAM
in the server console and done it will go through the same process as listed above.Code:quit
If any of you have issues or are confused just PM me or post down below, hopefully this helped many other serverowners like myself.
Solved Automating updates for Rust Oxide server
Discussion in 'Rust Discussion' started by Ryan Pound, May 5, 2016.
-
Nice! So far looks like its working, but what will happen when RUST updates and there is no Oxide Update yet? will it launch "autoupdate" right after RUST update released or will that "autoupdate" wait Oxide to update too? (just thinking that i will remove that -autoupdate if it will force update before Oxideupdate live)
-
-
THANKS! i will start using this and see how it goes on next thursday(friday on my case)
-
Make sure that you've got no plugins installed where the data file might contain incomplete state as a result of running the server on vanilla for a while.
If you checked that and you don't care about your server potentially being down until the next restart (or potentially even until you check the next time, there have been occasions where after an update servers were in a broken state where they would neither boot nor update) then you're good to go. -
And for sure there will be problems. EVERY update fcks up with something (haven had any updates yet that has gone straight without needed to do something with server/plugins)
Just for the record, i am self hosting from home cloud(data directory), so its easy to build new server anytime i want to(just change that .bat and run it on another computer, so its there already)
So i will try what happens -
Well, that seems a bit complicated. To completly wipe the server you only have to wipe your map save, plugin data and the blueprint database.
Either way, whatever floats your boat I guess. -
) and WHEN something goes wrong i can fix those up on next morning when maybe little sharper than in night
it takes about 10min to build new one with configurations and test that "new" server(completely on different computer), so its not so big deal to do lets say on Thursday around 6PM, but when I do wipe on a night there is always something i forgot to remove / change or whatever
not easiest way, but best for me. Need to wake up at 6am on every morning, so not sharpest moment on midnight
, so lets cut the crap and leave that OT here
i will report on Friday how that worked -
Yea this weekend ill come out with a better autoupdate solution to check oxide every hour on a separate batch and it will report with no update and or report with an update and if that update is possible then it will update everything including Rust itself and that batch will loop for as long as it is on and server will be shutdown normally and start back up like normal.
-
(and what is the best thing that someone willing to share that
-
Let me rephrase that current statement. So I am just resolving current issues with the batch making hourly checks and need it to check the live version of oxide and compare it to the latest installed version and if it is the same version it will ignore and go through the hourly wait to check the version again or it will say new version available and update the server with both oxide and rust server update if a new one is out at that current time. Hopefully will come out with it this coming weekend and will resolve past issues as well as make an easy first install script to help make life easier.
-
Wulf Community Admin
PS. There are a few scripts that already handle this, as well as a standalone tool in the Rust Tools section.
-
I'm just trying to make a script that updates rust server as well as rust oxide and i doubt the Steam tools for Rust will update both.
-
Wulf Community Admin
-
But it is good to try and achieve something and learn from your mistakes so this helps me learn as well as give the people a new way to update their servers haste free.
-
Wulf Community Admin
-
-
Wulf Community Admin
-
..... So in my case i somehow have to get Murkys tool to work ? Thank you man for replying so fast !
-
Wulf Community Admin
I'd suggest watching our Release Changelog and only updating after that.