2011/3/27 Lawrence Strydom <lawre...@itcallcentre.co.za>:
> Hi list,
>
> I am trying to get bacula to add a timestamp to the label. The manual
> talks about using variable expansion but states that it is deprecated
> and the new python scripting functionality that replaces it is not yet
> documented.
> I have defined my pool resource like this:
>
> Pool {
> Name = Arc-pool
> Storage = Archive
> Pool Type = Backup
> Recycle = no
> AutoPrune = no
> Label Format = Arc-
>
> }
>
>
> and it works fine, but now I want the label to read "Arc-<date>"
>
> I tried:
>
> Pool {
> Name = Arc-pool
> Storage = Archive
> Pool Type = Backup
> Recycle = no
> AutoPrune = no
> Label Format = Arc-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}
>
> }
>
> but predictably that terminated in error as I am using bacula 5.0.3.

Hi,

Try to add quotes between "Label Format" value. For example:

Label Format = "Arc-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}"

Regards.
gani


> I am not recycling these volumes, they are being archived to an external
> hard drive that will bereplaced when it is full.
>
> Thanks
>
> Lawrence

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to