Esempio n. 1
0
        public BackupProgress StartBackupRestore(string backupId, BackupStorageType storageType, IEnumerable <ItemKeyValuePair <string, string> > storageParams, bool notify)
        {
            if (CoreContext.Configuration.Standalone)
            {
                TenantExtra.DemandControlPanelPermission();
            }

            return(backupHandler.StartRestore(backupId, storageType, storageParams.ToDictionary(r => r.Key, r => r.Value), notify));
        }
Esempio n. 2
0
        public BackupProgress RestoreBackup(string backupfile)
        {
            if (!CoreContext.Configuration.Standalone)
            {
                throw new NotSupportedException("Restore backup not available.");
            }

            return(backupHandler.StartRestore(
                       null,
                       BackupStorageType.Local,
                       new BackupAjaxHandler.StorageParams
            {
                FilePath = backupfile,
            },
                       false));
        }
 public BackupProgress StartBackupRestore(string backupId, BackupStorageType storageType, IEnumerable <ItemKeyValuePair <string, string> > storageParams, bool notify)
 {
     return(backupHandler.StartRestore(backupId, storageType, storageParams.ToDictionary(r => r.Key, r => r.Value), notify));
 }
Esempio n. 4
0
 public BackupProgress StartBackupRestore(string backupId, BackupStorageType storageType, BackupAjaxHandler.StorageParams storageParams, bool notify)
 {
     return(backupHandler.StartRestore(backupId, storageType, storageParams, notify));
 }