ddev_snapshot
Create, list, restore, or cleanup DDEV database snapshots to back up and recover your project data.
Instructions
Create, list, restore, or cleanup database snapshots (stored in .ddev/db_snapshots). Restore with action=restore and snapshotName; use ddev snapshot restore --latest for latest. Usage: ddev snapshot [projectname...] [flags] | ddev snapshot restore [name] [flags] Actions: create (optional name), list, restore (snapshotName or --latest), cleanup. Flags: -n/--name, -l/--list, -C/--cleanup, -y/--yes, -a/--all For full options: ddev help snapshot; ddev snapshot restore --help
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_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Apply to all projects | |
| yes | No | Skip confirmation prompts | |
| name | No | Name for the snapshot (for create action) | |
| action | No | Action to perform: create, list, restore, cleanup | create |
| projectPath | No | Path to the DDEV project directory | |
| snapshotName | No | Name of snapshot to restore (for restore action) |