diff options
author | AliciaRaven | 2014-06-28 07:42:24 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-07-04 23:32:13 +0100 |
commit | 6e0e35cd66adacb0a6571e095b76ce558b54d6b9 (patch) | |
tree | d8628790980e827e2a8ef65e167a58f38a22591a /OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs | |
parent | Still log (but this time with warning rather than an exception) if we regener... (diff) | |
download | opensim-SC_OLD-6e0e35cd66adacb0a6571e095b76ce558b54d6b9.zip opensim-SC_OLD-6e0e35cd66adacb0a6571e095b76ce558b54d6b9.tar.gz opensim-SC_OLD-6e0e35cd66adacb0a6571e095b76ce558b54d6b9.tar.bz2 opensim-SC_OLD-6e0e35cd66adacb0a6571e095b76ce558b54d6b9.tar.xz |
Include option to remove auto backup files older than given number of days. New property created to specify how many days to keep files for. Off by default, also made sure only oar files will be removed.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs index ade25a5..ce7c368 100644 --- a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs +++ b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs | |||
@@ -49,6 +49,7 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup | |||
49 | this.Timer = null; | 49 | this.Timer = null; |
50 | this.NamingType = NamingType.Time; | 50 | this.NamingType = NamingType.Time; |
51 | this.Script = null; | 51 | this.Script = null; |
52 | this.KeepFilesForDays = 0; | ||
52 | } | 53 | } |
53 | 54 | ||
54 | public Dictionary<Guid, string> LiveRequests | 55 | public Dictionary<Guid, string> LiveRequests |
@@ -116,6 +117,12 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup | |||
116 | set; | 117 | set; |
117 | } | 118 | } |
118 | 119 | ||
120 | public int KeepFilesForDays | ||
121 | { | ||
122 | get; | ||
123 | set; | ||
124 | } | ||
125 | |||
119 | public new string ToString() | 126 | public new string ToString() |
120 | { | 127 | { |
121 | string retval = ""; | 128 | string retval = ""; |