restore: complete the latest full backup task of site id

when creating a full backup, the task is still running and the database
dump which is part of the backup, still says it is still running.

during restore, we mark the taskId as completed. detection of the task
is using the siteId in config (when restoring via backup config) or
just blindly setting the last backup task as completed (in manual form fill).
This commit is contained in:
Girish Ramakrishnan
2025-10-06 19:50:58 +02:00
parent 8718e7efd2
commit d732adf34b
4 changed files with 17 additions and 2 deletions
+2
View File
@@ -229,6 +229,8 @@ async function onDownloadConfig(backup) {
tmp[k] = backupSite[k];
}
tmp.siteId = backupSite.id;
const filename = `${props.app.fqdn}-backup-config-${(new Date(backup.creationTime)).toISOString().split('T')[0]}.json`;
download(filename, JSON.stringify(tmp, null, 4));
}