Bvfs API
To help developers of restore GUI interfaces, we have added new dot
commands that permit browsing the catalog in a very simple way.
- .bvfs_update [jobid=x,y,z] This command is required to update
the Bvfs cache in the catalog. You need to run it before any access to the
Bvfs layer.
- .bvfs_lsdirs jobid=x,y,z path=/path | pathid=101 This command
will list all directories in the specified path or
pathid. Using pathid avoids problems with character
encoding of path/filenames.
- .bvfs_lsfiles jobid=x,y,z path=/path | pathid=101 This command
will list all files in the specified path or pathid. Using
pathid avoids problems with character encoding.
You can use limit=xxx and offset=yyy to limit the amount of
data that will be displayed.
* .bvfs_update jobid=1,2
* .bvfs_update
* .bvfs_lsdir path=/ jobid=1,2
Kern Sibbald
2010-08-30