1. i tried putting this in to a bat fie

    Code:
    :START
    echo %time%
    timeout 5 > NUL
    echo %time%
    @echo off
    echo.
    echo.
    echo ========================================
    echo ======      UPDATING SERVER       ======
    echo ========================================
    echo.
    echo.
    cd ./SteamCMDsteamcmd /wait +login anonymous +force_install_dir C:\rustserver\serveroxide +app_update 258550 -beta development validate +quit
    echo.
    echo.
    echo ========================================
    echo ======      UPDATING *OXIDE       ======
    echo ========================================
    echo.
    echo.
    bitsadmin /transfer downloadOxide /download /priority normal https://github.com/OxideMod/Snapshots/blob/master/Oxide-Rust.zip?raw=true C:\rustserver\serveroxide\Oxide-Rust.zip
    cd C:\rustserver\serveroxide
    7za.exe x Oxide-Rust.zip -oC:\rustserver\serveroxide
    del Oxide-Rust.zip
    xcopy C:\rustserver\serveroxide\Oxide-Rust C:\rustserver\serveroxide /e /y /a
    rd C:\rustserver\serveroxide\Oxide-Rust /s /q
    echo.
    echo.
    echo ========================================
    echo ======      STARTING SERVER       ======
    echo ========================================
    echo.
    echo.
    RustDedicated.exe -batchmode -server.port 28015 -server.hostname "[EU] EPIC [15x|TP|MAP|INST|STA|KIT|METEOR]" +server.worldsize 4000 +server.identity "meteor_server" +server.seed 816918 +server.maxplayers 200 -chat.serverlog 1 -server.netlog 1 server.saveinterval 300 -god 1 -autoupdate
    time /t >> shut.log
    echo %time%
    timeout 5 > NUL
    echo %time%
    GOTO:START
    but bitsadmin needs admin rigths to perform, and 7za, needs me to push a overwrite button. i really wanted this to be automatic.

    Anyone keen to help?
    Anybody?
    [DOUBLEPOST=1438252512,1438168513][/DOUBLEPOST]would have thought someone was able to help with this.. it would make automation much faster
     
  2. Hmm.. If you are using this on system drive then you always will need an administration rights.
    And your mistake at 7za.exe x Oxide-Rust.zip -oC:\rustserver\serveroxide
    Here should be 7za.exe x Oxide-Rust.zip -oC:\rustserver\serveroxide\Oxide-Rust
    That is why 7zip always asks for replace
     
  3. Thanks for the help.
    I also noticed one more error, and that was the xcopy /a. wasnt copying any files, with this attribute.

    The working script, for automatic update of server files, and oxide update plus restart of script, is in the code section.
    I made it so my server auto restarts each 6 hours with a plugin, and also have the autoupdate in the server config, so when it restarts, it runs the bat file again, and i dont need to manage it myself. now to build a way to get the plugin updates automatically :)

    Notice. Server files is now moved to other drive than root drive.

    Code:
    :START
    echo %time%
    timeout 5 > NUL
    echo %time%
    @echo off
    echo.
    echo.
    echo ========================================
    echo ======   UPDATING SERVER FILES    ======
    echo ========================================
    echo.
    echo.
    cd ./SteamCMD
    steamcmd /wait +login anonymous +force_install_dir G:\rustserver\serveroxide +app_update 258550 -beta development validate +quit
    echo.
    echo.
    echo ========================================
    echo ======      UPDATING *OXIDE       ======
    echo ========================================
    echo.
    echo.
    bitsadmin /transfer downloadOxide /download /priority normal https://github.com/OxideMod/Snapshots/blob/master/Oxide-Rust.zip?raw=true G:\rustserver\serveroxide\Oxide-Rust.zip
    cd G:\rustserver\serveroxide
    7za.exe x Oxide-Rust.zip -oG:\rustserver\serveroxide\Oxide-Rust
    del Oxide-Rust.zip
    xcopy G:\rustserver\serveroxide\Oxide-Rust G:\rustserver\serveroxide /e /y
    rd G:\rustserver\serveroxide\Oxide-Rust /s /q
    echo.
    echo.
    echo ========================================
    echo ======      STARTING SERVER       ======
    echo ========================================
    echo.
    echo.
    RustDedicated.exe -batchmode -server.port 28015 -server.hostname "[EU] EPIC [15x|TP|MAP|INST|STA|KIT|METEOR]" +server.worldsize 4000 +server.identity "meteor_server" +server.seed 816918 +server.maxplayers 200 -chat.serverlog 1 -server.netlog 1 server.saveinterval 300 -god 1 -autoupdate
    time /t >> shut.log
    echo %time%
    timeout 5 > NUL
    echo %time%
    GOTO:START
    [DOUBLEPOST=1438288409][/DOUBLEPOST]So this can be putted as solved. Maybe pinned as a guide.
     
  4. Do you already have a beta version for automatically updating plugins?
     
  5. Not possible with batch script as it is now
     
  6. Nice bat, I will try it out :)