.ovfs_ls
Onesimus extension
Direct children of one directory of a job chain (OVFS).
Synopsis
.ovfs_ls [jobid=<jobid>[,...]] [client=<client>] [fileset=<fileset>]
path=<path> [json]
Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.
Description
Onesimus extension: lists the direct entries of one directory in the state of a job chain, first the files, then the subdirectories with the number of their entries, so a restore browser can load the tree directory by directory. Directories below which nothing can be restored are left out. The chain is given by jobid= or by client= (and fileset=) for the newest state; path= is required and ends with a slash.
Each entry carries its restore identity (jobid, fileindex). json prints the result as one JSON line in every API mode.
Arguments
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
jobid= | string | list | Job ID list. | ||
client= | resource | from .clients | Client name (latest state). | ||
fileset= | resource | from .filesets | FileSet name. | ||
path= | string | required | Directory. | ||
json | keyword | Print the JSON object as text. |
Examples
The entries of /etc in a job chain:
.ovfs_ls jobid=600,615,616 path=/etc/
A directory of the newest state as JSON:
.ovfs_ls client=bareos-fd path=/home/ json