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.

This commit is contained in:
AliciaRaven
2014-06-28 07:42:24 +01:00
committed by Justin Clark-Casey (justincc)
parent 20b47fce07
commit 6e0e35cd66
2 changed files with 52 additions and 2 deletions

View File

@@ -49,6 +49,7 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
this.Timer = null;
this.NamingType = NamingType.Time;
this.Script = null;
this.KeepFilesForDays = 0;
}
public Dictionary<Guid, string> LiveRequests
@@ -116,6 +117,12 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
set;
}
public int KeepFilesForDays
{
get;
set;
}
public new string ToString()
{
string retval = "";