backup-stop
Stops a running backup on its host by terminating its process tree first, then its sessions; requires confirm "yes" and a reason.
Instructions
dbabrain common.cli backup-stop: One running backup to stop on its host: its process tree first, then its sessions.
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):
run_tag (required): The run's DBABRAIN_RUN_TAG, <backup_id>_<job_runs id>: its pid file /dbabrain_runs/.pid and its sessions' host_name dbabrain:. A-Z a-z 0-9 _ . -, at most 100.
db_type (required): The run's engine; sqlserver also ends every session the run opened.
host: Where the run is: hostcmd's block {runtime, host, port, access, username, password|key_file}, as backup-database took it. runtime windows runs the PowerShell stop.
env: Resolved values: DOCKER_CONTAINER, MSSQL_SERVER, MSSQL_USER, MSSQL_PASSWORD - the run's own login. Any other key is not sent.
timeout: Seconds the stop may take; default 120.
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-stop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |