backup size: display stats correctly

This commit is contained in:
Girish Ramakrishnan
2025-10-01 17:19:58 +02:00
parent f69bdd1ac4
commit 832eca2d9c
5 changed files with 29 additions and 13 deletions
+4
View File
@@ -99,6 +99,10 @@ async function upload(remotePath, siteId, dataLayoutString, progressCallback) {
await checkPreconditions(backupSite, dataLayout);
// integrity - { signature } of the uploaded .backupinfo .
// .backupinfo contains an integrityMap { size, fileCount, sha256 } of each file. for tgz, fileCount has the file count inside
// stats - { fileCount, size, startTime, totalMsecs, transferred } . size is the backup size .transferred is what was transferred. they differ for rsync
// fileCount and size in stats should match up .backupinfo
const { stats, integrityMap } = await backupFormats.api(backupSite.format).upload(backupSite, remotePath, dataLayout, progressCallback);
progressCallback({ message: `Uploading integrity information to ${remotePath}.backupinfo` });