1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-16 20:36:39 +00:00
gcloud-help/gcloud/bigtable/instances/tables/restore

124 lines
4.4 KiB
Text
Raw Normal View History

2022-03-01 04:29:52 +00:00
NAME
gcloud bigtable instances tables restore - restore a Cloud Bigtable backup
to a new table
SYNOPSIS
gcloud bigtable instances tables restore
(--destination=DESTINATION
: --destination-instance=DESTINATION_INSTANCE)
(--source=SOURCE
: --source-cluster=SOURCE_CLUSTER --source-instance=SOURCE_INSTANCE)
[--async] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
2022-10-26 10:52:11 +00:00
This command restores a Cloud Bigtable backup to a new table.
2022-03-01 04:29:52 +00:00
EXAMPLES
To restore table 'table2' from backup 'backup1', run:
$ gcloud bigtable instances tables restore \
--source-instance=instance1 --source-cluster=cluster1 \
--source=backup1 --destination-instance=instance1 \
--destination=table2
2023-01-19 00:56:33 +00:00
To restore table 'table2' from backup 'backup1' in a different project,
run:
2022-03-01 04:29:52 +00:00
$ gcloud bigtable instances tables restore \
--source=projects/project1/instances/instance1/clusters/\
cluster1/backups/backup1 \
2023-01-19 00:56:33 +00:00
--destination=projects/project2/instances/instance2/tables/\
2022-03-01 04:29:52 +00:00
table2
REQUIRED FLAGS
2022-05-18 08:41:01 +00:00
Table resource - The destination to restore to. The arguments in this
group can be used to specify the attributes of this resource. (NOTE) Some
2022-03-01 04:29:52 +00:00
attributes are not given arguments in this group but can be set in other
2023-05-04 10:43:54 +00:00
ways.
To set the project attribute:
2022-03-01 04:29:52 +00:00
◆ 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.
This must be specified.
--destination=DESTINATION
2023-05-04 10:43:54 +00:00
ID of the table or fully qualified identifier for the table.
To set the destination attribute:
2022-03-01 04:29:52 +00:00
▸ provide the argument --destination on the command line.
2022-08-10 08:48:58 +00:00
This flag argument must be specified if any of the other arguments in
this group are specified.
2022-03-01 04:29:52 +00:00
--destination-instance=DESTINATION_INSTANCE
2023-05-04 10:43:54 +00:00
Name of the Cloud Bigtable instance.
To set the instance attribute:
2022-03-01 04:29:52 +00:00
▸ provide the argument --destination 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.
2022-05-18 08:41:01 +00:00
Backup resource - The source to restore 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
2023-05-04 10:43:54 +00:00
ways.
To set the project attribute:
2022-03-01 04:29:52 +00:00
◆ 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.
This must be specified.
--source=SOURCE
2023-05-04 10:43:54 +00:00
ID of the backup or fully qualified identifier for the backup.
To set the source attribute:
2022-03-01 04:29:52 +00:00
▸ provide the argument --source on the command line.
2022-08-10 08:48:58 +00:00
This flag argument must be specified if any of the other arguments in
this group are specified.
2022-03-01 04:29:52 +00:00
--source-cluster=SOURCE_CLUSTER
2023-05-04 10:43:54 +00:00
Name of the Cloud Bigtable cluster.
To set the cluster attribute:
2022-03-01 04:29:52 +00:00
▸ provide the argument --source on the command line with a fully
specified name;
▸ provide the argument --source-cluster on the command line.
--source-instance=SOURCE_INSTANCE
2023-05-04 10:43:54 +00:00
Name of the Cloud Bigtable instance.
To set the instance attribute:
2022-03-01 04:29:52 +00:00
▸ provide the argument --source 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.
OPTIONAL FLAGS
--async
Return immediately, without waiting for the operation in progress to
complete.
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
These variants are also available:
$ gcloud alpha bigtable instances tables restore
$ gcloud beta bigtable instances tables restore