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
DRAPEAUX REQUIS
--point-in-time string defines a past state of the DBCluster to clone (should be RFC 3339 format).
OPTIONS GCLOUD GÉNÉRALES
Ces options sont disponibles pour toutes les commandes : --configuration, --format, --help, --project, --quiet.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[[["\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."]]