mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-02-02 04:57:35 +00:00
kittycat kittycat kittycat kittycat, I'm 100% kittycat
This commit is contained in:
parent
e1bf66459e
commit
2380f6faa4
1 changed files with 8 additions and 2 deletions
|
@ -122,8 +122,14 @@ Unlike previous ShiftOS site revamps, your account got migrated over. However, t
|
|||
string backupUrl = backupDir.Remove(0, 1) + "/ShiftOS-" + DateTime.Now.ToString() + ".zip";
|
||||
string backupname = Path.Combine(backupServerDir, "ShiftOS-" + DateTime.Now.ToString() + ".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();
|
||||
backupData.Id = Guid.NewGuid().ToString();
|
||||
backupData.UserId = User.Identity.GetUserId();
|
||||
|
|
Loading…
Add table
Reference in a new issue