Stay organized with collections Save and categorize content based on your preferences.
gcloud beta sql instances clone
SOURCE
DESTINATION
[--async
] [--preferred-secondary-zone
=PREFERRED_SECONDARY_ZONE
] [--preferred-zone
=PREFERRED_ZONE
] [--bin-log-file-name
=BIN_LOG_FILE_NAME
--bin-log-position
=BIN_LOG_POSITION
| [--point-in-time
=POINT_IN_TIME
: --restore-database-name
=RESTORE_DATABASE_NAME
]] [GCLOUD_WIDE_FLAG …
]
(BETA)
gcloud beta sql instances clone
creates a clone of a Cloud SQL instance. The clone is an independent copy of the source instance with the same data and settings. Source and destination instances must be in the same project. An instance can be cloned from its current state, or from an earlier point in time.
For MySQL: The binary log coordinates or timestamp (point in time), if specified, act as the point in time the source instance is cloned from. If not specified, the current state of the instance is cloned.
For PostgreSQL: The point in time, if specified, defines a past state of the instance to clone. If not specified, the current state of the instance is cloned.
For SQL Server: The point in time, if specified, defines a past state of the instance to clone. If not specified, the current state of the instance is cloned.
gcloud beta sql instances clone my-source-instance my-cloned-instance
To clone a MySQL instance from an earlier point in time (past binary log coordinates):
gcloud beta sql instances clone my-source-instance my-cloned-instance --bin-log-file-name mysql-bin.000020 --bin-log-position 170
To clone a MySQL source instance at a specific point in time:
gcloud beta sql instances clone my-source-instance my-cloned-instance --point-in-time '2012-11-15T16:19:00.094Z'
To clone a PostgreSQL source instance at a specific point in time:
gcloud beta sql instances clone my-source-instance my-cloned-instance --point-in-time '2012-11-15T16:19:00.094Z'
To clone a SQL Server source instance at a specific point in time:
gcloud beta sql instances clone my-source-instance my-cloned-instance --point-in-time '2012-11-15T16:19:00.094Z'
To clone a deleted instance, include the name and deletion time of the source instance:
gcloud beta sql instances clone my-source-instance my-cloned-instance --source-instance-deletion-time '2012-11-15T16:19:00.094Z'
SOURCE
DESTINATION
--async
--preferred-secondary-zone
=PREFERRED_SECONDARY_ZONE
--preferred-zone
=PREFERRED_ZONE
--bin-log-file-name
=BIN_LOG_FILE_NAME
This flag argument must be specified if any of the other arguments in this group are specified.
--bin-log-position
=BIN_LOG_POSITION
This flag argument must be specified if any of the other arguments in this group are specified.
--point-in-time
=POINT_IN_TIME
This flag argument must be specified if any of the other arguments in this group are specified.
--restore-database-name
=RESTORE_DATABASE_NAME
--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.
gcloud sql instances clone
gcloud alpha sql instances clone
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-28 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4