backupformat: print the backupFilePath

This commit is contained in:
Girish Ramakrishnan
2023-08-02 09:50:02 +05:30
parent 30880de82f
commit 68b4bf1667
2 changed files with 3 additions and 3 deletions

View File

@@ -216,11 +216,11 @@ async function download(backupConfig, remotePath, dataLayout, progressCallback)
assert(dataLayout instanceof DataLayout, 'dataLayout must be a DataLayout');
assert.strictEqual(typeof progressCallback, 'function');
debug(`download: Downloading ${remotePath} to ${dataLayout.toString()}`);
const backupFilePath = getBackupFilePath(backupConfig, remotePath);
const downloadDirAsync = util.promisify(downloadDir);
debug(`download: Downloading ${backupFilePath} to ${dataLayout.toString()}`);
await downloadDirAsync(backupConfig, backupFilePath, dataLayout, progressCallback);
await restoreFsMetadata(dataLayout, `${dataLayout.localRoot()}/fsmetadata.json`);
}

View File

@@ -145,7 +145,7 @@ async function download(backupConfig, remotePath, dataLayout, progressCallback)
const backupFilePath = getBackupFilePath(backupConfig, remotePath);
await promiseRetry({ times: 5, interval: 20000, debug }, async () => {
progressCallback({ message: `Downloading backup ${remotePath}` });
progressCallback({ message: `Downloading backup ${backupFilePath}` });
const sourceStream = await storage.api(backupConfig.provider).download(backupConfig, backupFilePath);
const ps = tarExtract(sourceStream, dataLayout, backupConfig.encryption);