cula-users@lists.sourceforge.net; bacula-de...@lists.sourceforge.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 inst
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 t
OK - I found in the release notes for 7.0.0
The following features or directives have been removed:
- Win32
- tray-monitor
- wx_console
- Removed cats DBI driver
- Python
So I assume this means python scripting is no longer supported.
If this is the case is there an alternative mechanism for dy
On 04/20/2015 03:08 AM, Steve Lee wrote:
> Does anyone know whether python scripting is supported in 7.0.5?
> I could see that --with-python is no longer a valid configuration option.
Python support was removed in the 7.x releases. I had the same
question which was answered in this thread:
h
HI
Does anyone know whether python scripting is supported in 7.0.5?
I could see that --with-python is no longer a valid configuration option.
Regards
Steve Lee
From: Kern Sibbald
Sent: 11 September 2011 10:31
To: bacula-users; bacula-devel
Subject: [Bac
Hello,
Yes, Python is still embedded in the Director, but with all the
changes in Python over the years, it is quite probable that it
does not work.
In any case, Python will be removed from the Director in the
next release, so it probably doesn't make any sense to use it.
If someone wishes to wri
I am using current packages from the bacula epel repo on centos 6.5 x64. These
packages are compiled with support for Python, although the docs are rather thin
on the usage, I haven't been able to make this work. I can get the file to load
and
identify the methods but it seems the director never a
Op 20111017 om 17:21 schreef Judi Cushing:
> Good Morning,
>
> I am new to bacula. Most of what I have tried has worked wonderfully, with
> one
> exception. I know I must be doing something wrong, but I cannot figure out
> what.
>
> Technical Details: Bacula 5.0.3 running on SLES 11
>
> Prob
Good Morning,
I am new to bacula. Most of what I have tried has worked wonderfully,
with one exception. I know I must be doing something wrong, but I
cannot figure out what.
Technical Details: Bacula 5.0.3 running on SLES 11
Problem: I am getting the error:
11-Oct 08:28 SRSBackup-sd Job
Hi
I am begining with Python scripting.
I imagine to have monitoring/management scripts for bacula coded with python.
Indeed Bash is not very easy to manage bacula object concepts ( jobs
schedule … )
First i saw that bacula can execute python code according to internal events
Is there a librar
Ok,
at his time no answer received...
i played with this script:
1#
2# Bacula Python interface script for the Director
3#
4
5# You must import both sys and bacula
6import sys, bacula
7
8class globalVars():
9def __init_
Hello All,
I m looking for examples about phyton startup scripts... My issue is,
that i will change the priority of jobs to the starting time.
the script should look for an fullbackup-job and if this job exists and
run... all other jobs should get an higher priority. If this job not
running,
On 12/09/10, James Harper (james.har...@bendigoit.com.au) wrote:
> > I noted in my email of 14 August that I had a file with a bacula md5
> > that I was not able to match using the (Linux, Debian stable) md5 cli
> > utility.
> From memory, the MD5 is 'correct', but the base64 translation is a bit
>
> I noted in my email of 14 August that I had a file with a bacula md5
> that I was not able to match using the (Linux, Debian stable) md5 cli
> utility.
>
> I would be grateful to learn if anyone has replicated the method of
> calculating an md5 hash using python. If so I'd be grateful to know
I noted in my email of 14 August that I had a file with a bacula md5
that I was not able to match using the (Linux, Debian stable) md5 cli
utility.
I would be grateful to learn if anyone has replicated the method of
calculating an md5 hash using python. If so I'd be grateful to know how
it is done
Hi,
I generate the configs with a shell script.
I read the warning that variable expansion is obsolete and I should use
the python scripting. But the documentation of python scripting is still
poor and I still have nothing like Label Format config option in python,
where I could write some Pool spe
Hi. I'm running Bacula 2.4.4 (28 December 2008) on Debian stable while
I'm testing Bacula.
I'm unclear to me how I can load the bacula module from python.
Many thanks
Rory
--
Rory Campbell-Lange
r...@campbell-lange.net
---
I am trying to run a python script for the newVolume Event on bacula
5.01 on Ubuntu 10.04 with python 2.6.5
The installation is actually working without python scripting and the
LabelFormat directive in the bacula-dir.conf, but for the test I have
removed the LabelFormat from the pool definitio
hi everybody,
in my office bacula is running and backup all my server and desktops every
night and i'm happy, but not the laptops.
why not the laptops ? because often they miss.
In my first attempt i configured the job with reschedule on Error for 23
hour every 30 minute:
- most times i got an
I am currently struggling with enabling python scripting for
Bacula director (2.4.4 port) installed on my FreeBSD system.
Neither make config interface nor makefile itself gives any
indication whether python is enabled, so my only indication
is 'Python interpreter restarted.' message when running p
Some versions of Redhat, and Mac OS X, use 4294967294 as the UID for
nobody. This is a problem for Python ( http://bugs.python.org/
issue1747858 ) : does this affect Bacula?
RSC
---
Haskins Laboratories / (203) 865-6163 X 275 / FAX (203) 865-8963
--
On Monday 05 November 2007 12:14:51 Rich wrote:
> you probably wanted to send this to list ;)
>
> On 2007.11.05. 13:01, Marek Simon wrote:
> > I think some scripting support is good for various hacking and unusual
> > solutions, but I think python is kind of "exotical" language.
Designed to be eas
I'm not a developer, and have only started to try to teach myself programming
(slow going given my time-constraints and other demands on my time) so my
$.02 is probably worth $.002 after the exchange-rate, but while reading this
thread I thought that it would be "neat" if a bacula API were devel
On 10/31/07, Rich <[EMAIL PROTECTED]> wrote:
> see
> http://bugs.bacula.org/view.php?id=998
>
> "After version 2.2.x Python will no longer be support -- there are an
> insufficient number of users."
Oy vey!
I am even as we speak working on implementing some Python code to
handle volume labeling!
Hello,
06.11.2007 20:44,, Kern Sibbald wrote::
Thanks for clarifying this.
> On Monday 05 November 2007 13:12, Arno Lehmann wrote:
...
True. But chances might be better to find such a person if python was
left in... if we had it in Bacula (as long as possible - Bacula core
develop
On Monday 05 November 2007 13:12, Arno Lehmann wrote:
> Hi,
>
> I'm sending this to the list - I suppose you wanted it to go there, too.
>
> 05.11.2007 10:58,, Rich wrote::
> > On 2007.11.04. 23:02, Arno Lehmann wrote:
> > ...
> >
> >> True. But chances might be better to find such a person if pyth
Hi,
I'm sending this to the list - I suppose you wanted it to go there, too.
05.11.2007 10:58,, Rich wrote::
> On 2007.11.04. 23:02, Arno Lehmann wrote:
> ...
>> True. But chances might be better to find such a person if python was
>> left in... if we had it in Bacula (as long as possible - Bacu
you probably wanted to send this to list ;)
On 2007.11.05. 13:01, Marek Simon wrote:
> I think some scripting support is good for various hacking and unusual
> solutions, but I think python is kind of "exotical" language. Very few
> users know it, very few projects is written in it and on univer
Hi,
03.11.2007 20:32,, Dan Langille wrote::
> On 3 Nov 2007 at 19:58, [EMAIL PROTECTED] wrote:
>
>> El jue, 01-11-2007 a las 10:12 +0100, Arno Lehmann escribió:
>>
>>> Hi,
>>>
>>> 31.10.2007 18:28,, Rich wrote::
see
http://bugs.bacula.org/view.php?id=998
"After version 2.2.x P
On 3 Nov 2007 at 19:58, [EMAIL PROTECTED] wrote:
> El jue, 01-11-2007 a las 10:12 +0100, Arno Lehmann escribió:
>
> > Hi,
> >
> > 31.10.2007 18:28,, Rich wrote::
> > > see
> > > http://bugs.bacula.org/view.php?id=998
> > >
> > > "After version 2.2.x Python will no longer be support -- there are
El jue, 01-11-2007 a las 10:12 +0100, Arno Lehmann escribió:
> Hi,
>
> 31.10.2007 18:28,, Rich wrote::
> > see
> > http://bugs.bacula.org/view.php?id=998
> >
> > "After version 2.2.x Python will no longer be support -- there are an
> > insufficient number of users."
>
> Oops... I missed that.
07 01:01
To: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] python support removal
On Wednesday 31 October 2007 20:49:30 Michael Short wrote:
> I plan to make use of this feature within the next few months...
>
> This is really disturbing news.
>
> -Michael
>
>
Hi,
31.10.2007 18:28,, Rich wrote::
> see
> http://bugs.bacula.org/view.php?id=998
>
> "After version 2.2.x Python will no longer be support -- there are an
> insufficient number of users."
Oops... I missed that. Thanks for bringing it to my attention!
> which kinda worries me a bit.
> what ab
On Wednesday 31 October 2007 20:49:30 Michael Short wrote:
> I plan to make use of this feature within the next few months...
>
> This is really disturbing news.
>
> -Michael
>
> On Oct 31, 2007 12:28 PM, Rich <[EMAIL PROTECTED]> wrote:
> > see
> > http://bugs.bacula.org/view.php?id=998
> >
> > "Af
I plan to make use of this feature within the next few months...
This is really disturbing news.
-Michael
On Oct 31, 2007 12:28 PM, Rich <[EMAIL PROTECTED]> wrote:
> see
> http://bugs.bacula.org/view.php?id=998
>
> "After version 2.2.x Python will no longer be support -- there are an
> insuffici
see
http://bugs.bacula.org/view.php?id=998
"After version 2.2.x Python will no longer be support -- there are an
insufficient number of users."
which kinda worries me a bit.
what about "Label Format" directive ? if python was supposed to replace
it, but is being removed itself... will this dire
On 2007.10.29. 23:38, Arno Lehmann wrote:
...
>>> import datetime
>> and this is where it breaks.
>> just adding that line to the script prevents director from starting at all :
>>
>> Fatal Python error: Interpreter not initialized (version mismatch?)
>
> That looks like a python problem... or som
Hi,
29.10.2007 18:09,, Rich wrote::
> On 2007.10.27. 17:27, Arno Lehmann wrote:
> ...
>>> 2. if "Scripts Directory" is specified in director configuration file,
>>> director can't be stopped with ctrl+c, when run in foreground;
>> I don't know if this qualifies as a bug - because, in normal
>> c
On 2007.10.29. 19:09, Rich wrote:
...
>> import datetime
>
> and this is where it breaks.
> just adding that line to the script prevents director from starting at all :
>
> Fatal Python error: Interpreter not initialized (version mismatch?)
> Kaboom! bacula-dir, backup_1-dir got signal 6 - IOT tr
On 2007.10.27. 17:27, Arno Lehmann wrote:
...
>> 2. if "Scripts Directory" is specified in director configuration file,
>> director can't be stopped with ctrl+c, when run in foreground;
>
> I don't know if this qualifies as a bug - because, in normal
> circumstances, you should only run the DIR
Hi,
26.10.2007 16:56,, Rich wrote::
> On 2007.10.26. 14:04, Rich wrote:
>> i've recompiled bacula 2.2.5 with python. configure output claims it is
>> enabled :
>> Python support: yes
>>
>> but even starting director with -f -d90 doesn't produce any messages -
>> manual claims that a
On 2007.10.26. 14:04, Rich wrote:
> i've recompiled bacula 2.2.5 with python. configure output claims it is
> enabled :
> Python support: yes
>
> but even starting director with -f -d90 doesn't produce any messages -
> manual claims that a message should be printed :
>
> 09-Jun 15:1
i've recompiled bacula 2.2.5 with python. configure output claims it is
enabled :
Python support: yes
but even starting director with -f -d90 doesn't produce any messages -
manual claims that a message should be printed :
09-Jun 15:14 bacula-dir: ERROR in pythonlib.c:131 Could not i
Hello,
I've written little python file "DirStartup.py" which I configured in
"bacula-dir.conf". In runs well but sometimes bacula returns an error
during backup :
12-Dec 15:04 127.0.0.1-dir: Client1.2006-12-12_15.04.12 Error: Python
function "JobStart" not found.
The only solution is to reboo
On Thursday 31 August 2006 23:21, Santiago Alberch wrote:
> I´m editing DirStartUp.py.
> I want to write a script that can check if the
> termination job was:
>
> Termination: Backup OK -- with warnings
This occurs when the JobStatus == "T" and
(JobErrors or SDJobErrors are non-zero).
>
> I ca
I´m editing DirStartUp.py.
I want to write a script that can check if the
termination job was:
Termination: Backup OK -- with warnings
I capture this:
if job.JobStatus == "e":
job.JobReport="Non-fatal Error\n"
elif job.JobStatus == "E":
job.JobReport="Termited with erro
On 8/24/06, Joshua J. Kugler <[EMAIL PROTECTED]> wrote:
> Considering that Python 2.4 was released almost two years ago, is there a
> chance that Etch will include 2.4 before it's released, or will it be using
> 2.3?
Perhaps this would be more appropriate on a debian mailling list??
-
Considering that Python 2.4 was released almost two years ago, is there a
chance that Etch will include 2.4 before it's released, or will it be using
2.3?
Thanks!
j
--
Joshua Kugler
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp
Il giorno sab, 15/07/2006 alle 11.31 +0200, Davide Corio ha scritto:
> Hi *,
> i've installed bacula 1.38.9-10 (Debian Etch package), but it seems
> there is no python support.
> From the bacula console i'm able to restart the python interpreter, but
> i can't see any bacula module in the site-pack
Hi *,
i've installed bacula 1.38.9-10 (Debian Etch package), but it seems
there is no python support.
From the bacula console i'm able to restart the python interpreter, but
i can't see any bacula module in the site-packages.
is it a problem related to the debian package?
--
Davide Corio
On Tuesday 04 July 2006 11:27, le dahut wrote:
> For me it seems to be a barbarian method. I don't like text parsing
> because of the errors than can happen due to internationalization, like
> 'ifconfig' which needs 2 different parsers if it's in French or in English.
> However you can take my exam
For me it seems to be a barbarian method. I don't like text parsing
because of the errors than can happen due to internationalization, like
'ifconfig' which needs 2 different parsers if it's in French or in English.
However you can take my example (which works) if you want, my messages
to mailin
On Tuesday 04 July 2006 09:22, le dahut wrote:
> Yes, I used already something like :
> """
> import commands
>
> estim = commands.getoutput('/bin/echo -e "estimate
> level=%s\n1"|/usr/sbin/bconsole -c
> /etc/bacula/bconsole.conf'%niveau).split('bytes=')
> """
>
> ;-) If it can help someone else ..
Yes, I used already something like :
"""
import commands
estim = commands.getoutput('/bin/echo -e "estimate
level=%s\n1"|/usr/sbin/bconsole -c
/etc/bacula/bconsole.conf'%niveau).split('bytes=')
"""
;-) If it can help someone else ...
K.
Kern Sibbald a écrit :
> On Monday 03 July 2006 17:09
On Monday 03 July 2006 17:09, le dahut wrote:
> Ok, everything works fine now.
>
> Another question, is it possible to get an estimation via python Scripting
If you mean can the Python script run a console "estimate" command, the answer
is: no, not directly as the only "command" that Python can r
Ok, everything works fine now.
Another question, is it possible to get an estimation via python Scripting ?
K.
Kern Sibbald a écrit :
> On Monday 03 July 2006 13:24, le dahut wrote:
>> Hello,
>>
>> Bacula 1.38.10 RPM compiled successfully with the option --with-python.
>>
>> But in a python p
On Monday 03 July 2006 13:24, le dahut wrote:
> Hello,
>
> Bacula 1.38.10 RPM compiled successfully with the option --with-python.
>
> But in a python prompt I get this :
> >>> import sys, bacula
>
> Traceback (most recent call last):
>File "", line 1, in ?
> ImportError: No module named bacul
Hello,
Bacula 1.38.10 RPM compiled successfully with the option --with-python.
But in a python prompt I get this :
>>> import sys, bacula
Traceback (most recent call last):
File "", line 1, in ?
ImportError: No module named bacula
>>>
Any idea ?
K.
Using Tomcat but need to do more? Nee
.
David Wilson
Network Security Engineer
PAETEC Communications, Inc.
-Original Message-
From: Kern Sibbald [mailto:[EMAIL PROTECTED]
Sent: Monday, June 12, 2006 3:21 PM
To: bacula-users@lists.sourceforge.net
Cc: Christoff Buch; Wilson, David
Subject: Re: [Bacula-users] Python Question
On
IL PROTECTED]
> +49.941.78004.607
>
> [EMAIL PROTECTED]
> OneVision Software AG
> Dr.-Leo-Ritter-Str. 9
> D - 93049 Regensburg
>
>
>
> Kern Sibbald <[EMAIL PROTECTED]>
> Sent by: [EMAIL PROTECTED]
> 12.06.2006 19:30
>
> To
> "Wilson, David"
CTED]
12.06.2006 19:30
To
"Wilson, David" <[EMAIL PROTECTED]>
cc
bacula-users@lists.sourceforge.net
Subject
Re: [Bacula-users] Python Question
On Monday 12 June 2006 19:03, Wilson, David wrote:
> The script that I am trying to use works fine running as root, and
f Kern
> Sibbald
> Sent: Monday, June 12, 2006 11:22 AM
> To: Wilson, David
> Cc: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] Python Question
>
> On Monday 12 June 2006 16:08, Wilson, David wrote:
> > I ran the director in a shell and this was th
.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kern
Sibbald
Sent: Monday, June 12, 2006 11:22 AM
To: Wilson, David
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Python Question
On Monday 12 June 2006 16:08, Wilson, David wrote:
>
Engineer
> PAETEC Communications, Inc.
>
> -Original Message-
> From: Kern Sibbald [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 12, 2006 9:54 AM
> To: Wilson, David
> Cc: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] Python Question
>
> On Mo
unications, Inc.
-Original Message-
From: Kern Sibbald [mailto:[EMAIL PROTECTED]
Sent: Monday, June 12, 2006 9:54 AM
To: Wilson, David
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Python Question
On Monday 12 June 2006 14:15, Wilson, David wrote:
> I just finished readi
[EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Kern
> Sibbald
> Sent: Saturday, June 10, 2006 11:16 AM
> To: bacula-users@lists.sourceforge.net
> Cc: Wilson, David
> Subject: Re: [Bacula-users] Python Question
>
> On Friday 09 June 2006 21:21, Wilson, David wrote:
> &
.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kern
Sibbald
Sent: Saturday, June 10, 2006 11:16 AM
To: bacula-users@lists.sourceforge.net
Cc: Wilson, David
Subject: Re: [Bacula-users] Python Question
On Friday 09 June 2006 21:21, Wilson, David wrote:
> Greeti
On Friday 09 June 2006 21:21, Wilson, David wrote:
> Greetings,
>
>
>
> I am working with using the python functionality of bacula and I am
> running into a problem with the DirStartUp.py script.
>
>
>
> Whenever I startup bacula, or restart the python engine I receive the
> following error:
>
>
>
Greetings,
I am working with using the python functionality of bacula
and I am running into a problem with the DirStartUp.py script.
Whenever I startup bacula, or restart the python engine I receive
the following error:
09-Jun 15:14 bkup1-roc-dir: ERROR in pythonlib.c:131 Could
69 matches
Mail list logo