run
Run a job.
Synopsis
run job=<job> [client=<client>] [fd=<fd>] [fileset=<fileset>] [level=<level>]
[storage=<storage>] [sd=<sd>] [where=<where>] [regexwhere=<regexwhere>]
[bootstrap=<bootstrap>] [replace=<always|ifnewer|ifolder|never>]
[when=<when>] [priority=<priority>] [verifyjob=<verifyjob>]
[files=<files>] [catalog=<catalog>] [since=<since>] [cloned[=<cloned>]]
[verifylist=<verifylist>] [migrationjob=<migrationjob>] [pool=<pool>]
[nextpool=<nextpool>] [backupclient=<backupclient>]
[restoreclient=<restoreclient>] [pluginoptions=<pluginoptions>]
[spooldata=<yes|no>] [comment=<comment>] [ignoreduplicatecheck=<yes|no>]
[accurate=<yes|no>] [jobid=<jobid>[,...]] [backupformat=<backupformat>]
[consolidatejob=<consolidatejob>] [schedule=<schedule>] [yes]
Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.
Description
Starts a job. Missing values come from the Job resource; without yes the Director shows the job and asks yes, mod or no.
Arguments
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
job= | resource | from .jobs | required | Job name. | |
client= | resource | from .clients | Client name. | ||
fd= | resource | from .clients | Client name. | ||
fileset= | resource | from .filesets | FileSet name. | ||
level= | enum | Full, Incremental, Differential, VirtualFull, Base, Since, VolumeToCatalog, DiskToCatalog, Catalog, Data, InitCatalog | Backup level. | ||
storage= | resource | from .storages | Storage name. | ||
sd= | resource | from .storages | Storage name. | ||
where= | string | Restore prefix. | |||
regexwhere= | string | Restore path rewrite. | |||
bootstrap= | string | Bootstrap file. | |||
replace= | enum | always, ifnewer, ifolder, never | Replace mode. | ||
when= | string | Start time (YYYY-MM-DD HH:MM:SS). | |||
priority= | integer | Priority. | |||
verifyjob= | resource | from .jobs | Job to verify. | ||
files= | string | Files. | |||
catalog= | resource | from .catalogs | Catalog name. | ||
since= | string | Since time. | |||
cloned= | string | value optional | Cloned job. | ||
verifylist= | string | Verify list. | |||
migrationjob= | resource | from .jobs | Migration job. | ||
pool= | resource | from .pools | Pool name. | ||
nextpool= | resource | from .pools | Next pool. | ||
backupclient= | resource | from .clients | Backup client. | ||
restoreclient= | resource | from .clients | Restore client. | ||
pluginoptions= | string | Plugin options. | |||
spooldata= | bool | yes, no | Spool data. | ||
comment= | string | Comment. | |||
ignoreduplicatecheck= | bool | yes, no | Ignore duplicate check. | ||
accurate= | bool | yes, no | Accurate mode. | ||
jobid= | string | list | Job IDs. | ||
backupformat= | string | Backup format. | |||
consolidatejob= | resource | from .jobs | Consolidate job. | ||
schedule= | resource | from .schedule | Schedule name. | ||
yes | keyword | Do not ask. |
Examples
Start a full backup without asking:
run job=BackupClient1 level=Full yes
Show the job settings and ask yes, mod or no:
run job=BackupClient1
Schedule an incremental for tomorrow night:
run job=BackupClient1 level=Incremental pool=File when="2026-11-21 22:00:00" yes
Restore the files of job 42 without overwriting:
run job=RestoreFiles jobid=42 where=/tmp/bareos-restores replace=never yes