Bacula-users

Re: [Bacula-users] timestamp in volume label

2011-03-27 11:06:44
Subject: Re: [Bacula-users] timestamp in volume label
From: ganiuszka <ganiuszka AT gmail DOT com>
To: Lawrence Strydom <lawrence AT itcallcentre.co DOT za>
Date: Sun, 27 Mar 2011 17:02:49 +0200
2011/3/27 Lawrence Strydom <lawrence AT itcallcentre.co DOT 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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>