Hello,

On 2/15/2006 10:50 AM, Michael Ressel wrote:
Hi there,
i've realised that there is no volume connected with a job yet while the RunBeforeJob-Script is running.

Right, although this might not be documented, it sounds logical - a volume is attached to the job when the job starts running, i.e. it's impossible to have that link during a runBEFOREscript.

...
The running script is trapped in a loop. I'm testing an idea about sending mailrequests for mounting a usb-harddisk (volume) to bacula-operators and quitting the script with the incoming of the mailreply from the operator after mounting the disk. By this a want to avoid that bacula tries to write into the mountpoint-directory if there is no usb-disk mountet yet.

Try upgrading to 1.38.5 and investigate what the python hooks can do for you. Also, I would consider not (only) using the volume name but taking the device into consideration. And finally, from reading some posts in the -devel list lately, I suspect that Kern might implement a more sophisticated file-based volume handling some time soon.

So, before you start working around problems that might not exist in future versions, it might be more interesting to find out if, what you want, can be achieved easier.

Arno

"status director" in the console tells me that the job is running.
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Running Jobs:
Console connected at 15-Feb-06 09:42
JobId Level   Name                       Status
======================================================================
 1201 Full    HOG-Monthly.2006-02-15_10.45.23 is running
====
------------------------------------------------------------------------------------------------------------------------------------------------------------------

But why isn't there a volume defined yet? Does anyone know this problem?

regards,
Michael


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


--
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to