finish-staging
Finalize staged files by applying their source modification times and configuring folder access for the database engine.
Instructions
dbabrain common.cli finish-staging: The files that just travelled into a staging, to be given their source's times, and the folder to open for the engine.
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):
target (required): The target host's SSH login: host, port, username and a RESOLVED password or key_file (an absolute path), open_timeout_seconds - never a secret ref: common resolves nothing; platform: linux (also when absent) or windo...
target_dir (required): The staging directory on the target host - on a windows login a drive path (C:/dbabrain_restore/<restore_id>, either separator); a drive path on any other login is refused.
files: The files copy-files landed: {path (relative to target_dir), mtime (the source's, epoch seconds; null leaves the file's time alone)} - prepare-staging's pending.
open_for_engine: chmod -R a+rX on the target after, for the engine's own uid. Default true. On a windows target nothing is changed: SQL Server's service account reads the folder through its ACL, granted once by the operator.
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": "finish-staging"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |