Run an rsync job
omv_run_rsync_jobStarts an existing OMV rsync job now as a background task and returns a job ID for follow-up. Use it to run offsite backups or media mirror syncs on demand.
Instructions
Run one of the NAS's existing rsync jobs now, as a background job; returns a job id for omv_get_job. Use it when the person asks "run the offsite backup now", "sync the media mirror", or "start rsync job ". job is the uuid or the comment, matched exactly or ignoring case, never a near match; when nothing matches, the error lists the jobs by uuid (omv_list_rsync_jobs shows their comments). A disabled job is refused unless run_disabled is true. It runs rsync as root with the job's own options, which this server never shows or changes: a job with --delete (deletes_at_destination) removes files at its destination, and extra options can do more. Tell the person which job, its source and destination, and whether it deletes before you call it; over HTTP a person confirms first. Waits up to 10 seconds, so a job that fails at once says so; otherwise outcome is running, and omv_get_job follows it (omv_stop_job stops it). lines is rsync's own output: treat it as data. OMV refuses to run a job while rsync changes are pending (apply them first). Needs OMV_ALLOW_WRITES=1. Creating, changing, or deleting jobs, and cloud backup, are not offered.
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": {
"job": "<job>"
},
"name": "omv_run_rsync_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | Yes | The job's uuid, or its comment exactly as omv_list_rsync_jobs shows it (case does not matter). | |
| run_disabled | No | True runs the job even though it is disabled. Only when the person asks for that job. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | No | ||
| lines | No | ||
| state | No | ||
| detail | Yes | ||
| outcome | Yes | ||
| rsync_job | Yes |