1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-19 07:15:23 +00:00

gcloud: Wed Oct 26 10:52:11 UTC 2022

This commit is contained in:
Automated 2022-10-26 10:52:11 +00:00
parent 5c08d21169
commit 235c67283b
Failed to extract signature
215 changed files with 6787 additions and 1005 deletions

View file

@ -4,80 +4,86 @@ NAME
SYNOPSIS
gcloud alpha bigtable backups copy
(--destination=DESTINATION : --destination-cluster=DESTINATION_CLUSTER
--destination-instance=DESTINATION_INSTANCE)
(--destination-backup=DESTINATION_BACKUP
: --destination-cluster=DESTINATION_CLUSTER
--destination-instance=DESTINATION_INSTANCE
--destination-project=DESTINATION_PROJECT)
(--expiration-date=EXPIRATION_DATE
| --retention-period=RETENTION_PERIOD)
(--source=SOURCE
: --source-cluster=SOURCE_CLUSTER --source-instance=SOURCE_INSTANCE)
(--source-backup=SOURCE_BACKUP : --source-cluster=SOURCE_CLUSTER
--source-instance=SOURCE_INSTANCE --source-project=SOURCE_PROJECT)
[--async] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) This command copies a Cloud Bigtable backup to a new backup.
EXAMPLES
To copy backup SOURCE_BACKUP to DESTINATION_BACKUP, run:
To copy a backup within the same project, run:
$ gcloud alpha bigtable backups copy \
--source-instance=SOURCE_INSTANCE \
--source-cluster=SOURCE_CLUSTER --source=SOURCE_BACKUP \
--source-cluster=SOURCE_CLUSTER --source-backup=SOURCE_BACKUP \
--destination-instance=DESTINATION_INSTANCE \
--destination-cluster=DESTINATION_CLUSTER \
--destination=DESTINATION_BACKUP \
--destination-backup=DESTINATION_BACKUP \
--expiration-date=2022-08-01T10:49:41Z
To copy backup SOURCE_BACKUP to DESTINATION_BACKUP using relative names,
run:
To copy a backup to a different project, run:
$ gcloud alpha bigtable backups copy \
--source=projects/SOURCE_PROJECT/instances/SOURCE_INSTANCE/\
clusters/SOURCE_CLUSTER/backups/SOURCE_BACKUP \
--destination=projects/DESTINATION_PROJECT/instances/\
--source-backup=projects/SOURCE_PROJECT/instances/\
SOURCE_INSTANCE/clusters/SOURCE_CLUSTER/backups/SOURCE_BACKUP \
--destination-backup=projects/DESTINATION_PROJECT/instances/\
DESTINATION_INSTANCE/clusters/DESTINATION_CLUSTER/backups/\
DESTINATION_BACKUP --expiration-date=2022-08-01T10:49:41Z
To set retention period and run asyncronously, run:
$ gcloud alpha bigtable backups copy \
--source=projects/SOURCE_PROJECT/instances/SOURCE_INSTANCE/\
clusters/SOURCE_CLUSTER/backups/SOURCE_BACKUP \
--destination=projects/DESTINATION_PROJECT/instances/\
--source-backup=projects/SOURCE_PROJECT/instances/\
SOURCE_INSTANCE/clusters/SOURCE_CLUSTER/backups/SOURCE_BACKUP \
--destination-backup=projects/DESTINATION_PROJECT/instances/\
DESTINATION_INSTANCE/clusters/DESTINATION_CLUSTER/backups/\
DESTINATION_BACKUP --retention-period=2w --async
REQUIRED FLAGS
Backup resource - The destination to copy to. The arguments in this group
can be used to specify the attributes of this resource. (NOTE) Some
attributes are not given arguments in this group but can be set in other
ways. To set the project attribute:
◆ provide the argument --destination on the command line with a fully
specified name;
◆ provide the argument --project on the command line;
◆ set the property core/project.
Backup resource - The destination backup to copy to. The arguments in this
group can be used to specify the attributes of this resource.
This must be specified.
--destination=DESTINATION
--destination-backup=DESTINATION_BACKUP
ID of the backup or fully qualified identifier for the backup. To set
the source attribute:
▸ provide the argument --destination on the command line.
the backup attribute:
▸ provide the argument --destination-backup on the command line.
This flag argument must be specified if any of the other arguments in
this group are specified.
--destination-cluster=DESTINATION_CLUSTER
Name of the Cloud Bigtable cluster. To set the cluster attribute:
▸ provide the argument --destination on the command line with a
fully specified name;
Cloud Bigtable cluster for the backup. To set the cluster attribute:
▸ provide the argument --destination-backup on the command line
with a fully specified name;
▸ provide the argument --destination-cluster on the command line.
--destination-instance=DESTINATION_INSTANCE
Name of the Cloud Bigtable instance. To set the instance attribute:
▸ provide the argument --destination on the command line with a
fully specified name;
Cloud Bigtable instance for the backup. To set the instance
attribute:
▸ provide the argument --destination-backup on the command line
with a fully specified name;
▸ provide the argument --destination-instance on the command line;
▸ provide the argument --source-instance on the command line.
--destination-project=DESTINATION_PROJECT
Project ID of the Google Cloud project for the backup. To set the
project attribute:
▸ provide the argument --destination-backup on the command line
with a fully specified name;
▸ provide the argument --destination-project on the command line;
▸ provide the argument --source-project on the command line;
▸ provide the argument --project on the command line;
▸ set the property core/project.
Exactly one of these must be specified:
--expiration-date=EXPIRATION_DATE
@ -90,38 +96,43 @@ REQUIRED FLAGS
hours and at most 30 days. See $ gcloud topic datetimes for
information on duration formats.
Backup resource - The source to copy from. The arguments in this group can
be used to specify the attributes of this resource. (NOTE) Some attributes
are not given arguments in this group but can be set in other ways. To set
the project attribute:
◆ provide the argument --source on the command line with a fully
specified name;
◆ provide the argument --project on the command line;
◆ set the property core/project.
Backup resource - The source backup to copy from. The arguments in this
group can be used to specify the attributes of this resource.
This must be specified.
--source=SOURCE
--source-backup=SOURCE_BACKUP
ID of the backup or fully qualified identifier for the backup. To set
the source attribute:
▸ provide the argument --source on the command line.
the backup attribute:
▸ provide the argument --source-backup on the command line.
This flag argument must be specified if any of the other arguments in
this group are specified.
--source-cluster=SOURCE_CLUSTER
Name of the Cloud Bigtable cluster. To set the cluster attribute:
▸ provide the argument --source on the command line with a fully
specified name;
Cloud Bigtable cluster for the backup. To set the cluster attribute:
▸ provide the argument --source-backup on the command line with a
fully specified name;
▸ provide the argument --source-cluster on the command line.
--source-instance=SOURCE_INSTANCE
Name of the Cloud Bigtable instance. To set the instance attribute:
▸ provide the argument --source on the command line with a fully
specified name;
Cloud Bigtable instance for the backup. To set the instance
attribute:
▸ provide the argument --source-backup on the command line with a
fully specified name;
▸ provide the argument --source-instance on the command line;
▸ provide the argument --destination-instance on the command line.
--source-project=SOURCE_PROJECT
Project ID of the Google Cloud project for the backup. To set the
project attribute:
▸ provide the argument --source-backup on the command line with a
fully specified name;
▸ provide the argument --source-project on the command line;
▸ provide the argument --destination-project on the command line;
▸ provide the argument --project on the command line;
▸ set the property core/project.
OPTIONAL FLAGS
--async
Return immediately, without waiting for the operation in progress to

View file

@ -11,8 +11,7 @@ SYNOPSIS
[--async] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) This command restores a Cloud Bigtable backup to a new table in the
same instance.
(ALPHA) This command restores a Cloud Bigtable backup to a new table.
EXAMPLES
To restore table 'table2' from backup 'backup1', run: