Change font size
It is currently Sat Nov 17, 2018 12:25 pm

Forum rules


As always, be well-behaved, respectful of others, and mind the topic - off topic posts may be deleted or moved to other forums.



Post a new topicPost a reply Page 1 of 1   [ 5 posts ]
Author Message
 Post subject: OAR Files
PostPosted: Sun Oct 28, 2018 11:06 pm 

Joined: Tue Dec 20, 2011 5:38 pm
Posts: 6
What is the command to save all with an OAR file? I want to save all of my regions on the same server.


Top
 Profile  
 
 Post subject: Re: OAR Files
PostPosted: Mon Oct 29, 2018 5:46 am 
Site Admin
User avatar

Joined: Fri May 14, 2010 2:09 pm
Posts: 202
Location: Netherlands
Hiya.
to make an OAR :

First select the region :
change region regionname
regionname>_
save oar anyname.oar

This will write an OAR and put it in the BIN folder.

Other OAR commands& syntax :
0.9.x or higher : http://opensimulator.org/wiki/Load_Oar_0.9.0%2B
0.8.x or prior : http://opensimulator.org/wiki/OpenSim_Archives


Top
 Profile  
 
 Post subject: Re: OAR Files
PostPosted: Wed Oct 31, 2018 11:35 pm 

Joined: Tue Dec 20, 2011 5:38 pm
Posts: 6
there is a command that will save all of your regions at the same time I think its Save OAR ==all
I am not sure but that's what I am tring to do


Top
 Profile  
 
 Post subject: Re: OAR Files
PostPosted: Thu Nov 01, 2018 6:59 am 
Site Admin
User avatar

Joined: Fri May 14, 2010 2:09 pm
Posts: 202
Location: Netherlands
Correct, "save oar filename.oar --all" will save 1 OAR containing every region in the simulator in 1 single file.

Unless that region is a VAR, I don’t see how this has a practical use over separate OAR's per region, but it can be done. (all these syntaxes are in the bottom URL of previous post BTW).


Top
 Profile  
 
 Post subject: Re: OAR Files
PostPosted: Fri Nov 02, 2018 2:03 am 
Site Admin
User avatar

Joined: Sun Jun 27, 2010 10:34 am
Posts: 122
Location: France
Example script Shell for Linux with Screen used!

Create à file with name backupsim.sh

put this in content:

{L_CODE}:
#!/bin/sh
# Script paela argus example save oar for multiple Regions on 1 Simulator for Linux with à Shell
SHELL=/bin/bash
name_screen="Simu"       # here name of the screen
message_send="save oar " # here the command used

# For disable region not needed in save use a # on line not needed
name_region="Blabla"     # Name of the region 1
name_region2="Blabla2" # Name of the region 2
name_region3="Blabla3" # Name of the region 3
name_region4="Blabla4" # Name of the region 4
name_region5="Blabla5" # Name of the region 5

# Please do not touch after isnt needed or just for add more regions in save
echo _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
echo _-_      start saving region ...         _-_
echo _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

# save region 1
screen  -S $name_screen -p0 -X eval "stuff 'change region name_region'^M"
screen  -S $name_screen -p0 -X eval "stuff '$message_send $name_region.oar'^M"

# save region 2
screen  -S $name_screen -p0 -X eval "stuff 'change region name_region2'^M"
screen  -S $name_screen -p0 -X eval "stuff '$message_send $name_region2.oar'^M"

#save region 3
screen  -S $name_screen -p0 -X eval "stuff 'change region name_region3'^M"
screen  -S $name_screen -p0 -X eval "stuff '$message_send $name_region3.oar'^M"

# save region 4
screen  -S $name_screen -p0 -X eval "stuff 'change region name_region4'^M"
screen  -S $name_screen -p0 -X eval "stuff '$message_send $name_region4.oar'^M"

# save region 5
screen  -S $name_screen -p0 -X eval "stuff 'change region name_region5'^M"
screen  -S $name_screen -p0 -X eval "stuff '$message_send $name_region5.oar'^M"

echo -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
echo -_   Save regions backup done!     -_
echo -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_


Save the file.

Now send in server sftp or pico or other think ...
now use that command ... :
chmod 775 /home/YOUR_USER_LINUX/backupsim.sh

start the script with:

sh backupsim.sh

enjoy

Typing in Forums not have tried if error ask me in-world

_________________
Paela Argus,
Webmanagement Osgrid

https://www.osgrid.org


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 5 posts ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net