Fix app import

This commit is contained in:
Girish Ramakrishnan
2025-08-02 19:09:21 +02:00
parent 4c74908789
commit ead6d9c7d3
7 changed files with 36 additions and 38 deletions
+3 -3
View File
@@ -201,7 +201,7 @@ async function onSubmit() {
data.backupConfig.preserveAttributes = !!providerConfig.value.preserveAttributes;
}
} else if (provider.value === 'filesystem') {
data.backupConfig.backupFolder = providerConfig.value.backupFolder;
data.backupConfig.backupDir = providerConfig.value.backupDir;
data.backupConfig.noHardlinks = !providerConfig.value.useHardlinks;
data.backupConfig.preserveAttributes = true;
} else if (provider.value === 'gcs') {
@@ -252,8 +252,8 @@ function onBackupConfigChanged(event) {
try {
config = JSON.parse(result.target.result);
if (config.provider === 'filesystem') { // this allows a user to upload a backup to server and import easily with an absolute path
config.remotePath = config.backupFolder + '/' + config.remotePath;
delete config.backupFolder;
config.remotePath = config.backupDir + '/' + config.remotePath;
delete config.backupDir;
}
} catch (e) {
console.error('Unable to parse backup config', e);