ddev_export_db
Export a DDEV database to a file or stdout with optional compression (gzip, bzip2, xz). Specify target database and output file path.
Instructions
Dump a database to a file or stdout. Compression: gzip (default), bzip2, or xz. Target DB via targetDb (default "db"). Usage: ddev export-db [project] [flags] MCP args → ddev: file → -f/--file, targetDb → -d/--database, compressionType → --gzip|--bzip2|--xz For full options and examples: ddev help export-db
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ddev_export_db"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Output file path | |
| targetDb | No | Target database name | |
| projectPath | No | Path to the DDEV project directory | |
| compressionType | No | Compression type for export |