.bvfs_get_jobids

Bareos

Get jobids required for a restore.

Synopsis

.bvfs_get_jobids [jobid=<jobid>] [ujobid=<ujobid>] [all]

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

Description

Returns the chain of JobIds needed to restore the state of a job: the Full backup, the last Differential and all Incrementals up to that job, as one comma separated line. The list is the jobid= argument of the other .bvfs commands. ujobid= gives the job by its unique job name instead and takes precedence. all combines the chains of all filesets of the client.

For a Base job only its own JobId is returned. JobIds the console may not see by its job, client or fileset ACL are left out. The command only reads the catalog; the OVFS counterpart is .ovfs_latest.

Arguments

ArgumentTypeValues / sourceDefaultFlagsDescription
jobid=integerJob ID.
ujobid=stringUnique job name.
allkeywordEvery job of the chain.

Examples

The job chain for restoring job 628:

.bvfs_get_jobids jobid=628

The chains of all filesets of the client:

.bvfs_get_jobids jobid=628 all

See also

Command reference