Backup
backupCopy host configurations into the Mac's server state folder, not the project repo, using RouterOS/OpenWrt exports or Linux, macOS, Synology, and Windows paths; return paths, sizes, and SHA-256 hashes.
Instructions
Pull a copy of hosts' configuration into the server's state folder on the Mac (never the project repo): RouterOS /export terse, OpenWrt sysupgrade -b plus uci export, and on Linux, macOS, Synology and Windows the paths you list (a tar.gz, or a zip with registry exports). Changes nothing and never asks; returns where each file went, its size and sha256, never its contents. Never read a backup back into the chat.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hosts": "<hosts>"
},
"name": "backup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hosts | Yes | host, group or pattern | |
| label | No | optional tag for the folder name, e.g. before-upgrade | |
| paths | No | absolute paths: /etc/x, C:\x or HKLM:\SOFTWARE\x (needed for Linux, macOS, Synology, Windows; ignored for routers) |