backupcleaner: remove integrity information
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user