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

169 lines
6.9 KiB
Text
Raw Normal View History

2022-06-29 09:00:05 +00:00
NAME
gcloud alpha bigtable backups copy - copy a Cloud Bigtable backup to a new
backup
SYNOPSIS
gcloud alpha bigtable backups copy
2022-10-26 10:52:11 +00:00
(--destination-backup=DESTINATION_BACKUP
: --destination-cluster=DESTINATION_CLUSTER
--destination-instance=DESTINATION_INSTANCE
--destination-project=DESTINATION_PROJECT)
2022-06-29 09:00:05 +00:00
(--expiration-date=EXPIRATION_DATE
| --retention-period=RETENTION_PERIOD)
2022-10-26 10:52:11 +00:00
(--source-backup=SOURCE_BACKUP : --source-cluster=SOURCE_CLUSTER
--source-instance=SOURCE_INSTANCE --source-project=SOURCE_PROJECT)
2022-06-29 09:00:05 +00:00
[--async] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
2023-08-16 10:49:45 +00:00
(ALPHA) This command creates a copy of a Cloud Bigtable backup.
2022-06-29 09:00:05 +00:00
EXAMPLES
2022-10-26 10:52:11 +00:00
To copy a backup within the same project, run:
2022-06-29 09:00:05 +00:00
$ gcloud alpha bigtable backups copy \
--source-instance=SOURCE_INSTANCE \
2022-10-26 10:52:11 +00:00
--source-cluster=SOURCE_CLUSTER --source-backup=SOURCE_BACKUP \
2022-06-29 09:00:05 +00:00
--destination-instance=DESTINATION_INSTANCE \
--destination-cluster=DESTINATION_CLUSTER \
2022-10-26 10:52:11 +00:00
--destination-backup=DESTINATION_BACKUP \
2023-08-16 10:49:45 +00:00
--expiration-date=2023-09-01T10:49:41Z
2022-06-29 09:00:05 +00:00
2022-10-26 10:52:11 +00:00
To copy a backup to a different project, run:
2022-06-29 09:00:05 +00:00
$ gcloud alpha bigtable backups copy \
2022-10-26 10:52:11 +00:00
--source-backup=projects/SOURCE_PROJECT/instances/\
SOURCE_INSTANCE/clusters/SOURCE_CLUSTER/backups/SOURCE_BACKUP \
--destination-backup=projects/DESTINATION_PROJECT/instances/\
2022-06-29 09:00:05 +00:00
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 \
2022-10-26 10:52:11 +00:00
--source-backup=projects/SOURCE_PROJECT/instances/\
SOURCE_INSTANCE/clusters/SOURCE_CLUSTER/backups/SOURCE_BACKUP \
--destination-backup=projects/DESTINATION_PROJECT/instances/\
2022-06-29 09:00:05 +00:00
DESTINATION_INSTANCE/clusters/DESTINATION_CLUSTER/backups/\
DESTINATION_BACKUP --retention-period=2w --async
REQUIRED FLAGS
2022-10-26 10:52:11 +00:00
Backup resource - The destination backup to copy to. The arguments in this
group can be used to specify the attributes of this resource.
2022-06-29 09:00:05 +00:00
This must be specified.
2022-10-26 10:52:11 +00:00
--destination-backup=DESTINATION_BACKUP
2023-05-04 10:43:54 +00:00
ID of the backup or fully qualified identifier for the backup.
To set the backup attribute:
2022-10-26 10:52:11 +00:00
▸ provide the argument --destination-backup on the command line.
2022-06-29 09:00:05 +00:00
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-06-29 09:00:05 +00:00
--destination-cluster=DESTINATION_CLUSTER
2023-05-04 10:43:54 +00:00
Cloud Bigtable cluster for the backup.
To set the cluster attribute:
2022-10-26 10:52:11 +00:00
▸ provide the argument --destination-backup on the command line
with a fully specified name;
2022-06-29 09:00:05 +00:00
▸ provide the argument --destination-cluster on the command line.
--destination-instance=DESTINATION_INSTANCE
2023-05-04 10:43:54 +00:00
Cloud Bigtable instance for the backup.
To set the instance attribute:
2022-10-26 10:52:11 +00:00
▸ provide the argument --destination-backup on the command line
with a fully specified name;
2022-06-29 09:00:05 +00:00
▸ provide the argument --destination-instance on the command line;
▸ provide the argument --source-instance on the command line.
2022-10-26 10:52:11 +00:00
--destination-project=DESTINATION_PROJECT
2023-05-04 10:43:54 +00:00
Project ID of the Google Cloud project for the backup.
To set the project attribute:
2022-10-26 10:52:11 +00:00
▸ 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.
2022-06-29 09:00:05 +00:00
Exactly one of these must be specified:
--expiration-date=EXPIRATION_DATE
Expiration time of the backup, must be at least 6 hours and at most
2023-08-16 10:49:45 +00:00
30 days from the time the source backup is created. See $ gcloud
topic datetimes for information on date/time formats.
2022-06-29 09:00:05 +00:00
--retention-period=RETENTION_PERIOD
Retention period of the backup relative from now, must be at least 6
2023-08-16 10:49:45 +00:00
hours and at most 30 days from the time the source backup is created.
See $ gcloud topic datetimes for information on duration formats.
2022-06-29 09:00:05 +00:00
2022-10-26 10:52:11 +00:00
Backup resource - The source backup to copy from. The arguments in this
group can be used to specify the attributes of this resource.
2022-06-29 09:00:05 +00:00
This must be specified.
2022-10-26 10:52:11 +00:00
--source-backup=SOURCE_BACKUP
2023-05-04 10:43:54 +00:00
ID of the backup or fully qualified identifier for the backup.
To set the backup attribute:
2022-10-26 10:52:11 +00:00
▸ provide the argument --source-backup on the command line.
2022-06-29 09:00:05 +00:00
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-06-29 09:00:05 +00:00
--source-cluster=SOURCE_CLUSTER
2023-05-04 10:43:54 +00:00
Cloud Bigtable cluster for the backup.
To set the cluster attribute:
2022-10-26 10:52:11 +00:00
▸ provide the argument --source-backup on the command line with a
fully specified name;
2022-06-29 09:00:05 +00:00
▸ provide the argument --source-cluster on the command line.
--source-instance=SOURCE_INSTANCE
2023-05-04 10:43:54 +00:00
Cloud Bigtable instance for the backup.
To set the instance attribute:
2022-10-26 10:52:11 +00:00
▸ provide the argument --source-backup on the command line with a
fully specified name;
2022-06-29 09:00:05 +00:00
▸ provide the argument --source-instance on the command line;
▸ provide the argument --destination-instance on the command line.
2022-10-26 10:52:11 +00:00
--source-project=SOURCE_PROJECT
2023-05-04 10:43:54 +00:00
Project ID of the Google Cloud project for the backup.
To set the project attribute:
2022-10-26 10:52:11 +00:00
▸ 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.
2022-06-29 09:00:05 +00:00
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
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct
project, you might be trying to access an API with an invitation-only early
2023-08-16 10:49:45 +00:00
access allowlist. These variants are also available:
$ gcloud bigtable backups copy
$ gcloud beta bigtable backups copy
2022-06-29 09:00:05 +00:00