bareos: master d6d4d978

Author Committer Branch Timestamp Parent
mvwieringen adm mvwieringen adm master 2013-05-11 19:41 master 876440b9 Pending
Affected Issues  0000188: Implement NDMP enhancements.
Changeset Implement NDMP enhancements.

Currently we only allow all or nothing restores for the NDMP backup and restore.

This code implements the first set of changes needed to perform filelevel
based restore of NDMP backups.

The following things are implemented:

- Store the FHDB NDMP data into the backup catalog.
- Allow the user to select the info on restore
- Pass the file selection from the NDMP DMA to the NDMP data agent so
  it knows what to restore.

As we currently don't allow seeks on the NDMP stream with the NDMP tape agent
implemented in the Bareos Storage Daemon we cannot add the so called DAR
(Direct Access Recovery) but as part of this storing of the FHDB information
in the backup catalog we should store the DAR offset too so when we either
support native NDMP tape agents (currently not implemented) or when the Bareos
Storage Daemon allows seeking in the NDMP stream we have that information.

This code works when using the restore functions in bconsole. Restores via
the BVFS method currently don't work and need more work. This means that restores
via BAT don't work as that uses BVFS.

Fixes 0000188: Implement NDMP enhancements.
mod - src/stored/ndmp_tape.c Diff File
mod - src/ndmp/ndmlib.h Diff File
mod - src/lib/tree.h Diff File
mod - src/lib/tree.c Diff File
mod - src/dird/ua_label.c Diff File
mod - src/dird/ndmp_dma.c Diff File
mod - src/dird/catreq.c Diff File
mod - src/dird/bsr.c Diff File
mod - src/cats/sql_get.c Diff File