1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-08 18:45:13 +00:00
gcloud-help/gcloud/alpha/sql/backups/restore
2024-09-18 09:49:45 +00:00

53 lines
1.9 KiB
Text

NAME
gcloud alpha sql backups restore - restores a backup of a Cloud SQL
instance
SYNOPSIS
gcloud alpha sql backups restore ID --restore-instance=RESTORE_INSTANCE
[--async] [--backup-instance=BACKUP_INSTANCE]
[--backup-project=BACKUP_PROJECT] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) Restores a backup of a Cloud SQL instance.
POSITIONAL ARGUMENTS
ID
The ID of the backup run to restore from.
REQUIRED FLAGS
--restore-instance=RESTORE_INSTANCE
The ID of the target Cloud SQL instance that the backup is restored to.
OPTIONAL FLAGS
--async
Return immediately, without waiting for the operation in progress to
complete.
--backup-instance=BACKUP_INSTANCE
The ID of the instance that the backup was taken from. This argument
must be specified when the backup instance is different from the
restore instance. If it is not specified, the backup instance is
considered the same as the restore instance.
--backup-project=BACKUP_PROJECT
The project of the instance to which the backup belongs. If it isn't
specified, backup and restore instances are in the same project.
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
access allowlist. These variants are also available:
$ gcloud sql backups restore
$ gcloud beta sql backups restore