Petits scripts qui vont bien pour sauvegarder et restaurer des régions via le conteneur .iar
Ces scripts sont des fichiers texte à placer dans le dossier bin\ du serveur Opensim, là où y'a déjà plein de fichiers... dont OpenSim.exe
Ici les chemins des emplacements des sauvegardes sont au format Linux.
Il faudra les adapter à votre configuration !
Pour utiliser ces scripts, il faut l'accès à la console du serveur OpenSim.
Puis avec cette commande on pourra lancer un script présent dans le dossier bin\ :
command-script nom-du-script.txt
ici :
command-script _fullbackup.txt
Sauvegarde, fichier .txt : _fullbackup.txt
;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
; COMMAND-SCRIPT _FULLBACKUP.TXT
change region root
backup
;export save-all
;
change region MinosHome ART GALLERY
terrain save /home/lat/osgrid-oar/MinosHome_ART_GALLERY.r32
save xml2 /home/lat/osgrid-oar/MinosHome_ART_GALLERY.xml
save oar /home/lat/osgrid-oar/MinosHome_ART_GALLERY.oar
;
change region Gallery MH8
terrain save /home/lat/osgrid-oar/Gallery_MH8.r32
save xml2 /home/lat/osgrid-oar/Gallery_MH8.xml
save oar /home/lat/osgrid-oar/Gallery_MH8.oar
;
change region MinosHome
terrain save /home/lat/osgrid-oar/MinosHome.r32
save xml2 /home/lat/osgrid-oar/MinosHome.xml
save oar /home/lat/osgrid-oar/MinosHome.oar
;
change region Tamer
terrain save /home/lat/osgrid-oar/Tamer.r32
save xml2 /home/lat/osgrid-oar/Tamer.xml
save oar /home/lat/osgrid-oar/Tamer.oar
;
change region root
;ok!
Restauration, fichier .txt : _fullrestore-1.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 Gallery MH8
;terrain load /home/lat/osgrid-oar/Gallery_MH8.r32
load oar /home/minos/lat/osgrid-oar/Gallery_MH8.oar
;load xml2 /home/minos/lat/osgrid-oar/Gallery_MH8.xml
;
change region MinosHome
;terrain load /home/minos/lat/osgrid-oar/MinosHome.r32
load oar /home/minos/lat/osgrid-oar/MinosHome.oar
;load xml2 /home/minos/lat/osgrid-oar/MinosHome.xml
;
change region Tamer
;terrain load /home/minos/lat/osgrid-oar/Tamer.r32
load oar /home/minos/lat/osgrid-oar/Tamer.oar
;load xml2 /home/minos/lat/osgrid-oar/Tamer.xml
;
change region root
;ok!
Created by minos • Last edit by minos on 17.09.16 14:04
Opensim - backup & restore Regions OAR
- Wiki - Tutos - Notes ( MinosHome | MH8 )
- Jeux (serveurs)
- Opensim - backup & restore Regions OAR