>
> > Hi
> > I was wondering, if there is a way to receive the list of files backuped 
> > with a given job toegether with the jobs
> > email notification (that is: the result of what I get when I say "list 
> > files jobid=xxxx" in the console )
> > 
> > Any help would be greatly appreciated
>   

Untested, but you might try a "Run After Job" script that executes 
something like 'echo "list files jobid=%j"|bconsole -c ...'.

Beware that your job report might get *long*...

Arno


>
>   


Hi Arno

Thanks for hinting me at the script thing.

I added the following to each client job for which I want to receive the 
file list:

  RunScript {
  Command= "mail file list"
  RunsWhen = After
  RunsOnFailure = no
  RunsOnClient = no
  RunsOnSuccess = yes
  #Command = 'echo "list files jobid=%i" | bconsole | /sbin/bsmtp -h  
192.168.1.xx -f b...@mydomain.org -s \"Bacula: %t %e of %c %l\" %r"
  Command = "/etc/bacula/mailfilelist.sh %c %i"
 }

mailfilelist.sh:

echo "list files jobid=$2" | bconsole | /sbin/bsmtp -h  192.168.1.xx -f 
b...@mydomain.org -s "Files from $1"  b...@mydomain.org

And that works fine !

Thanks
Peter

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to