pack-files
Bundle selected host files and folders into tar, tar.gz, or zip archives with optional checksums, so database host files can be transferred or inspected as one package.
Instructions
dbabrain common.cli pack-files: A file fetched, sent, packed or relayed over the host's own access.
server_id (or target) names the server; its connection or host login is completed from this node's inventory and encrypted secret store, so a request carries no password.
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: A label for the answer - the server_id. Nothing is looked up by it: common.cli reads no configuration (rules R09).
server_id: The same label, when not in target.
access: The host login, complete: an inline cmd_access - method (ssh|winrm), host, port, username, auth_type, key_file or password - with the machine's platform and runtime facts. The app that calls fills it from its own data...
remote_path: fetch/send: the file on the host.
local_path: fetch/send: the file here.
overwrite: Replace an existing file.
make_dirs: Create missing folders.
files: pack-files: the files.
folder: pack-files: or a folder.
include: pack-files: patterns within it.
format: pack-files: tar | tar.gz | zip.
archive_path: pack-files: the archive.
checksum_files: pack-files: hash each member.
source: relay-file: {access, target, path} - each side states its own login.
destination: relay-file: {access, target, path}.
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": "pack-files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |