1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-16 12:22:03 +00:00
gcloud-help/gcloud/beta/alloydb/clusters/restore

150 lines
5.8 KiB
Text
Raw Normal View History

2022-05-18 08:41:01 +00:00
NAME
2023-01-19 00:56:33 +00:00
gcloud beta alloydb clusters restore - restore an AlloyDB cluster from a
2023-06-08 11:29:23 +00:00
given backup or a source cluster and a timestamp
2022-05-18 08:41:01 +00:00
SYNOPSIS
2023-06-08 11:29:23 +00:00
gcloud beta alloydb clusters restore CLUSTER --region=REGION
(--backup=BACKUP
| --point-in-time=POINT_IN_TIME --source-cluster=SOURCE_CLUSTER)
2023-08-23 10:30:46 +00:00
[--allocated-ip-range-name=ALLOCATED_IP_RANGE_NAME] [--async]
2024-04-17 09:40:58 +00:00
[--enable-private-service-connect] [--network=NETWORK]
2022-08-10 08:48:58 +00:00
[--kms-key=KMS_KEY : --kms-keyring=KMS_KEYRING
--kms-location=KMS_LOCATION --kms-project=KMS_PROJECT]
[GCLOUD_WIDE_FLAG ...]
2022-05-18 08:41:01 +00:00
DESCRIPTION
2023-06-08 11:29:23 +00:00
(BETA) Restore an AlloyDB cluster from a given backup or a source cluster
and a timestamp.
2022-05-18 08:41:01 +00:00
EXAMPLES
To restore a cluster from a backup, run:
$ gcloud beta alloydb clusters restore my-cluster \
2022-08-24 09:45:53 +00:00
--region=us-central1 --backup=my-backup
2023-06-08 11:29:23 +00:00
To restore a cluster from a source cluster and a timestamp, run:
$ gcloud beta alloydb clusters restore my-cluster \
--region=us-central1 --source-cluster=old-cluster \
--point-in-time=2012-11-15T16:19:00.094Z
2022-05-18 08:41:01 +00:00
POSITIONAL ARGUMENTS
CLUSTER
AlloyDB cluster ID
REQUIRED FLAGS
--region=REGION
Regional location (e.g. asia-east1, us-east1). See the full list of
regions at https://cloud.google.com/sql/docs/instance-locations.
2023-02-01 11:38:52 +00:00
RestoreCluster source types.
2023-06-08 11:29:23 +00:00
Exactly one of these must be specified:
2023-02-01 11:38:52 +00:00
2023-06-08 11:29:23 +00:00
--backup=BACKUP
2023-12-14 10:23:58 +00:00
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.
2023-02-01 11:38:52 +00:00
Restore a cluster from a source cluster at a given point in time.
--point-in-time=POINT_IN_TIME
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.
--source-cluster=SOURCE_CLUSTER
2023-12-14 10:23:58 +00:00
AlloyDB source cluster to restore from. This must either be the
2023-09-13 10:32:10 +00:00
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.
2023-02-01 11:38:52 +00:00
This flag argument must be specified if any of the other arguments
in this group are specified.
2023-06-08 11:29:23 +00:00
OPTIONAL FLAGS
2023-08-23 10:30:46 +00:00
--allocated-ip-range-name=ALLOCATED_IP_RANGE_NAME
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
[a-z]([-a-z0-9][a-z0-9])?.
2023-06-08 11:29:23 +00:00
--async
Return immediately, without waiting for the operation in progress to
complete.
2024-04-17 09:40:58 +00:00
--enable-private-service-connect
Enable Private Service Connect (PSC) connectivity for the cluster.
2023-06-08 11:29:23 +00:00
--network=NETWORK
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, 'testproject', and shared
network, 'testsharednetwork', this would be of the
form:--network=projects/testproject/global/networks/testsharednetwork
2022-08-10 08:48:58 +00:00
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.
--kms-key=KMS_KEY
2023-05-04 10:43:54 +00:00
ID of the key or fully qualified identifier for the key.
To set the kms-key attribute:
2022-08-10 08:48:58 +00:00
▸ provide the argument --kms-key on the command line.
This flag argument must be specified if any of the other arguments in
this group are specified.
--kms-keyring=KMS_KEYRING
2023-05-04 10:43:54 +00:00
The KMS keyring of the key.
To set the kms-keyring attribute:
2022-08-10 08:48:58 +00:00
▸ provide the argument --kms-key on the command line with a fully
specified name;
▸ provide the argument --kms-keyring on the command line.
--kms-location=KMS_LOCATION
2023-05-04 10:43:54 +00:00
The Google Cloud location for the key.
To set the kms-location attribute:
2022-08-10 08:48:58 +00:00
▸ provide the argument --kms-key on the command line with a fully
specified name;
▸ provide the argument --kms-location on the command line.
--kms-project=KMS_PROJECT
2023-05-04 10:43:54 +00:00
The Google Cloud project for the key.
To set the kms-project attribute:
2022-08-10 08:48:58 +00:00
▸ provide the argument --kms-key on the command line with a fully
specified name;
▸ provide the argument --kms-project on the command line;
▸ set the property core/project.
2022-05-18 08:41:01 +00:00
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 $ gcloud help for details.
NOTES
2023-01-19 00:56:33 +00:00
This command is currently in beta and might change without notice. These
variants are also available:
$ gcloud alloydb clusters restore
2022-05-18 08:41:01 +00:00
$ gcloud alpha alloydb clusters restore