Dwight Tovey wrote:
> On Thu, 2007-02-01 at 15:48 -0500, Brian Debelius wrote:
>   
>> Using the Windows director, sd, and fd, it does not appear that 
>> automatic labeling works with variable expansion and Label Format.
>>
>> This works, and the files get named Comp1_Full-0001..etc
>>
>> ##############################
>> # Full backup pool
>> ##############################
>> Pool {
>>   Name = "Pool-Full"
>>   Pool Type = Backup
>>   Recycle = yes
>>   AutoPrune = yes
>>   Volume Retention = 3 months
>>   Maximum Volume Jobs = 1
>>   Label Format = "Comp1_Full-"
>>   Maximum Volumes = 3
>> }
>>
>> This does not work, and the files get named Comp1_Full- with no 
>> sequential number added to the filename.
>> ##############################
>> # Full backup pool
>> ##############################
>> Pool {
>>   Name = "Pool-Full"
>>   Pool Type = Backup
>>   Recycle = yes
>>   AutoPrune = yes
>>   Volume Retention = 3 months
>>   Maximum Volume Jobs = 1
>>   Label Format = "$Client_Full-"
>>   Maximum Volumes = 3
>> }
>>     
>
> I just went through this myself.  It actually is behaving as documented.
> Under the section on LabelFormat, it states:
>
>  "If no variable expansion characters are found in the string, the
> Volume name will be formed from the format string appended with the
> number of volumes in the pool plus one, which will be edited as four
> digits with leading zeros."  
>
> What isn't explicitly stated is that if any other variable expansion has
> taken place, then the volume numbers are not appended.
>
> You can get around this by using the NumVols variable.  For your format,
> you will probably want something like this:
>   LabelFormat = "${Client}_Full-${NumVols:p/4/0/r}"
>
> The NumVols gives you the count of the volumes currently in the pool.
> The 'p' command says to pad the variable to be at least 4 characters,
> using '0' as the padding character, and pad to the right.
>
> You could also use this format: "${Client}_${Level}-${NumVols:p/4/0/r}"
>
> That way the level is also determined at run time.
>
>     /dwight
>
>   
Thanks, I will give that a try.
brian-

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to