backup-database
Run a full, differential, or log backup on a specified database host, with optional dry-run planning and timeout control.
Instructions
dbabrain common.cli backup-database: One backup run on a host.
Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line.
Request fields (pass them as request):
db_type (required): The engine.
host: The host.
label: What to call it.
level: full | diff | log.
script: The engine script.
script_path: Or its path.
env: Values the script reads.
server_metadata: Refused since 0.23.0 - the export resolves its instance from the inventory, and backup-database reads no configuration. Run sqlserver-export-instance after the backup.
timeout: How long it may run.
dry_run: Plan only: change nothing.
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": "backup-database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |