backupcleaner: remove integrity information

This commit is contained in:
Girish Ramakrishnan
2025-12-08 19:14:48 +01:00
parent 628902bb70
commit 9773c02e7d
+4
View File
@@ -99,6 +99,10 @@ async function removeBackup(site, backup, progressCallback) {
return;
}
// remove integrity info
const [removeIntegrityError] = await safe(backupSites.storageApi(site).remove(site.config, `${remotePath}.backupinfo`));
if (removeIntegrityError) debug(`removeBackup: could not remove integrity info: ${removeIntegrityError.message}`);
// prune empty directory if possible
const [pruneError] = await safe(backupSites.storageApi(site).remove(site.config, path.dirname(remotePath)));
if (pruneError) debug(`removeBackup: unable to prune backup directory ${path.dirname(remotePath)}: ${pruneError.message}`);