mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
changes to AutoBackModule. Store folder and number of days expire is now also only defined in OpenSim.ini and so same for all regions.
This commit is contained in:
@@ -41,21 +41,17 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
|
||||
public AutoBackupModuleState()
|
||||
{
|
||||
Enabled = false;
|
||||
BackupDir = ".";
|
||||
SkipAssets = false;
|
||||
NamingType = NamingType.Time;
|
||||
Script = null;
|
||||
KeepFilesForDays = 0;
|
||||
}
|
||||
|
||||
public AutoBackupModuleState(AutoBackupModuleState copyFrom)
|
||||
{
|
||||
Enabled = copyFrom.Enabled;
|
||||
BackupDir = copyFrom.BackupDir;
|
||||
SkipAssets = copyFrom.SkipAssets;
|
||||
NamingType = copyFrom.NamingType;
|
||||
Script = copyFrom.Script;
|
||||
KeepFilesForDays = copyFrom.KeepFilesForDays;
|
||||
}
|
||||
|
||||
public bool Enabled
|
||||
@@ -76,30 +72,17 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
|
||||
set;
|
||||
}
|
||||
|
||||
public string BackupDir
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public NamingType NamingType
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public int KeepFilesForDays
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public new string ToString()
|
||||
{
|
||||
string retval = "";
|
||||
retval += "[AUTO BACKUP]: AutoBackup: " + (Enabled ? "ENABLED" : "DISABLED") + "\n";
|
||||
retval += "[AUTO BACKUP]: Naming Type: " + NamingType.ToString() + "\n";
|
||||
retval += "[AUTO BACKUP]: Backup Dir: " + BackupDir + "\n";
|
||||
retval += "[AUTO BACKUP]: Script: " + Script + "\n";
|
||||
return retval;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user