apiVersion: sql.tanzu.vmware.com/v1
kind: PostgresRestore
metadata:
name: restore-sample
spec:
sourceBackup:
name: backup-sample
targetInstance:
name: postgres-sample
#pointInTime:
The list below explains the properties that can be set for the PostgresRestore resource.
Type: String
Required
Default: n/a
The name of the PostgresRestore. Must be unique within a namespace.
Example:
restore-sample
The spec describes the desired state for the Postgres backup object.
Type: Object
Required
Default: n/a
backup-sample
Type: Object
Required
Default: n/a
my-target-instance
Type: string
Optional
Default: n/a
The point in time (PIT) selected to restore to. The provided time needs to be after the completed time of the referenced backup in the sourceBackup
field. See Restore Time Criteria in Perform a PIT restore.
Example
2022-05-26T18:30:00-04:00
The status fields show the observed status of the PostgresRestore object and the values are updated by the controller that handles Backup/Restore in the instance.
Type: string
This field shows the current state of a PostgresRestore CR. It can be either empty or have any of the following values: Running, RecreatingNodes, RecreatingPrimary, RecreatingSecondary, WaitForPrimary, Finalizing, Succeeded, or Failed. All these phases are related to some internal processing that the operator does to achieve a restore. The terminal phasees are Failed
or Succeeded
.
Type: time
This field denotes the time when the restore started
Type: time
This field indicates the time when the restore got completed. This field is populated once the PostgresRestore CR reaches Failed or Succeeded state.
Type: time
This field shows some error/useful messages for why a restore is stuck or pending. Example:
Instance postgres-sample does not specify spec.backupLocation.name