Bacula-users

[Bacula-users] Auto created volumes

2008-06-20 13:14:50
Subject: [Bacula-users] Auto created volumes
From: Marek Simon <marek.simon AT trustica DOT cz>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 20 Jun 2008 19:07:40 +0200
-----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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIW+PcxqkZ847NX44RAmHjAJ91oTEDT/XE0nhISIBlMHQV+DY7xwCeIyq1
fq2WiU5yBLVU35v7Vacvm6E=
=BTC/
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
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>