Automated Upgrade WIN

= AUTOMATED UPGRADE Processor for Windows Platforms =

Many of us want to upgrade / update our opensim servers. It's an amazingly tedious task to do so and it's really easy to forget a file here or there and go through it all every time. Well, being an automator I got fed up and write this up and have tested it and works like I charm. I can run this and in under 2 minutes, 9 OpenSimulator Instances are completed and ready to switch over to a new rev. It prepares everything and is ready for you to review changes in the INI files (which are constant) but all the hard work is done for you.

!! IT DOES NOT START UP NEW INSTANCES !!

I am also using a more robust Pre-Starter for opensim which can be found at Smart Prestart WIN as this works in conjunction with the rest of the tools.

DESCRIPTION:


 * Upgrades OpenSimulator Instances from SOURCE Website.
 * Creates a bin_NEW with the upgraded version and leave original bin intact to allow for review
 * and mods prior to startup. (INI's change so should be reviewed prior to initializing)

INSTALLATION: Save this script into a convenient folder, I suggest installing it in C:\OS_upgrader

'''DEPENDENCIES: Robocopy''' Enhanced Copy tool from Microsoft

Wget for Windows DOWNLOAD wget for Windows utility and unzip to C:\OS_upgrader  (OLDER but tested &amp; works up to Windows_2008_server-R1 64bit) Available @ http://pages.interlog.com/~tcharron/wgetwin.html http://www.interlog.com/~tcharron/wgetwin-1_5_3_1-binary.zip

'''7-zip Free Windows zip archiver '''   DOWNLOAD - the gui version for your daily use DOWNLOAD - the commandline version, (used by this system) available @ http://www.7-zip.org/ http://www.7-zip.org/download.html install commandline 7-zip into C:\OS_upgrader

COMPLETING UPGRADE - Once this process is finished, you will have a bin_NEW located in your c:\opensim\instanceA directory. Where instanceA = the ONE directory beneath c:\opensim\instanceA\bin - Review the original OpenSim.ini with the OpenSim.ini.UPG and adjust according to ANY NEW CHANGES located in the .UPG - What is the .UPG ? I have the file rename all the new INI files to have an extension of .UPG in order to preserve them for comparison against the existing INI files. ALL INI files from the upgrade get renamed and preserved in this manner. - Once statisfied that all is in order. Shutdown your instance, rename the ORIGINAL \bin directory to bin_OLD (in case you have to roll back) - Rename \bin_NEW to \bin and run the startup. (see below for advanced start up process.)

- OPTIONAL you can use a LOCAL REPOSITORY for your own BINARY which must be packaged into a ZIP file. (see === PROCESS UPDATE === Section in the Batch File) ""

SWITCH OpenSimulator POST UPGRADE

Here is yet another BatchFile which will automatically flip the instances after an upgrade. It preserves the previous bin directory structure by renaming them to bin_OLD and then renaming bin_NEW to bin.

This works in Conjunction with the UPGRADE &amp; REVERT batch files in this chapter.

Simply drop this batch file into your c:\OS_upgrader directory along with the Upgrade_OS.bat &amp; REVERT_OS.bat

Edit the Batch File and change the PATHS &amp; INSTANCE NAMES ""

UPGRADE REVERSION

As we all know, things happen and sometimes an upgrade, well, isn't meant to be. So with that in mind here is a quick reversion process if you used the above UPGRADE system. This will ONLY WORK IF YOU DID NOT DELETE C:\opensim\Instance?\bin_OLD

SPECIAL NOTE - '''This process depends on the fact that you renamed your previous old \bin folder to bin_OLD - That the INSTANCE(s) IS/ARE SHUTDOWN !!!!!!!!!!!''' ""

Return to Automating Tasks