public BackupStatusReport GetBackupStatus(Guid siteId) { try { BitplateBackupServiceReference.BackupServiceClient backupClient = new BitplateBackupServiceReference.BackupServiceClient(); return(JSONSerializer.Deserialize <BackupStatusReport>(backupClient.GetBackupStatus(siteId), true)); } catch (Exception ex) { BackupStatusReport exceptioReport = new BackupStatusReport(); exceptioReport.BackupCompleted = true; exceptioReport.StatusMessage = "Kan BitBackupService niet vinden.\r\n" + ex.ToString(); return(exceptioReport); } }
public string RestoreBackup(string backupName) { BitplateBackupServiceReference.BackupServiceClient backupClient = new BitplateBackupServiceReference.BackupServiceClient(); backupClient.RestoreBackup(SessionObject.CurrentSite.ID, SessionObject.CurrentSite.CurrentWorkingEnvironment.Path, backupName, System.Configuration.ConfigurationManager.ConnectionStrings["cmsdb"].ConnectionString); return(ConfigurationManager.AppSettings["LicenseHost"] + "BackupRestore/restore.aspx?siteId=" + SessionObject.CurrentSite.ID.ToString() + "&returnUrl=" + SessionObject.CurrentSite.CurrentWorkingEnvironment.DomainName); }
public BackupStatusReport GetBackupStatus() { BitplateBackupServiceReference.BackupServiceClient backupClient = new BitplateBackupServiceReference.BackupServiceClient(); return(JSONSerializer.Deserialize <BackupStatusReport>(backupClient.GetBackupStatus(SessionObject.CurrentSite.ID), true)); }
public void CreateBackup() { BitplateBackupServiceReference.BackupServiceClient backupClient = new BitplateBackupServiceReference.BackupServiceClient(); bool test = backupClient.MakeBackup(SessionObject.CurrentSite.ID, SessionObject.CurrentSite.CurrentWorkingEnvironment.Path, System.Configuration.ConfigurationManager.ConnectionStrings["cmsdb"].ConnectionString); }