This commit is contained in:
Michael 2017-03-25 19:48:01 -04:00
parent 562866d1c3
commit 7a4d0e4bb1

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();