Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- REM DayZ cmd batch-file to restart server after crash or periodic reboot
- REM This doesn't create a service or anything, you still need to log into the server and run the .bat file
- REM this batch-file depends (or at least is intended to work with) the following additional pastes:
- REM Periodic reboot schedule update to DayZ config: https://pastebin.com/1KVDnc4D
- REM Powershell for daily dayz incremental backups https://pastebin.com/ibf8ephZ
- REM Powershell to limit incremental zips to one week https://pastebin.com/muwsXgG8
- cd C:\dayz-server
- :goon
- rem back up dayz between executions, prune back to one week retention
- powershell -ExecutionPolicy Bypass -File "c:\users\administrator\documents\dayz-bak.ps1"
- powershell -ExecutionPolicy Bypass -File "c:\users\administrator\documents\clean-zips.ps1"
- rem update the app during reboots, if one's available
- c:\Steamcmd\steamcmd.exe +force_install_dir c:\dayz-server +login anonymous +app_update 223350 validate +quit
- rem execute the server with extra logs 'cause I'm "that guy"
- DayZServer_x64.exe -config=serverDZ.cfg -port=2302 --dologs -adminlog -netlog -freezecheck -profiles=c:\dayz-server\DayZServerprofiles
- rem crash? Go on! (or if it's a scheduled reboot...still go on)
- goto goon
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement