From 36442c004f917442997df11d04bb473e8339d68b Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 21 Jun 2017 03:56:43 +0100 Subject: [PATCH] changes to AutoBackModule. Add option ALL to dooarbackup to save all regions in instance --- .../World/AutoBackup/AutoBackupModule.cs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs index eab6705478..05321cdb23 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 m_console.Commands.AddCommand ( "AutoBackup", true, "dooarbackup", - "dooarbackup ", - "do single region backup into a oar. Identical to save oar but using AutoBackup settings for name etc", DoBackup); + "dooarbackup | ALL", + "saves the single region to a oar or ALL regions in instance to oars, using same settings as AutoBackup. Note it restarts time interval", DoBackup); m_busy = true; } @@ -287,6 +287,18 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup Scene s; try { + if(name == "ALL") + { + m_masterTimer.Stop(); + for(int i = 0; i < scenes.Length; i++) + { + s = scenes[i]; + DoRegionBackup(s); + } + m_busy = false; + return; + } + for(int i = 0; i < scenes.Length; i++) { s = scenes[i];