Skip to content

Commit

Permalink
Fix old strategy restore
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles committed Aug 6, 2024
1 parent 5228cb5 commit 9ddcfc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/lib/gateway/gateway.downloadBackup.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ async function downloadBackup(fileUrl) {
} catch (e) {
logger.info(`Extracting failed using new strategy (Error: ${e})`);
logger.info(`Restoring using old backup strategy (SQLite only)`);
await exec(`gzip -d ${compressedBackupFilePath}`);
sqliteBackupFilePath = path.join(restoreFolderPath, `${encryptedBackupName}.db`);
await exec(`gzip -dc ${compressedBackupFilePath} > ${sqliteBackupFilePath}`);
}
// done!
logger.info(`Gladys backup downloaded with success.`);
Expand Down

0 comments on commit 9ddcfc3

Please sign in to comment.