pgo_restore

pgo restore

Perform a restore from previous backup

Synopsis

RESTORE performs a restore to a new PostgreSQL cluster. This includes stopping the database and recreating a new primary with the restored data. Valid backup types to restore from are pgbackrest and pgdump. For example:

pgo restore mycluster 
pgo restore [flags]

Options

      --backup-opts string   The restore options for pgbackrest or pgdump.
      --backup-pvc string    The PVC containing the pgdump directory to restore from.
      --backup-type string   The type of backup to restore from, default is pgbackrest. Valid types are pgbackrest or pgdump.
  -h, --help                 help for restore
  -n, --no-prompt            No command line confirmation.
      --node-label string    The node label (key=value) to use when scheduling the restore job, and in the case of a pgBackRest restore, also the new (i.e. restored) primary deployment. If not set, any node is used.
      --pitr-target string   The PITR target, being a PostgreSQL timestamp such as '2018-08-13 11:25:42.582117-04'.

Options inherited from parent commands

      --apiserver-url string     The URL for the PostgreSQL Operator apiserver.
      --debug                    Enable debugging when true.
      --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 - The pgo command line interface.
Auto generated by spf13/cobra on 19-Mar-2019