.bvfs_lsdirs

Bareos

List directories using BVFS.

Synopsis

.bvfs_lsdirs [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 subdirectories of a directory in the state of a job chain, as a restore file browser needs them. The BVFS cache must have been filled with .bvfs_update first. The directory is given by path= (with a trailing slash, / for the root) or by pathid= from an earlier output; limit= (default 2000) and offset= page through the result.

Each line has five tab separated columns: PathId, FileId, JobId, LStat and name. The first two lines are . and ..; directories without their own catalog record have FileId and JobId 0. A JobId the console may not see is refused.

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 top level directories of a job chain:

.bvfs_lsdirs jobid=600,615,616 path=/

The first 100 subdirectories of a known path:

.bvfs_lsdirs jobid=600,615,616 pathid=7 limit=100

See also

Command reference