add_job
Add backup, prune, or check jobs to a Duplicacy schedule. Set schedule, repository, destination, and options to automate backup workflows.
Instructions
Add a job (backup, prune, or check) to a schedule.
Args: schedule_index: Schedule index (0-based). type: Job type: "backup", "prune", or "check". repository: Repository index (0-based). destination: Storage name the job writes to (or reads from for prune/check). source: Source path for backup jobs (e.g. /source/plex); empty for prune/check. options: Extra duplicacy CLI options. Backup example: "-threads 4". Prune example: "-keep 0:30 -a" (keep the 30 newest snapshots). Check example: "-fossils". parallel: Whether the job may run in parallel with others.
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": {
"schedule_index": "<schedule_index>",
"type": "<type>",
"repository": "<repository>",
"destination": "<destination>"
},
"name": "add_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| source | No | ||
| options | No | ||
| parallel | No | ||
| repository | Yes | ||
| destination | Yes | ||
| schedule_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |