To update a DBCluster custom resource with name "postgresql-db" to enable backup, run:
gdcloud database clusters update postgresql-db --backup --backup-retention-days 14
To update the computation resources of a DBCluster custom resource with name "oracle-db" in the project "db", run:
gdcloud database clusters update oracle-db --cpu 4 --memory 16G --storage-size 100Gi --project=db
INDICATEURS FACULTATIFS
--admin-password string database password for admin user
--allow-external-incoming-traffic enable external incoming traffic to database if set to true, else disable external incoming traffic.
--availability-type string level of availability. (zonal or zonal_ha). Only for PostgresSQL.
--backup enable daily backup if set to true, else disable daily backup.
--backup-retention-days int number of days to keep backups since creation (1 ~ 90 days). (default 30)
--clear-database-flags Clear all database flags to their default values
--cpu int number of cores to be used for the database.
--database-flags string database flags
--memory string amount of memory for the database.
--storage-size string amount of storage allocated to storing data.
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\u003eThe \u003ccode\u003egdcloud database clusters update\u003c/code\u003e command modifies an existing DBCluster custom resource.\u003c/p\u003e\n"],["\u003cp\u003eYou can enable or disable daily backups for a database cluster and specify the number of days backups are retained using the \u003ccode\u003e--backup\u003c/code\u003e and \u003ccode\u003e--backup-retention-days\u003c/code\u003e flags respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe command allows updating the computational resources allocated to a database cluster, such as CPU cores, memory, and storage size, by using the \u003ccode\u003e--cpu\u003c/code\u003e, \u003ccode\u003e--memory\u003c/code\u003e, and \u003ccode\u003e--storage-size\u003c/code\u003e flags.\u003c/p\u003e\n"],["\u003cp\u003eDatabase settings such as the admin password, database flags, external traffic, and availability type can be modified through the use of flags like \u003ccode\u003e--admin-password\u003c/code\u003e, \u003ccode\u003e--database-flags\u003c/code\u003e, \u003ccode\u003e--allow-external-incoming-traffic\u003c/code\u003e and \u003ccode\u003e--availability-type\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can reset all the database flags back to their default values by using the \u003ccode\u003e--clear-database-flags\u003c/code\u003e flag.\u003c/p\u003e\n"]]],[],null,["# gdcloud database clusters update\n\nNAME\n----\n\ngdcloud database clusters update - Update a DBCluster custom resource.\n\nSYNOPSIS\n--------\n\n gdcloud database clusters update CLUSTER_NAME [flags]\n\n### EXAMPLES\n\n To update a DBCluster custom resource with name \"postgresql-db\" to enable backup, run:\n\n gdcloud database clusters update postgresql-db --backup --backup-retention-days 14\n\n To update the computation resources of a DBCluster custom resource with name \"oracle-db\" in the project \"db\", run:\n\n gdcloud database clusters update oracle-db --cpu 4 --memory 16G --storage-size 100Gi --project=db\n\n### OPTIONAL FLAGS\n\n --admin-password string database password for admin user\n --allow-external-incoming-traffic enable external incoming traffic to database if set to true, else disable external incoming traffic.\n --availability-type string level of availability. (zonal or zonal_ha). Only for PostgresSQL.\n --backup enable daily backup if set to true, else disable daily backup.\n --backup-retention-days int number of days to keep backups since creation (1 ~ 90 days). (default 30)\n --clear-database-flags Clear all database flags to their default values\n --cpu int number of cores to be used for the database.\n --database-flags string database flags\n --memory string amount of memory for the database.\n --storage-size string amount of storage allocated to storing data.\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."]]