mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-02-02 13:07:34 +00:00
honeyfry honeyfry honeyfry honeyfry, I'm 100% honeyfry
This commit is contained in:
parent
968ea14cae
commit
e1bf66459e
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
using System.Data.Entity;
|
using System.Data.Entity;
|
||||||
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
@ -119,7 +120,7 @@ Unlike previous ShiftOS site revamps, your account got migrated over. However, t
|
||||||
System.IO.Directory.CreateDirectory(backupServerDir);
|
System.IO.Directory.CreateDirectory(backupServerDir);
|
||||||
|
|
||||||
string backupUrl = backupDir.Remove(0, 1) + "/ShiftOS-" + DateTime.Now.ToString() + ".zip";
|
string backupUrl = backupDir.Remove(0, 1) + "/ShiftOS-" + DateTime.Now.ToString() + ".zip";
|
||||||
string backupname = backupServerDir + "\\ShiftOS-" + DateTime.Now.ToString() + ".zip";
|
string backupname = Path.Combine(backupServerDir, "ShiftOS-" + DateTime.Now.ToString() + ".zip");
|
||||||
|
|
||||||
System.IO.Compression.ZipFile.CreateFromDirectory(Server.MapPath("~/Uploads"), backupname);
|
System.IO.Compression.ZipFile.CreateFromDirectory(Server.MapPath("~/Uploads"), backupname);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue