run

Bareos

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

ArgumentTypeValues / sourceDefaultFlagsDescription
job=resourcefrom .jobsrequiredJob name.
client=resourcefrom .clientsClient name.
fd=resourcefrom .clientsClient name.
fileset=resourcefrom .filesetsFileSet name.
level=enumFull, Incremental, Differential, VirtualFull, Base, Since, VolumeToCatalog, DiskToCatalog, Catalog, Data, InitCatalogBackup level.
storage=resourcefrom .storagesStorage name.
sd=resourcefrom .storagesStorage name.
where=stringRestore prefix.
regexwhere=stringRestore path rewrite.
bootstrap=stringBootstrap file.
replace=enumalways, ifnewer, ifolder, neverReplace mode.
when=stringStart time (YYYY-MM-DD HH:MM:SS).
priority=integerPriority.
verifyjob=resourcefrom .jobsJob to verify.
files=stringFiles.
catalog=resourcefrom .catalogsCatalog name.
since=stringSince time.
cloned=stringvalue optionalCloned job.
verifylist=stringVerify list.
migrationjob=resourcefrom .jobsMigration job.
pool=resourcefrom .poolsPool name.
nextpool=resourcefrom .poolsNext pool.
backupclient=resourcefrom .clientsBackup client.
restoreclient=resourcefrom .clientsRestore client.
pluginoptions=stringPlugin options.
spooldata=boolyes, noSpool data.
comment=stringComment.
ignoreduplicatecheck=boolyes, noIgnore duplicate check.
accurate=boolyes, noAccurate mode.
jobid=stringlistJob IDs.
backupformat=stringBackup format.
consolidatejob=resourcefrom .jobsConsolidate job.
schedule=resourcefrom .scheduleSchedule name.
yeskeywordDo 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

See also

rerun, cancel, status, Command reference