Backing Up LINUX

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(updates for OAR)
Line 1: Line 1:
=Backup System for Linux=
+
= Backup System for Linux =
 +
 
 
'''CONSOLE SCRIPT to Generate Backups for Linux Installation'''  
 
'''CONSOLE SCRIPT to Generate Backups for Linux Installation'''  
  
Line 11: Line 12:
  
 
CONSOLE SCRIPT FULLBACKUP.TXT  
 
CONSOLE SCRIPT FULLBACKUP.TXT  
<blockquote>
+
<blockquote>FULL BACKUP PROCESS for OPENSIM CONSOLE <br>;Script Name = fullbackup.txt <br>;Command to execute this script if located in BIN = command-script fullbackup.txt <br>;can be pathed if scripts are stored separate from /bin folder <br>;example command-script /opensim/instance/fullbackup.txt <br>;Description<br>;Uses Command Console Functions not available otherwise <br>;BACKS UP OAR, R32 (Region Terrain Files) XML2 files to Instance/Backup folder structure <br>;EXAMPLE is provided for a multi-Region install. If you only have one REGION_ , or more adjust accordingly <br>;RENAME REGION_1, REGION_2 etc ... according to your Region_names <br>;OAR FILES<br>;! They do take a while depending on the volume of data on the Region. The script will proceed <br>;and the commands will be queued and processed<br>;<br>change region root<br>backup<br>export save-all<br>;<br>change region REGION_A<br>terrain save /opensim/instanceA/BACKups/TERRAINS/REGION_A.r32<br>save xml2 /opensim/instanceA/BACKups/XML2/REGION_A.xml<br>save oar /opensim/instanceA/BACKups/OAR/REGION_A.<span style="background-color: navy; color: white" />oar<br>;<br>change region REGION_B<br>terrain save /opensim/instanceB/BACKups/TERRAINS/REGION_B.r32<br>save xml2 /opensim/instanceB/BACKups/XML2/REGION_B.xml<br>save oar /opensim/instanceB/BACKups/OAR/REGION_B.<span style="background-color: navy; color: white" />oar<br>;Add additionals as needed<br></blockquote>
FULL BACKUP PROCESS for OPENSIM CONSOLE <br>;Script Name = fullbackup.txt <br>;Command to execute this script if located in BIN = command-script fullbackup.txt <br>;can be pathed if scripts are stored separate from /bin folder <br>;example command-script /opensim/instance/fullbackup.txt <br>;Description<br>;Uses Command Console Functions not available otherwise <br>;BACKS UP OAR, R32 (Region Terrain Files) XML2 files to Instance/Backup folder structure <br>;EXAMPLE is provided for a multi-Region install. If you only have one REGION_ , or more adjust accordingly <br>;RENAME REGION_1, REGION_2 etc ... according to your Region_names <br>;OAR FILES<br>;! They do take a while depending on the volume of data on the Region. The script will proceed <br>;and the commands will be queued and processed<br>;<br>change region root<br>backup<br>export save-all<br>;<br>change region REGION_A<br>terrain save /opensim/instanceA/BACKups/TERRAINS/REGION_A.r32<br>save xml2 /opensim/instanceA/BACKups/XML2/REGION_A.xml<br>save oar /opensim/instanceA/BACKups/OAR/REGION_A.tar.gz<br>;<br>change region REGION_B<br>terrain save /opensim/instanceB/BACKups/TERRAINS/REGION_B.r32<br>save xml2 /opensim/instanceB/BACKups/XML2/REGION_B.xml<br>save oar /opensim/instanceB/BACKups/OAR/REGION_B.tar.gz<br>;Add additionals as needed<br>
+
<br><br>'''CONSOLE SCRIPT - FULL RESTORE'''  
</blockquote>
+
<br>
+
<br>'''CONSOLE SCRIPT - FULL RESTORE'''  
+
  
 
Installation, copy this into your OpenSim Instance directory (highly recomended to keep out of /bin)  
 
Installation, copy this into your OpenSim Instance directory (highly recomended to keep out of /bin)  
Line 21: Line 19:
 
'''Console Command to Execute:''' command-script /opensim/instance/fullrestore.txt  
 
'''Console Command to Execute:''' command-script /opensim/instance/fullrestore.txt  
  
'''NOTE:''' Multiple regions.
+
'''NOTE:''' Multiple regions.  
 
+
CONSOLE SCRIPT FULLRESTORE.TXT
+
<blockquote>
+
<br>;Script Name fullrestore.txt<br>;Command to execute this script if located in BIN = command-script fullrestore.txt <br>;can be pathed if scripts are stored separate from /bin folder <br>;example command-script /opensim/instance/fullrestore.txt<br>;Description<br>;Uses Command Console Functions not available otherwise <br>;RESTORES OAR, R32 (Region Terrain Files), and places them into the Original Regions <br>;from the Backup Folder structures as previously defined<br>;OPTIONAL can restore XML2 files to region IF OARS are not operational, simply uncomment if needed<br>;EXAMPLE is provided for a multi-Region install. If you only have one REGION_ , or more adjust accordingly<br>;RENAME REGION_1, REGION_2 etc ... according to your Region_names<br>;OAR FILES<br>;! They do take a while depending on the volume of data on the Region. The script will proceed<br>;and the commands will be queued and processed.<br>;<br>change region REGION_A<br>terrain load /opensim/instanceA/BACKups/TERRAINS/REGION_A.r32<br>load oar /opensim/instanceA/BACKups/OAR/REGION_A.tar.gz<br>;load /opensim/instanceA/BACKups/XML2/REGION_A.xml<br>;<br>change region REGION_B <br>terrain load /opensim/instanceB/BACKups/TERRAINS/REGION_B.r32<br>load oar /opensim/instanceB/BACKups/OAR/REGION_B.tar.gz<br>;load /opensim/instanceB/BACKups/XML2/REGION_B.xml <br>
+
</blockquote>
+
  
 +
CONSOLE SCRIPT FULLRESTORE.TXT
 +
<blockquote><br>;Script Name fullrestore.txt<br>;Command to execute this script if located in BIN = command-script fullrestore.txt <br>;can be pathed if scripts are stored separate from /bin folder <br>;example command-script /opensim/instance/fullrestore.txt<br>;Description<br>;Uses Command Console Functions not available otherwise <br>;RESTORES OAR, R32 (Region Terrain Files), and places them into the Original Regions <br>;from the Backup Folder structures as previously defined<br>;OPTIONAL can restore XML2 files to region IF OARS are not operational, simply uncomment if needed<br>;EXAMPLE is provided for a multi-Region install. If you only have one REGION_ , or more adjust accordingly<br>;RENAME REGION_1, REGION_2 etc ... according to your Region_names<br>;OAR FILES<br>;! They do take a while depending on the volume of data on the Region. The script will proceed<br>;and the commands will be queued and processed.<br>;<br>change region REGION_A<br>terrain load /opensim/instanceA/BACKups/TERRAINS/REGION_A.r32<br>load oar /opensim/instanceA/BACKups/OAR/REGION_A.<span style="background-color: navy; color: white" />oar<br>;load /opensim/instanceA/BACKups/XML2/REGION_A.xml<br>;<br>change region REGION_B <br>terrain load /opensim/instanceB/BACKups/TERRAINS/REGION_B.r32<br>load oar /opensim/instanceB/BACKups/OAR/REGION_B.<span style="background-color: navy; color: white" />oar<br>;load /opensim/instanceB/BACKups/XML2/REGION_B.xml <br></blockquote>
 
----
 
----
'''BACK-LINKS'''
 
  
== Windows ==
+
'''BACK-LINKS'''
[[Smart Prestart WIN]] [[Backing Up WIN]]   [[Automated Upgrade WIN]]
+
 
 +
== Windows ==
 +
 
 +
[[Smart Prestart WIN]] [[Backing Up WIN]] [[Automated Upgrade WIN]]  
 +
 
 +
== Linux  ==
  
== Linux ==
+
[[Smart Prestart LINUX]] [[Backing_Up_LINUX]] [[Automated Upgrade LINUX]]
[[Smart Prestart LINUX]]   [[Backing Up LINUX]]   [[Automated Upgrade LINUX]]
+

Revision as of 12:18, 27 November 2009

Backup System for Linux

CONSOLE SCRIPT to Generate Backups for Linux Installation

Copy this into your OpenSim Instance directory (highly recomended to keep out of /bin)

Console Command to Execute: command-script /opensim/instanceA/fullbackup.txt

NOTE: Multiple regions Script.

(See below for RESTORE SCRIPT)

CONSOLE SCRIPT FULLBACKUP.TXT

FULL BACKUP PROCESS for OPENSIM CONSOLE
;Script Name = fullbackup.txt
;Command to execute this script if located in BIN = command-script fullbackup.txt
;can be pathed if scripts are stored separate from /bin folder
;example command-script /opensim/instance/fullbackup.txt
;Description
;Uses Command Console Functions not available otherwise
;BACKS UP OAR, R32 (Region Terrain Files) XML2 files to Instance/Backup folder structure
;EXAMPLE is provided for a multi-Region install. If you only have one REGION_ , or more adjust accordingly
;RENAME REGION_1, REGION_2 etc ... according to your Region_names
;OAR FILES
;! They do take a while depending on the volume of data on the Region. The script will proceed
;and the commands will be queued and processed
;
change region root
backup
export save-all
;
change region REGION_A
terrain save /opensim/instanceA/BACKups/TERRAINS/REGION_A.r32
save xml2 /opensim/instanceA/BACKups/XML2/REGION_A.xml
save oar /opensim/instanceA/BACKups/OAR/REGION_A.<span style="background-color: navy; color: white" />oar
;
change region REGION_B
terrain save /opensim/instanceB/BACKups/TERRAINS/REGION_B.r32
save xml2 /opensim/instanceB/BACKups/XML2/REGION_B.xml
save oar /opensim/instanceB/BACKups/OAR/REGION_B.<span style="background-color: navy; color: white" />oar
;Add additionals as needed



CONSOLE SCRIPT - FULL RESTORE

Installation, copy this into your OpenSim Instance directory (highly recomended to keep out of /bin)

Console Command to Execute: command-script /opensim/instance/fullrestore.txt

NOTE: Multiple regions.

CONSOLE SCRIPT FULLRESTORE.TXT


;Script Name fullrestore.txt
;Command to execute this script if located in BIN = command-script fullrestore.txt
;can be pathed if scripts are stored separate from /bin folder
;example command-script /opensim/instance/fullrestore.txt
;Description
;Uses Command Console Functions not available otherwise
;RESTORES OAR, R32 (Region Terrain Files), and places them into the Original Regions
;from the Backup Folder structures as previously defined
;OPTIONAL can restore XML2 files to region IF OARS are not operational, simply uncomment if needed
;EXAMPLE is provided for a multi-Region install. If you only have one REGION_ , or more adjust accordingly
;RENAME REGION_1, REGION_2 etc ... according to your Region_names
;OAR FILES
;! They do take a while depending on the volume of data on the Region. The script will proceed
;and the commands will be queued and processed.
;
change region REGION_A
terrain load /opensim/instanceA/BACKups/TERRAINS/REGION_A.r32
load oar /opensim/instanceA/BACKups/OAR/REGION_A.<span style="background-color: navy; color: white" />oar
;load /opensim/instanceA/BACKups/XML2/REGION_A.xml
;
change region REGION_B
terrain load /opensim/instanceB/BACKups/TERRAINS/REGION_B.r32
load oar /opensim/instanceB/BACKups/OAR/REGION_B.<span style="background-color: navy; color: white" />oar
;load /opensim/instanceB/BACKups/XML2/REGION_B.xml

BACK-LINKS

Windows

Smart Prestart WIN Backing Up WIN Automated Upgrade WIN

Linux

Smart Prestart LINUX Backing_Up_LINUX Automated Upgrade LINUX

Personal tools
General
About This Wiki