Backing Up WIN

This Posting now includes the more complete Automation System for OpenSimulator .

'''SYSTEMS TESTED ON Windows Vista, Windows-7 RC1, Server 2008 r1 (64bit) MySql 5.1 This works will all system up to OpenSim f84da8e - r11604 (November 27,2009)'''

Prior to ANY UPGRADE / UPDATE you need to backup your system !

So here I present a BACKUP SCRIPT &amp; RESTORE SCRIPT for the Console, along Batch File at the end to complete the process. This should be used in conjunstion with the Smart Prestart WIN

This is Comprehensive, as it is better to have all types of backups in case OAR or others fail! (It Happens!)

You can copy these command scripts provided into your \BIN Folder.

Highly Recomended: This System is designed to operated with the following SubStructures to isolate your Backups for Easy Retrieval and archiving.

'''SINGLE INSTANCE OF OPENSIM ''' "c:\OpenSim &lt; Base installation c:\OpenSim\bin &lt; the bin Folder c:\OpenSim\BACKups &lt; The Backup SubFolder Structure 'base/root' (could be anywhere) !! Best to keep it OUT of \bin and it's subfolders c:\OpenSim\BACKups\DB &lt; for SqlLite Databases c:\OpenSim\BACKups\DBsql &lt; for MySql Databases c:\OpenSim\BACKups\EXPORTS &lt; ExportDirectories transfered here c:\OpenSim\BACKups\INI &lt; ALL Active INI Files from BIN and SubDirectories c:\OpenSim\BACKups\LOGS &lt; Log Files Archived Here for Review c:\OpenSim\BACKups\OAR &lt; for OAR Files c:\OpenSim\BACKups\REGIONS &lt; Region.XML or INI files copied here c:\OpenSim\BACKups\TERRAINS &lt; for r32 Terrain Files c:\OpenSim\BACKups\TXT &lt; TXT files used for console scripts copied here c:\OpenSim\BACKups\XML2 &lt; for XML2 Files" Note that EXPORTS are saved in \bin\exports by default, as defined in the OpenSim.ini

'''IF YOU HAVE MULTIPLE INSTANCES, CHANGE PATHING ACCORDINGLY ''' "C:\OpenSim\INSTANCEa &lt; Base installation C:\OpenSim\INSTANCEa\bin &lt; the bin Folder C:\OpenSim\INSTANCEa\BACKups &lt; The Backup SubFolder Structure 'base/root' (could be anywhere) !! Best to keep it OUT of \bin and it's subfolders C:\OpenSim\INSTANCEa\BACKups\DB &lt; for SqlLite Databases C:\OpenSim\INSTANCEa\BACKups\DBsql &lt; for MySql Databases C:\OpenSim\INSTANCEa\BACKups\EXPORTS &lt; ExportDirectories transfered here C:\OpenSim\INSTANCEa\BACKups\INI &lt; ALL Active INI Files from BIN and SubDirectories C:\OpenSim\INSTANCEa\BACKups\LOGS &lt; Log Files Archived Here for Review C:\OpenSim\INSTANCEa\BACKups\OAR &lt; for OAR Files C:\OpenSim\INSTANCEa\BACKups\REGIONS &lt; Region.XML or INI files copied here C:\OpenSim\INSTANCEa\BACKups\TERRAINS &lt; for r32 Terrain Files C:\OpenSim\INSTANCEa\BACKups\TXT &lt; TXT files used for console scripts copied here C:\OpenSim\INSTANCEa\BACKups\XML2 &lt; for XML2 Files" '''SPECIAL NOTE! '''The PRESTART Batch File in Smart_Prestart_WIN will autobuild these structures &amp; Perform several important functions

To Run this script, type the following in your console IF BACKUP.TXT is saved in your \bin folder. command-script backup.txt

CONSOLE SCRIPT "BACKUP.TXT" ""

'''RESTORATION: '''To Run this script, type the following in your console IF RESTORE.TXT is saved in your \bin folder. command-script restore.txt

CONSOLE SCRIPT "RESTORE.TXT" ""

'''BATCH File Name: FullBackup.bat Command to execute:''' Run in command prompt OR Task Scheduler (see references at bottom of page) Description: Copies opensim SQL database out &amp; Everything else Important CAVEATS: none known LOCATION: Place in folder with other Batch CMD files @ C:\OpenSim\InstanceA Where InstanceA is the directory ABOVE C:\OpenSim\InstanceA\bin DEPENDENCIES: Use the Posted Console command-script following this, They work together! ""

References Microsoft Task Scheduler http://msdn.microsoft.com/en-us/library/aa383614(VS.85).aspx WIKI on Task Scedule http://en.wikipedia.org/wiki/Task_Scheduler

Return to Backups