Good afternoon. I wanted to know if I had such a problem. I made a backup to the hard drive and it stopped turning on. I was able to restore the volume to which bacaula recorded the information, but the question is, how do I add the volume manually to the recovery task? 🤕

Hello @Eugene,

I am not sure if I understood you well. You can restore data from this volume using Bacula tools such as:

  • bextract to restore data without using Bacula server components. It is done in the command line.
  • bscan to scan volume and add its records to the Bacula Catalog again. This can be useful if your file/job/volume records for this volume have been purged in the Bacula database. After scanning volume, you will be able to restore data in Bacularis and bconsole.
  • bls to list volume metadata

Please note that using these tools can be not easy for new Bacula users. Here you can find documentation for them:

Bexctract
https://www.bacula.org/15.0.x-manuals/en/utility/Volume_Utility_Tools.html#SECTION001600000000000000000

Bscan
https://www.bacula.org/15.0.x-manuals/en/utility/Volume_Utility_Tools.html#SECTION001700000000000000000

Bls
https://www.bacula.org/15.0.x-manuals/en/utility/Volume_Utility_Tools.html#SECTION001500000000000000000

Best regards,
Marcin Haba (gani)

    gani My problem is that the hard drive on which the volume with the information was lying died and does not work anymore. I was able to restore the volume and now the problem is how to recover data from the volume. I tried to restore using the bextract utility, but it works strangely and does not see the volume, although I have specified a direct path to the volume. Maybe you had a similar problem?

    Hello @Eugene,

    OK, now I understand. Thanks for explaining it.

    For bextract problem, you can try to use the Bacula Device name and Bacula SD config file instead of Bacula Device path. I mean the following situation:

    Bacula SD config path: /path/to/bacula-sd.conf:

    Device {
        Name = XYZ
        Archive Device = /a/b/c
        ...
        ... etc.
    }

    Volume name: MY_VOL

    Please copy the MY_VOL to /a/b/c and run command like this one:

    bextract -c /path/to/bacula-sd.conf -V MY_VOL XYZ /your/restore/path

    Is it better now?

    Alternatively if your file, job, and volume records for this volume still exist in the Bacula Catalog, you can just copy the MY_VOL to the same path as it was before the disk became broken. This way if your bacula-sd.conf is the same, you should be able to restore data from volume directly in bconsole or in Bacularis.

    Good luck.

    Best regards,
    Marcin Haba (gani)