[Bacula-users] How enforce Bacula to use tapes one after another?

2006-06-12 Thread Robert Wirth
Hi!

I've got two LTO-3 drives and with one autochanger device.  Backups of 
dozends of clients into several pools works well, in general.  My Bacula
version is 1.38.7.

There remains one annoying problem: 

I've defined a pool with two tapes for daily snapshot backups of 
some data of temporary interest from several clients.  
For simplicity, all snapshot jobs are defined identically. 
As a consequence, they all have the same start time.
  
The idea is, that Bacula uses the first tape, until it's full,
then continues with the second tape. 
The retention periods are choosed in a way that, when the second 
tape will be completed (Full, Used etc), all data on the first tape 
will be out of time, thus the first tape can be recycled automatically.  
And the other way round...

But, good idea -- bad conversion:

Bacula uses the tapes in an arbitrary order.  Some day, only
one tape is used.  Another day, both tapes are used.  As a 
consequence, when tape recycling is needed some day, both tapes 
will contain actual backup data.  

F.i. have a look at the actual situation (the jobs start daily at 20:05 pm,
using the same Schedule and JobDefs)


Pool: Snapshot
+-+-+-+--+-+-+
| MediaId | ... | VolBytes| VolFiles | ... | LastWritten |
+-+-+---+-+--+-+-+
|  54 | ... | 497,058,209,311 |  520 | ... | 2006-06-09 20:14:29 |
|  86 | ... | 110,145,463,630 |  115 | ... | 2006-06-09 20:19:40 |
+-+-+-+--+-+-+

You can see: Tape 54 (the first in pool) is used mostly, but not exclusively,
although the tape is still in Append state.


I can't find a hint whether/how I can Bacula instruct to use the volumes 
of a pool consecutively.  I'd expect that this would be the default 
behaviour, but, obviously, it's not.  

Is there any solution with Bacula?

Best regards,

Robert


++ German Research Center for Artificial Intelligence ++

Robert Wirth, Stuhlsatzenhausweg 3, D-66123 Saarbruecken
@office: +49-681-302-5078/5572 ++ @fax: +49-681-302-5341 
mailto:[EMAIL PROTECTED] ++ http://www.dfki.de/~wirth






___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Donation administration

2006-06-12 Thread Kern Sibbald
Hello,

As you know, for some time, Bacula has been able to accept donations. In the 
first few months (Sept - Nov 2005) we received a good number of donations 
totaling something like $600.  However, since November there have been no 
donations, with the exception of one large contribution for the migration 
project (many thanks).

These donations come into a PayPal account which was originally opened in my 
name, and now is attached to Bacula.  To facilitate future donations, and to 
move the current money out of PayPal, I am planning to open a bank account 
for Bacula (in the name Bacula) here.  

I have looked at creating a foundation and other such structures for Bacula, 
but all are complicated, expensive ($2000 - $5000 to start), and require lots 
of paper work.  Considering the rather modest amounts of money, such a 
venture would be a waste of time and cost more than the current donation 
totals.  

As an alternative, I can create an association, which here in Switzerland, is 
something I can do myself, has almost no administration, and is relatively 
simple to do.  To open a bank account, I need only a set of articles of 
association, which define the objective of the association and the persons 
who are the directors of the association.  These articles of association can 
also include any special considerations, such as restrictions, who can be 
members, ...  Certain documents for the bank account will be in French since 
that is the official language here.  However, the articles of association 
will be written in English.

I intend to create these articles of association for Bacula, which is the 
reason I am writing this email.  I can, of course, do it myself, but I would 
much rather have the participation and input of the Bacula users.

If anyone would like to help with this or participate in it, please let me 
know.  I suspect that we can create our articles of association from numerous 
examples of such documents that already exist for Open Source projects.

-- 
Best regards,

Kern

  (
  /\
  V_V


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Problem with compression

2006-06-12 Thread Andrea Soracchi
Hi,

I have a HP Dat Storage 72/36 (DDS 4) and I have installed Bacula
1.38.9 (02 May 2006).
Bacula works very well, but I have a problem with compression hardware
of my DAT.

If I check compression of my DAT with the command mt -f /dev/nst0
datcompression (after a umount command from bconsole) I get:

Compression on.

I have a Backup of 38 GB (There are various type of files (doc,xls,mpeg...) ).
When I run the Job for that backup, I must
insert two tape!!!
In the first Tape there's a 36GB, and remaining GB in the second tape.

The compression seems not to work.
How can I check if the compression is active and working during a job?

Can you help me?

Thanks.



Andrea Soracchi
Netbuilder S.r.l.






___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula docs, disaster recovery cd creation

2006-06-12 Thread Kern Sibbald
On Thursday 08 June 2006 21:35, Ian Stakenvicius wrote:
 Hi - sorry for not going through an official bacula list, but this is a
 really quick thing and i didn't seen much point in signing up for
 bacula-devel just to send it..

 Please forward this to whomever handles the documentation for Bacula..

 On the 'Disaster Recovery Using Bacula' guide
 (http://www.bacula.org/rel-manual/Disast_Recove_Using_Bacula.html#_ChapterR
escue), it mentions the following under 'Creating a Rescue CD-ROM':

 --Quote--
 * to capture the current state of the hard disks on your system, so that
 they can be easily restored from pre-generated scripts. Note, this is not
 done by any other rescue CDROM, as far as I am aware.
 -

 There is another project that's been around for what seems to be around 6
 years, called 'Make CD-ROM Recovery' that does just this, and actually has
 many of the same features listed in the primary goals of this section.  I
 used to use it quite successfully as my primary backup system a few years
 ago..

 http://mkcdrec.ota.be/

 Considering MKCDREC is definitely not in the same league as Bacula, I don't
 know if you want to drop the Note quoted above or not, but just in case you
 have not come across such a thing i thought it might be good to point it
 out.


Yes, you are right. This is the first and only CDROM that I have seen that 
attempts to do the same thing as the Bacula CDROM (build it from your current 
system; write scripts to repartition and reformat your harddisk if you wish).

In many ways, what the author has done is much more complete than what the 
Bacula CDROM has. At the same time, there are a good number of things that I 
would change (e.g. he has so much print output during building the CDROM 
image that it is totally impossible to know if there were any errors or 
warning; he overrides my choice of colors in the shell window making it 
almost impossible for *me* to read some of the output, ...).  I'm not 
criticizing his work, on the contrary, it is very clean and in many respects 
much better than the Bacula code.  

I'm going to contact the author to see if we could have some kind of working 
relationship ...

Thanks for the pointer.

-- 
Best regards,

Kern

  (
  /\
  V_V


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem with compression

2006-06-12 Thread John Gerritse
Andrea,

Do you have software compression on? If so, turn it off. Two types of 
compression (eg software and hardware) are inefficient. Other then that, 
I have no idea.

Kind regards,

  John Gerritse

  (linux) Systeembeheer
  ICT Services
  Sogeti Nederland B.V.

  W: http://www.sogeti.nl

  ''~``
 ( o o )
+--.oooO--(_)--Oooo.--+
|   This email was brought to you by LINUX|
|.oooO|
|(   )   Oooo.|
+-\ ((   )+
\_)) /
  (_/
We don't make mistakes, just happy little accidents.




Andrea Soracchi wrote:
 Hi,
 
 I have a HP Dat Storage 72/36 (DDS 4) and I have installed Bacula
 1.38.9 (02 May 2006).
 Bacula works very well, but I have a problem with compression hardware
 of my DAT.
 
 If I check compression of my DAT with the command mt -f /dev/nst0
 datcompression (after a umount command from bconsole) I get:
 
 Compression on.
 
 I have a Backup of 38 GB (There are various type of files (doc,xls,mpeg...) ).
 When I run the Job for that backup, I must
 insert two tape!!!
 In the first Tape there's a 36GB, and remaining GB in the second tape.
 
 The compression seems not to work.
 How can I check if the compression is active and working during a job?
 
 Can you help me?
 
 Thanks.
 
 
 
 Andrea Soracchi
 Netbuilder S.r.l.
 
 
 
 
 
 
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users


Disclaimer:
This message contains information that may be privileged or confidential and is 
the property of Sogeti Nederland B.V. or its Group members. It is intended only 
for the person to whom it is addressed. If you are not the intended recipient, 
you are not authorized to read, print, retain, copy, disseminate, distribute, 
or use this message or any part thereof. If you receive this message in error, 
please notify the sender immediately and delete all copies of this message.



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How enforce Bacula to use tapes one after another?

2006-06-12 Thread Arno Lehmann
Hi,

On 6/12/2006 10:40 AM, Robert Wirth wrote:
 Hi!
 
 I've got two LTO-3 drives and with one autochanger device.  Backups of 
 dozends of clients into several pools works well, in general.  My Bacula
 version is 1.38.7.
 
 There remains one annoying problem: 
 
 I've defined a pool with two tapes for daily snapshot backups of 
 some data of temporary interest from several clients.  
 For simplicity, all snapshot jobs are defined identically. 
 As a consequence, they all have the same start time.
   
 The idea is, that Bacula uses the first tape, until it's full,
 then continues with the second tape. 
 The retention periods are choosed in a way that, when the second 
 tape will be completed (Full, Used etc), all data on the first tape 
 will be out of time, thus the first tape can be recycled automatically.  
 And the other way round...
 
 But, good idea -- bad conversion:
 
 Bacula uses the tapes in an arbitrary order.  Some day, only
 one tape is used.  Another day, both tapes are used.  As a 
 consequence, when tape recycling is needed some day, both tapes 
 will contain actual backup data.  

Difficult question. Prefer Mounted Volumes might be one way to solve 
that, but I suppose you already use that setting (as it's the default).

The way I'd try to solve this is by using (at least) one more volume 
than you have drives that could mount that type of media.

Of course you might also try setting different Media Types for the 
drives but that will make the normal setup much more complicated.

Finally, it might be worth a try to select one distinct drive for these 
backups but I don't know if this works with normal autochanger operations.

Arno


 F.i. have a look at the actual situation (the jobs start daily at 20:05 pm,
 using the same Schedule and JobDefs)
 
 
 Pool: Snapshot
 +-+-+-+--+-+-+
 | MediaId | ... | VolBytes| VolFiles | ... | LastWritten |
 +-+-+---+-+--+-+-+
 |  54 | ... | 497,058,209,311 |  520 | ... | 2006-06-09 20:14:29 |
 |  86 | ... | 110,145,463,630 |  115 | ... | 2006-06-09 20:19:40 |
 +-+-+-+--+-+-+
 
 You can see: Tape 54 (the first in pool) is used mostly, but not exclusively,
 although the tape is still in Append state.
 
 
 I can't find a hint whether/how I can Bacula instruct to use the volumes 
 of a pool consecutively.  I'd expect that this would be the default 
 behaviour, but, obviously, it's not.  
 
 Is there any solution with Bacula?
 
 Best regards,
 
   Robert
 
 
 ++ German Research Center for Artificial Intelligence ++
 
 Robert Wirth, Stuhlsatzenhausweg 3, D-66123 Saarbruecken
 @office: +49-681-302-5078/5572 ++ @fax: +49-681-302-5341 
 mailto:[EMAIL PROTECTED] ++ http://www.dfki.de/~wirth
 
 
 
 
 
 
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 

-- 
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How enforce Bacula to use tapes one after another?

2006-06-12 Thread Kern Sibbald
On Monday 12 June 2006 10:40, Robert Wirth wrote:
 Hi!

 I've got two LTO-3 drives and with one autochanger device.  Backups of
 dozends of clients into several pools works well, in general.  My Bacula
 version is 1.38.7.

 There remains one annoying problem:

 I've defined a pool with two tapes for daily snapshot backups of
 some data of temporary interest from several clients.
 For simplicity, all snapshot jobs are defined identically.
 As a consequence, they all have the same start time.

 The idea is, that Bacula uses the first tape, until it's full,
 then continues with the second tape.
 The retention periods are choosed in a way that, when the second
 tape will be completed (Full, Used etc), all data on the first tape
 will be out of time, thus the first tape can be recycled automatically.
 And the other way round...

 But, good idea -- bad conversion:

 Bacula uses the tapes in an arbitrary order.  

I don't think that the above is true.  See below.

 Some day, only one tape is used.  Another day, both tapes are used.  

Well, you have not shown this, and depending how many jobs you run,  and what 
tape is currently in the drive, this could be perfectly normal.

 As a 
 consequence, when tape recycling is needed some day, both tapes
 will contain actual backup data.

 F.i. have a look at the actual situation (the jobs start daily at 20:05 pm,
 using the same Schedule and JobDefs)


 Pool: Snapshot
 +-+-+-+--+-+-+

 | MediaId | ... | VolBytes| VolFiles | ... | LastWritten |

 +-+-+---+-+--+-+-+

 |  54 | ... | 497,058,209,311 |  520 | ... | 2006-06-09 20:14:29 |
 |  86 | ... | 110,145,463,630 |  115 | ... | 2006-06-09 20:19:40 |

 +-+-+-+--+-+-+

 You can see: Tape 54 (the first in pool) is used mostly, but not
 exclusively, although the tape is still in Append state.


 I can't find a hint whether/how I can Bacula instruct to use the volumes
 of a pool consecutively.  I'd expect that this would be the default
 behaviour, but, obviously, it's not.

I think the basic problem is that there is really no definition of 
consecutive.  I suspect that by consecutive, you mean in the order that you 
see the volume list printed, but that order is in general totally arbitrary 
and depends a bit on the whims of the underlying database engine and what 
method of indexing you choose.

The whole issue starts to become emensely complicated if you consider that a 
volume can be moved from one pool to another, and that when a Volume is 
renamed (if I am not mistaken), the old volume record is deleted and a new 
one is created.

Basing consecutiveness on MediaId will not work very well as the SQL gurus 
can confirm since the MediaIds are not guaranteed to be consecutive.  In 
fact, if you ever delete any volumes, in most SQL engines (e.g. like MySQL), 
the next volume created will take on the lowest free MediaId.


 Is there any solution with Bacula?

I don't think there exists any current solution because you have not precisely 
defined the problem.

Bacula does have a very well defined algorithm (though quite complex depending 
on the circumstances such as what volumes are currently in use) for 
determining what the next volume will be.  It is possible that this algorithm 
can be improved, refined, or even made more predictable, but IMO any attempt 
to guess or to know what the next volume to be used is destined to fail 
at some point.

I suggest you rethink what you are doing and try to find a way to let Bacula 
manage the volumes.  If you want to do it yourself, you can, but as the 
manual states, I provide the means to do it, but it probably won't be easy.

-- 
Best regards,

Kern

  (
  /\
  V_V


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How enforce Bacula to use tapes one after another?

2006-06-12 Thread Jo
Kern Sibbald wrote:
 Basing consecutiveness on MediaId will not work very well as the SQL gurus 
 can confirm since the MediaIds are not guaranteed to be consecutive.  In 
 fact, if you ever delete any volumes, in most SQL engines (e.g. like MySQL), 
 the next volume created will take on the lowest free MediaId.
   
I'm pretty sure that the normal way of working for an SQL engine is to 
always use a higher number when creating new records. That's how the 
serial type in PostgreSQL works. I don't think an RDBMS tries to 
'recycle' primary keys. This might have very nasty side effects when 
there would still be some foreign keys point to that primary key. Of 
course, I don't know if this MediaID is in fact a primary key.

Kind regards,

Jo


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem with compression

2006-06-12 Thread Martin Simmons
 On Mon, 12 Jun 2006 11:29:27 +0200, Andrea Soracchi [EMAIL PROTECTED] 
 said:
 
 Hi,
 
 I have a HP Dat Storage 72/36 (DDS 4) and I have installed Bacula
 1.38.9 (02 May 2006).
 Bacula works very well, but I have a problem with compression hardware
 of my DAT.
 
 If I check compression of my DAT with the command mt -f /dev/nst0
 datcompression (after a umount command from bconsole) I get:
 
 Compression on.
 
 I have a Backup of 38 GB (There are various type of files (doc,xls,mpeg...) ).
 When I run the Job for that backup, I must
 insert two tape!!!
 In the first Tape there's a 36GB, and remaining GB in the second tape.
 
 The compression seems not to work.
 How can I check if the compression is active and working during a job?
 
 Can you help me?

How many GB of mpegs (or other multimedia files)?  The hardware cannot
compress these files (in fact DDS 4 hardware compression will probably make
them larger).

__Martin


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How enforce Bacula to use tapes one after another?

2006-06-12 Thread Robert Wirth
 I'm pretty sure that the normal way of working for an SQL engine is to 
 always use a higher number when creating new records. That's how the 
 serial type in PostgreSQL works. I don't think an RDBMS tries to 

My experience is the same with MySQL:  MediaIDs of deleted volumes aren't
reused.  A new volume gets a MediaID higher than the highest one ever used.

Regards,

Robert


Robert Wirth, Stuhlsatzenhausweg 3, D-66123 Saarbruecken
@office: +49-681-302-5078/5572 ++ @fax: +49-681-302-5341 
mailto:[EMAIL PROTECTED] ++ http://www.dfki.de/~wirth





___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Expanding the Job database table entry + manual license

2006-06-12 Thread Christoph Haas
On Sat, May 27, 2006 at 10:31:42AM +0200, Kern Sibbald wrote:
 3. Currently the manual is licensed under a somewhat restrictive license
 that does not permit commercial reproduction of the manual without
 explicit authorization. This means that the manual does not mean the
 definition of Free Software.  My idea in keeping the license commercially
 restricted was so that someone could possibly publish the manual (or use
 it as the basis of something to be published) and that a part of the
 revenues would revert to the project.
 
 However, I am now convinced that there is little chance that someone would
 want to publish the manual without working with us and that it is better
 to change the license to GPL version 2.  There are, of course, all sorts
 of other open source licenses, but given that the source is GPL v2, this
 is the logical license for the manual as well.
 
 Comments?

Thanks for reconsidering. This will allow the documentation to be
shipped with Debian again.

Kindly
 Christoph



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Windows NT Error: ERR=Access is denied

2006-06-12 Thread jimbox
bacula client version 1.38
windows NT 4.0 SBS 4.5

fyi: i was persistently (and inconsistently across directories)
getting the error ERR=Access is denied while backing up this client.

i couldnt find any online info addressing this.  i eventually deducted
the problem to be subtrees that did not have at least read permissions
for the local NT user System were unreadable by the bacula client.

just sharing my findings so others might benefit.

jimbox.


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Netware File Trusstee

2006-06-12 Thread Heitor Faria
Hi folks,

I´m already able to do netware backup thru NCPFS protocol (mounting the 
volumes in a linux server).
However, there is a problem: the backuped files don´t keep their trustees!! 
(novell permissions).
Anyone can solve the problem?

Best Regards,

Heitor Faria
Brazil - SERPRO




___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Resume interrupted jobs

2006-06-12 Thread Cassiano Pilipavicius
We are testing Bacula to see if it is possible to use it as a software for 
backups of an application thats uses Oracle as its database.
We are planning to make full backup of the database off line every night.
But, during all days, we are planning to make backup of the log files, for 
example, each 30 minutes.
If any problem occurs with the database, we must restore the database from 
the backup tape of an especific date and then aplly all the log files since 
the same date.
But if any problem occurs with the server that is running Bacula and we have 
to re-start the server we cannot loose the backups of the log files.
For example, today is wednesday, May 24th and we have to recover the 
database since last friday, May 19th.
And on monday, May 22th we had to re-start the server that runs Bacula.
As we understood, we are going to loose all the sequence of the backups of 
the log files and we will not be able to recover tha database.

independent of the reason why he have to restart the bacula server, does 
anybody knows if have a way to resume a interrupted job?



- Original Message - 
From: Alan Brown [EMAIL PROTECTED]
To: Cassiano Pilipavicius [EMAIL PROTECTED]
Cc: bacula-users@lists.sourceforge.net; Aírton - Lifemed 
[EMAIL PROTECTED]; Ricardo Takeshi [EMAIL PROTECTED]
Sent: Wednesday, May 24, 2006 12:37 PM
Subject: Re: [Bacula-users] Resume interrupted jobs


 On Wed, 24 May 2006, Cassiano Pilipavicius wrote:

 Sometimes the tape get locked in the device.

 Why? Is something holding it active?

 And we need to reboot the backup server to eject the tape.

 Why? Almost every tape drive has some magic code to force an eject.
 (Try pressing the eject button 8 times or for 8 seconds)

 And we also have power fails in our office sometimes.

 If the power is unreliable, UPSes are cheap insurance.

 We are not using bacula in fact, just testing, so we didn't know how 
 often this will happen.

 The answer to that is always at the most inconvenient possible moment

 Power in the UK countryside is quite unreliable and we would never 
 complete backups without use of large UPS units keeping all the servers 
 running.

 AB


 



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Resume interrupted jobs

2006-06-12 Thread Cassiano Pilipavicius
We are testing Bacula to see if it is possible to use it as a software for 
backups of an application thats uses Oracle as its database.
We are planning to make full backup of the database off line every night.
But, during all days, we are planning to make backup of the log files, for 
example, each 30 minutes.
If any problem occurs with the database, we must restore the database from 
the backup tape of an especific date and then aplly all the log files since 
the same date.
But if any problem occurs with the server that is running Bacula and we have 
to re-start the server we cannot loose the backups of the log files.
For example, today is wednesday, May 24th and we have to recover the 
database since last friday, May 19th.
And on monday, May 22th we had to re-start the server that runs Bacula.
As we understood, we are going to loose all the sequence of the backups of 
the log files and we will not be able to recover tha database.

independent of the reason why he have to restart the bacula server, does 
anybody knows if have a way to resume a interrupted job?



- Original Message - 
From: Alan Brown [EMAIL PROTECTED]
To: Cassiano Pilipavicius [EMAIL PROTECTED]
Cc: bacula-users@lists.sourceforge.net; Aírton - Lifemed 
[EMAIL PROTECTED]; Ricardo Takeshi [EMAIL PROTECTED]
Sent: Wednesday, May 24, 2006 12:37 PM
Subject: Re: [Bacula-users] Resume interrupted jobs


 On Wed, 24 May 2006, Cassiano Pilipavicius wrote:

 Sometimes the tape get locked in the device.

 Why? Is something holding it active?

 And we need to reboot the backup server to eject the tape.

 Why? Almost every tape drive has some magic code to force an eject.
 (Try pressing the eject button 8 times or for 8 seconds)

 And we also have power fails in our office sometimes.

 If the power is unreliable, UPSes are cheap insurance.

 We are not using bacula in fact, just testing, so we didn't know how 
 often this will happen.

 The answer to that is always at the most inconvenient possible moment

 Power in the UK countryside is quite unreliable and we would never 
 complete backups without use of large UPS units keeping all the servers 
 running.

 AB


 



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] rerunning deleted full backup

2006-06-12 Thread Chris Crowther
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Silver Salonen wrote:

 I just accidentally deleted the monthly full backup made last night (and 
 realized the mistake afterwards). Is there a way to upgrade the tonight's 
 incremental to full again?

You can automaticly re-run failed levels again.  If it succesfully
ran the backup and then you manually deleted it I'm guessing you'll
have to manually run the full backup yourself; just run the job from
the console and modify the parameters before telling it it's OK to run.

- --
Chris Crowther
Developer
JM Crowther Ltd.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEg/BIz8bl0gyT/hERAriQAJ0cdVN+C9n8XAkyxEFQlnK87/4PCQCdEXMH
wZSJmVMh/hi3z36TAmqoymE=
=6axq
-END PGP SIGNATURE-
begin:vcard
fn:Chris Crowther
n:Crowther;Chris
org:JM Crowther Ltd
adr:;;23 Longship Way;Maldon;Essex;CM9 6UG;UK
email;internet:[EMAIL PROTECTED]
title:Developer
tel;work:+44 (0)1621 850295 / +44 (0)845 8900997
tel;fax:+44 (0)1621 850300
tel;home:+44 (0)1621 857034
tel;cell:+44 (0)7803 168740
x-mozilla-html:FALSE
url:http://www.jm-crowther.co.uk/
version:2.1
end:vcard

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] can't install properly on suse 9.0

2006-06-12 Thread veronica . hill

Hi people!

I have one problem on Suse.  I have satisfied all the dependencies using rpm's 
and am now trying to install using rpm's from the bacula sourceforge site.  But 
this is what happens when I try to install the 
bacula-mysql-1.38.9-1.su92.i586.rpm

:~/RPM/bacula # rpm -Uvh --force bacula-mysql-1.38.9-1.su92.i586.rpm
  
warning: bacula-mysql-1.38.9-1.su92.i586.rpm: V3 DSA signature: NOKEY, key ID 
10a792ad
error: Failed dependencies:
libmysqlclient_r.so.12 is needed by bacula-mysql-1.38.9-1

But I have already installed mysql-shared wich provides that lib:

:~/RPM/bacula # find / -name libmysqlclient_r.so.12
find: /media/dvd: No medium found
find: /media/floppy: No medium found
/usr/lib64/libmysqlclient_r.so.12


OS: Suse 9.0 x86_64


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] replication/migration strategy for multiple bacula servers

2006-06-12 Thread mark








Hello, all!

Ive got 2 bacula servers, one of which is a primary
box doing all the backing-up and the other is supposed to be an exact copy of
the first one (its located in a hot site facility far away).
As a part of the disaster recovery plan, I would like to make sure that the
second box always have a more or less (+/-30 min old) replica of the data on
the first box so that I can cut over to it once the disaster strikes.



What is the most proper way of doing this in Bacula world? Or
should be I be using rsync and friends instead? 



Kern mentioned migration jobs in one of his previous
responses to someone. Could that be the answer and if yes, is this feature
already available?



Thank you in advance.



Best Regards,

 Mark Gimelfarb.








___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Using Multiple Disks

2006-06-12 Thread Baptiste Malguy
In the documentation, it's advised to use different Media Type values for each 
device
(File1, File2, ...). From what I understand, if you don't, you might meet some 
problems
where the Director will try to access, for example, to Device SD_FULL to write 
your
incremental volumes.

This will lead to some errors. I got one this week actually, doing the same as 
you,
migrating from one disk device, to two disk devices, forgetting to set the 
correct spool
in one of the Job resource definitions.

The errors was the following (it took me some time to figure out what was 
wrong):

05-Jun 03:26 backup-dir: Start Backup JobId 2964, 
Job=catalog.2006-06-05_01.15.01
05-Jun 03:26 backup-sd: Volume FILE_DAY_0004 previously written, moving to 
end of data.
05-Jun 03:30 backup-dir: catalog.2006-06-05_01.15.01 Fatal error: Volume Files 
at 1 being set to 0 for Volume FILE_DAY_0004. This is incorrect.
05-Jun 03:30 backup-sd: catalog.2006-06-05_01.15.01 Fatal error: Error getting 
Volume info: 1992 Update Media error. VolFiles=0, CatFiles=1
05-Jun 03:30 prophecy-fd: catalog.2006-06-05_01.15.01 Fatal error: Bad status 
102 returned from Storage Daemon.
05-Jun 03:30 backup-dir: catalog.2006-06-05_01.15.01 Error: Bacula 1.38.3 
(04Jan06): 05-Jun-2006 03:30:26

Volume file FILE_DAY_0004 was and had to be in one spool, but the above job 
tried to
access it in the other pool, which lead to this error. However FILE_DAY_0004 
was created
and filed in the bad spool directory, and I had to remove and hope nothing is 
wrong in the
database.

Scott Ruckh wrote:
 Device {
 Name = SD_FULL
 Media Type = File
 Archive Device = /BACKUPS/Full
 LabelMedia = yes;   # lets Bacula label unlabeled media
 Random Access = Yes;
 AutomaticMount = yes;   # when device opened, read it
 RemovableMedia = no;
 AlwaysOpen = no;
 }

 Device {
 Name = SD_INCR
 Media Type = File
 Archive Device = /BACKUPS/Incremental
 LabelMedia = yes;   # lets Bacula label unlabeled media
 Random Access = Yes;
 AutomaticMount = yes;   # when device opened, read it
 RemovableMedia = no;
 AlwaysOpen = no;
 }



-- 
Baptiste MALGUY - IT Engineer   SOLSOFT
PGP Fingerprint: 2A90 B6D1 855F 1584 FE68  94AC CCD6 36D0 3DC7 DCB8
www.solsoft.com - phone: +33 1 47 15 04 00 - fax: +33 1 47 15 55 09
 How secure networks are managed.



signature.asc
Description: OpenPGP digital signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Re-Run Missed Levels with split storage...

2006-06-12 Thread Chris Crowther
Hi All,

I seem to have run across a problem when storing Full and
Differential backups on tape and Incrementals on disk, when combined
with re-running missed levels.

If Bacula upgrades the job to either Full or Differential from an
Incremental, because of a missed job, it tries to use the wrong
storage device, ie it uses the File one that it would have been
using for the Incremental job.

It does change the Pool to the correct one, probably because I've
told the Job which Pools are used for Full and Differential.  On a
normal scheduled backup, without any problems, the storage is
overriden within the Schedule (multiple jobs use the tape library
for their Full and Differentials, but there's several Pools, so I
set which Pool a job should be using in the Job then just modify the
storage in the schedule).

Is it the case that you can't combine the two; or if you do you have
to put up with a Full backup going to where an Incremental would?

-- 
Chris Crowther
Developer
JM Crowther Ltd.

begin:vcard
fn:Chris Crowther
n:Crowther;Chris
org:JM Crowther Ltd
adr:;;23 Longship Way;Maldon;Essex;CM9 6UG;UK
email;internet:[EMAIL PROTECTED]
title:Developer
tel;work:+44 (0)1621 850295 / +44 (0)845 8900997
tel;fax:+44 (0)1621 850300
tel;home:+44 (0)1621 857034
tel;cell:+44 (0)7803 168740
x-mozilla-html:FALSE
url:http://www.jm-crowther.co.uk/
version:2.1
end:vcard

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] what user should be use to start bacula?

2006-06-12 Thread Joseph
Hi i have a bacula 1.36.3 installed in my Debian linux server for testing.
but i found i can't start the bacula-dir daemon by the script in /etc/init.d
but when i start it manually like /usr/local/bacula/bacula-dir
/etc/bacula/bacula-dir.conf it works. only the diractor has sunch problem.
i had check the permission of the program and configuration files, all should be
fine, and in the init script, it use user=nobody and group=nobody to start all
daemons.
i wonder it would be a problem.
pls. help!!
thanks!!
Joseph



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] update slots fails

2006-06-12 Thread Thomas Sturm
Linux bacula 2.4.25_pre7-gss-r3 #8 Mo Mär 7 09:53:29 CET 2005 i686 Intel(R)
Pentium(R) 4 CPU 1.80GHz GenuineIntel GNU/Linux
1000 OK: bacula-dir Version: 1.38.9 (02 May 2006)

Hello list,
my problem is that the first *update slots=8 scan storage=Autoloader does 
not work (the second always does!)

*update slots=8 scan storage=Autoloader

07-Jun 09:30 bacula-dir: RunBefore: Connecting to Director 
backup.intra.melle.de:9101
07-Jun 09:30 bacula-dir: RunBefore: 1000 OK: bacula-dir Version: 1.38.9 (02 
May 2006)
07-Jun 09:30 bacula-dir: RunBefore: Enter a period to cancel a command.
07-Jun 09:30 bacula-dir: RunBefore: update slots=8 scan storage=Autoloader
07-Jun 09:30 bacula-dir: RunBefore: Using default Catalog name=MyCatalog 
DB=bacula
07-Jun 09:30 bacula-dir: RunBefore: Connecting to Storage daemon Autoloader at 
backup.intra.melle.de:9103 ...
07-Jun 09:30 bacula-dir: RunBefore: 3306 Issuing autochanger slots command.
07-Jun 09:30 bacula-dir: RunBefore: Device VS160 has 0 slots.
07-Jun 09:30 bacula-dir: RunBefore: No slots in changer to scan.

*update slots=8 scan storage=Autoloader

07-Jun 09:30 bacula-dir: RunBefore: update slots=8 scan storage=Autoloader
07-Jun 09:30 bacula-dir: RunBefore: Connecting to Storage daemon Autoloader at 
backup.intra.melle.de:9103 ...
07-Jun 09:30 bacula-dir: RunBefore: 3306 Issuing autochanger slots command.
07-Jun 09:30 bacula-dir: RunBefore: Device VS160 has 8 slots.
07-Jun 09:30 bacula-dir: RunBefore: Connecting to Storage daemon Autoloader at 
backup.intra.melle.de:9103 ...
07-Jun 09:30 bacula-dir: RunBefore: 3301 Issuing autochanger loaded drive 0 
command.
07-Jun 09:30 bacula-dir: RunBefore: 3302 Autochanger loaded drive 0, result: 
nothing loaded.
07-Jun 09:30 bacula-dir: RunBefore: 3306 Issuing autochanger list command.
07-Jun 09:30 bacula-dir: RunBefore: Connecting to Storage daemon Autoloader at 
backup.intra.melle.de:9103 ...
07-Jun 09:30 bacula-dir: RunBefore: 3301 Issuing autochanger loaded drive 0 
command.
07-Jun 09:30 bacula-dir: RunBefore: 3302 Autochanger loaded drive 0, result: 
nothing loaded.
07-Jun 09:30 bacula-dir: RunBefore: 3304 Issuing autochanger load slot 8, 
drive 0 command.
07-Jun 09:31 bacula-dir: RunBefore: 3305 Autochanger load slot 8, drive 0, 
status is OK.
07-Jun 09:31 bacula-dir: RunBefore: 3301 Issuing autochanger loaded drive 0 
command.
07-Jun 09:31 bacula-dir: RunBefore: 3302 Autochanger loaded drive 0, result 
is Slot 8.
07-Jun 09:31 bacula-dir: RunBefore: 3001 Volume=Mi_1-s8 Slot=8
07-Jun 09:31 bacula-dir: RunBefore: Catalog record for Volume Mi_1-s8 
updated to reference slot 8.

Best regards
Thomas

---


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


-- 
Mit freundlichen Grüßen

Melle Service GmbH
i.A.  Thomas Sturm

eMail:   [EMAIL PROTECTED]
Telefon: 05522 967-160
Fax: 05522 967-149



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows NT Error: ERR=Access is denied

2006-06-12 Thread Alan Brown
On Mon, 29 May 2006, jimbox wrote:

 bacula client version 1.38
 windows NT 4.0 SBS 4.5

 fyi: i was persistently (and inconsistently across directories)
 getting the error ERR=Access is denied while backing up this client.

 i couldnt find any online info addressing this.  i eventually deducted
 the problem to be subtrees that did not have at least read permissions
 for the local NT user System were unreadable by the bacula client.

What user is the Bacula client running as?

There is a backup ID which is supposed to be able to traverse almost 
everywhere.

AB



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Python Question

2006-06-12 Thread Wilson, David
I just finished reading through the dev manual and I checked to make
sure that the following is true:

1. The director can write to the directory, and is creating a
DirStartUp.pyc file.
2. Any functions I do not want have been removed, or the noop=1 has been
placed within the event.

Is there any way to get more detail other than the error messages I am
seeing?  Seeing I cannot run the file from the command line to see if it
is syntax problem, it would be nice to find out why bacula cannot use
the file.

Thanks,

David Wilson
Network Security Engineer
PAETEC Communications, Inc.

-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:
 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 not import
 Python script /etc/bacula/scripts/DirStartUp. Python disabled.



 When I attempt to run the script manually I receive:

 Traceback (most recent call last):

   File DirStartUp.py, line 6, in ?

 import sys, bacula, time

 ImportError: No module named bacula



 I did compile bacula with -with-python and I received no errors while
 installing in.



 Any ideas??

Please see the Python chapter of the development manual -- in particular
the 
Python Configuration section. I have added several paragraphs that
explain 
this problem.

http://www.bacula.org/dev-manual/Python_Scripting.html




 David Wilson
 Network Security Engineer
 PAETEC Communications, Inc.

-- 
Best regards,

Kern

  (
  /\
  V_V


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How enforce Bacula to use tapes one after another?

2006-06-12 Thread Kern Sibbald
On Monday 12 June 2006 12:10, Jo wrote:
 Kern Sibbald wrote:
  Basing consecutiveness on MediaId will not work very well as the SQL
  gurus can confirm since the MediaIds are not guaranteed to be
  consecutive.  In fact, if you ever delete any volumes, in most SQL
  engines (e.g. like MySQL), the next volume created will take on the
  lowest free MediaId.

 I'm pretty sure that the normal way of working for an SQL engine is to
 always use a higher number when creating new records. That's how the
 serial type in PostgreSQL works. I don't think an RDBMS tries to
 'recycle' primary keys. This might have very nasty side effects when
 there would still be some foreign keys point to that primary key. Of
 course, I don't know if this MediaID is in fact a primary key.

Using the next higher key number may be how PostgreSQL does it, but I would 
hesitate to call this the normal way of working since there are probably 
many more MySQL installations, and I can assure you that MySQL has no problem 
reassigning a previously used ID at least when using the MyISAM indexes as I 
am.  

In any case, what is normal is not very important.  What counts is that you 
can never be 100% sure how the ID will be assigned since it is up to the DB 
to decide, and to the best of my knowledge there is no external standard that 
requires anything one way or another.


-- 
Best regards,

Kern

  (
  /\
  V_V


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re-Run Missed Levels with split storage...

2006-06-12 Thread Arno Lehmann
Hi,

On 6/8/2006 10:08 AM, Chris Crowther wrote:
 Hi All,
 
 I seem to have run across a problem when storing Full and
 Differential backups on tape and Incrementals on disk, when combined
 with re-running missed levels.

Ah yes. I knew what you was aiming at at this point :-(

 If Bacula upgrades the job to either Full or Differential from an
 Incremental, because of a missed job, it tries to use the wrong
 storage device, ie it uses the File one that it would have been
 using for the Incremental job.
 
 It does change the Pool to the correct one, probably because I've
 told the Job which Pools are used for Full and Differential.  On a
 normal scheduled backup, without any problems, the storage is
 overriden within the Schedule (multiple jobs use the tape library
 for their Full and Differentials, but there's several Pools, so I
 set which Pool a job should be using in the Job then just modify the
 storage in the schedule).
 
 Is it the case that you can't combine the two; or if you do you have
 to put up with a Full backup going to where an Incremental would?

Yes and yes ;-)

Depending on what you want.

Admittedly, the best solution would be 'Full Backup Storage=', 
'Differential Backup storage=' and 'Incremental Backup Storage=' 
directives in the job resource.

In the long term, I'd like to see the ability to change the job setup 
dynamically using python events.

As of now, I decided to go the manual way: I create volumes manually (I 
don't use file storage) and, when a job level is automatically elevated, 
I usually notice the stuck backup job in reasonable time and manually 
cancel that job and re-run the job with the necessary settings by hand.

I wouldn't do this at customer sites, though, where there's noone around 
who could handle that.

Arno

 
 
 
 
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How enforce Bacula to use tapes one after another?

2006-06-12 Thread Jo
Kern Sibbald wrote:
 On Monday 12 June 2006 12:10, Jo wrote:
   
 Kern Sibbald wrote:
 
 Basing consecutiveness on MediaId will not work very well as the SQL
 gurus can confirm since the MediaIds are not guaranteed to be
 consecutive.  In fact, if you ever delete any volumes, in most SQL
 engines (e.g. like MySQL), the next volume created will take on the
 lowest free MediaId.
   
 I'm pretty sure that the normal way of working for an SQL engine is to
 always use a higher number when creating new records. That's how the
 serial type in PostgreSQL works. I don't think an RDBMS tries to
 'recycle' primary keys. This might have very nasty side effects when
 there would still be some foreign keys point to that primary key. Of
 course, I don't know if this MediaID is in fact a primary key.
 

 Using the next higher key number may be how PostgreSQL does it, but I would 
 hesitate to call this the normal way of working since there are probably 
 many more MySQL installations, and I can assure you that MySQL has no problem 
 reassigning a previously used ID at least when using the MyISAM indexes as I 
 am.  

 In any case, what is normal is not very important.  What counts is that you 
 can never be 100% sure how the ID will be assigned since it is up to the DB 
 to decide, and to the best of my knowledge there is no external standard that 
 requires anything one way or another.
   
Hi Kern,

You are right, it's not a good idea to base a decision on something 
Bacula doesn't have control over. A DB could come up with a number at 
random, check if it has not been used yet and use that, but usually it's 
more efficient to go through them sequentially.

Kind regards,

Jo


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Client console restrictions

2006-06-12 Thread Kern Sibbald
On Monday 12 June 2006 13:09, David Rodriguez Demelos wrote:
 I'm a new bacula user and I have a little problem with client console.
 I have configured the client console restrictions in bacula-dir.conf like
 this:

 ...

 Console {
   Name = Client Name
   Password = 
   JobACL = Job Client Name, RestoreFiles-Linux
   ClientACL = client-fd
   StorageACL = My Storage
   ScheduleACL = *all*
   PoolACL = *all*
   FileSetACL = Linux
   CatalogACL = MyCatalog
   CommandACL = run, q, quit, restore, status
 }

 ...

 With this configuration I want the client console only can use its jobs.
 When I execute run jobs from client it work ok, but when I execute a
 restore job from client with bconsole program and select the option number
 3 (Enter list of comma separated JobIds to select), I can select a other
 client job. Bacula launch a error message (bacula can not use this job),
 but the restore process continue and finally it restore this backup in the
 first client computer. This is very dangeraous, because any client can get
 another client data.

Bacula should not allow the user to use JobIds from another client, so this 
sounds like a bug.  However, you will need to provide me with specific output 
showing this problem as well as a bit of information about your setup.  
Please see the Support Page of the Bacula web site.  In particular without 
knowing what Bacula version you are using, I cannot even start ...

 How I can configure this for to solve this problem?

 Thanks.
 --
 View this message in context:
 http://www.nabble.com/Client-console-restrictions-t1773302.html#a4826704
 Sent from the Bacula - Users forum at Nabble.com.



 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Best regards,

Kern

  (
  /\
  V_V


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re-Run Missed Levels with split storage...

2006-06-12 Thread hikari
Arno Lehmann wrote:

 Yes and yes ;-)
 Depending on what you want.

It to work properly ;)

 Admittedly, the best solution would be 'Full Backup Storage=', 
 'Differential Backup storage=' and 'Incremental Backup Storage=' 
 directives in the job resource.

Strangely enough I was sat there thinking I wish there was an
equivalent set of directives for Storage as there are for Pools.

If people don't mind waiting, I can add them myself; after I've
finished work on some code that's apparently due next week but I
still haven't been given all the information I need to write it/rant.

 As of now, I decided to go the manual way: I create volumes manually (I 
 don't use file storage) and, when a job level is automatically elevated, 

For a couple of the jobs I run I'm doing incrementals every hour and
differentials every day (backing up development trees); it makes
more sense to use disk storage.  They're really not live long
enough for me to worry about writing them to tape.

 I usually notice the stuck backup job in reasonable time and manually 
 cancel that job and re-run the job with the necessary settings by hand.

I normally notice in the morning because it's stuck on the one it
upgraded...clearing it seems to be a right royal pain in the
proverbial as well.

  Arno

-- 
Chris Crowther
Developer
JM Crowther Ltd.



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem with compression

2006-06-12 Thread Andrea Soracchi
There are little GB of mpeg

If I try to set compression off and backup 3 directory (all 555MB, no  
multimedia files) I get :

   VolBytes: 488,242,591


The same backup with compression on is:

  VolBytes: 488,242,591

The result is equal!!!

Why? Compression is on or off?

Thanks...

Quoting Martin Simmons [EMAIL PROTECTED]:

 On Mon, 12 Jun 2006 11:29:27 +0200, Andrea Soracchi
 [EMAIL PROTECTED] said:

 Hi,

 I have a HP Dat Storage 72/36 (DDS 4) and I have installed Bacula
 1.38.9 (02 May 2006).
 Bacula works very well, but I have a problem with compression hardware
 of my DAT.

 If I check compression of my DAT with the command mt -f /dev/nst0
 datcompression (after a umount command from bconsole) I get:

 Compression on.

 I have a Backup of 38 GB (There are various type of files
 (doc,xls,mpeg...) ).
 When I run the Job for that backup, I must
 insert two tape!!!
 In the first Tape there's a 36GB, and remaining GB in the second tape.

 The compression seems not to work.
 How can I check if the compression is active and working during a job?

 Can you help me?

 How many GB of mpegs (or other multimedia files)?  The hardware cannot
 compress these files (in fact DDS 4 hardware compression will probably make
 them larger).

 __Martin




Andrea Soracchi
Netbuilder S.r.l.






___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Expanding the Job database table entry + manual license

2006-06-12 Thread Kern Sibbald
On Sunday 28 May 2006 12:18, Christoph Haas wrote:
 On Sat, May 27, 2006 at 10:31:42AM +0200, Kern Sibbald wrote:
  3. Currently the manual is licensed under a somewhat restrictive license
  that does not permit commercial reproduction of the manual without
  explicit authorization. This means that the manual does not mean the
  definition of Free Software.  My idea in keeping the license commercially
  restricted was so that someone could possibly publish the manual (or use
  it as the basis of something to be published) and that a part of the
  revenues would revert to the project.
 
  However, I am now convinced that there is little chance that someone
  would want to publish the manual without working with us and that it is
  better to change the license to GPL version 2.  There are, of course, all
  sorts of other open source licenses, but given that the source is GPL v2,
  this is the logical license for the manual as well.
 
  Comments?

 Thanks for reconsidering. This will allow the documentation to be
 shipped with Debian again.


Thanks for the thanks.

Since the my email that you reference, I have indeed changed the manual 
license, but to FDL (or GFDL as Debian calls it), which is the GNU Free 
Documentation License. I did so without invariants, or cover pages.  I chose 
FDL over the GPL because FDL *seems* to me to be much simpler to interpret 
when dealing with documentation and specifically targetted to documentation.  
Fortunately, as of recently (March or April if I am not mistaken), the GFDL 
is also considered as a Free license by Debian in the way I used it :-)

By the way, for Bacula users: I worked a lot recently (over the last month) on 
license issues for Bacula and for the Bacula documentation with the Debian 
legal guys and the Debian Bacula package maintainer, and I must say they were 
very patient with me considering all my questions and very helpful in finding 
solutions for the license issues :-)

-- 
Best regards,

Kern

  (
  /\
  V_V


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] replication/migration strategy for multiple bacula servers

2006-06-12 Thread Kern Sibbald
On Thursday 08 June 2006 07:10, [EMAIL PROTECTED] wrote:
 Hello, all!

 I've got 2 bacula servers, one of which is a primary box doing all the
 backing-up and the other is supposed to be an exact copy of the first one
 (it's located in a hot site facility far away). As a part of the disaster
 recovery plan, I would like to make sure that the second box always have a
 more or less (+/-30 min old) replica of the data on the first box so that I
 can cut over to it once the disaster strikes.



 What is the most proper way of doing this in Bacula world? Or should be I
 be using rsync and friends instead?

For replicating data an rsync and friends solution is far more adapted to 
the problem than Bacula.




 Kern mentioned migration jobs in one of his previous responses to someone.
 Could that be the answer and if yes, is this feature already available?

No, and no.




 Thank you in advance.



 Best Regards,

 Mark Gimelfarb.

-- 
Best regards,

Kern

  (
  /\
  V_V


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem with compression

2006-06-12 Thread Michel Meyers
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andrea Soracchi wrote:
 There are little GB of mpeg

 If I try to set compression off and backup 3 directory (all 555MB, no
 multimedia files) I get :

VolBytes: 488,242,591


 The same backup with compression on is:

   VolBytes: 488,242,591

 The result is equal!!!

 Why? Compression is on or off?

We're talking hardware compression here, right? In that case, the
solution is simple, at least as far as I understand it (somebody correct
me if I'm wrong): Bacula doesn't know. Your drive does the compression,
Bacula only sends it the data uncompressed and that's why the values
don't change (it sends the very same amount of data, regardless of
whether your drive's hardware compression is on or off).

Now, if you enabled software comprression, things would be different. In
that case, Bacula would be doing the compression and would know the
'before' and 'after' sizes of the data.

Greetings,
Michel
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32) - GPGrelay v0.959

iD8DBQFEjWwV2Vs+MkscAyURApuBAKDV221JY+myRHzt+g8O+/HQg46lSgCgzCN6
Fu6XcOG7vLd6ZlzIPgf3oOo=
=cpk4
-END PGP SIGNATURE-


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re-Run Missed Levels with split storage...

2006-06-12 Thread Kern Sibbald
On Thursday 08 June 2006 10:08, Chris Crowther wrote:
 Hi All,

 I seem to have run across a problem when storing Full and
 Differential backups on tape and Incrementals on disk, when combined
 with re-running missed levels.

 If Bacula upgrades the job to either Full or Differential from an
 Incremental, because of a missed job, it tries to use the wrong
 storage device, ie it uses the File one that it would have been
 using for the Incremental job.

 It does change the Pool to the correct one, probably because I've
 told the Job which Pools are used for Full and Differential.  On a
 normal scheduled backup, without any problems, the storage is
 overriden within the Schedule (multiple jobs use the tape library
 for their Full and Differentials, but there's several Pools, so I
 set which Pool a job should be using in the Job then just modify the
 storage in the schedule).

Unfortunately Storage overrides in the Run directive do not work with Job 
upgrades, and probably for you more unfortunately, it is not something that I 
envision fixing. 

In fact, I will probably remove Storage overrides from the Run directive in 
some future version -- once 1.39.x is release since it provides a similar 
(and better feature) by having Storage definitions within the Pool resource.


 Is it the case that you can't combine the two; or if you do you have
 to put up with a Full backup going to where an Incremental would?

-- 
Best regards,

Kern

  (
  /\
  V_V


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] bacula-web port for FreeBSD

2006-06-12 Thread Bill Moran

I seem to remember a post about a bacula-web port for FreeBSD not too long
ago.  Checking freshports, it doesn't look like it was ever committed.

Is there a particular holdup?  Anything I can do to help move it along?

-- 
Bill Moran
Collaborative Fusion Inc.


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re-Run Missed Levels with split storage...

2006-06-12 Thread Kern Sibbald
On Monday 12 June 2006 14:29, Arno Lehmann wrote:
 Hi,

 On 6/8/2006 10:08 AM, Chris Crowther wrote:
  Hi All,
 
  I seem to have run across a problem when storing Full and
  Differential backups on tape and Incrementals on disk, when combined
  with re-running missed levels.

 Ah yes. I knew what you was aiming at at this point :-(

  If Bacula upgrades the job to either Full or Differential from an
  Incremental, because of a missed job, it tries to use the wrong
  storage device, ie it uses the File one that it would have been
  using for the Incremental job.
 
  It does change the Pool to the correct one, probably because I've
  told the Job which Pools are used for Full and Differential.  On a
  normal scheduled backup, without any problems, the storage is
  overriden within the Schedule (multiple jobs use the tape library
  for their Full and Differentials, but there's several Pools, so I
  set which Pool a job should be using in the Job then just modify the
  storage in the schedule).
 
  Is it the case that you can't combine the two; or if you do you have
  to put up with a Full backup going to where an Incremental would?

 Yes and yes ;-)

 Depending on what you want.

 Admittedly, the best solution would be 'Full Backup Storage=',
 'Differential Backup storage=' and 'Incremental Backup Storage='
 directives in the job resource.

I think Pool Storage directives are probably better because they slow down the 
proliferation of Bacula directives, and hopefully give the same thing in a 
better way without using Run overrides. :-)


 In the long term, I'd like to see the ability to change the job setup
 dynamically using python events.

 As of now, I decided to go the manual way: I create volumes manually (I
 don't use file storage) and, when a job level is automatically elevated,
 I usually notice the stuck backup job in reasonable time and manually
 cancel that job and re-run the job with the necessary settings by hand.

 I wouldn't do this at customer sites, though, where there's noone around
 who could handle that.

 Arno

  
 
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Best regards,

Kern

  (
  /\
  V_V


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] force to run a job that is waiting for its start time

2006-06-12 Thread Jaime Ventura
Hello,
   I have a job that had been rescheduled because at the time it 
ran, the client (a portable) wasnt connected to the network.
   Is there any way(manually on console) to force it to run now that 
the client is connected, instead of waiting for the rescheduled start time?
   Thanks,
 Jaime Ventura


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem with compression

2006-06-12 Thread drescher0110-bacula


--- Andrea Soracchi [EMAIL PROTECTED] wrote:

 There are little GB of mpeg
 
 If I try to set compression off and backup 3 directory (all 555MB, no  
 multimedia files) I get :
 
VolBytes: 488,242,591
 
 
 The same backup with compression on is:
 
   VolBytes: 488,242,591
 
 The result is equal!!!
 
 Why? Compression is on or off?
 
They should be equal as mpeg files are already compressed and will not compress 
any
furthur using a fast compression algorithm. 

John


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Python Question

2006-06-12 Thread Kern Sibbald
On Monday 12 June 2006 14:15, Wilson, David wrote:
 I just finished reading through the dev manual and I checked to make
 sure that the following is true:

 1. The director can write to the directory, and is creating a
 DirStartUp.pyc file.
 2. Any functions I do not want have been removed, or the noop=1 has been
 placed within the event.

 Is there any way to get more detail other than the error messages I am
 seeing?  Seeing I cannot run the file from the command line to see if it
 is syntax problem, it would be nice to find out why bacula cannot use
 the file.

Manually run the Director with the -d1 option on the command line in a shell 
window, and if you are lucky, the Python error message associated with the 
problem will be printed in the shell.

Otherwise, start with the example files unchanged and make sure that the 
script file has totally open permissions.  That should get it working, 
afterwards you can make changes a bit at a time until you get what you want.




 Thanks,

 David Wilson
 Network Security Engineer
 PAETEC Communications, Inc.

 -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:
  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 not import
  Python script /etc/bacula/scripts/DirStartUp. Python disabled.
 
 
 
  When I attempt to run the script manually I receive:
 
  Traceback (most recent call last):
 
File DirStartUp.py, line 6, in ?
 
  import sys, bacula, time
 
  ImportError: No module named bacula
 
 
 
  I did compile bacula with -with-python and I received no errors while
  installing in.
 
 
 
  Any ideas??

 Please see the Python chapter of the development manual -- in particular
 the
 Python Configuration section. I have added several paragraphs that
 explain
 this problem.

 http://www.bacula.org/dev-manual/Python_Scripting.html

  David Wilson
  Network Security Engineer
  PAETEC Communications, Inc.

-- 
Best regards,

Kern

  (
  /\
  V_V


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Python Question

2006-06-12 Thread Wilson, David
I ran the director in a shell and this was the output I received.

bacula-dir: dird.c:128 Debug level = 1
Traceback (most recent call last):
  File /etc/bacula/scripts/DirStartUp.py, line 6, in ?
import time, sys, bacula
ImportError: /usr/lib/python2.3/lib-dynload/timemodule.so: undefined
symbol: PyInt_FromLong
bkup1-roc-dir: pythonlib.c:134 Python Import error.

It looks to be due to the fact I want to import the time module into the
script.  Is there any reason why I shouldn't be able to use external
modules??

David Wilson
Network Security 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 Monday 12 June 2006 14:15, Wilson, David wrote:
 I just finished reading through the dev manual and I checked to make
 sure that the following is true:

 1. The director can write to the directory, and is creating a
 DirStartUp.pyc file.
 2. Any functions I do not want have been removed, or the noop=1 has
been
 placed within the event.

 Is there any way to get more detail other than the error messages I am
 seeing?  Seeing I cannot run the file from the command line to see if
it
 is syntax problem, it would be nice to find out why bacula cannot use
 the file.

Manually run the Director with the -d1 option on the command line in a
shell 
window, and if you are lucky, the Python error message associated with
the 
problem will be printed in the shell.

Otherwise, start with the example files unchanged and make sure that the

script file has totally open permissions.  That should get it working, 
afterwards you can make changes a bit at a time until you get what you
want.




 Thanks,

 David Wilson
 Network Security Engineer
 PAETEC Communications, Inc.

 -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:
  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 not
import
  Python script /etc/bacula/scripts/DirStartUp. Python disabled.
 
 
 
  When I attempt to run the script manually I receive:
 
  Traceback (most recent call last):
 
File DirStartUp.py, line 6, in ?
 
  import sys, bacula, time
 
  ImportError: No module named bacula
 
 
 
  I did compile bacula with -with-python and I received no errors
while
  installing in.
 
 
 
  Any ideas??

 Please see the Python chapter of the development manual -- in
particular
 the
 Python Configuration section. I have added several paragraphs that
 explain
 this problem.

 http://www.bacula.org/dev-manual/Python_Scripting.html

  David Wilson
  Network Security Engineer
  PAETEC Communications, Inc.

-- 
Best regards,

Kern

  (
  /\
  V_V


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Python Question

2006-06-12 Thread Kern Sibbald
On Monday 12 June 2006 16:08, Wilson, David wrote:
 I ran the director in a shell and this was the output I received.

 bacula-dir: dird.c:128 Debug level = 1
 Traceback (most recent call last):
   File /etc/bacula/scripts/DirStartUp.py, line 6, in ?
 import time, sys, bacula
 ImportError: /usr/lib/python2.3/lib-dynload/timemodule.so: undefined
 symbol: PyInt_FromLong
 bkup1-roc-dir: pythonlib.c:134 Python Import error.

Oh, it is nice that it worked.  I'll add that trick to the manual.  Note, once 
you get the DirStartUp script to load, Bacula should be able to print all the 
Python errors, so this trick, in principle, should not be necessary if/when 
you have problems later.


 It looks to be due to the fact I want to import the time module into the
 script.  Is there any reason why I shouldn't be able to use external
 modules??

Yes, you can perfectly well use external modules, in fact the sys module 
that the script calls is external.  The problem is that apparently, you have 
not loaded all parts of the Python time module.  I suggest you try writing a 
small external Python script that you call that does what you want -- running 
it directly with Python, then once you get it working, integrate it with 
Bacula.  Don't forget if you are running under root or some other user, 
Bacula may or may not have the right paths defined.


 David Wilson
 Network Security 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 Monday 12 June 2006 14:15, Wilson, David wrote:
  I just finished reading through the dev manual and I checked to make
  sure that the following is true:
 
  1. The director can write to the directory, and is creating a
  DirStartUp.pyc file.
  2. Any functions I do not want have been removed, or the noop=1 has

 been

  placed within the event.
 
  Is there any way to get more detail other than the error messages I am
  seeing?  Seeing I cannot run the file from the command line to see if

 it

  is syntax problem, it would be nice to find out why bacula cannot use
  the file.

 Manually run the Director with the -d1 option on the command line in a
 shell
 window, and if you are lucky, the Python error message associated with
 the
 problem will be printed in the shell.

 Otherwise, start with the example files unchanged and make sure that the

 script file has totally open permissions.  That should get it working,
 afterwards you can make changes a bit at a time until you get what you
 want.

  Thanks,
 
  David Wilson
  Network Security Engineer
  PAETEC Communications, Inc.
 
  -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:
   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 not

 import

   Python script /etc/bacula/scripts/DirStartUp. Python disabled.
  
  
  
   When I attempt to run the script manually I receive:
  
   Traceback (most recent call last):
  
 File DirStartUp.py, line 6, in ?
  
   import sys, bacula, time
  
   ImportError: No module named bacula
  
  
  
   I did compile bacula with -with-python and I received no errors

 while

   installing in.
  
  
  
   Any ideas??
 
  Please see the Python chapter of the development manual -- in

 particular

  the
  Python Configuration section. I have added several paragraphs that
  explain
  this problem.
 
  http://www.bacula.org/dev-manual/Python_Scripting.html
 
   David Wilson
   Network Security Engineer
   PAETEC Communications, Inc.

-- 
Best regards,

Kern

  (
  /\
  V_V


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Tape not loaded (using 1.36.2)

2006-06-12 Thread Davide Bolcioni
Greetings,
in case of a power outage, after a while the bacula server is turned off
by the UPS after an orderly shutdown. One consequence of this is that
the LTO tape is ejected. When the server is restarted, however, the tape
is not loaded when bacula starts, although I have AutomaticMount = yes
and AlwaysOpen = yes in bacula-sd.conf. What am I missing ?

Thank you for your consideration,
Davide Bolcioni
-- 
There is no place like /home.


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Python Question

2006-06-12 Thread Wilson, David
The script that I am trying to use works fine running as root, and with
the import time command I am using within the DirStartUp.py.

I only run into this problem when bacula attempts to import this script.
Bacula is running as root (at this time) so it should have all the
rights I used when writing the original script I used for development.

I think I received an email from another user stating that they
experienced the problem before as well and it had something to do with
dyn-load modules. 

Do you have any other ideas??

David Wilson
Network Security Engineer
PAETEC Communications, Inc.

-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:
 I ran the director in a shell and this was the output I received.

 bacula-dir: dird.c:128 Debug level = 1
 Traceback (most recent call last):
   File /etc/bacula/scripts/DirStartUp.py, line 6, in ?
 import time, sys, bacula
 ImportError: /usr/lib/python2.3/lib-dynload/timemodule.so: undefined
 symbol: PyInt_FromLong
 bkup1-roc-dir: pythonlib.c:134 Python Import error.

Oh, it is nice that it worked.  I'll add that trick to the manual.
Note, once 
you get the DirStartUp script to load, Bacula should be able to print
all the 
Python errors, so this trick, in principle, should not be necessary
if/when 
you have problems later.


 It looks to be due to the fact I want to import the time module into
the
 script.  Is there any reason why I shouldn't be able to use external
 modules??

Yes, you can perfectly well use external modules, in fact the sys
module 
that the script calls is external.  The problem is that apparently, you
have 
not loaded all parts of the Python time module.  I suggest you try
writing a 
small external Python script that you call that does what you want --
running 
it directly with Python, then once you get it working, integrate it with

Bacula.  Don't forget if you are running under root or some other user, 
Bacula may or may not have the right paths defined.


 David Wilson
 Network Security 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 Monday 12 June 2006 14:15, Wilson, David wrote:
  I just finished reading through the dev manual and I checked to make
  sure that the following is true:
 
  1. The director can write to the directory, and is creating a
  DirStartUp.pyc file.
  2. Any functions I do not want have been removed, or the noop=1 has

 been

  placed within the event.
 
  Is there any way to get more detail other than the error messages I
am
  seeing?  Seeing I cannot run the file from the command line to see
if

 it

  is syntax problem, it would be nice to find out why bacula cannot
use
  the file.

 Manually run the Director with the -d1 option on the command line in a
 shell
 window, and if you are lucky, the Python error message associated with
 the
 problem will be printed in the shell.

 Otherwise, start with the example files unchanged and make sure that
the

 script file has totally open permissions.  That should get it working,
 afterwards you can make changes a bit at a time until you get what you
 want.

  Thanks,
 
  David Wilson
  Network Security Engineer
  PAETEC Communications, Inc.
 
  -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:
   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 not

 import

   Python script /etc/bacula/scripts/DirStartUp. Python disabled.
  
  
  
   When I attempt to run the script manually I receive:
  
   Traceback (most recent call last):
  
 File DirStartUp.py, line 6, in ?
  
   import sys, bacula, time
  
   ImportError: No module named bacula
  
  
  
   I did compile bacula with -with-python and I received no errors

 while

   installing in.
  
  
  
   Any ideas??
 
  Please see the Python chapter of the development manual -- in

 particular

  the
  Python Configuration section. I have added several paragraphs that
  explain
  this problem.
 
  http://www.bacula.org/dev-manual/Python_Scripting.html
 
   David Wilson
   Network Security Engineer
   PAETEC Communications, Inc.

-- 
Best regards,


Re: [Bacula-users] Python Question

2006-06-12 Thread Christoff Buch

Hey David,

I've seen your emails about the lib-dynload
matter.
I think it is you who I sent my answer
last week.
Do you still have it? Any questions?
The principle of my workaround is this:
Take your development script and let
it create the values you need for bacula.
Then just let the DirStartUp.py call
(not import!!!) this script and take the resulting values in for further
processing.
So you will have two scripts:
One that does all the stuff where the
shared modules from lib-dynload are needed, and...
The DirStartUp.py , which just receives
the values (that it can't create itself) from the above script.

Mit freundlichem Gruß

i. A. Christoff Buch

=
[EMAIL 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 [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
with
 the import time command I am using within the DirStartUp.py.

 I only run into this problem when bacula attempts to import this script.
 Bacula is running as root (at this time) so it should have all the
 rights I used when writing the original script I used for development.

 I think I received an email from another user stating that they
 experienced the problem before as well and it had something to do
with
 dyn-load modules.

 Do you have any other ideas??

I am not a Python expert, so I cannot be of much help. You might
take a look 
on the Python site or ask on their mailing list. I see the same problem

here, and after looking at the error message a bit more carefully, I do
see 
that it is a problem with dynamically loaded modules because it is apparently

expecting the Python interpreter to be loaded in the normal fashing. The

problem is that it is not finding PyInt_FromLong, which is part of the
Python 
interpreter, and the symbol is probably lost when Bacula is linked.

Your best bet is either to turn off dynamic modules, if that is possible,
or 
ask on the Python email list how to get around this.


 David Wilson
 Network Security Engineer
 PAETEC Communications, Inc.

 -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:
  I ran the director in a shell and this was the output I received.
 
  bacula-dir: dird.c:128 Debug level = 1
  Traceback (most recent call last):
   File /etc/bacula/scripts/DirStartUp.py, line
6, in ?
import time, sys, bacula
  ImportError: /usr/lib/python2.3/lib-dynload/timemodule.so: undefined
  symbol: PyInt_FromLong
  bkup1-roc-dir: pythonlib.c:134 Python Import error.

 Oh, it is nice that it worked. I'll add that trick to the manual.
 Note, once
 you get the DirStartUp script to load, Bacula should be able to print
 all the
 Python errors, so this trick, in principle, should not be necessary
 if/when
 you have problems later.

  It looks to be due to the fact I want to import the time module
into

 the

  script. Is there any reason why I shouldn't be able to
use external
  modules??

 Yes, you can perfectly well use external modules, in fact the sys
 module
 that the script calls is external. The problem is that apparently,
you
 have
 not loaded all parts of the Python time module. I suggest you
try
 writing a
 small external Python script that you call that does what you want
--
 running
 it directly with Python, then once you get it working, integrate it
with

 Bacula. Don't forget if you are running under root or some other
user,
 Bacula may or may not have the right paths defined.

  David Wilson
  Network Security 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 Monday 12 June 2006 14:15, Wilson, David wrote:
   I just finished reading through the dev manual and I checked
to make
   sure that the following is true:
  
   1. The director can write to the directory, and is creating
a
   DirStartUp.pyc file.
   2. Any functions I do not want have been removed, or the
noop=1 has
 
  been
 
   placed within the event.
  
   Is there any way to get more detail other than the error
messages I

 am

   seeing? Seeing I cannot run the file from the command
line to see

 if

  it
 
   is syntax problem, it would be nice to find out why bacula
cannot

 use

   the file.
 
  Manually run the Director with the -d1 option on the command
line in a
  shell
  window, and if you 

Re: [Bacula-users] Python Question

2006-06-12 Thread Kern Sibbald
On Monday 12 June 2006 20:23, Christoff Buch wrote:
 Hey David,

 I've seen your emails about the lib-dynload matter.
 I think it is you who I sent my answer last week.
 Do you still have it? Any questions?
 The principle of my workaround is this:
 Take your development script and let it create the values you need for
 bacula.
 Then just let the DirStartUp.py call (not import!!!) this script and take
 the resulting values in for further processing.
 So you will have two scripts:
 One that does all the stuff where the shared modules from lib-dynload are
 needed, and...
 The DirStartUp.py , which just receives the values (that it can't create
 itself) from the above script.

Nice solution. I'll add it to the manual.  Thanks :-)

Hmm. I'm wondering if there isn't some way to make Bacula use libpython2.x.so 
the same way that the python executable does rather than having the 
interpreter linked in. That would probably resolve the problem and reduce 
Bacula's footprint too.



 Mit freundlichem Gruß

 i. A. Christoff Buch

 =
 [EMAIL 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 [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 with
  the import time command I am using within the DirStartUp.py.
 
  I only run into this problem when bacula attempts to import this script.
  Bacula is running as root (at this time) so it should have all the
  rights I used when writing the original script I used for development.
 
  I think I received an email from another user stating that they
  experienced the problem before as well and it had something to do with
  dyn-load modules.
 
  Do you have any other ideas??

 I am not a Python expert, so I cannot be of much help.  You might take a
 look
 on the Python site or ask on their mailing list.  I see the same problem
 here, and after looking at the error message a bit more carefully, I do
 see
 that it is a problem with dynamically loaded modules because it is
 apparently
 expecting the Python interpreter to be loaded in the normal fashing.  The
 problem is that it is not finding PyInt_FromLong, which is part of the
 Python
 interpreter, and the symbol is probably lost when Bacula is linked.

 Your best bet is either to turn off dynamic modules, if that is possible,
 or
 ask on the Python email list how to get around this.

  David Wilson
  Network Security Engineer
  PAETEC Communications, Inc.
 
  -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:
   I ran the director in a shell and this was the output I received.
  
   bacula-dir: dird.c:128 Debug level = 1
   Traceback (most recent call last):
 File /etc/bacula/scripts/DirStartUp.py, line 6, in ?
   import time, sys, bacula
   ImportError: /usr/lib/python2.3/lib-dynload/timemodule.so: undefined
   symbol: PyInt_FromLong
   bkup1-roc-dir: pythonlib.c:134 Python Import error.
 
  Oh, it is nice that it worked.  I'll add that trick to the manual.
  Note, once
  you get the DirStartUp script to load, Bacula should be able to print
  all the
  Python errors, so this trick, in principle, should not be necessary
  if/when
  you have problems later.
 
   It looks to be due to the fact I want to import the time module into
 
  the
 
   script.  Is there any reason why I shouldn't be able to use external
   modules??
 
  Yes, you can perfectly well use external modules, in fact the sys
  module
  that the script calls is external.  The problem is that apparently, you
  have
  not loaded all parts of the Python time module.  I suggest you try
  writing a
  small external Python script that you call that does what you want --
  running
  it directly with Python, then once you get it working, integrate it with
 
  Bacula.  Don't forget if you are running under root or some other user,
  Bacula may or may not have the right paths defined.
 
   David Wilson
   Network Security 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 Monday 12 June 2006 14:15, Wilson, David wrote:
I just finished reading through the dev manual and I checked to make
sure that the following is true:
   
1. The director can write to the directory, and is creating a
DirStartUp.pyc 

Re: [Bacula-users] Problem with compression

2006-06-12 Thread Arno Lehmann
Hello,

On 6/12/2006 3:28 PM, Michel Meyers wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Andrea Soracchi wrote:
 
There are little GB of mpeg

If I try to set compression off and backup 3 directory (all 555MB, no
multimedia files) I get :

   VolBytes: 488,242,591


The same backup with compression on is:

  VolBytes: 488,242,591

The result is equal!!!

Why? Compression is on or off?
 
 
 We're talking hardware compression here, right? In that case, the
 solution is simple, at least as far as I understand it (somebody correct
 me if I'm wrong):

That doesn't seem necessary as far as I know...

 Bacula doesn't know. Your drive does the compression,
 Bacula only sends it the data uncompressed and that's why the values
 don't change (it sends the very same amount of data, regardless of
 whether your drive's hardware compression is on or off).
 
 Now, if you enabled software comprression, things would be different. In
 that case, Bacula would be doing the compression and would know the
 'before' and 'after' sizes of the data.

There is only one reliable way to find out if hardware compression is 
working if you don't trust the drives information, as can be determined 
with mt or tapeinfo: Try it.

Load a tape, set compression to what you want - usually only on or off - 
and start filling the tape. Count how much data is written to tape.

I typically do something like this:
while dd if=/tmp/testdata bs=1M of=/dev/nstX ; do echo -en ; done
mt -f /dev/nstX tell
with testdata being a file with preloaded data, either well compressible 
(usually just some text file I've got lying around) or a dump of 
/dev/urandom of the necessary size. It's a good thing to make sure your 
test data is a multipple of the block size you use on that tape.

Arno

 Greetings,
 Michel
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.2 (MingW32) - GPGrelay v0.959
 
 iD8DBQFEjWwV2Vs+MkscAyURApuBAKDV221JY+myRHzt+g8O+/HQg46lSgCgzCN6
 Fu6XcOG7vLd6ZlzIPgf3oOo=
 =cpk4
 -END PGP SIGNATURE-
 
 
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 

-- 
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re-Run Missed Levels with split storage...

2006-06-12 Thread Arno Lehmann
Hello,

On 6/12/2006 3:34 PM, Kern Sibbald wrote:
 On Monday 12 June 2006 14:29, Arno Lehmann wrote:
On 6/8/2006 10:08 AM, Chris Crowther wrote:
...
Admittedly, the best solution would be 'Full Backup Storage=',
'Differential Backup storage=' and 'Incremental Backup Storage='
directives in the job resource.
 
 
 I think Pool Storage directives are probably better because they slow down 
 the 
 proliferation of Bacula directives, and hopefully give the same thing in a 
 better way without using Run overrides. :-)

Probably... they take away some of the flexibility I use (distributing 
pools over more than one media type and thus storage device), but they 
make management simpler.

My personal preference would be the proliferation of directives... but 
then, I do get paid by people who don't want to work through the 
configuration themselves ;-)

Apart from that, trying to simplify the configuration seems a good goal 
to me, and linking pools with storage devices is even kind of logical.

Anyway, having the necessary python hooks for all this sort of stuff 
would be really nice...

Arno


-- 
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Python Question

2006-06-12 Thread Wilson, David
I figure having the ability to use lib-dynload modules would be something 
bacula would want, especially with the move towards python for managing event 
customization.

I will place that fix in place, but it would be great to be able to access the 
modules directly in the DirStartUp.py file. 

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 Monday 12 June 2006 20:23, Christoff Buch wrote:
 Hey David,

 I've seen your emails about the lib-dynload matter.
 I think it is you who I sent my answer last week.
 Do you still have it? Any questions?
 The principle of my workaround is this:
 Take your development script and let it create the values you need for
 bacula.
 Then just let the DirStartUp.py call (not import!!!) this script and take
 the resulting values in for further processing.
 So you will have two scripts:
 One that does all the stuff where the shared modules from lib-dynload are
 needed, and...
 The DirStartUp.py , which just receives the values (that it can't create
 itself) from the above script.

Nice solution. I'll add it to the manual.  Thanks :-)

Hmm. I'm wondering if there isn't some way to make Bacula use libpython2.x.so 
the same way that the python executable does rather than having the 
interpreter linked in. That would probably resolve the problem and reduce 
Bacula's footprint too.



 Mit freundlichem Gruß

 i. A. Christoff Buch

 =
 [EMAIL 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 [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 with
  the import time command I am using within the DirStartUp.py.
 
  I only run into this problem when bacula attempts to import this script.
  Bacula is running as root (at this time) so it should have all the
  rights I used when writing the original script I used for development.
 
  I think I received an email from another user stating that they
  experienced the problem before as well and it had something to do with
  dyn-load modules.
 
  Do you have any other ideas??

 I am not a Python expert, so I cannot be of much help.  You might take a
 look
 on the Python site or ask on their mailing list.  I see the same problem
 here, and after looking at the error message a bit more carefully, I do
 see
 that it is a problem with dynamically loaded modules because it is
 apparently
 expecting the Python interpreter to be loaded in the normal fashing.  The
 problem is that it is not finding PyInt_FromLong, which is part of the
 Python
 interpreter, and the symbol is probably lost when Bacula is linked.

 Your best bet is either to turn off dynamic modules, if that is possible,
 or
 ask on the Python email list how to get around this.

  David Wilson
  Network Security Engineer
  PAETEC Communications, Inc.
 
  -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:
   I ran the director in a shell and this was the output I received.
  
   bacula-dir: dird.c:128 Debug level = 1
   Traceback (most recent call last):
 File /etc/bacula/scripts/DirStartUp.py, line 6, in ?
   import time, sys, bacula
   ImportError: /usr/lib/python2.3/lib-dynload/timemodule.so: undefined
   symbol: PyInt_FromLong
   bkup1-roc-dir: pythonlib.c:134 Python Import error.
 
  Oh, it is nice that it worked.  I'll add that trick to the manual.
  Note, once
  you get the DirStartUp script to load, Bacula should be able to print
  all the
  Python errors, so this trick, in principle, should not be necessary
  if/when
  you have problems later.
 
   It looks to be due to the fact I want to import the time module into
 
  the
 
   script.  Is there any reason why I shouldn't be able to use external
   modules??
 
  Yes, you can perfectly well use external modules, in fact the sys
  module
  that the script calls is external.  The problem is that apparently, you
  have
  not loaded all parts of the Python time module.  I suggest you try
  writing a
  small external Python script that you call that does what you want --
  running
  it directly with Python, then once you get it working, integrate it with
 
  Bacula.  Don't forget if you are running under root or some other user,
  Bacula may or may not have 

Re: [Bacula-users] Re-Run Missed Levels with split storage...

2006-06-12 Thread Kern Sibbald
On Monday 12 June 2006 21:50, Arno Lehmann wrote:
 Hello,

 On 6/12/2006 3:34 PM, Kern Sibbald wrote:
  On Monday 12 June 2006 14:29, Arno Lehmann wrote:
 On 6/8/2006 10:08 AM, Chris Crowther wrote:

 ...

 Admittedly, the best solution would be 'Full Backup Storage=',
 'Differential Backup storage=' and 'Incremental Backup Storage='
 directives in the job resource.
 
  I think Pool Storage directives are probably better because they slow
  down the proliferation of Bacula directives, and hopefully give the same
  thing in a better way without using Run overrides. :-)

 Probably... they take away some of the flexibility I use (distributing
 pools over more than one media type and thus storage device), but they
 make management simpler.

 My personal preference would be the proliferation of directives... but
 then, I do get paid by people who don't want to work through the
 configuration themselves ;-)

Yea, but you seem to be able to stock a lot more things in your head than I 
can, so that is why I am tending toward non-proliferation :-)


 Apart from that, trying to simplify the configuration seems a good goal
 to me, and linking pools with storage devices is even kind of logical.

 Anyway, having the necessary python hooks for all this sort of stuff
 would be really nice...

Yes, I agree, and the hooks will eventually get implemented (I recently 
slipped in a few more variables in a 1.38.x release), but for the moment, the 
user interest in Python is almost non-existant.  So until I start hearing 
more complaints about adding more Python features, it is not very high on my 
priority list.  I'm not worried about it though.  In the early years of 
Bacula I heard a lot of complaints about using SQL as the database, and look 
what users are doing with it now (bacula-web, recover.pl, and 
brestore.pl) !!!  :-)

With a few more small hooks into Python, Eric and Marc could hook their Perl 
GUI interface directly into Bacula via a Python call to Perl --- hmmm.  

While I am wildly speculating, I should say that it seems to me that adding a 
Python interpreter to bconsole could allow some really neat scripting of 
Bacula commands -- even building new intelligent commands that are in fact 
Python scripts.

-- 
Best regards,

Kern

  (
  /\
  V_V


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Space used in volume?

2006-06-12 Thread Francisco Reyes
Georger Araujo writes:

 2) Run bconsole and type
 
 list media

For purged volumes it shows the full size of the volume.
Will those files get shrinked when they get recycled and start from 0?

I have the volumes set to be no larger than 1GB for performance reasons.

Also volumes in 'append' mode show 1 in the volbytes column. What does that 
mean?


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Removing old clients from the database

2006-06-12 Thread Francisco Reyes
Martin Simmons writes:

 You can use the query command option List all backups for a Client to find
 the jobids for jobs on the old clients and the use the delete job command to
 remove the information for each one.

Can also use the 'prune' command or the purge command.
In particular the 'purge' command will delete the records regardless of 
their retention.. Just make absolutely sure you are purging the old clients.



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users