i tried putting this in to a bat fie
but bitsadmin needs admin rigths to perform, and 7za, needs me to push a overwrite button. i really wanted this to be automatic.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
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
Solved Need help with my update script
Discussion in 'Rust Discussion' started by [DK] IIIBARCODEIII, Jul 30, 2015.
-
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 -
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
-
Do you already have a beta version for automatically updating plugins?
-
Not possible with batch script as it is now
-
Nice bat, I will try it out