>>>>> On Thu, 22 Aug 2024 10:15:23 +0200, Mehrdad Ravanbod said:
> 
> -Bacula documentation states that it is possible to use variables in 
> volume names but i am having no success with it, anyone who has this 
> working and care to share a couple examples from .conf files??

I'm using a counter variable to make volumes IncrB001, IncrB002 etc like this:

Pool {
  Name = IncrPool
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 100 years        # forever
  Maximum Volume Bytes = 1g
  Label Format = "IncrB${NextIncrB+:p/3/0/r}"
}

Counter {
  Name = NextIncrB
  Minimum = 1
  Catalog = MyCatalog
}

> -Is it possible to direct Bacula to create a new volume on a particular 
> week days, say sunday?? Background is that i would to see if it is 
> possible to have a full back and following diff backups during the week 
> in same Volume, i.e one volume for a whole weeks backups

I think the answer is "not directly", but you can set Volume Use Duration and
then ensure that you start using the volume on a Sunday.  You would need to
set the Volume Use Duration to 7 days minus a few hours to allow for timing
differences.  It is difficult to make this work reliably though, for example
if the backups fail to run on the Sunday then it would get out of sync.

Another way would be to use a script to set VolStatus = Used for the last
volume and schedule that to run just before the backups on Sunday (either as a
cron job or as a Bacula job with Type = Admin).

__Martin


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to