Backing Up LINUX
From OpenSimulator
(Difference between revisions)
(Text cleanup) |
|||
Line 1: | Line 1: | ||
− | = Backup | + | ==Backup == |
+ | Copy this into your OpenSim Instance directory (highly recommended to keep out of /bin) | ||
− | + | '''Console Command to Execute:''' <tt>command-script /opensim/instanceA/fullbackup.txt</tt> | |
− | + | ||
− | + | ||
− | + | ||
− | '''Console Command to Execute:''' command-script /opensim/instanceA/fullbackup.txt | + | |
'''NOTE:''' Multiple regions Script. | '''NOTE:''' Multiple regions Script. | ||
Line 11: | Line 8: | ||
(See below for RESTORE SCRIPT) | (See below for RESTORE SCRIPT) | ||
− | + | <pre> | |
− | < | + | ;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.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.oar | ||
+ | ;Add additionals as needed | ||
+ | </pre> | ||
− | + | == Restore == | |
+ | Copy this into your OpenSim Instance directory (highly recommended to keep out of /bin) | ||
− | '''Console Command to Execute:''' command-script /opensim/instance/fullrestore.txt | + | '''Console Command to Execute:''' <tt>command-script /opensim/instance/fullrestore.txt</tt> |
'''NOTE:''' Multiple regions. | '''NOTE:''' Multiple regions. | ||
− | + | <pre> | |
− | < | + | ;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.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.oar | ||
+ | ;load /opensim/instanceB/BACKups/XML2/REGION_B.xml | ||
+ | </pre> | ||
---- | ---- | ||
− | + | == Back Links == | |
− | == Windows == | + | === Windows === |
[[Smart Prestart WIN]] [[Backing Up WIN]] [[Automated Upgrade WIN]] | [[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 07:40, 19 October 2010
Contents |
Backup
Copy this into your OpenSim Instance directory (highly recommended to keep out of /bin)
Console Command to Execute: command-script /opensim/instanceA/fullbackup.txt
NOTE: Multiple regions Script.
(See below for RESTORE SCRIPT)
;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.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.oar ;Add additionals as needed
Restore
Copy this into your OpenSim Instance directory (highly recommended to keep out of /bin)
Console Command to Execute: command-script /opensim/instance/fullrestore.txt
NOTE: Multiple regions.
;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.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.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