Hi,

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:".

Arno

> Can anyone commet this?
> 
> Thanks, Mario
> 
> 
> 
> 
> Arno Lehmann schrieb:
>> Hi,
>>
>> On 6/15/2007 5:21 PM, [EMAIL PROTECTED] wrote:
>>   
>>> Hello List,
>>>
>>> i would like to do something with each created volume.
>>>     
>> With or to the volumes?
>>
>> ;-)
>>
>>   
>>> By using the RunAfterJob command and the %v variable it turned out, that 
>>> %v contains only the last volume.
>>>     
>> Jup.
>>
>>   
>>> For example:
>>> After a Full Job created 12 Volumes, each 250MB big, the command here: 
>>> RunAfterJob = "md5sum %v"
>>> Results in "md5sum %v volume0012".
>>>
>>> Is there something like RunAfterVolume?
>>>     
>> No, but you could pass the jobid to your script and extract the volumes 
>> it used from the catalog. I think.
>>
>> Arno
>>
>>   
>>> Cheers, Mario
>>>
>>> -------------------------------------------------------------------------
>>> 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
>>>     
>>   
> 
> 
> -------------------------------------------------------------------------
> 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

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

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