rerun

Bareos

Rerun a job.

Synopsis

rerun [jobid=<jobid>[,...]] [since_jobid=<since_jobid>]
      [until_jobid=<until_jobid>] [days=<days>] [hours=<hours>] [yes]

Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.

Description

Starts earlier jobs again with the parameters they ran with (job, level, client, fileset, pool). Jobs are chosen by JobId, by a JobId range with since_jobid= and until_jobid=, or by a time window with days= and hours=. For every job the Director shows the run summary and asks yes, mod or no; yes on the command line starts all chosen jobs without asking.

since_jobid=, days= and hours= consider only jobs that ended with a fatal error (status f); for days= and hours= the scheduled start time counts, and both values add up. until_jobid= is only valid together with since_jobid=. Before rerunning several jobs found this way the Director lists the JobIds and asks for confirmation.

Arguments

ArgumentTypeValues / sourceDefaultFlagsDescription
jobid=stringlistJob ID.
since_jobid=integerRerun failed jobs since this JobId.
until_jobid=integerUp to this JobId.
days=integerFailed jobs of the last days.
hours=integerFailed jobs of the last hours.
yeskeywordDo not ask.

Examples

Run job 42 again with its original parameters:

rerun jobid=42

Restart every job that failed during the last day:

rerun days=1 yes

Failed jobs between JobId 100 and 120:

rerun since_jobid=100 until_jobid=120

See also

Command reference