restore: carefully replace backup config

do not replace the backup policy and other flags
This commit is contained in:
Girish Ramakrishnan
2020-02-27 12:38:17 -08:00
parent cc932328ff
commit ce9834757e
3 changed files with 29 additions and 3 deletions
+1 -1
View File
@@ -221,7 +221,7 @@ function restore(backupConfig, backupId, version, sysinfoConfig, auditSource, ca
backups.restore.bind(null, backupConfig, backupId, (progress) => setProgress('restore', progress.message, NOOP_CALLBACK)),
settings.setSysinfoConfig.bind(null, sysinfoConfig),
cloudron.setupDashboard.bind(null, auditSource, (progress) => setProgress('restore', progress.message, NOOP_CALLBACK)),
settings.setBackupConfig.bind(null, backupConfig), // update with the latest backupConfig
settings.setBackupCredentials.bind(null, backupConfig), // update just the credentials and not the policy and flags
eventlog.add.bind(null, eventlog.ACTION_RESTORE, auditSource, { backupId }),
], function (error) {
gProvisionStatus.restore.active = false;