aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorUbitUmarov2017-06-21 03:56:43 +0100
committerUbitUmarov2017-06-21 03:56:43 +0100
commit36442c004f917442997df11d04bb473e8339d68b (patch)
treeeb8f7b44bc93c53af73587b03e17dabdead2bcf1 /OpenSim/Region
parent changes to AutoBackModule. Time interval is now unique and only definable on... (diff)
downloadopensim-SC_OLD-36442c004f917442997df11d04bb473e8339d68b.zip
opensim-SC_OLD-36442c004f917442997df11d04bb473e8339d68b.tar.gz
opensim-SC_OLD-36442c004f917442997df11d04bb473e8339d68b.tar.bz2
opensim-SC_OLD-36442c004f917442997df11d04bb473e8339d68b.tar.xz
changes to AutoBackModule. Add option ALL to dooarbackup to save all regions in instance
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs16
1 files changed, 14 insertions, 2 deletions
diff --git a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs
index eab6705..05321cd 100644
--- a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs
+++ b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs
@@ -167,8 +167,8 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
167 167
168 m_console.Commands.AddCommand ( 168 m_console.Commands.AddCommand (
169 "AutoBackup", true, "dooarbackup", 169 "AutoBackup", true, "dooarbackup",
170 "dooarbackup <regionName>", 170 "dooarbackup <regionName> | ALL",
171 "do single region backup into a oar. Identical to save oar but using AutoBackup settings for name etc", DoBackup); 171 "saves the single region <regionName> to a oar or ALL regions in instance to oars, using same settings as AutoBackup. Note it restarts time interval", DoBackup);
172 m_busy = true; 172 m_busy = true;
173 } 173 }
174 174
@@ -287,6 +287,18 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
287 Scene s; 287 Scene s;
288 try 288 try
289 { 289 {
290 if(name == "ALL")
291 {
292 m_masterTimer.Stop();
293 for(int i = 0; i < scenes.Length; i++)
294 {
295 s = scenes[i];
296 DoRegionBackup(s);
297 }
298 m_busy = false;
299 return;
300 }
301
290 for(int i = 0; i < scenes.Length; i++) 302 for(int i = 0; i < scenes.Length; i++)
291 { 303 {
292 s = scenes[i]; 304 s = scenes[i];