Dump a site's database
db_dumpDump a site's database (any kind list_sites shows) to a .sql.gz file on its server, with the site's own credentials (they never reach the chat). The dump stays on the user's server; do not read its contents into the chat. Runs in the background: returns job_id and the file path; follow it with job_output. Files go to /var/lib/askyourstack/dumps; to move one to another server, transfer that folder.
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": "db_dump"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site root folder, like /var/www/shop, or one of the site's domains. Optional when the server has one site (see list_sites). | |
| server | No | Server name or id. Optional when the account has one server. |