Thanks for your reply Ana
I guess that could work if I required a single Volume but I limit my volume sizes to 1GB (files) for operational reasons and typically require multiple volumes but I don't know in advance how many. I suppose I could create multiple volumes in advance and
after delete any unused.
I always ensure that there volumes are automatically allocated as required and are never reused between jobs. Thee first one is allocated when the job starts and others as each becomes full. The content of the backup can vary according to some run before
scripts and I would like the volume names to reflect that.
It was easy to do this with python scripting but we are in the process of upgrading to bacula 7 where that isn't supported.
Regards
Steve
From: Ana Emília M. Arruda <emiliaarruda AT gmail DOT com>
Sent: 20 April 2015 17:53
To: Steve Lee
Cc: bacula-users AT lists.sourceforge DOT net; bacula-devel AT lists.sourceforge DOT net
Subject: Re: [Bacula-users] Python in bacula 7 - dynamically assign volume names
Hi Steve,
Maybe a shell script in a RunBeforeJob directive? You can test with "list nextvol" if there is an available volume and if not instruct Bacula to label one (and the label you can create it for
your own in your shell script).
Could you be more specific about "allocate volume names at run time"? Should they be allocated before
the job starts running or during a the job runs in the case it needs a volume and cannot find any available?
Best regards,
Ana