To clone a DBCluster custom resource with name "postgresql-src-db" to a new DBCluster custom resource "postgresql-dst-db", run:
gdcloud database clusters clone postgresql-src-db postgresql-dst-db \
--point-in-time=2006-01-02T15:04:05Z
必要標記
--point-in-time string defines a past state of the DBCluster to clone (should be RFC 3339 format).
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[[["\u003cp\u003eClones an existing DBCluster custom resource to create a new DBCluster.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying both a source and destination DBCluster name.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003e--point-in-time\u003c/code\u003e flag to define a specific past state for the clone, using RFC 3339 format.\u003c/p\u003e\n"],["\u003cp\u003eSupports common \u003ccode\u003egdcloud\u003c/code\u003e flags such as \u003ccode\u003e--configuration\u003c/code\u003e, \u003ccode\u003e--format\u003c/code\u003e, \u003ccode\u003e--help\u003c/code\u003e, \u003ccode\u003e--project\u003c/code\u003e, and \u003ccode\u003e--quiet\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# gdcloud database clusters clone\n\nNAME\n----\n\ngdcloud database clusters clone - Clone a DBCluster custom resource to a new DBCluster.\n\nSYNOPSIS\n--------\n\n gdcloud database clusters clone SOURCE DESTINATION [flags]\n\n### EXAMPLES\n\n To clone a DBCluster custom resource with name \"postgresql-src-db\" to a new DBCluster custom resource \"postgresql-dst-db\", run:\n\n gdcloud database clusters clone postgresql-src-db postgresql-dst-db \\\n --point-in-time=2006-01-02T15:04:05Z\n\n### REQUIRED FLAGS\n\n --point-in-time string defines a past state of the DBCluster to clone (should be RFC 3339 format).\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/gdch/resources/gdcloud-reference/gdcloud) page."]]