Hello Maarten,

 

thanks for supporting me.

 

From: Maarten Hoogveld [mailto:m.hoogv...@elevate.nl] 
Sent: Wednesday, February 25, 2009 8:37 AM
To: KNOPS Manfred
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] ClientAfterJob: Das System kann den angegebenen 
Pfad nicht finden.

 

Ø  Maybe just try adding 
  Runs On Client = No
in the RunScript section to be certain it runs on the server. I would think 
that that would be the default but it sure is worth a test.
I presume "ClientAfterJob" has to do with running a script on the client after 
the job.

I change the jobdefs. I added RunsOnClient=No.

Now it looks like this:

 

JobDefs {

  Name=mail_foo

  RunScript {

    RunsWhen = After

    RunsOnSuccess = Yes

    RunsOnClient = No

    Command="/usr/local/sbin/listing.sh %c %i %l f...@bar.de"

  }

}

 

And it seems to work.

Here the output of the bacula messages:

 

25-Feb 15:48 backupserver-dir JobId 567: AfterJob: run command 
"/usr/local/sbin/listing.sh HOSTNAME 567 Full f...@bar.de"

25-Feb 15:48 backupserver-dir JobId 567: AfterJob: Connecting to Director 
backupserver:9101 25-Feb 15:48 backupserver-dirJobId567: AfterJob: 1000 OK: 
backupserver-dir Version: 2.4.3 (10 October 2008) 25-Feb 15:48 backupserver-dir 
JobId 567: AfterJob: Enter a period to cancel a command.

25-Feb 15:48 backupserver-dir JobId 567: AfterJob: @output /tmp/HOSTNAME.txt 

 

The file /tmp/HOSTNAME.txt exist.

I saw that our mailserver received a mail from backupserver for f...@bar.de.

 

So I think it works.

I couldn’t look into the usermailbox. Because the user isn’t in office.

 

Thanks for helping me.

 

Regards

Manfred

 

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to