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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backup_type | Yes | ||
| source_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |