BACULA SCRIPT – HOW TO LIST FILES FROM BACKUPS JOBS
In my work i had to make i file list from the volumes, so what i did was this small script to list all files.
1. First i Created i file with all job number “ids” t; jobs-list.txt
2. I created i file that reads the jobs-list files and echos the files list from the backups jobs
#!/bin/bash while read LINHA do /bin/bconsole -c /backup/bacula/bconsole.conf < list files jobid=$LINHA 1 wait @output quit END_OF_DATA done; jobs-list.txt