Restore

To restore the backup performed in the last section into the same HDFS System, inside the directory bacula-restores we also use bconsole:

restore jobid=1 where=/bacula-restores all done yes
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
You have selected the following JobId: 1

Building directory tree for JobId(s) 1 ...
12 files inserted into the tree and marked for extraction.
Bootstrap records written to /home/hdev/bacula-cloud/regress/working/127.0.0.1-dir.restore.1.bsr

The Job will require the following (*=>InChanger):
   Volume(s)                 Storage(s)                SD Device(s)
===========================================================================

    TestVolume001             File                      FileStorage

Volumes marked with "*" are in the Autochanger.


12 files selected to be restored.

Automatically selected Client: 127.0.0.1-fd
Using Catalog "MyCatalog"
Job queued. JobId=5
wait
You have messages.
messages
06-abr 12:29 127.0.0.1-dir JobId 5: Start Restore Job RestoreFiles.2020-04-06_12.29.39_16
06-abr 12:29 127.0.0.1-dir JobId 5: Restoring files from JobId(s) 1
06-abr 12:29 127.0.0.1-dir JobId 5: Using Device "FileStorage" to read.
06-abr 12:29 127.0.0.1-sd JobId 5: Ready to read from volume "TestVolume001" on File device "FileStorage" (/home/hdev/bacula-cloud/regress/tmp).
06-abr 12:29 127.0.0.1-sd JobId 5: Forward spacing Volume "TestVolume001" to addr=239
06-abr 12:29 127.0.0.1-sd JobId 5: Elapsed time=00:00:01, Transfer rate=2.142 K Bytes/second
06-abr 12:29 127.0.0.1-fd JobId 5: hdfs: Starting HDFS Plugin Job
06-abr 12:29 127.0.0.1-fd JobId 5: hdfs: Finished reading HDFS Plugin Params
06-abr 12:29 127.0.0.1-fd JobId 5: hdfs: Starting restore
06-abr 12:29 127.0.0.1-fd JobId 5: hdfs: Finishing HDFS Plugin Job
06-abr 12:29 127.0.0.1-dir JobId 5: Bacula 127.0.0.1-dir 12.4.0 (20Dec19):
  Build OS:               x86_64-pc-linux-gnu ubuntu 18.04
  JobId:                  5
  Job:                    RestoreFiles.2020-04-06_12.29.39_16
  Restore Client:         127.0.0.1-fd
  Where:                  /bacula-restores
  Replace:                Always
  Start time:             06-abr-2020 12:29:41
  End time:               06-abr-2020 12:29:45
  Elapsed time:           4 secs
  Files Expected:         12
  Files Restored:         12
  Bytes Restored:         60 (60 B)
  Rate:                   0.0 KB/s
  FD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Restore OK

06-abr 12:29 127.0.0.1-dir JobId 5: Begin pruning Jobs older than 6 months .
06-abr 12:29 127.0.0.1-dir JobId 5: No Jobs found to prune.
06-abr 12:29 127.0.0.1-dir JobId 5: Begin pruning Files.
06-abr 12:29 127.0.0.1-dir JobId 5: No Files found to prune.
06-abr 12:29 127.0.0.1-dir JobId 5: End auto prune.

See also

Go back to the main HDFS Plugin page.

Go back to the main Dedicated Backup Solution page.