PostgresBackupSchedule Synopsis

apiVersion: sql.tanzu.vmware.com/v1
kind: PostgresBackupSchedule
metadata:
  name: backupschedule-sample
spec:
  backupTemplate:
    spec:
      sourceInstance:
        name: postgres-sample
      type: full
  schedule: "0 0 * * *"

The list below explains the properties that can be set for the PostgresBackupSchedule resource.

Metadata

name

Type: String
Required
Default: n/a
The name of the PostgresBackupSchedule. Must be unique within a namespace.
Example:
backupschedule-sample

Spec

The spec describes the desired state for the Postgres object.

backupTemplate

Type: Object
Optional
Default: n/a
This collection of fields describes the Postgres database backup template.

  • spec.sourceInstance.name
    Type: String
    Required
    Default: n/a
    The name of the Postgres instance on which you want scheduled backups for.
    Example

    postgres-sample
    
  • spec.sourceInstance.type
    Type: String
    Optional
    Default: n/a
    The type of the Postgres Backup you want to take at a scheduled interval.
    It can be one of three values, full,incremental, or differential.

schedule

Type: String (cron schedule)
Required
Default: n/a
The cron schedule for backups. Must be a valid cron schedule.
Example (every Saturday at 11PM)
"0 23 * * 6"

Status

The status fields show the observed status of the PostgresBackupSchedule object

message

Type: String
Optional
Default: n/a
Success/failure status message for PostgresBackupSchedule
Example
Instance my-2-postgres does not exist in the namespace default

check-circle-line exclamation-circle-line close-line
Scroll to top icon