The screen command works oki with opensim. <br><br>create a file /dir/name.script with the commands you want to execute in opensim<br><br>for instance with the following 2 lines: (replace regionname with your regionname)<br>
<br>change-region regionname<br>save oar regionname.oar<br><br>then you can execute the script in an opensim screen session with:<br><br>#screen -d -r opensim -X stuff "command-script /dir/name.script" && screen -d -r opensim -X eval "stuff ^M"<br>
<br>You then could create a cron job with that line of code so there is created a backup on a regular interval<br><br>----------<br>When you would wanna create an archive with all the backups in it you could tar them up. The first create an archive with:<br>
<br>#tar cvf backup.tar regionname.tar<br><br>then create a make_backup.sh script. (with execute permission) with the following 3 lines:<br><br>#!/bin/bash<br>tar rvf backup.tar regionname.tar<br>
screen -d -r opensim -X stuff "command-script /dir/name.script" && screen -d -r opensim -X eval "stuff ^M"<br><br><br>and put that script in a cron job, then everytime the old backup is added to the tar archive before the new one is created.<br>
<br><br>