Create recurring job
recurringjob_createCreate a recurring job in Longhorn to schedule snapshots, backups, cleanup, or filesystem trim using a cron expression and retention settings.
Instructions
Create a new Longhorn recurring job. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/scheduling-backups-and-snapshots/
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": {
"name": "<name>",
"task": "<task>",
"cron": "<cron>",
"retain": "<retain>",
"concurrency": "<concurrency>"
},
"name": "recurringjob_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cron | Yes | Cron schedule expression. | |
| name | Yes | ||
| task | Yes | e.g. "snapshot", "backup", "snapshot-cleanup", "snapshot-delete", "filesystem-trim", "system-backup". | |
| groups | No | ||
| labels | No | ||
| retain | Yes | ||
| parameters | No | ||
| concurrency | Yes |