ssh_db_dump
Creates compressed remote MySQL, PostgreSQL, or MongoDB backups over SSH without modifying the source database. Supports transaction-safe MySQL dumps and PostgreSQL custom-format backups.
Instructions
Dumps a database to a file on the remote server over SSH; it reads data only and does not modify the database. Supports mysql (using --single-transaction --routines --triggers), postgresql (custom format with --clean --if-exists, restorable via pg_restore), and mongodb. compress defaults to true and gzips the output. The optional tables list applies to MySQL and PostgreSQL only and is ignored for MongoDB.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"server": "<server>",
"type": "<type>",
"database": "<database>",
"outputFile": "<outputFile>"
},
"name": "ssh_db_dump"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Database type | |
| dbHost | No | Database host (default: localhost) | |
| dbPort | No | Database port | |
| dbUser | No | Database user | |
| server | Yes | Server name | |
| tables | No | Specific tables to dump (MySQL/PostgreSQL only) | |
| compress | No | Compress output with gzip (default: true) | |
| database | Yes | Database name | |
| dbPassword | No | Database password | |
| outputFile | Yes | Output file path (will be created on remote server) |