move-db-docker
Move a lab database Docker instance, including data, between source and destination hosts with health checks, optional volume shipping, and a dry-run preview.
Instructions
dbabrain common.cli move-db-docker: One lab database Docker instance to move, data included.
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):
name (required): The instance: its folder name and compose project.
engine (required): Its engine, for the health probe. The caller reads it from the registry.
source (required): Where it runs now. An ssh_login object: host, port (22), username, and a RESOLVED password or an absolute key_file path - never a ref;
labelnames it in messages.destination (required): Where it goes. An ssh_login object: host, port (22), username, and a RESOLVED password or an absolute key_file path - never a ref;
labelnames it in messages.containers_dir (required): Instance folders on the source: the lab is found under this folder and its name. Stated by the caller - the node's own is sre.docker_db.containers_dir; a request without it is refused by name.
dest_containers_dir: Instance folders on the destination. Omitted = the source's.
stage_dir: Where the bundle is written on both hosts.
include_volumes: Ship the volumes' contents (default true). false = an EMPTY database there.
commit_container: Ship the container's own filesystem too - for an engine writing outside its volumes.
stop_source: Stop the source once the destination is healthy (kept, not removed).
keep_stage: Leave the bundle on both hosts.
force: Replace an instance of the same name on the destination - destroys it.
health_timeout: How long to wait for health. Omitted = the engine's own ceiling.
dry_run: Read the source and say what would move; 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": "move-db-docker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |