.bvfs_versions
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
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
jobid= | string | Job ID. | |||
client= | resource | from .clients | Client name. | ||
pathid= | integer | Path ID. | |||
path= | string | Directory. | |||
filename= | string | File name. | |||
fname= | string | File name. | |||
name= | string | File name. | |||
copies | keyword | Include copies. | |||
versions | keyword | Every version. | |||
limit= | integer | Most rows. | |||
offset= | integer | Rows 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