.bvfs_restore

Bareos

Mark BVFS files/directories for restore. Stored in handle.

Synopsis

.bvfs_restore path=<path> jobid=<jobid>[,...] [fileid=<fileid>[,...]]
              [dirid=<dirid>[,...]] [hardlink=<hardlink>[,...]] [useemptypath]

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

Description

Creates a table in the catalog holding a restore selection: single files (fileid=), whole directories with their content (dirid=, PathIds from .bvfs_lsdirs) and hardlinks (hardlink=, pairs of JobId and FileIndex). At least one of them is required. path= names the table (b2 followed by a number); an existing table of that name is replaced.

Pass the table to restore with file=?<table>; restore then skips the menu and the file tree. Drop the table afterwards with .bvfs_cleanup. The command only writes to the catalog and starts no job.

Arguments

ArgumentTypeValues / sourceDefaultFlagsDescription
path=stringrequiredHandle (table name).
jobid=stringrequired, listJob IDs.
fileid=stringlistFile IDs.
dirid=stringlistDirectory IDs.
hardlink=stringlistJobId,FileIndex pairs.
useemptypathkeywordUse an empty path.

Examples

Select two files for a restore:

.bvfs_restore path=b2101 jobid=600,615,616 fileid=4711,4712

Select a whole directory:

.bvfs_restore path=b2102 jobid=600,615,616 dirid=7

See also

Command reference