mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-02-02 13:07:34 +00:00
meowwwwwwwwwwwwwwwwwwwwwwwwwwwww
This commit is contained in:
parent
27190e56db
commit
579355e512
1 changed files with 1 additions and 9 deletions
|
@ -121,15 +121,7 @@ Unlike previous ShiftOS site revamps, your account got migrated over. However, t
|
||||||
|
|
||||||
string backupUrl = backupDir.Remove(0, 1) + "/ShiftOS-" + DateTime.Now.ToString().Replace("/", "-") + ".zip";
|
string backupUrl = backupDir.Remove(0, 1) + "/ShiftOS-" + DateTime.Now.ToString().Replace("/", "-") + ".zip";
|
||||||
string backupname = Path.Combine(backupServerDir, "ShiftOS-" + DateTime.Now.ToString().Replace("/", "-") + ".zip");
|
string backupname = Path.Combine(backupServerDir, "ShiftOS-" + DateTime.Now.ToString().Replace("/", "-") + ".zip");
|
||||||
|
System.IO.Compression.ZipFile.CreateFromDirectory(Server.MapPath("~/Uploads"), backupname);
|
||||||
try
|
|
||||||
{
|
|
||||||
System.IO.Compression.ZipFile.CreateFromDirectory(Server.MapPath("~/Uploads"), backupname);
|
|
||||||
}
|
|
||||||
catch
|
|
||||||
{
|
|
||||||
return Content(backupname);
|
|
||||||
}
|
|
||||||
var backupData = new AssetBackup();
|
var backupData = new AssetBackup();
|
||||||
backupData.Id = Guid.NewGuid().ToString();
|
backupData.Id = Guid.NewGuid().ToString();
|
||||||
backupData.UserId = User.Identity.GetUserId();
|
backupData.UserId = User.Identity.GetUserId();
|
||||||
|
|
Loading…
Add table
Reference in a new issue