Hello,
> On 6/15/2007 11:07 PM, [EMAIL PROTECTED] wrote:
>   
>> Hello Arno, Hello List,
>>
>> i found this in google:
>> http://mailinglist-archive.com/bacula.user/2003-10/msg00407.html
>>
>> Mr. Kern added the %v option, but it seems it either got removed in 
>> bacula 2.0.3 or it changed.
>>
>> Then i finally found the substitution list: 
>> http://www.bacula.org/dev-manual/DVD_Volumes.html
>> But there again, i wont be able to get the Filename so that i can pass 
>> the to further scripts.
>>     
>
> The manual section you mention explicitly refers to DVD devices. There 
> the file is a part file, and there can only be one part file.
>
> Anyway ask the catalog for media related to the job in question. A 
> starting point might be:
>
> bacula/[EMAIL PROTECTED] /root # mysql -h elf -u bacula -pyesverysecret -e 
> "select distinct VolumeName from JobMedia,Media where JobId=10171 and 
> JobMedia.MediaId=Media.MediaId;" -Ns bacula
> DLT-IV-0022
> DLT-IV-0030
> DLT-IV-0031
>
> Replace the static jobId with $1 from your script execution and you've 
> almost got what you need... you could also use bconsole and the query 
> "List Volumes used by selected JobId:".
>
>   
Is there a way to do this within/inside bacula?
I dont want to touch my dvd-writer script since i used it for other 
purposes, too.


-------------------------------------------------------------------------
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