public bool IsInDBS() { Client client = HttpRequests.GetClient(); if (client != null) { this.client = client; return(true); } else { return(false); } }
private void Full_Backup(fullBackupInfo backup, backup_source source, backup_target target) { string targetPath = target.path; targetPath += @"\full\"; bool ZIP = backup.format_type == "zip"; fileFunc.CheckParentDirectory(targetPath, ZIP); if (ZIP) { ZipFile.CreateFromDirectory(source.path, targetPath + AddDate() + ".zip"); } else { fileFunc.Copy(source.path, targetPath + AddDate()); } fileFunc.DeleteOldBackups(target.path + @"\full\", ZIP); HttpRequests.PostJobHistory(backup.id, DateTime.Now, true); }
private void DownloadBackupDetails() { ClientConfig.CreateBackups(HttpRequests.PostGetBackups()); }
public void AddThisPC() { Client client = HttpRequests.PostClient(); ClientConfig.CreateClient(client); }