HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/current/help/man/man1/gcloud_alloydb_clusters_restore.1
.TH "GCLOUD_ALLOYDB_CLUSTERS_RESTORE" 1



.SH "NAME"
.HP
gcloud alloydb clusters restore \- restore an AlloyDB cluster from a given backup or a source cluster and a timestamp



.SH "SYNOPSIS"
.HP
\f5gcloud alloydb clusters restore\fR \fICLUSTER\fR \fB\-\-region\fR=\fIREGION\fR (\fB\-\-backup\fR=\fIBACKUP\fR\ |\ \fB\-\-point\-in\-time\fR=\fIPOINT_IN_TIME\fR\ \fB\-\-source\-cluster\fR=\fISOURCE_CLUSTER\fR) [\fB\-\-allocated\-ip\-range\-name\fR=\fIALLOCATED_IP_RANGE_NAME\fR] [\fB\-\-async\fR] [\fB\-\-enable\-private\-service\-connect\fR] [\fB\-\-network\fR=\fINETWORK\fR] [\fB\-\-tags\fR=[\fIKEY\fR=\fIVALUE\fR,...]] [\fB\-\-kms\-key\fR=\fIKMS_KEY\fR\ :\ \fB\-\-kms\-keyring\fR=\fIKMS_KEYRING\fR\ \fB\-\-kms\-location\fR=\fIKMS_LOCATION\fR\ \fB\-\-kms\-project\fR=\fIKMS_PROJECT\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

Restore an AlloyDB cluster from a given backup or a source cluster and a
timestamp.



.SH "EXAMPLES"

To restore a cluster from a backup, run:

.RS 2m
$ gcloud alloydb clusters restore my\-cluster \-\-region=us\-central1 \e
  \-\-backup=my\-backup
.RE

To restore a cluster from a source cluster and a timestamp, run:

.RS 2m
$ gcloud alloydb clusters restore my\-cluster \-\-region=us\-central1 \e
  \-\-source\-cluster=old\-cluster \e
  \-\-point\-in\-time=2012\-11\-15T16:19:00.094Z
.RE



.SH "POSITIONAL ARGUMENTS"

.RS 2m
.TP 2m
\fICLUSTER\fR

AlloyDB cluster ID


.RE
.sp

.SH "REQUIRED FLAGS"

.RS 2m
.TP 2m
\fB\-\-region\fR=\fIREGION\fR

Regional location (e.g. \f5asia\-east1\fR, \f5us\-east1\fR). See the full list
of regions at https://cloud.google.com/sql/docs/instance\-locations.

.TP 2m

RestoreCluster source types.

Exactly one of these must be specified:


.RS 2m
.TP 2m
\fB\-\-backup\fR=\fIBACKUP\fR

AlloyDB backup to restore from. This must either be the full backup name
(projects/myProject/locations/us\-central1/backups/myBackup) or the backup ID
(myBackup). In the second case, the project and location are assumed to be the
same as the restored cluster that is being created.

.TP 2m

Restore a cluster from a source cluster at a given point in time.


.RS 2m
.TP 2m
\fB\-\-point\-in\-time\fR=\fIPOINT_IN_TIME\fR

Point in time to restore to, in RFC 3339 format. For example,
2012\-11\-15T16:19:00.094Z.

This flag argument must be specified if any of the other arguments in this group
are specified.

.TP 2m

Source for a point in time restore operation.

This must be specified.


.RS 2m
.TP 2m
\fB\-\-source\-cluster\fR=\fISOURCE_CLUSTER\fR

AlloyDB source cluster to restore from. This must either be the full cluster
name (projects/myProject/locations/us\-central1/backups/myCluster) or the
cluster ID (myCluster). In the second case, the project and location are assumed
to be the same as the restored cluster that is being created.


.RE
.RE
.RE
.RE
.sp

.SH "OPTIONAL FLAGS"

.RS 2m
.TP 2m
\fB\-\-allocated\-ip\-range\-name\fR=\fIALLOCATED_IP_RANGE_NAME\fR

Name of the allocated IP range for the private IP AlloyDB cluster, for example:
"google\-managed\-services\-default". If set, the instance IPs for this cluster
will be created in the allocated range. The range name must comply with RFC
1035. Specifically, the name must be 1\-63 characters long and match the regular
expression \f5[a\-z]([\-a\-z0\-9]*[a\-z0\-9])?\fR.

.TP 2m
\fB\-\-async\fR

Return immediately, without waiting for the operation in progress to complete.

.TP 2m
\fB\-\-enable\-private\-service\-connect\fR

Enable Private Service Connect (PSC) connectivity for the cluster.

.TP 2m
\fB\-\-network\fR=\fINETWORK\fR

Network in the current project that the instance will be part of. To specify
using a network with a shared VPC, use the full URL of the network. For an
example host project, \f5testproject\fR, and shared network,
\f5testsharednetwork\fR, this would be of the
form:\f5\-\-network=projects/testproject/global/networks/testsharednetwork\fR

.TP 2m
\fB\-\-tags\fR=[\fIKEY\fR=\fIVALUE\fR,...]

List of tags KEY=VALUE pairs to bind. Each item must be expressed as
\f5<tag\-key\-namespaced\-name>=<tag\-value\-short\-name>\fR.

Example: \f5123/environment=production,123/costCenter=marketing\fR

.TP 2m

Key resource \- The Cloud KMS (Key Management Service) cryptokey that will be
used to protect the cluster. The 'AlloyDB Service Agent' service account must
hold permission 'Cloud KMS CryptoKey Encrypter/Decrypter'. The arguments in this
group can be used to specify the attributes of this resource.


.RS 2m
.TP 2m
\fB\-\-kms\-key\fR=\fIKMS_KEY\fR

ID of the key or fully qualified identifier for the key.

To set the \f5kms\-key\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5\-\-kms\-key\fR on the command line.
.RE
.sp

This flag argument must be specified if any of the other arguments in this group
are specified.

.TP 2m
\fB\-\-kms\-keyring\fR=\fIKMS_KEYRING\fR

The KMS keyring of the key.

To set the \f5kms\-keyring\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5\-\-kms\-key\fR on the command line with a fully
specified name;
.IP "\(bu" 2m
provide the argument \f5\-\-kms\-keyring\fR on the command line.
.RE
.sp

.TP 2m
\fB\-\-kms\-location\fR=\fIKMS_LOCATION\fR

The Google Cloud location for the key.

To set the \f5kms\-location\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5\-\-kms\-key\fR on the command line with a fully
specified name;
.IP "\(bu" 2m
provide the argument \f5\-\-kms\-location\fR on the command line.
.RE
.sp

.TP 2m
\fB\-\-kms\-project\fR=\fIKMS_PROJECT\fR

The Google Cloud project for the key.

To set the \f5kms\-project\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5\-\-kms\-key\fR on the command line with a fully
specified name;
.IP "\(bu" 2m
provide the argument \f5\-\-kms\-project\fR on the command line;
.IP "\(bu" 2m
set the property \f5core/project\fR.
.RE
.sp


.RE
.RE
.sp

.SH "GCLOUD WIDE FLAGS"

These flags are available to all commands: \-\-access\-token\-file, \-\-account,
\-\-billing\-project, \-\-configuration, \-\-flags\-file, \-\-flatten,
\-\-format, \-\-help, \-\-impersonate\-service\-account, \-\-log\-http,
\-\-project, \-\-quiet, \-\-trace\-token, \-\-user\-output\-enabled,
\-\-verbosity.

Run \fB$ gcloud help\fR for details.



.SH "NOTES"

These variants are also available:

.RS 2m
$ gcloud alpha alloydb clusters restore
.RE

.RS 2m
$ gcloud beta alloydb clusters restore
.RE