This commit is contained in:
2020-05-19 19:44:34 +00:00
parent 7c713612e0
commit 4025a8c728
2 changed files with 11 additions and 1 deletions

View File

@@ -51,6 +51,8 @@ namespace AyaNova.Biz
//************* //*************
//DO DATA BACKUP //DO DATA BACKUP
var DataBackupFileName=$"db-{FileUtil.GetSafeDateFileName()}.backup";//presentation issue so don't use UTC for this one
log.LogInformation("BACKUP STUB: DATA BACKUP RUNNING NOW - TORA TORA TORA!"); log.LogInformation("BACKUP STUB: DATA BACKUP RUNNING NOW - TORA TORA TORA!");
log.LogInformation($"dbdump path: {ServerBootConfig.AYANOVA_BACKUP_PG_DUMP_PATH}"); log.LogInformation($"dbdump path: {ServerBootConfig.AYANOVA_BACKUP_PG_DUMP_PATH}");

View File

@@ -478,6 +478,14 @@ namespace AyaNova.Util
public int FileCountWithChildren { get; set; } public int FileCountWithChildren { get; set; }
public List<FolderSizeInfo> Children { get; set; } public List<FolderSizeInfo> Children { get; set; }
} }
//Note assume local time because file times as this is used (backup etc) are a presentation issue not a db issue
public static string GetSafeDateFileName()
{
return DateTime.Now.ToString("yyyyMMddHHmmssfff");
}
#endregion general utilities #endregion general utilities
}//eoc }//eoc