Stay organized with collections
Save and categorize content based on your preferences.
NAME
gdcloud database export sql - Export data from a DBCluster custom resource to an SQL dump file and upload to object storage.
SYNOPSIS
gdcloud database export sql CLUSTER_NAME URI [flags]
EXAMPLES
To export data to an SQL dump file and upload to directory "dmp" under bucket "mybucket" from the DBCluster "sample-dbc", run:
gdcloud database export sql sample-dbc mybucket/dmp/
GDCLOUD WIDE FLAGS
These flags are available to all commands: --configuration, --format, --help, --project, --quiet.
[[["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-29 UTC."],[[["\u003cp\u003eThis command exports data from a DBCluster custom resource to an SQL dump file.\u003c/p\u003e\n"],["\u003cp\u003eThe exported SQL dump file can be uploaded to object storage.\u003c/p\u003e\n"],["\u003cp\u003eThe command requires the DBCluster name and the destination URI in object storage.\u003c/p\u003e\n"],["\u003cp\u003eSeveral global flags like \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 are available for use.\u003c/p\u003e\n"]]],[],null,["# gdcloud database export sql\n\nNAME\n----\n\ngdcloud database export sql - Export data from a DBCluster custom resource to an SQL dump file and upload to object storage.\n\nSYNOPSIS\n--------\n\n gdcloud database export sql CLUSTER_NAME URI [flags]\n\n### EXAMPLES\n\n To export data to an SQL dump file and upload to directory \"dmp\" under bucket \"mybucket\" from the DBCluster \"sample-dbc\", run:\n\n gdcloud database export sql sample-dbc mybucket/dmp/\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."]]