Only backup once per day
This commit is contained in:
@@ -66,7 +66,7 @@ function recreateJobs(unusedTimeZone, callback) {
|
||||
|
||||
if (gBackupJob) gBackupJob.stop();
|
||||
gBackupJob = new CronJob({
|
||||
cronTime: '00 00 */4 * * *', // every 4 hours
|
||||
cronTime: '00 00 00 * * *', // every day once at midnight
|
||||
onTick: backups.ensureBackup.bind(null, AUDIT_SOURCE, NOOP_CALLBACK),
|
||||
start: true,
|
||||
timeZone: allSettings[settings.TIME_ZONE_KEY]
|
||||
|
||||
Reference in New Issue
Block a user