Bacula-users

Re: [Bacula-users] Simplified pools

2010-04-07 00:47:33
Subject: Re: [Bacula-users] Simplified pools
From: Craig Ringer <craig AT postnewspapers.com DOT au>
To: Phil Stracchino <alaric AT metrocast DOT net>
Date: Wed, 07 Apr 2010 12:42:17 +0800
Phil Stracchino wrote:
> On 04/06/10 17:26, Kevin Keane wrote:
>>>> I would NOT recommend the AddLevelSuffix directive - that is too 
>>>> inflexible, as well as unnecessary. You can simply include
>>>> ${Level} in your LabelFormat directive. Note that if you include
>>>> a variable in the label format, Bacula will no longer
>>>> automatically append the volume ID.
>>>>
>>>> LabelFormat="System${Level}-${NumVols}"
>>> I thought variable-expansion in label formats were well and truly 
>>> deprecated in favour of the Python scripting support?
>> Officially, yes, I've been reading that it was deprecated, but it
>> still works in 3.0.3. And I hope it will continue to work. I'd HATE
>> to have to learn Python just to replace this simple little line. That
>> would be painful (not that I mind learning Python, but even as it is
>> bacula requires more of my time and attention than it should).
> 
> I can confirm that it still works in 5.x as well.  I use this for disk
> volumes:
> 
>   Label Format =
> "FULL-$Year${Month:p/2/0/r}${Day:p/2/0/r}-${Hour:p/2/0/r}:${Minute:p/2/0/r}"
> 
> (with alterations for Differential and Incremental pools, of course.)

If it's not going to be removed and replaced with something 10x as
complicated, perhaps it should be un-deprecated?

Oh well, I'll use it if it still works. It's not like I can't port the
config over to whatever is required later if it is ever dropped. Thanks
for the tip.

I'm troubled by the approach taken with Bacula of "it's possible with
some scripting, so why should Bacula make it simple and easy to do this
common task". Then again, perhaps I'm just trying to do things the wrong
way and what I see as simple and common, like concurrent backups to a
sd, isn't.

--
Craig Ringer

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users