pgo create schedule

pgo create schedule

Create a cron-like scheduled task

Synopsis

Schedule creates a cron-like scheduled task. For example:

pgo create schedule --schedule="* * * * *" --schedule-type=pgbackrest --pgbackrest-backup-type=full mycluster
pgo create schedule [flags]

Options

  -c, --ccp-image-tag string             The CCPImageTag to use for cluster creation. If specified, overrides the pgo.yaml setting.
      --database string                  The database to run the SQL policy against.
  -h, --help                             help for schedule
      --pgbackrest-backup-type string    The type of pgBackRest backup to schedule (full, diff or incr).
      --pgbackrest-storage-type string   The type of storage to use when scheduling pgBackRest backups. Either "local", "s3" or both, comma separated. (default "local")
      --policy string                    The policy to use for SQL schedules.
      --schedule string                  The schedule assigned to the cron task.
      --schedule-opts string             The custom options passed to the create schedule API.
      --schedule-type string             The type of schedule to be created (pgbackrest or policy).
      --secret string                    The secret name for the username and password of the PostgreSQL role for SQL schedules.
  -s, --selector string                  The selector to use for cluster filtering.

Options inherited from parent commands

      --apiserver-url string     The URL for the PostgreSQL Operator apiserver that will process the request from the pgo client.
      --debug                    Enable additional output for debugging.
      --disable-tls              Disable TLS authentication to the Postgres Operator.
      --exclude-os-trust         Exclude CA certs from OS default trust store
  -n, --namespace string         The namespace to use for pgo requests.
      --pgo-ca-cert string       The CA Certificate file path for authenticating to the PostgreSQL Operator apiserver.
      --pgo-client-cert string   The Client Certificate file path for authenticating to the PostgreSQL Operator apiserver.
      --pgo-client-key string    The Client Key file path for authenticating to the PostgreSQL Operator apiserver.

SEE ALSO

  • pgo create - Create a Postgres Operator resource
Auto generated by spf13/cobra on 31-Dec-2019