From 02b6aa93cb510af13ce1f063a7b34e92d25f702c Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 31 Jan 2023 10:58:51 +0100 Subject: [PATCH] backup cleaner: do not delete mail snapshot --- src/backupcleaner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backupcleaner.js b/src/backupcleaner.js index 1abe90cf6..1828ad858 100644 --- a/src/backupcleaner.js +++ b/src/backupcleaner.js @@ -242,11 +242,11 @@ async function cleanupSnapshots(backupConfig) { const info = safe.JSON.parse(contents); if (!info) return; - delete info.box; - const progressCallback = (progress) => { debug(`cleanupSnapshots: ${progress.message}`); }; for (const appId of Object.keys(info)) { + if (appId === 'box' || appId === 'mail') continue; + const app = await apps.get(appId); if (app) continue; // app is still installed