If you have access to a baculum or bacularis web console you can
graphically browse through files on a job by job basis. Start a restore,
click through. A little slow, in my experience, but if you are totally lost
trying to navigate bconsole and find what you need to that way, maybe this
will help. I suspect bconsole will be much more useful for searching,
though. baculum/bacularis don't have good database search functionality as
far as I can tell.

Bacularis is a friendly fork of Baculum, so they're very close to each
other in features and functions.

baculum is typically hosted on http://yourbaculadirectorserverip:9096
bacularis is typically hosted on http://yourbaculadirectorserverip:909*7*

To determine if bacularis or baculum are running on your bacula server, in
your system shell do:
ps aux|grep bacularis
ps aux|grep baculum

In my case, I am running bacularis, and the ps aux command told me that I
have various http servers running bacularis. I also got a line telling me
that the grep operation was searching for bacularis, which of course is not
an actual bacularis process.

I am not running baculum, so I only got the output for the grep process
filtering ps aux output for "baculum".

I think the bconsole search commands, if you can make them work for you,
will give you more information more quickly. But they will give you what
you ask for, and nothing more. If you ask for the wrong things, or ask in
the wrong way, you won't get the information you need. That is my limited
experience on the subject.

Regards,
Robert Gerber
402-237-8692
r...@craeon.net


On Wed, Dec 13, 2023 at 11:14 AM Rob Gerber <r...@craeon.net> wrote:

> In my experience with Bacula 13.0.3 in bconsole you can do
> restore
>
> option 2 "search for a filename" give it a filename and it will tell you
> every job that filename has ever been backed up in, with complete path
> option 11 "enter a list of directories to restore for found jobs" also
> looks juicy.
>
> You will have to select an FD (File Daemon) as part of restores and some
> of the commands listed under the "restore" command. The FD is the part of
> bacula that (typically) runs on the client machine and sends the files
> selected for backup to the Bacula system for backup. Keep in mind that in
> some odd cases (like mine!) the FD could run on the Bacula server and make
> backups of remote filesystems that are mounted on the bacula server (if you
> cannot run the FD on the client machine for instance).
>
> Remember that providing a period . to bconsole cancels the current command
> and exits back to the bconsole shell.
> . [press enter]
>
> See my bconsole output below.
>
> Connecting to Director nsf-rocky:9101
> 1000 OK: 10002 nsf-rocky-dir Version: 13.0.3 (02 May 2023)
> Enter a period to cancel a command.
> *restore
> Automatically selected Catalog: MyCatalog
> Using Catalog "MyCatalog"
>
> First you select one or more JobIds that contain files
> to be restored. You will be presented several methods
> of specifying the JobIds. Then you will be allowed to
> select which files from those JobIds are to be restored.
>
> To select the JobIds, you have the following choices:
>      1: List last 20 Jobs run
>      2: List Jobs where a given File is saved
>      3: Enter list of comma separated JobIds to select
>      4: Enter SQL list command
>      5: Select the most recent backup for a client
>      6: Select backup for a client before a specified time
>      7: Enter a list of files to restore
>      8: Enter a list of files to restore before a specified time
>      9: Find the JobIds of the most recent backup for a client
>     10: Find the JobIds for a backup for a client before a specified time
>     11: Enter a list of directories to restore for found JobIds
>     12: Select full restore to a specified Job date
>     13: Select object to restore
>     14: Cancel
>
>
> Robert Gerber
> 402-237-8692
> r...@craeon.net
>
> On Wed, Dec 13, 2023, 10:48 AM Borut Rozman <borut.roz...@bioch.ox.ac.uk>
> wrote:
>
>> Hi,
>> I inherited a bacula backup solution, and now I got a request to
>> restore a file or set of files from backups. I only know a folder name,
>> and nothing else. Is there a way inside bconsole to search for a
>> specific string.
>>
>> Query/option 20 does not give me any results.
>>
>> Using bacula 11 with pgsql 14, any help appreciated.
>> B.
>>
>> _______________________________________________
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to