Automated Server Build Script

4 posts in this topic

Hello everyone,

Here I have for you a dirt simple automated build script for Arma 3 mod servers running windows. This is basically a script that will automatically back up, transfer files, and PBO pack files on server restart. I realize that this may be elementary to the majority of experienced server admins, as it is just some simple batch script. But for those who are newer, unfamiliar with windows batch scripts, OR those who simply haven't thought of it yet... Here ya go. This was mostly just something I used as my first upload while familiarizing myself with GitHub. But I figured someone might get some use out of it. I know it has saved me tons of time and frustration. 

So here we go...

This is a simple system to automatically add edits to your Arma 3 server on restart. 
This prevents the administrator from having to be present when the server restarts,
and manually add PBO's and files. 

To set up, simply edit "autobuild.bat" to your liking, with any folders and files you wish 
to have backed up, packed into PBO's or imported to the server. Then on server restart,
trigger "autobuild.bat" This can be done by triggering it with Battleye extended controls,
and can replace whatever script you are using to kill the server. If you use any other 
method to restart the server (such as the built-in Exile restart) then you can trigger
this script via any other manner on restart (daemon tools, task scheduler, etc.) Simply 
make sure that this script executes AFTER server shutdown, and BEFORE server startup. 
It takes about a second to run, even with several files to handle, so it shouldn't be
too much trouble. 

It is recommended that you set up a staging server directory, and configure the 
script to copy the changes made to the staging area, to the live server directory. 
Whenever a new change is made, add the file or folder to the restart script, 
and it will be automatically built and transferred to the live server. 

Due it's nature, this script will obviously only be available to those using 
a dedicated server with full file system access. 



You are free to use, modify, share, republish, or do anything whatsoever you like with this. I don't claim any license on it because it is a simple script that could be created by anyone with any knowledge of windows batch scripts, or 5 minutes of google searching. It's more of a good idea than software. 

Hope it helps. 

  • Like 4

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.