backup_job_create
Propose a new encrypted backup job for one of the user's servers: folders and/or databases, how often, how many copies to keep, where to store them. It is saved as a DRAFT in the owner's Termalin cabinet and nothing runs yet; the result has a link the owner opens to confirm it with one click — that creates the job's encryption key, which only the owner holds and which can't be made here. Give them the link and say what the job will back up. Drafts expire after 7 days and count against the plan's job limit. Databases are dumped on the server (Linux or macOS) with pg_dump / mysqldump, also inside a running Docker container, into a .sql file in the archive. No database password is passed or stored: the dump signs in through the local socket (PostgreSQL as the 'postgres' system user by default, MySQL/MariaDB as root's socket login), with a credentials file the owner keeps on the server (a .pgpass or my.cnf path), or — in a container — with the container's own settings (POSTGRES_USER, MYSQL_ROOT_PASSWORD).
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": {
"host": "<host>"
},
"name": "backup_job_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Server id or exact name from hosts_list | |
| hour | No | Hour of day in UTC for daily and weekly runs (default 3) | |
| name | No | Job name shown to the owner, e.g. 'web-1 site and database' | |
| paths | No | Absolute folders to back up: /var/www, /etc/nginx (on Windows C:\inetpub). May be empty when databases are given. | |
| excludes | No | Patterns to leave out: node_modules, *.log, cache | |
| schedule | No | How often (default daily; weekly runs on Sunday) | |
| databases | No | Databases to dump into the archive (Linux and macOS servers) | |
| keep_last | No | How many archives to keep (default 7) | |
| destination | No | Where to store archives: the name of one of the owner's storages from backup_list (default: Termalin storage) |