1. 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.
    Code:
    :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
    
    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 typing
    Code:
    quit
    in the server console and done it will go through the same process as listed above.

    If any of you have issues or are confused just PM me or post down below, hopefully this helped many other serverowners like myself.
     
    Last edited by a moderator: May 5, 2016
  2. 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)
     
  3. It will only auto update Rust in that case.
     
  4. As i thought so, so remove -autoupdate and add timed command restart to come on every friday @ 1am (normally rust+oxide updated before midnight here GMT+3) and for that if it updates rust and forceinstalls old Oxide, it will stuck on start and if it wont install oxide at all server will run as vanilla before there is timed restart (on my case its about 8h from update 6AM + 6PM), so cant use it either way :D

    THANKS! i will start using this and see how it goes on next thursday :) (friday on my case)
     
  5. Keep in mind that some plugins may rely on the fact that they've been installed since the server was wiped, e.g. BuildingOwners (and I'm sure there are more plugins like that).
    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.
     
  6. i am aware of that and that is the reason i build "new" server on every WIPE. Change identity on .bat and config all mods again (copy old one) that needed (kits, vorerewards etc.) and make fresh install/config on other plugins, so when that restart command will run it will start "clean" server. And if there is some problems, i will be up around 6am on friday, so not so big deal if some update messes up my system :) 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 :)
     
  7. 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.
     
  8. i know what is needed on complete wipe (so no need to build new every time, but its easier to "automate" when i do that) much smoother wipe when its already done when update hits, only need to update and run .bat again (no need to do any settings in midnight :D) 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:D not easiest way, but best for me. Need to wake up at 6am on every morning, so not sharpest moment on midnight:D, so lets cut the crap and leave that OT here :)

    i will report on Friday how that worked:)
     
  9. 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.
     
  10. Didn't need to wait friday. Just found out that there has been update last night (little one or something) just checked and server is updated with Oxide (protocol didn't change i think, since ConstructionConfig is OK), but looks like its working fine so far

    Sounds great! i don't have time to do that, so its nice to see someone have :) (and what is the best thing that someone willing to share that :)
     
  11. 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.
     
  12. Wulf

    Wulf Community Admin

    PS. There are a few scripts that already handle this, as well as a standalone tool in the Rust Tools section.
     
  13. 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.
     
  14. Wulf

    Wulf Community Admin

  15. 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.
     
  16. Wulf

    Wulf Community Admin

    That's fine, just mentioning that there are options and existing scripts out there. ;)
     
  17. @Wulf Please wulf show me an easy configurated Full Auto updater with oxide that works with Windows Server 2008 R2. i have ben looking around for ages now. Murkys dont seem to work at it just get stucked at trying to connect to steam. (Rupdater (Windows) for Rust | Oxide )
     
  18. Wulf

    Wulf Community Admin

    I'm not familiar with any of the tools, and I don't suggest blindly updating like most do.
     
  19. Well if i dont blindly update then all players will leave due to high down time + i got a full time job and a kid now xD can keep up, getting old :) ..... So in my case i somehow have to get Murkys tool to work ? Thank you man for replying so fast !
     
  20. Wulf

    Wulf Community Admin

    Blindly update can often lead to more issues if a compatible Oxide build is not yet available. ;)

    I'd suggest watching our Release Changelog and only updating after that.