For the complete documentation index, see llms.txt. This page is also available as Markdown.

restore

Restore a PostgreSQL cluster in place from a backup

Usage

ionosctl dbaas postgres cluster restore [flags]

Aliases

For postgres command:

[pg pgsql postgresql psql]

For cluster command:

[c]

For restore command:

[r]

Description

Trigger an in-place restore of an existing PostgreSQL cluster from one of its backups. This overwrites the cluster's current data with the state captured in the backup, so it is a destructive operation on the live cluster.

A backup is not a single frozen moment but a continuous recovery WINDOW. By default the backup is replayed in full (the latest available point). Pass --recovery-time to roll back to an earlier point in time inside that window (point-in-time recovery); the timestamp must fall within the backup's recovery window (see 'dbaas postgres backup get', field EarliestRecoveryTargetTime).

To instead create a NEW cluster from a backup while leaving the current one intact, use 'cluster create --backup-id'.

Required values to run command:

  • Cluster Id

  • Backup Id

Options

Examples

Last updated

Was this helpful?