Bacula-users

Re: [Bacula-users] Auto created volumes

2008-06-21 09:05:54
Subject: Re: [Bacula-users] Auto created volumes
From: Justin Lott <justin.lott AT millbrookprinting DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 20 Jun 2008 13:19:23 -0400
Marek Simon wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
> I have recently upgraded from 1.38.11 to 2.2.8
>
> When using simple LabelFormat directive in old bacula, new volumes has
> been numbered "pool-wide". In new bacula, they just got the MediaID of
> the volume "catalog-wide" and the Pool consists of variously numbered
> volumes. I want to have it in old school using extension variables. I
> can use variable NumVols, but it returns the number of volumes starting
> with zero. How can I make it increase by one?
>
> I found one way: make a single character be leftpadded by VolNum, add a
> character and then count them together. You see it is very weird. Python
> scripting is other way, or I could use counters, but I thing, that it is
> a bit overkill.
>
> Could someone help me?
>
> Marek
>
> P.S. However, starting from 0 is harmless.
I believe python is the new preferred way to generate custom volume names.

- justin

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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>