.bvfs_versions

Bareos

List versions of a file.

Synopsis

.bvfs_versions [jobid=<jobid>] [client=<client>] [pathid=<pathid>]
               [path=<path>] [filename=<filename>] [fname=<fname>]
               [name=<name>] [copies] [versions] [limit=<limit>]
               [offset=<offset>]

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

Description

Lists all backed up versions of one file of a client across all jobs, each with its volume, so an older version can be picked for .bvfs_restore by its FileId. Only versions stored on a volume count. jobid= is required but not evaluated (by Bareos convention 0); the directory is given by path= or pathid=, the file by fname= (also filename= or name=). copies includes versions from copy jobs; versions is accepted but has no effect.

Each line has seven tab separated columns: PathId, FileId, JobId, LStat, MD5, volume name and InChanger.

Arguments

ArgumentTypeValues / sourceDefaultFlagsDescription
jobid=stringJob ID.
client=resourcefrom .clientsClient name.
pathid=integerPath ID.
path=stringDirectory.
filename=stringFile name.
fname=stringFile name.
name=stringFile name.
copieskeywordInclude copies.
versionskeywordEvery version.
limit=integerMost rows.
offset=integerRows to skip.

Examples

All versions of /etc/hosts:

.bvfs_versions jobid=0 client=bareos-fd path=/etc/ fname=hosts

Including versions from copy jobs:

.bvfs_versions jobid=0 client=bareos-fd path=/etc/ fname=hosts copies

See also

Command reference