.bvfs_lsfiles

Bareos

List files using BVFS.

Synopsis

.bvfs_lsfiles [jobid=<jobid>[,...]] [path=<path>] [pathid=<pathid>]
              [limit=<limit>] [offset=<offset>] [pattern=<pattern>]
              [filename=<filename>]

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

Description

Lists the files (without subdirectories) of a directory in the state of a job chain; for each file the version from the newest job of the chain is shown. The FileIds are the input for .bvfs_restore. The BVFS cache must have been filled with .bvfs_update first. pattern= keeps only file names matching a regular expression; limit= (default 2000) and offset= page through the result.

Each line has five tab separated columns: PathId, FileId, JobId, LStat and file name.

Arguments

ArgumentTypeValues / sourceDefaultFlagsDescription
jobid=stringlistJob IDs.
path=stringDirectory.
pathid=integerPath ID.
limit=integerMost rows.
offset=integerRows to skip.
pattern=stringName filter (regular expression).
filename=stringFile name.

Examples

The files of /etc in a job chain:

.bvfs_lsfiles jobid=600,615,616 path=/etc/

Only file names matching a pattern:

.bvfs_lsfiles jobid=600,615,616 pathid=7 pattern=conf

See also

Command reference