diff options
author | UbitUmarov | 2017-06-21 13:35:36 +0100 |
---|---|---|
committer | UbitUmarov | 2017-06-21 13:35:36 +0100 |
commit | 70da90273297dba5f1c4253f0ea8796575b26ed3 (patch) | |
tree | c94f3b204b7b4cea12279a9dfd1f22179f82bfe7 /OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs | |
parent | changes to AutoBackModule. Add option ALL to dooarbackup to save all regions... (diff) | |
download | opensim-SC_OLD-70da90273297dba5f1c4253f0ea8796575b26ed3.zip opensim-SC_OLD-70da90273297dba5f1c4253f0ea8796575b26ed3.tar.gz opensim-SC_OLD-70da90273297dba5f1c4253f0ea8796575b26ed3.tar.bz2 opensim-SC_OLD-70da90273297dba5f1c4253f0ea8796575b26ed3.tar.xz |
changes to AutoBackModule. Store folder and number of days expire is now also only defined in OpenSim.ini and so same for all regions.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs index be5f2ae..fb87677 100644 --- a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs +++ b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs | |||
@@ -41,21 +41,17 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup | |||
41 | public AutoBackupModuleState() | 41 | public AutoBackupModuleState() |
42 | { | 42 | { |
43 | Enabled = false; | 43 | Enabled = false; |
44 | BackupDir = "."; | ||
45 | SkipAssets = false; | 44 | SkipAssets = false; |
46 | NamingType = NamingType.Time; | 45 | NamingType = NamingType.Time; |
47 | Script = null; | 46 | Script = null; |
48 | KeepFilesForDays = 0; | ||
49 | } | 47 | } |
50 | 48 | ||
51 | public AutoBackupModuleState(AutoBackupModuleState copyFrom) | 49 | public AutoBackupModuleState(AutoBackupModuleState copyFrom) |
52 | { | 50 | { |
53 | Enabled = copyFrom.Enabled; | 51 | Enabled = copyFrom.Enabled; |
54 | BackupDir = copyFrom.BackupDir; | ||
55 | SkipAssets = copyFrom.SkipAssets; | 52 | SkipAssets = copyFrom.SkipAssets; |
56 | NamingType = copyFrom.NamingType; | 53 | NamingType = copyFrom.NamingType; |
57 | Script = copyFrom.Script; | 54 | Script = copyFrom.Script; |
58 | KeepFilesForDays = copyFrom.KeepFilesForDays; | ||
59 | } | 55 | } |
60 | 56 | ||
61 | public bool Enabled | 57 | public bool Enabled |
@@ -76,30 +72,17 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup | |||
76 | set; | 72 | set; |
77 | } | 73 | } |
78 | 74 | ||
79 | public string BackupDir | ||
80 | { | ||
81 | get; | ||
82 | set; | ||
83 | } | ||
84 | |||
85 | public NamingType NamingType | 75 | public NamingType NamingType |
86 | { | 76 | { |
87 | get; | 77 | get; |
88 | set; | 78 | set; |
89 | } | 79 | } |
90 | 80 | ||
91 | public int KeepFilesForDays | ||
92 | { | ||
93 | get; | ||
94 | set; | ||
95 | } | ||
96 | |||
97 | public new string ToString() | 81 | public new string ToString() |
98 | { | 82 | { |
99 | string retval = ""; | 83 | string retval = ""; |
100 | retval += "[AUTO BACKUP]: AutoBackup: " + (Enabled ? "ENABLED" : "DISABLED") + "\n"; | 84 | retval += "[AUTO BACKUP]: AutoBackup: " + (Enabled ? "ENABLED" : "DISABLED") + "\n"; |
101 | retval += "[AUTO BACKUP]: Naming Type: " + NamingType.ToString() + "\n"; | 85 | retval += "[AUTO BACKUP]: Naming Type: " + NamingType.ToString() + "\n"; |
102 | retval += "[AUTO BACKUP]: Backup Dir: " + BackupDir + "\n"; | ||
103 | retval += "[AUTO BACKUP]: Script: " + Script + "\n"; | 86 | retval += "[AUTO BACKUP]: Script: " + Script + "\n"; |
104 | return retval; | 87 | return retval; |
105 | } | 88 | } |