create_backup
Archive authorized website or configuration directories into compressed tar.gz files. Provide a backup type and source path to generate a restore-ready archive in an isolated repository.
Instructions
Create a compressed tar.gz archive of an authorized website or configuration directory.
Archives are saved into an isolated backup repository (/var/backups/vps-guardian/). Permitted source locations: /var/www/, /etc/nginx/, /etc/mysql/, /etc/postgresql/, /etc/docker/, /etc/caddy/
Args: backup_type: Identifier label for the archive (e.g. 'site', 'config', 'data'). source_path: Target directory to archive.
Returns: JSON string with archive file path, size, file count, and duration.
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": {
"backup_type": "<backup_type>",
"source_path": "<source_path>"
},
"name": "create_backup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backup_type | Yes | ||
| source_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |