mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-13 08:27:05 +00:00
gcloud: Wed Jul 23 10:59:14 UTC 2025
This commit is contained in:
parent
fe3a430c1d
commit
0acbd64d02
208 changed files with 2473 additions and 622 deletions
|
|
@ -47,10 +47,11 @@ SYNOPSIS
|
|||
| --secondary-zone=SECONDARY_ZONE --zone=ZONE] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(BETA) The command lets you restore to an existing instance using ID. When
|
||||
backup Name is used for restore it lets you restore to an existing instance
|
||||
or a new instance. When restoring to new instance, optional flags can be
|
||||
used to customize the new instance.
|
||||
(BETA) The command lets you restore to an existing instance using ID. To
|
||||
restore using a backupDR backup, use the backupDR ID. When backup Name is
|
||||
used to restore it lets you restore to an existing instance or a new
|
||||
instance. When restoring to new instance, optional flags can be used to
|
||||
customize the new instance.
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
ID
|
||||
|
|
|
|||
|
|
@ -30,11 +30,13 @@ FLAGS
|
|||
|
||||
--final-backup-expiry-time=FINAL_BACKUP_EXPIRY_TIME
|
||||
Specifies the time at which the final backup will expire. Maximum
|
||||
time allowed is 365 days from now. Format: YYYY-MM-DDTHH:MM:SS.
|
||||
time allowed is 365 days. For instances managed by BackupDR, the
|
||||
maximum time allowed is 99 years. Format: YYYY-MM-DDTHH:MM:SS.
|
||||
|
||||
--final-backup-retention-days=FINAL_BACKUP_RETENTION_DAYS
|
||||
Specifies number of days to retain final backup. The valid range is
|
||||
between 1 and 365. Default value is 30 days.
|
||||
between 1 and 365. For instances managed by BackupDR, the valid range
|
||||
is between 1 day and 99 years. Default value is 30 days.
|
||||
|
||||
GCLOUD WIDE FLAGS
|
||||
These flags are available to all commands: --access-token-file, --account,
|
||||
|
|
|
|||
|
|
@ -49,6 +49,10 @@ COMMANDS
|
|||
patch
|
||||
(BETA) Updates the settings of a Cloud SQL instance.
|
||||
|
||||
point-in-time-restore
|
||||
(BETA) Performs a point in time restore for a Cloud SQL instance
|
||||
managed by Google Cloud Backup and Disaster Recovery.
|
||||
|
||||
promote-replica
|
||||
(BETA) Promotes Cloud SQL read replica to a stand-alone instance.
|
||||
|
||||
|
|
|
|||
82
gcloud/beta/sql/instances/point-in-time-restore
Normal file
82
gcloud/beta/sql/instances/point-in-time-restore
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
NAME
|
||||
gcloud beta sql instances point-in-time-restore - performs a point in time
|
||||
restore for a Cloud SQL instance managed by Google Cloud Backup and
|
||||
Disaster Recovery
|
||||
|
||||
SYNOPSIS
|
||||
gcloud beta sql instances point-in-time-restore DATASOURCE TARGET
|
||||
POINT_IN_TIME [--allocated-ip-range-name=ALLOCATED_IP_RANGE_NAME]
|
||||
[--async] [--preferred-secondary-zone=PREFERRED_SECONDARY_ZONE]
|
||||
[--preferred-zone=PREFERRED_ZONE] [--private-network=PRIVATE_NETWORK]
|
||||
[--restore-database-names=RESTORE_DATABASE_NAMES]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(BETA) gcloud beta sql instances point-in-time-restore performs a point in
|
||||
time restore for a Cloud SQL instance managed by Google Cloud Backup and
|
||||
Disaster Recovery.
|
||||
|
||||
EXAMPLES
|
||||
To perform a point in time restore from an earlier point in time:
|
||||
|
||||
$ gcloud beta sql instances point-in-time-restore datasource \
|
||||
target-instance '2012-11-15T16:19:00.094Z'
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
DATASOURCE
|
||||
The Google Cloud Backup and Disaster Recovery Datasource URI, of the
|
||||
form projects/{project}/locations/{region}/backupVaults/
|
||||
{backupvault}/dataSources/{datasource}.
|
||||
|
||||
TARGET
|
||||
Cloud SQL instance ID of the target instance.
|
||||
|
||||
POINT_IN_TIME
|
||||
The point in time in which to restore the instance to. Uses RFC 3339
|
||||
format in UTC timezone. For example, '2012-11-15T16:19:00.094Z'.
|
||||
|
||||
FLAGS
|
||||
--allocated-ip-range-name=ALLOCATED_IP_RANGE_NAME
|
||||
The name of the IP range allocated for the target instance with private
|
||||
network connectivity. For example: 'google-managed-services-default'.
|
||||
If set, the target instance IP is created in the allocated range
|
||||
represented by this name. Reserved for future use.
|
||||
|
||||
--async
|
||||
Return immediately, without waiting for the operation in progress to
|
||||
complete.
|
||||
|
||||
--preferred-secondary-zone=PREFERRED_SECONDARY_ZONE
|
||||
The preferred secondary zone for the cloned regional instance. If you
|
||||
specify a value for this flag, then the target instance uses the value
|
||||
as the secondary zone. The secondary zone can't be the same as the
|
||||
primary zone.
|
||||
|
||||
--preferred-zone=PREFERRED_ZONE
|
||||
The preferred zone for the target instance. If you specify a value for
|
||||
this flag, then the target instance uses the value as the primary zone.
|
||||
|
||||
--private-network=PRIVATE_NETWORK
|
||||
The resource link for the VPC network from which the Cloud SQL instance
|
||||
is accessible for private IP. For example,
|
||||
'/projects/myProject/global/networks/default'.
|
||||
|
||||
--restore-database-names=RESTORE_DATABASE_NAMES
|
||||
The name of the databases to be restored for a point-in-time restore.
|
||||
If set, the destination instance will only restore the specified
|
||||
databases.
|
||||
|
||||
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
|
||||
This command is currently in beta and might change without notice. This
|
||||
variant is also available:
|
||||
|
||||
$ gcloud alpha sql instances point-in-time-restore
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue