diff --git a/hugo/content/Design/_index.md b/hugo/content/Design/_index.md index 062cbce7e0..afa7ece3f9 100644 --- a/hugo/content/Design/_index.md +++ b/hugo/content/Design/_index.md @@ -194,6 +194,21 @@ Schedules are removed automatically when the configmaps are deleted. PGO Scheduler uses the `UTC` timezone for all schedules. +### Schedule Expression Format + +Schedules are expressed using the following rules: + +``` +Field name | Mandatory? | Allowed values | Allowed special characters +---------- | ---------- | -------------- | -------------------------- +Seconds | Yes | 0-59 | * / , - +Minutes | Yes | 0-59 | * / , - +Hours | Yes | 0-23 | * / , - +Day of month | Yes | 1-31 | * / , - ? +Month | Yes | 1-12 or JAN-DEC | * / , - +Day of week | Yes | 0-6 or SUN-SAT | * / , - ? +``` + ### pgBackRest Schedules pgBackRest schedules require pgBackRest enabled on the cluster to backup. The scheduler diff --git a/hugo/content/Operator CLI/_index.md b/hugo/content/Operator CLI/_index.md index f1c5dcdba4..d6f3cb76d6 100644 --- a/hugo/content/Operator CLI/_index.md +++ b/hugo/content/Operator CLI/_index.md @@ -226,12 +226,12 @@ before you do a restore. #### Automated full pgBackRest backups every Sunday at 1 am - pgo create schedule mycluster --schedule="0 1 * * 7" \ + pgo create schedule mycluster --schedule="0 1 * * SUN" \ --schedule-type=pgbackrest --pgbackrest-backup-type=full -#### Automated diff pgBackRest backups every Sunday at 1 am +#### Automated diff pgBackRest backups every Monday-Saturday at 1 am - pgo create schedule mycluster --schedule="0 1 * * 7" \ + pgo create schedule mycluster --schedule="0 1 * * MON-SAT" \ --schedule-type=pgbackrest --pgbackrest-backup-type=diff #### Automated pgBaseBackup backups every day at 1 am