backup size: display stats correctly
This commit is contained in:
@@ -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` });
|
||||
|
||||
Reference in New Issue
Block a user