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