move up the backup cron to not overlap auto-updates

This commit is contained in:
Girish Ramakrishnan
2020-05-27 23:04:04 -07:00
parent e1a718c78f
commit 38cc767f27
+2 -2
View File
@@ -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({