Hi Zeratul,

On Thursday 28 June 2007 writes Zeratul:
>
> I'm trying to increase the messages verbosity for the director to receive a
> complete list of processed files by a specific job. I'm trying to play with
> different options for the Messages resource, but I'm not getting what I
> want. There is anybody who already did this and can give me at least a
> hint? Thank you.

Depends on the time you need this information, you can use a fancy solution 
with a little delay, select the infos from the database.

If you will know what is in one jobid you can get a result with a sql like 
this:

select p.path,fn.name from file f, filename fn, path p
where f.filenameid=fn.filenameid
and f.pathid=p.pathid
and f.jobid=xxx

if you need only the newest files while a job is running you can add a where 
condition like 'and f.fileid > lastfileid' where the lastfileid is the fileid 
value you get from the last select.

the last 20 files from a jobid in descent order you can get with this select:

select p.path,fn.name from file f, filename fn, path p
where f.filenameid=fn.filenameid
and f.pathid=p.pathid
and f.jobid=xxx
order by fileid desc
limit 20

you can wrap a little script around this sql with the 'watch' tool on a 
console you have the actual last 20 files on screen. 

the files who making errors writes the director in the default settings from 
documentation already to the mail/message report.

the profane solution is: 

> Daemon Command Line Options
>
> Each of the three daemons (Director, File, Storage) accepts a small set of  
> options on the command line. In general, each of the daemons as well as the 
> Console program accepts the following options:
>
> -d nn
>     Set the debug level to nn. Higher levels of debug cause more information 
> to be displayed on STDOUT concerning what the daemon is doing.

or in bconsole:
list files jobid=yourjobid

look also on http://www.bacula.org/rel-manual/Brief_Tutorial.html#3085

hope its helps

regards
   Falk


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to