> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# nebius msp postgresql v1alpha1 cluster restore

## Name

`nebius msp postgresql v1alpha1 cluster restore`

Creates a new PostgreSQL cluster from a previously created backup.

## Synopsis

```
nebius msp postgresql v1alpha1 cluster restore [id]
  --backup-backup-window-start
  --backup-id [required]
  --backup-retention-policy
  --bootstrap-db-name [required]
  --bootstrap-user-name [required]
  --bootstrap-user-password
  --config-pooler-config-max-pool-size
  --config-pooler-config-pooling-mode
  --config-postgresql-config-16-autovacuum-analyze-scale-factor
  --config-postgresql-config-16-autovacuum-naptime
  --config-postgresql-config-16-autovacuum-vacuum-cost-delay
  --config-postgresql-config-16-autovacuum-vacuum-cost-limit
  --config-postgresql-config-16-autovacuum-vacuum-scale-factor
  --config-postgresql-config-16-autovacuum-work-mem
  --config-postgresql-config-16-default-transaction-read-only
  --config-postgresql-config-16-idle-in-transaction-session-timeout
  --config-postgresql-config-16-max-connections
  --config-postgresql-config-16-search-path
  --config-postgresql-config-16-shared-buffers
  --config-postgresql-config-16-statement-timeout
  --config-public-access
  --config-template-disk-size-gibibytes [required]
  --config-template-disk-type [required]
  --config-template-hosts-count [required]
  --config-template-resources-platform [required]
  --config-template-resources-preset [required]
  --config-version [required]
  --description
  --id
  --labels
  --name
  --network-id
  --parent-id [required]
  --recovery-time
  --resource-version
  --source-cluster-id [required]
  --async
```

## Examples

**Restore a PostgreSQL cluster from a backup**

```
nebius msp postgresql v1alpha1 cluster restore \
  --backup-id <backup_ID> \
  --source-cluster-id <ID_of_source_cluster> \
  --name <cluster_name> \
  --bootstrap-user-password *** \
  --network-id vpcnetwork-e*** \
  --recovery-time <yyyy-mm-dd>T<hh:mm:ss>Z
```

## Positional Arguments

`id`

Identifier for the resource, unique for its resource type.

## Options

`--backup-backup-window-start` (string)

Backup window start in "HH:MM:SS" format (UTC Time).

`--backup-id` (string)* \[required]*

ID of the backup to restore from.

`--backup-retention-policy` (string)

Retention policy to be used for backups and WALs (i.e. '7d').

`--bootstrap-db-name` (string)* \[required]*

Name of the PostgreSQL database. 1-63 characters long.

`--bootstrap-user-name` (string)* \[required]*

Name of the bootstrap PostgreSQL user.

`--bootstrap-user-password` (string)

Password of the bootstrap PostgreSQL user.

`--config-pooler-config-max-pool-size` (int64)

Maximum number of connections in the pool for a single user/database pair.

`--config-pooler-config-pooling-mode` (string)

Mode that the connection pooler is working in.

A value must be one of:

<ul>
  <li>
    `pooling_mode_unspecified`
  </li>

  <li>
    `session`
  </li>

  <li>
    `transaction`
  </li>
</ul>

`--config-postgresql-config-16-autovacuum-analyze-scale-factor` (float64)

`--config-postgresql-config-16-autovacuum-naptime` (int64)

In seconds.

`--config-postgresql-config-16-autovacuum-vacuum-cost-delay` (int64)

In milliseconds.

`--config-postgresql-config-16-autovacuum-vacuum-cost-limit` (int64)

`--config-postgresql-config-16-autovacuum-vacuum-scale-factor` (float64)

`--config-postgresql-config-16-autovacuum-work-mem` (int64)

In kilobytes.

`--config-postgresql-config-16-default-transaction-read-only` (bool)

`--config-postgresql-config-16-idle-in-transaction-session-timeout` (int64)

In milliseconds.

`--config-postgresql-config-16-max-connections` (int64)

`--config-postgresql-config-16-search-path` (string)

`--config-postgresql-config-16-shared-buffers` (int64)

In kilobytes.

`--config-postgresql-config-16-statement-timeout` (int64)

In milliseconds.

`--config-public-access` (bool)

Either make cluster public accessible or accessible only via private VPC.

`--config-template-disk-size-gibibytes` (int64)* \[required]*

`--config-template-disk-type` (string)* \[required]*

`--config-template-hosts-count` (int64)* \[required]*

`--config-template-resources-platform` (string)* \[required]*

`--config-template-resources-preset` (string)* \[required]*

`--config-version` (string)* \[required]*

Version of PostgreSQL used in the cluster.\

Possible values: `16`.

`--description` (string)

Description of the PostgreSQL cluster.

`--id` (string)

Identifier for the resource, unique for its resource type.

`--labels` (string->string)

Labels associated with the resource.

`--name` (string)

Human-readable name for the resource.

`--network-id` (string)

Network ID in which the cluster is created.\

If omitted through the public API, the project's default network is used or created.

`--parent-id` (string)* \[required]*

Identifier of the parent resource to which the resource belongs.

`--recovery-time` (timestamp: 1970-01-31T02:30:59Z)

Timestamp for point in time recovery.

`--resource-version` (int64)

Version of the resource for safe concurrent modifications and consistent reads.\

Positive and monotonically increases on each resource spec change (but *not* on each change of the\

resource's container(s) or status).\

Service allows zero value or current.

`--source-cluster-id` (string)* \[required]*

ID of the PostgreSQL cluster to restore from.

`--async` (bool)

If set, returns operation id. Otherwise, waits for the operation to complete and returns its resource.

## Global Options

`-h, --help` (bool)

Show this message.

`-p, --profile` (string)

Set a profile for interacting with the cloud.

`--format` (string)

Output format. Supported values: yaml|json|jsonpath|table|text.

`-f, --file` (string)

Input file. For 'update' commands automatically set --full=true.

`-c, --config` (string)

Provide path to config file.

`--debug` (bool)

Write debug logs to stderr. Commands save debug logs in the config directory under logs/, except help and shell completion.

`-I, --impersonate-service-account-id` (string)

Impersonate into the service account and use its token for a command.

`--color` (bool)

Enable colored output.

`--no-browser` (bool)

Do not open browser automatically on auth.

`--insecure` (bool)

Disable transport security.

`--auth-timeout` (duration: 2h30m10s)

Set the timeout for the request including authentication process, default is 15m0s.

`--per-retry-timeout` (duration: 2h30m10s)

Set the timeout for each retry attempt, default is 20s.

`--retries` (uint)

Set the number of retry attempts, 1 is disable retries, default is 3.

`--timeout` (duration: 2h30m10s)

Set the timeout for the main request, default is 1m0s.

`--no-check-update` (bool)

Suppress check for updates.

`--no-progress` (bool)

Suppress progress indicators and spinners.

**Input argument JSON Schema**

> [tab] Full
>
> ```json theme={null}
> {                                         
>   "backup_id": string,                     // [required]
>                                            // ID of the backup to restore from.
>   "metadata": {                // [required]
>                                // Metadata associated with the new cluster.
>     "id": string,              // [identifier]
>                                // Identifier for the resource, unique for its resource type.
>     "labels": {                // [map]
>                                // Labels associated with the resource.
>       string: string                  
>     },
>     "name": string,            // Human-readable name for the resource.
>     "parent_id": string,       // [required]
>                                // Identifier of the parent resource to which the resource belongs.
>     "resource_version": int64  // Version of the resource for safe concurrent modifications and consistent reads.
>                                // Positive and monotonically increases on each resource spec change (but *not* on each change of the
>                                // resource's container(s) or status).
>                                // Service allows zero value or current.
>   },
>   "recovery_time": "1970-01-31T02:30:59Z", // [google.protobuf.Timestamp]
>                                            // Timestamp for point in time recovery.
>   "source_cluster_id": string,             // [required]
>                                            // ID of the PostgreSQL cluster to restore from.
>   "spec": {                // [required]
>                            // Specification for the new cluster.
>     "backup": {                      // [immutable]
>       "backup_window_start": string, // Backup window start in "HH:MM:SS" format (UTC Time).
>       "retention_policy": string     // Retention policy to be used for backups and WALs (i.e. '7d').
>     },
>     "bootstrap": {             // [required]
>       "db_name": string,       // [required] [immutable]
>                                // Name of the PostgreSQL database. 1-63 characters long.
>       "user_name": string,     // [required] [immutable]
>                                // Name of the bootstrap PostgreSQL user.
>       "user_password": string  // [sensitive] [input_only]
>                                // Password of the bootstrap PostgreSQL user.
>     },
>     "config": {                 // [required]
>       "pooler_config": {        // Configuration of the connection pooler.
>         "max_pool_size": int64, // [optional]
>                                 // Maximum number of connections in the pool for a single user/database pair.
>         "pooling_mode": enum(         // Mode that the connection pooler is working in.
>           "POOLING_MODE_UNSPECIFIED",
>           "SESSION",                  // Session pooling mode.
>           "TRANSACTION"               // Transaction pooling mode.
>         )
>       },
>       "postgresql_config_16": {                       // Configuration parameters for postgres.
>         "autovacuum_analyze_scale_factor": double,    // [optional]
>         "autovacuum_naptime": int64,                  // [optional]
>                                                       // In seconds.
>         "autovacuum_vacuum_cost_delay": int64,        // [optional]
>                                                       // In milliseconds.
>         "autovacuum_vacuum_cost_limit": int64,        // [optional]
>         "autovacuum_vacuum_scale_factor": double,     // [optional]
>         "autovacuum_work_mem": int64,                 // [optional]
>                                                       // In kilobytes.
>         "default_transaction_read_only": bool,        // [optional]
>         "idle_in_transaction_session_timeout": int64, // [optional]
>                                                       // In milliseconds.
>         "max_connections": int64,                     // [optional]
>         "search_path": string,                        // [optional]
>         "shared_buffers": int64,                      // [optional]
>                                                       // In kilobytes.
>         "statement_timeout": int64                    // [optional]
>                                                       // In milliseconds.
>       },
>       "public_access": bool,    // Either make cluster public accessible or accessible only via private VPC.
>       "template": {    // [required]
>                        // Resources allocated to PostgreSQL hosts.
>         "disk": {                  // [required]
>           "size_gibibytes": int64, // [required]
>           "type": string           // [required]
>         },
>         "hosts": {        // [required]
>           "count": int64  // [required]
>         },
>         "resources": {        // [required]
>                               // Reduced msp.v1alpha1.resource.TemplateSpec.
>           "platform": string, // [required]
>           "preset": string    // [required]
>         }
>       },
>       "version": string         // [required] [immutable]
>                                 // Version of PostgreSQL used in the cluster.
>                                 // Possible values: `16`.
>     },
>     "description": string, // [immutable]
>                            // Description of the PostgreSQL cluster.
>     "network_id": string   // [immutable] [non_empty_default]
>                            // Network ID in which the cluster is created.
>                            // If omitted through the public API, the project's default network is used or created.
>   }
> }
> ```

> [tab] CopyPaste Friendly
>
> ```json theme={null}
> nebius msp postgresql v1alpha1 cluster restore '
> {                                         
>   "backup_id": "",                        
>   "metadata": {           
>     "id": "",             
>     "labels": {           
>       "": ""                  
>     },
>     "name": "",           
>     "parent_id": "",      
>     "resource_version": 0 
>   },
>   "recovery_time": "1970-01-31T02:30:59Z",
>   "source_cluster_id": "",                
>   "spec": {           
>     "backup": {                 
>       "backup_window_start": "",
>       "retention_policy": ""    
>     },
>     "bootstrap": {        
>       "db_name": "",      
>       "user_name": "",    
>       "user_password": "" 
>     },
>     "config": {                
>       "pooler_config": {                                                  
>         "max_pool_size": 0,                                               
>         "pooling_mode": "pooling_mode_unspecified"|"session"|"transaction"
>       },
>       "postgresql_config_16": {                  
>         "autovacuum_analyze_scale_factor": 0.0,  
>         "autovacuum_naptime": 0,                 
>         "autovacuum_vacuum_cost_delay": 0,       
>         "autovacuum_vacuum_cost_limit": 0,       
>         "autovacuum_vacuum_scale_factor": 0.0,   
>         "autovacuum_work_mem": 0,                
>         "default_transaction_read_only": false,  
>         "idle_in_transaction_session_timeout": 0,
>         "max_connections": 0,                    
>         "search_path": "",                       
>         "shared_buffers": 0,                     
>         "statement_timeout": 0                   
>       },
>       "public_access": false,  
>       "template": {   
>         "disk": {             
>           "size_gibibytes": 0,
>           "type": ""          
>         },
>         "hosts": {   
>           "count": 0 
>         },
>         "resources": {   
>           "platform": "",
>           "preset": ""   
>         }
>       },
>       "version": ""            
>     },
>     "description": "",
>     "network_id": ""  
>   }
> }
> '
> ```

*Auto generated on 11-Nov-2026*
