Skip to main content
POST
Restore Backup or Point in Time to New Cluster

Authorizations

Authorization
string
header
required

A Fly API token with access to the requested organization or resource. Send it as Authorization: Bearer <Fly API token>.

Path Parameters

postgres_cluster_id
string
required

Managed Postgres Cluster ID

Body

application/json

Restore details

backup_id
string

Backup label to restore from, as returned by the backups list. Mutually exclusive with pitr_time.

name
string

Name for the restored cluster. Defaults to a generated name derived from the source cluster and backup/point in time when omitted or blank.

pitr_time
string

Point in time to restore to, as an RFC3339 timestamp with an explicit offset from UTC (e.g. Z or +02:00). Normalized to UTC and must fall within the cluster's PITR recovery window. Mutually exclusive with backup_id.

Response

New cluster provisioned from the backup or point in time

data
object