This commit is contained in:
Michael 2017-03-25 19:46:12 -04:00
parent 35e94c2e94
commit 562866d1c3

View file

@ -121,7 +121,7 @@ public ActionResult BackupDatabase()
string backupUrl = backupDir.Remove(0, 1) + "/ShiftOS-" + DateTime.Now.ToString() + ".zip";
string backupname = backupServerDir + "\\ShiftOS-" + DateTime.Now.ToString() + ".zip";
System.IO.Compression.ZipFile.CreateFromDirectory(Server.MapPath("~/Uploads", backupname));
System.IO.Compression.ZipFile.CreateFromDirectory(Server.MapPath("~/Uploads"), backupname));
var backupData = new DatabaseBackup();
backupData.Id = Guid.NewGuid().ToString();