Hello,

sob., 30 wrz 2023 o 22:27 Dr. Thorsten Brandau <thorsten.bran...@brace.de>
napisał(a):

> Hi
>
> I was trying to get a list of files (via bconsole) of the backups I do on
> tape (most recent for example). The only way I found is to use "restore"
> and then select the last backup. I was able to see some directories (e.g.
> /mnt/data) but not the files that were backup up.
>
It is the most basig Bacula functionality. Just execute a "restore"
command, then select "5", select your "client" and "fileset" you want to
restore. Then Bacula will build a files tree to provide you a backup
restore, like this:

You have selected the following JobIds:
128518,128544,128570,128674,128700,128726,128752,128856,128882,128908,128934,128986,129038,129064,129085,129111,129137,129164,129190,129216,129242,129268

Building directory tree for JobId(s)
128518,128544,128570,128674,128700,128726,128752,128856,128882,128908,128934,128986,129038,129064,129085,129111,129137,129164,129190,129216,129242,129268
...  +++++++++++++++++++++++++++++++++++++++++
747,171 files inserted into the tree.

You are now entering file selection mode where you add (mark) and
remove (unmark) files to be restored. No files are initially added, unless
you used the "all" keyword on the command line.
Enter "done" to leave this mode.

cwd is: /
$ ls
Users/
$ cd Users/
cwd is: /Users/
$ cd radekk
cwd is: /Users/radekk/
$ dir t1.sh
-rwxr-xr-x   1 501      dialout            7  2020-01-20 11:53:13
 /Users/radekk/t1.sh

You can use command like "dir" or "ls" to list contents of the directory
saved in backup. It always works.
You you want to use GUI then all I know provide point-and-click user
experience for selecting what you want to restore.


> Is there a way to get a list of all files in the backup, preferably with
> date, size etc.?
>
> I am looking for a function like
>
> list files=*officedocument*.odt
>
> or so. It should be wildcard aware.
>
Did you checked a command like: list files jobid=xxxx ?
You can grep its output to find files for this job, i.e.

# echo list files jobid=129265 | bconsole | grep dump
| /var/lib/postgresql/backup/cloud.20231007.dump |

I hope this helps.
-- 
Radosław Korzeniewski
rados...@korzeniewski.net
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to