.ovfs_tree

Onesimus extension

Restore tree of a job chain as JSON (OVFS).

Synopsis

.ovfs_tree [jobid=<jobid>[,...]] [client=<client>] [fileset=<fileset>]
           [root=<root>] [depth=<depth>] [max_entries=<max_entries>] [json]

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

Description

Onesimus extension: returns the directory tree of a job chain below a directory as a restore would bring it back: per path the version from the newest job, deleted files left out, hardlinks and delta files resolved. Every node with a catalog record carries its restore identity (jobid, fileindex). No cache is needed. The chain is given by jobid= or by client= (and fileset=) for the newest state like .ovfs_latest.

root= sets the top of the tree (default /), depth= the number of levels (default 1; directories at the limit show their entry count), max_entries= the maximum number of nodes (default 100000; beyond it the command stops with a message). For large backups load the top with a small depth and expand directories with .ovfs_ls. json prints one JSON line.

Arguments

ArgumentTypeValues / sourceDefaultFlagsDescription
jobid=stringlistJob ID list.
client=resourcefrom .clientsClient name (latest state).
fileset=resourcefrom .filesetsFileSet name.
root=string/Directory.
depth=integer1Levels below root.
max_entries=integer100000Most nodes in the result.
jsonkeywordPrint the JSON object as text.

Examples

Two levels below /home of a job chain:

.ovfs_tree jobid=600,615,616 root=/home/ depth=2

The top level of the newest state as JSON:

.ovfs_tree client=bareos-fd depth=1 json

See also

Command reference