From 38cc767f273b6fe6d7591be5e88c45823df1a472 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 27 May 2020 23:04:04 -0700 Subject: [PATCH] move up the backup cron to not overlap auto-updates --- src/cron.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cron.js b/src/cron.js index 61733b062..72656791f 100644 --- a/src/cron.js +++ b/src/cron.js @@ -177,9 +177,9 @@ function backupConfigChanged(value, tz) { if (gJobs.backup) gJobs.backup.stop(); let pattern; if (value.intervalSecs <= 6 * 60 * 60) { - pattern = '00 00 1,7,13,19 * * *'; // no option but to backup in the middle of the day + pattern = '00 45 1,7,13,19 * * *'; // no option but to backup in the middle of the day } else { - pattern = '00 00 1,3,5,23 * * *'; // avoid middle of the day backups + pattern = '00 45 1,3,5,23 * * *'; // avoid middle of the day backups. it's 45 to not overlap auto-updates } gJobs.backup = new CronJob({