On Wed, Jun 22, 2005 at 09:14:31AM -0500, Misty Stanley-Jones wrote:
> Please help me understand automatic labeling, because it does not work how I 
> thought it should.
I'm trying to figure this out too.  What I say may not be correct.

> 
> If I try to expand the variable 'Client' I always get the Director
> machine, or 

One tricky thing is that the label variables are only expanded when
needed.  So, for example, if you say the volume can hold 5 jobs (as
you do below in one case) the volume label comes from the first job, and then
just reused.

> the one that backs up first.  I thought I should get the Client of the 
> currently running job.
> 
> Also I need help understanding how the Counter resource works and when it 
> increments.  It seems to be incrementing randomly -- when I only want it to 
> increment when called from a specific pool.

The  pieces you provided didn't provide any counter definitions.  If
there aren't any in the file, that might be part of the problem.

> 
> Here are some salient details of my setup:
> 
....
> 
> Pool {
>   Name = Default
>   Pool Type = Backup
>   Recycle = yes                       # Bacula can automatically recycle 
> Volumes
>   AutoPrune = yes                     # Prune expired volumes
>   Volume Retention = 60 days          # 2 months
>   Accept Any Volume = yes             # write on any volume in the pool
>   Maximum Volume Jobs = 1
>   Label Format = "${Pool}-${Job}-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}"
> }

If you need two volumes on the same day, with the same job, you'll be
in trouble with that specification.  The docs says that if you have
any expansion vars in the label bacula will not generate automatic
numbering.

....
> 
> Pool {
>   Name = Inc-Pool
>   Pool Type = Backup
>   Recycle = yes
>   AutoPrune = yes
>   Volume Retention = 4 weeks
>   Accept Any Volume = no
>   Maximum Volume Jobs = 5
>   # I want this pool to use the same counter values as the Differential pool
>   # I want each client to have its own volume each week and use it for all
>   # increrental backups during the week
>   Label Format = "${Client}-Inc-${WeekCount}"
>   Maximum Volumes = 20
> }

There's the pool with 5 jobs/volume.

Ross


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to