Stay organized with collections
Save and categorize content based on your preferences.
You can clone a database cluster to create a new database cluster that contains
the same data as the original cluster. Cloning is a good way to make database
clusters for testing purposes.
You can specify any point in time to base the clone on. You aren't limited to
cloning the present state of a database cluster. The database service clones a new database cluster at the exact point in time you specify.
You can clone a database cluster with the GDC console
or with the gdcloud CLI tool:
Console
From the main menu of the GDC console, choose Database Service.
Select the database cluster to clone.
Click add_boxCLONE.
In the Create a clone dialog, specify the point in time to clone from
and specify an ID for the new database cluster.
Click CLONE. This takes you to the Database cluster overview page for
the new cluster where you can monitor its status.
gdcloud CLI
Use the following command to clone a database cluster:
[[["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-08-25 UTC."],[],[],null,["# Clone a database cluster\n\nYou can clone a database cluster to create a new database cluster that contains\nthe same data as the original cluster. Cloning is a good way to make database\nclusters for testing purposes.\n\nYou can specify any point in time to base the clone on. You aren't limited to\ncloning the present state of a database cluster. The database service clones a new database cluster at the exact point in time you specify.\n\nYou can clone a database cluster with the GDC console\nor with the gdcloud CLI tool: \n\n### Console\n\n1. From the main menu of the GDC console, choose **Database Service**.\n2. Select the database cluster to clone.\n3. Click add_box **CLONE**.\n4. In the *Create a clone* dialog, specify the point in time to clone from and specify an ID for the new database cluster.\n5. Click **CLONE**. This takes you to the Database cluster overview page for the new cluster where you can monitor its status.\n\n### gdcloud CLI\n\nUse the following command to clone a database cluster: \n\n gdcloud database clusters clone \u003cvar translate=\"no\"\u003eSOURCE\u003c/var\u003e \\\n \u003cvar translate=\"no\"\u003eDESTINATION\u003c/var\u003e --point-in-time \u003cvar translate=\"no\"\u003ePOINT_IN_TIME\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eSOURCE\u003c/var\u003e with the name of the database cluster to create a clone from.\n- \u003cvar translate=\"no\"\u003eDESTINATION\u003c/var\u003e with the name of the new database cluster to create.\n- \u003cvar translate=\"no\"\u003ePOINT_IN_TIME\u003c/var\u003e with the timestamp of the point in time to use as the basis of the clone. Use the [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp format (`yyyy-MM-dd'T'HH:mm:ss'Z'`).\n\n### API\n\nTo clone a database cluster, create a Restore resource: \n\n apiVersion: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eDBENGINE_NAME\u003c/span\u003e\u003c/var\u003e.dbadmin.gdc.goog/v1\n kind: Restore\n metadata:\n name: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eNEW_DBCLUSTER_NAME\u003c/span\u003e\u003c/var\u003e_restore\n spec:\n sourceDBCluster: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eDBCLUSTER_NAME\u003c/span\u003e\u003c/var\u003e\n pointInTime: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003ePOINT_IN_TIME\u003c/span\u003e\u003c/var\u003e\n clonedDBClusterConfig:\n dbclusterName: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eNEW_DBCLUSTER_NAME\u003c/span\u003e\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eDBENGINE_NAME\u003c/var\u003e: the name of the database cluster to clone from.\n- \u003cvar translate=\"no\"\u003eNEW_DBCLUSTER_NAME\u003c/var\u003e: the name of the new database cluster to create.\n- \u003cvar translate=\"no\"\u003ePOINT_IN_TIME\u003c/var\u003e: the timestamp of the point in time to use as the basis of the clone. Use the [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp format (`yyyy-MM-dd'T'HH:mm:ss'Z'`)."]]