This commit is contained in:
@@ -99,8 +99,8 @@ namespace rockfishCore.Util
|
||||
|
||||
public static bool VerifyBackups()
|
||||
{
|
||||
string[] CriticalDailyBackupFilePrefixes = { "ayanova21-pecklist-db-backup-", "ayanova21-rockfish-db-backup-", "mail21-svn-backup-" };
|
||||
string[] Level2ManualBackupFilePrefixes = { "forum21-backup-", "ayanova21-website-backup-" };
|
||||
string[] CriticalDailyBackupFilePrefixes = { "ayanova21-pecklist-db-backup-", "ayanova21-rockfish-db-backup-", "mail21-svn-backup-", "forum21-backup-" };
|
||||
string[] Level2ManualBackupFilePrefixes = { "ayanova21-website-backup-" };
|
||||
var SpacesFileNames = GetFileListFromSpacesBackupStorage();
|
||||
|
||||
//Daily critical files
|
||||
@@ -119,17 +119,19 @@ namespace rockfishCore.Util
|
||||
}
|
||||
}
|
||||
|
||||
//Website and Forum sb at least three of each, so just ensure there are three matches
|
||||
//we dont' care about date for these ones, just presence
|
||||
//Manual backups are random in quantity so just confirm there is at least one
|
||||
//we dont' care about date for these ones, just presence of at least one
|
||||
int FoundLevel2Matches = 0;
|
||||
foreach (string ExpectedFileName in Level2ManualBackupFilePrefixes)
|
||||
foreach (string FileName in SpacesFileNames)
|
||||
if (FileName.StartsWith(ExpectedFileName))
|
||||
{
|
||||
FoundLevel2Matches++;
|
||||
break;
|
||||
}
|
||||
|
||||
//should be one each of the critical and 3 each of the level2
|
||||
//todo: as long as there is one of each that's fine
|
||||
return (FoundCriticalMatches == CriticalDailyBackupFilePrefixes.Length && FoundLevel2Matches == (Level2ManualBackupFilePrefixes.Length * 3));
|
||||
//At least one of each separate manual backup file
|
||||
return (FoundCriticalMatches == CriticalDailyBackupFilePrefixes.Length && FoundLevel2Matches == Level2ManualBackupFilePrefixes.Length);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ namespace rockfishCore.Util
|
||||
{
|
||||
public static class RfVersion
|
||||
{
|
||||
public const string NumberOnly="6.14";
|
||||
public const string NumberOnly="6.15";
|
||||
public const string Full = "Rockfish server " + NumberOnly;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user