Re: Elegant and robust way to force volume change after multiple jobs?

Phil Stracchino <[email protected]>
Newsgroups gmane.comp.bacula.user
Organization Fenian House Publishing
Message-ID <[email protected]>
On 10/7/25 12:02, Andreas Koch wrote:
> Hi all,
> 
> I have a set of related Jobs (multiple clients + always a single 
> Catalog) that are scheduled together and always run in sequence. I would 
> like to force each of these related job sequences to be written to its 
> own tape volume.
> 
> Currently, I achieve this by setting the MaxVolumeJobs for each tape in 
> that pool to the exact number of jobs for each of these runs. Afterward, 
> that volume is marked full and the next job sequence is written to a 
> different tape. That has served me well thus far.
> 
> However, recently, I see greater fluctuations in our number of clients 
> (and their associated jobs). Thus, my initial approach has become 
> unwieldy, as I would need to manually update MaxVolumeJobs every time 
> the number of clients changes.
> 
> Is there a better way to achieve my goal that can deal more robustly 
> with varying numbers of clients? Something like UseVolumeOnce, but not 
> applying to individual jobs but only after the Catalog job is 
> complete ... ?


Would VolumeUseDuration work for you?  That's what I do:  'Volume Use 
Duration = 23h'

Unlimited Jobs are allowed in a single Volume, but 23h after creation, 
that Volume is DONE, no new Jobs can be added to it, and the next day's 
Jobs have to get a new Volume.



-- 
   Phil Stracchino
   Fenian House Publishing
   [email protected]
   [email protected]
   Landline: +1.603.293.8485
   Mobile:   +1.603.998.6958
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.