Bacula-users

Re: [Bacula-users] Bacula-users Digest, Vol 32, Issue 19

2008-12-15 09:13:50
Subject: Re: [Bacula-users] Bacula-users Digest, Vol 32, Issue 19
From: Peter <vmail AT mycircuit DOT org>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 15 Dec 2008 15:10:46 +0100
>
> > 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 bac AT mydomain DOT 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 
bac AT mydomain DOT org -s "Files from $1"  bac AT mydomain DOT 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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Bacula-users] Bacula-users Digest, Vol 32, Issue 19, Peter <=