Skip to content

Commit

Permalink
Merge pull request #40 from jujaga/bugfix/crontimezone
Browse files Browse the repository at this point in the history
Change cronjob default schedule value
  • Loading branch information
WadeBarnes authored Feb 25, 2020
2 parents 63adae7 + 0bb2e5a commit 08bda74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
6 changes: 3 additions & 3 deletions openshift/templates/backup/backup-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 08bda74

Please sign in to comment.