From 0bb2e5a511da7da4bfd3d7e11fe8af55701ab6d9 Mon Sep 17 00:00:00 2001 From: Jeremy Ho Date: Tue, 25 Feb 2020 10:08:40 -0800 Subject: [PATCH] Change default schedule time to be 1 AM (aligns with backup.conf example) Update documentation to list cron parameter Signed-off-by: Jeremy Ho --- README.md | 1 + openshift/templates/backup/backup-cronjob.yaml | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 81ea2c9..1d851a9 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,7 @@ The following variables are supported in the first iteration of the backup cronj | ---- | -------------------- | ------- | | BACKUP_STRATEGY | daily | To control the backup strategy used for backups. This is explained more below. | | BACKUP_DIR | /backups/ | The directory under which backups will be stored. The deployment configuration mounts the persistent volume claim to this location when first deployed. | +| SCHEDULE | 0 1 * * * | Cron Schedule to Execute the Job (using local cluster system TZ). | | NUM_BACKUPS | 31 | For backward compatibility this value is used with the daily backup strategy to set the number of backups to retain before pruning. | | DAILY_BACKUPS | 6 | When using the rolling backup strategy this value is used to determine the number of daily (Mon-Sat) backups to retain before pruning. | | WEEKLY_BACKUPS | 4 | When using the rolling backup strategy this value is used to determine the number of weekly (Sun) backups to retain before pruning. | diff --git a/openshift/templates/backup/backup-cronjob.yaml b/openshift/templates/backup/backup-cronjob.yaml index 72ed59f..814c6b5 100644 --- a/openshift/templates/backup/backup-cronjob.yaml +++ b/openshift/templates/backup/backup-cronjob.yaml @@ -19,9 +19,9 @@ parameters: required: true - name: "SCHEDULE" displayName: "Cron Schedule" - description: "Cron Schedule to Execute the Job (in UTC)" -# Currently targeting 5:00 AM Daily - value: "0 13 * * *" + description: "Cron Schedule to Execute the Job (using local cluster system TZ)" + # Currently targeting 1:00 AM Daily + value: "0 1 * * *" required: true - name: "SOURCE_IMAGE_NAME" displayName: "Source Image Name"