Re: [Bacula-users] Urgent : how to install storage-sd only ???

2005-08-10 Thread mollo
On Fri, 5 Aug 2005 08:06:58 + (UTC)
Romain [EMAIL PROTECTED] wrote:

 The problem is that i can't compile bacula as I don't have 
 any database server on this machine (and i don't want to install
 anyone).

I've got that case (dedicated storage only), but dont really rememeber.
but it work..

Just setup/configure as usually, perhaps let's install sqlite 2.x from
sources into /usr/local/sqlite. even if you will drop it after, Storage
executable are not linked against DB code. and you will not use director.

After install, you just delete
client and director scripts into /sbin/ bacula directory.

./bacula-dir
./bacula-fd

bacula/bin/bacula will ignore theses services as they dont exist
anymore.


Ciao'
Mathieu


-- 


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Re: mount USB disk

2005-08-10 Thread Mick
Alan Brown wrote:

 On Sun, 7 Aug 2005, Mick wrote:
 
  I use an USB disk as backup target for Bacula. It works fine. But
  there is one issue: I want to mount it immediatly before the backup
  and unmount it afterwards. There is even a mount option for the
  config file (sd.config I think), but this option is not allowed for
  a harddisk.
 
 Assuming you're using a linux system, why not allow hotplug and subfs
 to do this for you automagically?
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle
 Practices Agile  Plan-Driven Development * Managing Projects  Teams
 * Testing  QA Security * Process Improvement  Measurement *
 http://www.sqe.com/bsce5sf

I want the disk to be dismounted or at least mounted read-only accept
when a backup is running.

/M



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] restore problems

2005-08-10 Thread John Huss
Hello,


Can anyone help me with a restore problem please. I'm still trying to
setup bacula for the first time. Backups seem to go ok but when I run a
restore all for any client, the files restored /never/ matches the files
backed up. 

Here's some output:

*from backup*

10-Aug 10:01 dreadnought-dir: Start Backup JobId 35,
Job=conqueror-backup-job.2005-08-10_10.01.43
10-Aug 10:01 dreadnought-sd: Spooling data ...
10-Aug 10:08 dreadnought-sd: Committing spooled data to Volume.
Despooling 864,983,271 bytes ...
10-Aug 10:09 dreadnought-sd: Sending spooled attrs to the Director.
Despooling 75,982,951 bytes ...
10-Aug 10:12 dreadnought-dir: Bacula 1.36.3 (22Apr05): 10-Aug-2005
10:12:21
  JobId:  35
  Job:conqueror-backup-job.2005-08-10_10.01.43
  Backup Level:   Full
  Client: conqueror-fd
  FileSet:ConquerorFileSet 2005-08-10 09:58:36
  Pool:   dreadnought-weekly
  Storage:tapechanger
  Start time: 10-Aug-2005 10:01:45
  End time:   10-Aug-2005 10:12:21
  FD Files Written:   249,522
  SD Files Written:   249,522
  FD Bytes Written:   822,086,825
  SD Bytes Written:   855,295,499
  Rate:   1292.6 KB/s
  Software Compression:   69.8 %
  Volume name(s): dreadnought-weekly0001
  Volume Session Id:  9
  Volume Session Time:1123609564
  Last Volume Bytes:  15,075,069,535
  Non-fatal FD errors:0
  SD Errors:  0
  FD termination status:  OK
  SD termination status:  OK
  Termination:Backup OK

10-Aug 10:12 dreadnought-dir: Begin pruning Jobs.
10-Aug 10:12 dreadnought-dir: No Jobs found to prune.
10-Aug 10:12 dreadnought-dir: Begin pruning Files.
10-Aug 10:12 dreadnought-dir: No Files found to prune.
10-Aug 10:12 dreadnought-dir: End auto prune.



*from restore*

10-Aug 11:10 dreadnought-sd: End of Volume at file 19 on
device /dev/st0, Volume dreadnought-weekly0001
10-Aug 11:10 dreadnought-sd: End of all volumes.
10-Aug 11:10 dreadnought-dir: Bacula 1.36.3 (22Apr05): 10-Aug-2005
11:10:53
  JobId:  37
  Job:conqueror-restore-job.2005-08-10_10.54.47
  Client: conqueror-fd
  Start time: 10-Aug-2005 10:54:49
  End time:   10-Aug-2005 11:10:53
  Files Expected: 249,522
  Files Restored: 224,468
  Bytes Restored: 2,720,647,867
  Rate:   2822.2 KB/s
  FD Errors:  0
  FD termination status:  OK
  SD termination status:  OK
  Termination:Restore OK -- warning file count mismatch

10-Aug 11:10 dreadnought-dir: Begin pruning Jobs.
10-Aug 11:10 dreadnought-dir: No Jobs found to prune.
10-Aug 11:10 dreadnought-dir: Begin pruning Files.
10-Aug 11:10 dreadnought-dir: No Files found to prune.
10-Aug 11:10 dreadnought-dir: End auto prune.




I've attached my config files in case they can help diagnose the error.
Sorry if I'm being stupid, am just at my wits end now after trying many
things to solve it.

Thanks in advance,



johnny

-- 

John Huss   Tel: +44 (1304) 814800
The Bunker  Fax: +44 (1304) 814899
Ash Radar Station   http://www.thebunker.net
Marshborough Road   mailto:[EMAIL PROTECTED]
Sandwich
Kent
CT13 0PL
UNITED KINGDOM
### Directors (This is what talks to other daemons and hosts)

Director {
  Name = dreadnought-dir
  Description = Main Dreadnought Backup Director 
  DIRport = 9101# where we listen for UA connections
  QueryFile = /var/lib/bacula/query.sql
  WorkingDirectory = /var/bacula
  PidDirectory = /var/run
  Maximum Concurrent Jobs = 1
  Password = CwfOe12bPg+8JXxJdFLnThUumguqecQyA9qk8hzbGnKv # Console password
  Messages = Standard
}



### Job Definitions (options, inherited by Jobs)

JobDefs {
  Name = DefaultBackupJobDefs
  Type = Backup
  Level = Incremental
  Client = dreadnought-fd 
  Schedule = WeeklyCycle
  Storage = tapechanger
  Messages = Standard
  Pool = dreadnought-daily
  Full Backup Pool = dreadnought-weekly
  Incremental Backup Pool = dreadnought-daily
  Spool Data = yes
  Priority = 10
}

JobDefs {
  Name =DefaultRestoreJobDefs
  Type = Restore
  #Where = /store/bacula/restore
  Prefix Links = no
  Priority = 10
  Replace = never
  Messages = Standard  
  Storage = tapechanger
  Pool = dreadnought-daily
  Full Backup Pool = dreadnought-weekly
  Incremental Backup Pool = dreadnought-daily
}

JobDefs {
  Name =DefaultVerifyJobDefs
  Type = Verify
  Where = /store/bacula/restore
  Priority = 10
  Level = VolumeToCatalog
  Messages = Standard
  Storage = tapechanger
  Pool = dreadnought-daily
  Full Backup Pool = dreadnought-weekly
  Incremental Backup Pool = dreadnought-daily
}



### Job Definitions

# Backup the catalog database (after the nightly save)
Job {
  Name = BackupCatalog
  JobDefs = DefaultBackupJobDefs
  Level = Full
  

[Bacula-users] RunAfterJob %v question

2005-08-10 Thread Aragon Gouveia
Hi,

Regarding the volume name substitution in RunAfterJob, how is %v substituted
if a single Job instance spans over multiple volumes?


Thanks,
Aragon


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Backup terminated during tape change.

2005-08-10 Thread drescher0110-bacula
I decided to prune the tapes and start the backup over
again. After having a few problems. I forgot to remove
the write protection from the first tape so the prune
did not work although I don't remember getting an
error. When I started the backup the job terminated
and the software said the tape was at EOM. Then I
messed up with the tape when I issued an erase command
to mt. That took forever. But now all is well the
backup is started. At 2 tapes per day it's going to
take 4 days to complete unless I can get someone to
change the tape in the evening...

John


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] EOM errors on AIT 1 freebsd

2005-08-10 Thread Dan Langille
On 10 Aug 2005 at 11:36, Mason Fischer wrote:

 I am having troubles with an AIT 1 Sony SDX 400c on free bsd. When
 bacula gets to the end of the tape.

What version of FreeBSD?  

 The error is:
 dev.c:1213 ioctl MTWEOF error on /dev/nsa0.0. ERR=Input/output error.

I ask because there is a known problem, fixed in recent versions of 
FreeBSD, related to end of tape.

 The SDX 400c just died and Im thinking of getting another tape drive from ebay

Why do you think it's dead?

 Im wondering if this drive will have the same problems that I'm having
 with my curret drive
 
 http://cgi.ebay.com/92988-001-Compaq-AIT-2-AIT2-50-100GB-Tape-Drive_W0QQitemZ5226752496QQcategoryZ51090QQrdZ1QQcmdZViewItem

-- 
Dan Langille : http://www.langille.org/
BSDCan - The Technical BSD Conference - http://www.bsdcan.org/




---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Re: Bacula versions

2005-08-10 Thread Kern Sibbald
Hello,

On Wednesday 10 August 2005 10:51, Roger Kvam wrote:
 Hello.
 I wondered why there hasn`t bin released a new version of bacula since
 1.36.3, despite the fact that it has bin very muct improvement on the
 beta version, that allready have reatch 1.37.30?

There *have* been several releases of Bacula since 1.36.3.  They are all beta 
version in the beta section of the Bacula releases on Source Forge.

There will be an official release when the beta version is complete and 
stable, which is not yet the case.

This information has been released at least 3 times recently on the 
bacula-users list.

Best regards,

Kern


 Sinserly

 Roger Kvam


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Re: Bacula backup problem

2005-08-10 Thread Kern Sibbald
Hello,

I am sorry, I can no longer give help of the kind you need. Please
ask on the bacula-users list.  I have copied them for your convenience.

Best regards,

Kern

On Wednesday 10 August 2005 16:15, you wrote:
 Hi Kern,

 I've run into a problem with Bacula. I want to backup 2 clients with
 different files to back-up on the same tape so I have 2 different
 filesets defined in my bacula-dir.conf.
 Is that the correct method to be used in this situation?
 The weekly full backup goes to tape and the daily incremental backup
 goes to an extern harddisk.

 It works fine for backing up 1 client, but when I want to backup from
 the 2 clients I cannot get the backup on the same tape. The tape which
 already has the pre-labeled Volume Weekly001 from client1 doesn't
 accept another Volume.
 I ran into the same situation with the catalog backup. I want to have
 the catalog backup on the weekly full backup tape.

 I think it is useful for you to understand my problem if you can look
 at the content of my bacula-dir.conf.
 Therefore, I have included a textfile how my bacula-dir.conf looks
 like, as an attachment.

 I hope you can help me solve this problem.


 Greetings
 Robert Buurke


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bconsole spawns thousands of copies of itself

2005-08-10 Thread Phil Stracchino
Ron Wheeler wrote:
 I have now added a dummy (incorrect director to the bconsole.conf just to see 
 if it would even ask which one to pick. It does not get that far.
 
 Does anyone have any idea what circumstances would cause bconsole to spawn a 
 copy of itself. The copies are all in wait state butw hen you get 12000 of 
 them, there are always 11+ waiting for some sort of CPU attention.
 
 I seems to happen very early in the startup since ./bconsole -? does the same 
 thing. It prints bconsole doing -? 
 and then goes away and starts the descent into process hell.
 
 I think that I am just going to reinstall everything and try again.

It certainly sounds as though there is something VERY wrong with your
bconsole build.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


FW: [Bacula-users] bconsole spawns thousands of copies of itself

2005-08-10 Thread Ron Wheeler


-Original Message-
From: Ron Wheeler 
Sent: August 10, 2005 4:18 PM
To: 'Phil Stracchino'
Subject: RE: [Bacula-users] bconsole spawns thousands of copies of
itself



It looks OK. Could a problem with curses be involved? I had to install this 
(ncurses) since it was not part of the standard Mandrake setup - so many really 
useful things are not.

I had to find a version of zlib for Mandrake to get bacula to build with MySQL.

I tried to look at the bconsole code but I am not good enough to figure it out 
in a few minutes.

console seems to contain a lot of the functionality to get it started.

For the amount of functionality that it displays in my test, I should not be 
looking at a lot of code.
./bconsole -? should not get to deep into the code before it is done. I can see 
the section where the output is formulated but I do not understand how it gets 
there (or does not in my case) 
I am do not have a clear picture of the flow - where it starts , how it reads 
the command line and how it dispatches to the section that outputs the help. I 
did not come across any code that I could see spawning a new process but 
perhaps I would not recognize it unless the author has put a comment to that 
effect.

It can not be that much code but there is really no roadmap for the 
uninitiated. 

The really frustrating thing is that I have had all of this stuff working 
together on this same hardware for a few months and it was not that easy to set 
up - each piece of open source is a project to install. Once I got it going, it 
was pretty trouble-free.
It was a web server and Windows file server so I really need my backups for the 
client data and I was hoping to get back my configuration files to save me a 
lot of grief in setting up Apache, Tomcat, Samba, etc. The Madrake security 
stuff is a PITA by itself and I had all of the protections and access control 
working well. 


Ron



-Original Message-
From: Phil Stracchino [mailto:[EMAIL PROTECTED]
Sent: August 10, 2005 3:46 PM
To: Ron Wheeler
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] bconsole spawns thousands of copies of
itself


Ron Wheeler wrote:
 I have now added a dummy (incorrect director to the bconsole.conf just to see 
 if it would even ask which one to pick. It does not get that far.
 
 Does anyone have any idea what circumstances would cause bconsole to spawn a 
 copy of itself. The copies are all in wait state butw hen you get 12000 of 
 them, there are always 11+ waiting for some sort of CPU attention.
 
 I seems to happen very early in the startup since ./bconsole -? does the same 
 thing. It prints bconsole doing -? 
 and then goes away and starts the descent into process hell.
 
 I think that I am just going to reinstall everything and try again.

It certainly sounds as though there is something VERY wrong with your
bconsole build.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


FW: [Bacula-users] bconsole spawns thousands of copies of itself

2005-08-10 Thread Ron Wheeler


-Original Message-
From: Ron Wheeler 
Sent: August 10, 2005 4:22 PM
To: 'Phil Stracchino'
Subject: RE: [Bacula-users] bconsole spawns thousands of copies of
itself




In looking at the config.out from the bconsole build, I have conio enables 
using -lcurses
and readline no

For Mandrake is that the right way to go.

Ron

-Original Message-
From: Phil Stracchino [mailto:[EMAIL PROTECTED]
Sent: August 10, 2005 3:46 PM
To: Ron Wheeler
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] bconsole spawns thousands of copies of
itself


Ron Wheeler wrote:
 I have now added a dummy (incorrect director to the bconsole.conf just to see 
 if it would even ask which one to pick. It does not get that far.
 
 Does anyone have any idea what circumstances would cause bconsole to spawn a 
 copy of itself. The copies are all in wait state butw hen you get 12000 of 
 them, there are always 11+ waiting for some sort of CPU attention.
 
 I seems to happen very early in the startup since ./bconsole -? does the same 
 thing. It prints bconsole doing -? 
 and then goes away and starts the descent into process hell.
 
 I think that I am just going to reinstall everything and try again.

It certainly sounds as though there is something VERY wrong with your
bconsole build.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] GZIP speeds.

2005-08-10 Thread Dan Merillat
I've noticed quite a few threads discussing the horrendous speed drop
when using GZIP, and I've seen it myself.

disk-disk backups run at about 6mbyte/sec, but only 400k/sec when using GZIP1.
Is bacula-fd reporting compressed output speed?  

Best guess is the file readahead is failing when we're using gzip,
meaning we read, compress, then begin reading again.  Ideally, that
second read should be 'free', because the kernel has
already requested it.  In this case, it seems to be taking far too long.

One possibility may be forking, reading in one and compressing/writing
in the other.  This has two nice advantages, one, lots of dual CPU
systems and two even on single-processor systems we have constant
banging on the IO even while the other is CPU bound.

Something is very wrong, though, because gzip -6 on the same machine
pulls around
5.8meg/sec.  32k buffers, no forking.   Output (on mailboxes and
logfiles) is around 1.4meg/second.

--Dan


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


RE: FW: [Bacula-users] bconsole spawns thousands of copies of itself

2005-08-10 Thread Ron Wheeler

The fact that it crashes on -? and the eror in building conio is leaningthis 
way.
I do not know why the build is successful if the compile of conio fails. That 
looks like a bug in the make.

Ron
I almost forgot to reply to all again.


-Original Message-
From: Phil Stracchino [mailto:[EMAIL PROTECTED]
Sent: August 10, 2005 4:35 PM
To: Ron Wheeler
Cc: bacula-users@lists.sourceforge.net
Subject: Re: FW: [Bacula-users] bconsole spawns thousands of copies of
itself


Ron Wheeler wrote:
 It looks OK. Could a problem with curses be involved? I had to install this 
 (ncurses) since it was not part of the standard Mandrake setup - so many 
 really useful things are not.

At first thought, it doesn't sound likely that would maifest in this way.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Re: Bacula backup problem

2005-08-10 Thread Robert Buurke

Hi Phil,

You're right, I used Use Volume Once for the following reason.
For the full weekly backup to tape I want to use every week a new tape until 
a month has past for the full monthly backup. After that the weekly tapes 
are recycled, at least that was my idea (I used the example from the Bacula 
User Manual).



This is my bacula-dir.conf:

# Bacula Director Configuration file
#
# The only thing that MUST be changed is to add files or directories in the
# Include directive of the FileSet resource.
#
# For Bacula release 1.36.2 (28 February 2005) -- debian 3.1
#
# You might also want to change the default email address from root to your
# address. See the mail and operator directives in the Messages 
resource.



Director { # define myself
 Name = fabriek-test-dir
 DIRport = 9101  	   # where we listen for UA 
connections

 QueryFile = /etc/bacula/query.sql
 WorkingDirectory = /var/bacula/working
 PidDirectory = /var/run
 Maximum Concurrent Jobs = 1
 Password =# Console password
 Messages = Standard
}


# Define the main nightly save backup job for mmserver
Job {
 Name = client1
 Type = Backup
 Client = client1-fd
 FileSet = client1
 Level = Incremental
 Schedule = WeeklyCycle
 Storage = Maxtor
 Messages = Standard
 Pool = Daily
 Write Bootstrap = /var/bacula/client1.bsr
}

# Define the main nightly save backup job for fabriek-olvg
Job {
 Name = client2
 Type = Backup
 Client = client2-fd
 FileSet = client2
 Level = Incremental
 Schedule = WeeklyCycle
 Storage = Maxtor
 Messages = Standard
 Pool = Daily
 Write Bootstrap = /var/bacula/client2.bsr
}


# Backup the catalog database (after the main nightly save backup job)
Job {
 Name = Backup catalog
 Type = Backup
 Client = fabriek-test-fd
 FileSet= Catalog
 Level = Full
 Schedule = WeeklyCycleAfterBackup
 Storage = Maxtor
 Messages = Standard
 Pool = Catalog
 # This creates an ASCII copy of the catalog
 RunBeforeJob = /etc/bacula/make_catalog_backup bacula bacula
 # This deletes the copy of the catalog
 RunAfterJob = /etc/bacula/delete_catalog_backup
 Write Bootstrap = /var/bacula/working/BackupCatalog.bsr
}


# Standard Restore template, to be changed by Console program
# Custom Restore template for nightly save backup
Job {
 Name = Restore files
 Type = Restore
 Client = fabriek-test-fd
 FileSet = client1
 Storage = Maxtor
 Pool = Daily
 Messages = Standard
 Where = /tmp/bacula-restores
}


# List of files to be backed up from client1
FileSet {
 Name = client1
 Include {
   Options {
  Signature = MD5
  Exclude = yes
   }
   File = /var
   File = /home
   File = /backup
   File = /xtra
}
Exclude {
   File = /proc
   File = /tmp
   File = /.journal
   File = /.fsck
}
}

# List of files to be backed up from client2
FileSet {
 Name = client2
 Include {
   Options {
  Signature = MD5
   }
   File = C:/share
   File = C:/webapps
   File = C:/test
}
}


# When to do the backups
Schedule {
 Name = WeeklyCycle
 Run = Pool=Daily Tue-Fri at 11:00pm
 Run = Pool=Weekly 2nd-5th Monday at 11:00pm
 Run = Pool=Monthly 1st Mon at 11:00pm
}


# This does the catalog. It starts after the WeeklyCycle
#Schedule {
#  Name = WeeklyCycleAfterBackup
#  Run = Monday at 11:00pm
#}


# This is the backup of the catalog
#FileSet {
#  Name = Catalog
#  Include {
#Options {
#  Signature = MD5
#}
#File = /var/bacula/working/bacula.sql
# }
#}


# Client (File Services) to backup
Client {
 Name = fabriek-test-fd
 Address = fabriek-test
 FDPort = 9102
 Catalog = MyCatalog
 Password =  # password for FileDaemon
 File Retention = 30 days
 Job Retention = 6 months
 AutoPrune = yes# Prune expired Jobs/Files
}

# Client (File Services) to backup
Client {
 Name = client1-fd
 Address = 192.168.0.20
 FDPort = 9102
 Catalog = MyCatalog
 Password =  # password for FileDaemon
 File Retention = 30 days
 Job Retention = 6 months
 AutoPrune = yes# Prune expired Jobs/Files
}

# Client (File Services) to backup
Client {
 Name = client2-fd
 Address = 192.168.0.50
 FDPort = 9102
 Catalog = MyCatalog
 Password =  # password for FileDaemon
 File Retention = 30 days
 Job Retention = 6 months
 AutoPrune = yes# Prune expired Jobs/Files
}


# Definition of file storage device
# Maxtor USB Harddisk
Storage {
 Name = Maxtor
 Address = fabriek-test # Use a fully qualified name here
 SDPort = 9103
 Password = 
 Device = Maxtor
 Media Type = Disk
}

# Exabyte Tapestreamer
Storage {
 Name = Exabyte
 Address = fabriek-test  # Use a fully qualified name here
 SDPort = 9103
 Password = 
 Device = Exabyte
 Media Type = 8mm
}


# Generic catalog service
Catalog {
 Name = MyCatalog
 dbname = bacula; user = bacula; password = 
}


# Reasonable message delivery - send almost all to email address and to 
console

Messages {
 Name = Standard
 mailcommand = /sbin/bsmtp -h localhost 

Re: [Bacula-users] Re: Bacula backup problem

2005-08-10 Thread Phil Stracchino
Robert Buurke wrote:
 Hi Phil,
 
 You're right, I used Use Volume Once for the following reason.

Well, there you go then.  It's doing exactly what you told it to do.

Try using Volume Use Duration or Maximum Volume Jobs.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


RE: FW: [Bacula-users] bconsole spawns thousands of copies of itself

2005-08-10 Thread Paul Heinlein

On Wed, 10 Aug 2005, Ron Wheeler wrote:

The fact that it crashes on -? and the eror in building conio is 
leaningthis way. I do not know why the build is successful if the 
compile of conio fails. That looks like a bug in the make.


I'm a recent subscriber to bacula-users, so forgive me if using strace 
has already been suggested...


  strace -f -o /tmp/bconsole.trace ./bconsole -?

The output in /tmp/bconsole.trace should provide some clue as to 
what system call is tripping up.


Also, it might be worthwhile running ldd against your binary to make 
sure you're linked against the right libraries, e.g.,


  # ldd /usr/sbin/bconsole
libtermcap.so.2 = /lib/libtermcap.so.2 (0x0099)
libpthread.so.0 = /lib/tls/libpthread.so.0 (0x002ca000)
libstdc++.so.5 = /usr/lib/libstdc++.so.5 (0x005a2000)
libm.so.6 = /lib/tls/libm.so.6 (0x00bfa000)
libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x0057f000)
libc.so.6 = /lib/tls/libc.so.6 (0x00dfa000)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x004af000)

-- Paul Heinlein [EMAIL PROTECTED]


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re: Bacula backup problem

2005-08-10 Thread Robert Buurke
I'm going to try this tomorrow early in the morning. It sounds really 
simple, but the problem was my interpretation of Use Volume Once made me 
believe it was only for the volume on the tape and not for the whole tape.




From: Phil Stracchino [EMAIL PROTECTED]
To: Robert Buurke [EMAIL PROTECTED]
CC: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Re: Bacula backup problem
Date: Wed, 10 Aug 2005 17:42:22 -0400

Robert Buurke wrote:
 Hi Phil,

 You're right, I used Use Volume Once for the following reason.

Well, there you go then.  It's doing exactly what you told it to do.

Try using Volume Use Duration or Maximum Volume Jobs.



--
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users





---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


RE: FW: [Bacula-users] bconsole spawns thousands of copies of itself

2005-08-10 Thread Ron Wheeler
ldd just says that it is not a dynamic executable.

-Original Message-
From: Paul Heinlein [mailto:[EMAIL PROTECTED]
Sent: August 10, 2005 5:45 PM
To: Ron Wheeler
Cc: Phil Stracchino; bacula-users@lists.sourceforge.net
Subject: RE: FW: [Bacula-users] bconsole spawns thousands of copies of
itself


On Wed, 10 Aug 2005, Ron Wheeler wrote:

 The fact that it crashes on -? and the eror in building conio is 
 leaningthis way. I do not know why the build is successful if the 
 compile of conio fails. That looks like a bug in the make.

I'm a recent subscriber to bacula-users, so forgive me if using strace 
has already been suggested...

   strace -f -o /tmp/bconsole.trace ./bconsole -?

The output in /tmp/bconsole.trace should provide some clue as to 
what system call is tripping up.

Also, it might be worthwhile running ldd against your binary to make 
sure you're linked against the right libraries, e.g.,

   # ldd /usr/sbin/bconsole
 libtermcap.so.2 = /lib/libtermcap.so.2 (0x0099)
 libpthread.so.0 = /lib/tls/libpthread.so.0 (0x002ca000)
 libstdc++.so.5 = /usr/lib/libstdc++.so.5 (0x005a2000)
 libm.so.6 = /lib/tls/libm.so.6 (0x00bfa000)
 libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x0057f000)
 libc.so.6 = /lib/tls/libc.so.6 (0x00dfa000)
 /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x004af000)

-- Paul Heinlein [EMAIL PROTECTED]


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


RE: FW: [Bacula-users] bconsole spawns thousands of copies of itself

2005-08-10 Thread Ron Wheeler
I might give strace a try but right now I am trying to figure out why termcap.h 
is not found which seems to be related to configure using curses rather than 
ncurses. The only copy of termcap.h is in the ncurses directory

Ron


-Original Message-
From: Paul Heinlein [mailto:[EMAIL PROTECTED]
Sent: August 10, 2005 5:45 PM
To: Ron Wheeler
Cc: Phil Stracchino; bacula-users@lists.sourceforge.net
Subject: RE: FW: [Bacula-users] bconsole spawns thousands of copies of
itself


On Wed, 10 Aug 2005, Ron Wheeler wrote:

 The fact that it crashes on -? and the eror in building conio is 
 leaningthis way. I do not know why the build is successful if the 
 compile of conio fails. That looks like a bug in the make.

I'm a recent subscriber to bacula-users, so forgive me if using strace 
has already been suggested...

   strace -f -o /tmp/bconsole.trace ./bconsole -?

The output in /tmp/bconsole.trace should provide some clue as to 
what system call is tripping up.

Also, it might be worthwhile running ldd against your binary to make 
sure you're linked against the right libraries, e.g.,

   # ldd /usr/sbin/bconsole
 libtermcap.so.2 = /lib/libtermcap.so.2 (0x0099)
 libpthread.so.0 = /lib/tls/libpthread.so.0 (0x002ca000)
 libstdc++.so.5 = /usr/lib/libstdc++.so.5 (0x005a2000)
 libm.so.6 = /lib/tls/libm.so.6 (0x00bfa000)
 libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x0057f000)
 libc.so.6 = /lib/tls/libc.so.6 (0x00dfa000)
 /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x004af000)

-- Paul Heinlein [EMAIL PROTECTED]


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re: Bacula backup problem

2005-08-10 Thread Phil Stracchino
Robert Buurke wrote:
 I'm going to try this tomorrow early in the morning. It sounds really
 simple, but the problem was my interpretation of Use Volume Once made
 me believe it was only for the volume on the tape and not for the whole
 tape.

A volume IS a tape.  There is a one-to-one mapping of tapes to volumes.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


RE: FW: [Bacula-users] bconsole spawns thousands of copies of itself

2005-08-10 Thread Ron Wheeler
Mandrake does not include a curses development library only ncurses.
I can not figure out how I was able to build and run this the first time.
I had some trouble getting the configurations OK but no problems building it.

This is driving me crazy and the client really needs the files back on line. It 
is starting to affect their customers.

Ron


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ron
Wheeler
Sent: August 10, 2005 6:08 PM
To: Paul Heinlein
Cc: Phil Stracchino; bacula-users@lists.sourceforge.net
Subject: RE: FW: [Bacula-users] bconsole spawns thousands of copies of
itself


I might give strace a try but right now I am trying to figure out why termcap.h 
is not found which seems to be related to configure using curses rather than 
ncurses. The only copy of termcap.h is in the ncurses directory

Ron


-Original Message-
From: Paul Heinlein [mailto:[EMAIL PROTECTED]
Sent: August 10, 2005 5:45 PM
To: Ron Wheeler
Cc: Phil Stracchino; bacula-users@lists.sourceforge.net
Subject: RE: FW: [Bacula-users] bconsole spawns thousands of copies of
itself


On Wed, 10 Aug 2005, Ron Wheeler wrote:

 The fact that it crashes on -? and the eror in building conio is 
 leaningthis way. I do not know why the build is successful if the 
 compile of conio fails. That looks like a bug in the make.

I'm a recent subscriber to bacula-users, so forgive me if using strace 
has already been suggested...

   strace -f -o /tmp/bconsole.trace ./bconsole -?

The output in /tmp/bconsole.trace should provide some clue as to 
what system call is tripping up.

Also, it might be worthwhile running ldd against your binary to make 
sure you're linked against the right libraries, e.g.,

   # ldd /usr/sbin/bconsole
 libtermcap.so.2 = /lib/libtermcap.so.2 (0x0099)
 libpthread.so.0 = /lib/tls/libpthread.so.0 (0x002ca000)
 libstdc++.so.5 = /usr/lib/libstdc++.so.5 (0x005a2000)
 libm.so.6 = /lib/tls/libm.so.6 (0x00bfa000)
 libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x0057f000)
 libc.so.6 = /lib/tls/libc.so.6 (0x00dfa000)
 /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x004af000)

-- Paul Heinlein [EMAIL PROTECTED]


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: FW: [Bacula-users] bconsole spawns thousands of copies of itself

2005-08-10 Thread Phil Stracchino
Paul Heinlein wrote:
 On Wed, 10 Aug 2005, Ron Wheeler wrote:
 
 ldd just says that it is not a dynamic executable.
 
 
 Are you running ldd against /etc/bacula/bconsole or against
 /usr/sbin/bconsole? The former is a shell script, but the latter should
 be a compiled binary.


Ohh

I'll bet there's a path problem, and the bconsole script is recursively
spawning *ITSELF* instead of starting the bconsole binary.  That'd do it
for sure.  A configure error could cause that.

Check the paths *inside* the bconsole script.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bconsole spawns thousands of copies of itself

2005-08-10 Thread Sam De Francesco

In this case,

  sh -x /etc/bacula/bconsole

may give a clue what is going on.

regards
Sam De Francesco



On 11/08/2005, at 8:26 AM, Phil Stracchino wrote:

Paul Heinlein wrote:

On Wed, 10 Aug 2005, Ron Wheeler wrote:


ldd just says that it is not a dynamic executable.



Are you running ldd against /etc/bacula/bconsole or against
/usr/sbin/bconsole? The former is a shell script, but the latter should
be a compiled binary.



Ohh

I'll bet there's a path problem, and the bconsole script is recursively
spawning *ITSELF* instead of starting the bconsole binary.  That'd do it
for sure.  A configure error could cause that.

Check the paths *inside* the bconsole script.



--
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle 
Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  
QA
Security * Process Improvement  Measurement * 
http://www.sqe.com/bsce5sf

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



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


RE: FW: [Bacula-users] bconsole spawns thousands of copies of itself

2005-08-10 Thread Ron Wheeler
Yep. that is it. 

The problem is likely that I have too many locations mapped to the same 
directory and overwrote bconsole with the script so that the script calls 
itself.

The documentation suggests a directory structure:

  ./configure \
--sbindir=$HOME/bacula/bin \
--sysconfdir=$HOME/bacula/bin \
--with-pid-dir=$HOME/bacula/bin/working \
--with-subsys-dir=$HOME/bacula/bin/working \
--with-mysql=$HOME/mysql \
--with-working-dir=$HOME/bacula/bin/working \
--with-dump-email=$USER

I replace $HOME with /usr/local so that mine read something like this
  ./configure \
--sbindir=/usr/local/bacula/bin \
--sysconfdir=/usr/local/bacula/bin \
--with-pid-dir=/usr/local/bacula/bin/working \
--with-subsys-dir=/usr/local/bacula/bin/working \
--with-mysql=/usr/local/mysql \
--with-working-dir=/usr/local/bacula/bin/working \
[EMAIL PROTECTED]

I gather that this will overwrite the one of the 2 bconsoles. 
I think that I will try
  ./configure \
--sbindir=/usr/local/bacula/bin \
--sysconfdir=/etc/bacula/bin \
--with-pid-dir=/usr/local/bacula/bin/working \
--with-subsys-dir=/usr/local/bacula/bin/working \
--with-mysql=/usr/local/mysql \
--with-working-dir=/usr/local/bacula/bin/working \
[EMAIL PROTECTED]

which is what I think that I had the last time.

Someone might suggest fixing the documentation.

Ron



-Original Message-
From: Phil Stracchino [mailto:[EMAIL PROTECTED]
Sent: August 10, 2005 6:27 PM
To: Paul Heinlein
Cc: Ron Wheeler; bacula-users@lists.sourceforge.net
Subject: Re: FW: [Bacula-users] bconsole spawns thousands of copies of
itself


Paul Heinlein wrote:
 On Wed, 10 Aug 2005, Ron Wheeler wrote:
 
 ldd just says that it is not a dynamic executable.
 
 
 Are you running ldd against /etc/bacula/bconsole or against
 /usr/sbin/bconsole? The former is a shell script, but the latter should
 be a compiled binary.


Ohh

I'll bet there's a path problem, and the bconsole script is recursively
spawning *ITSELF* instead of starting the bconsole binary.  That'd do it
for sure.  A configure error could cause that.

Check the paths *inside* the bconsole script.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: FW: [Bacula-users] bconsole spawns thousands of copies of itself

2005-08-10 Thread Phil Stracchino
Ron Wheeler wrote:
 Yep. that is it. 
 
 The problem is likely that I have too many locations mapped to the same 
 directory and overwrote bconsole with the script so that the script calls 
 itself.
 
 The documentation suggests a directory structure:
 
   ./configure \
 --sbindir=$HOME/bacula/bin \
 --sysconfdir=$HOME/bacula/bin \
 --with-pid-dir=$HOME/bacula/bin/working \
 --with-subsys-dir=$HOME/bacula/bin/working \
 --with-mysql=$HOME/mysql \
 --with-working-dir=$HOME/bacula/bin/working \
 --with-dump-email=$USER


Uh..   yeah, that's sorta messed up.  sbindir and sysconfdir should
NOT be the same, and putting working under bin is pretty funky.

I use this:

./configure --prefix=/opt/bacula \
--with-pid-dir=/var/run \
--with-working-dir=/opt/bacula/var \
--with-subsys-dir=/opt/bacula/var \




 I replace $HOME with /usr/local so that mine read something like this
   ./configure \
 --sbindir=/usr/local/bacula/bin \
 --sysconfdir=/usr/local/bacula/bin \
 --with-pid-dir=/usr/local/bacula/bin/working \
 --with-subsys-dir=/usr/local/bacula/bin/working \
 --with-mysql=/usr/local/mysql \
 --with-working-dir=/usr/local/bacula/bin/working \
 [EMAIL PROTECTED]
 
 I gather that this will overwrite the one of the 2 bconsoles. 
 I think that I will try
   ./configure \
 --sbindir=/usr/local/bacula/bin \
 --sysconfdir=/etc/bacula/bin \
 --with-pid-dir=/usr/local/bacula/bin/working \
 --with-subsys-dir=/usr/local/bacula/bin/working \
 --with-mysql=/usr/local/mysql \
 --with-working-dir=/usr/local/bacula/bin/working \
 [EMAIL PROTECTED]


Try this:
./configure --prefix=/usr/local/bacula \
--with-mysql=/usr/local/mysql \
[EMAIL PROTECTED]


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


RE: FW: [Bacula-users] bconsole spawns thousands of copies of itself

2005-08-10 Thread Ron Wheeler
Sorry for the stupid question.

I finally got it to build a bconsole. I made a symbolic link in the 
/usr/include from the ncurses subdirectory for termcap.h.
After that it was happy. I noticed that the Mandrake innstall of ncurses had 
already done that for curses.h which may have contributed to my ills since 
config could find curses.h and may have assumed that termcap would have to be 
in the same place.

Bconsole runs finds my 2 director references and lets me pick one.
It fails on authorization but I am used to that and will check the passwords 
and usenames and hosts addresses to fix that.

Then I can restore my tapes and make everyone stop hating me.

Thanks to everyone who helped track this down. Great questions. Even the 
suggestions that I did not actualy try helped point me in the right direction 
and I learned more than a few things about Linux.

Ron

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ron
Wheeler
Sent: August 10, 2005 8:27 PM
To: Ron Wheeler; Phil Stracchino; Paul Heinlein
Cc: bacula-users@lists.sourceforge.net
Subject: RE: FW: [Bacula-users] bconsole spawns thousands of copies of
itself


I did the rebuild with the new config parameters but this time I did not get 
the startup file for /etc/init.d

What do they have in them?

Any idea were they might have gone?

Ron

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ron
Wheeler
Sent: August 10, 2005 6:40 PM
To: Phil Stracchino; Paul Heinlein
Cc: bacula-users@lists.sourceforge.net
Subject: RE: FW: [Bacula-users] bconsole spawns thousands of copies of
itself


Yep. that is it. 

The problem is likely that I have too many locations mapped to the same 
directory and overwrote bconsole with the script so that the script calls 
itself.

The documentation suggests a directory structure:

  ./configure \
--sbindir=$HOME/bacula/bin \
--sysconfdir=$HOME/bacula/bin \
--with-pid-dir=$HOME/bacula/bin/working \
--with-subsys-dir=$HOME/bacula/bin/working \
--with-mysql=$HOME/mysql \
--with-working-dir=$HOME/bacula/bin/working \
--with-dump-email=$USER

I replace $HOME with /usr/local so that mine read something like this
  ./configure \
--sbindir=/usr/local/bacula/bin \
--sysconfdir=/usr/local/bacula/bin \
--with-pid-dir=/usr/local/bacula/bin/working \
--with-subsys-dir=/usr/local/bacula/bin/working \
--with-mysql=/usr/local/mysql \
--with-working-dir=/usr/local/bacula/bin/working \
[EMAIL PROTECTED]

I gather that this will overwrite the one of the 2 bconsoles. 
I think that I will try
  ./configure \
--sbindir=/usr/local/bacula/bin \
--sysconfdir=/etc/bacula/bin \
--with-pid-dir=/usr/local/bacula/bin/working \
--with-subsys-dir=/usr/local/bacula/bin/working \
--with-mysql=/usr/local/mysql \
--with-working-dir=/usr/local/bacula/bin/working \
[EMAIL PROTECTED]

which is what I think that I had the last time.

Someone might suggest fixing the documentation.

Ron



-Original Message-
From: Phil Stracchino [mailto:[EMAIL PROTECTED]
Sent: August 10, 2005 6:27 PM
To: Paul Heinlein
Cc: Ron Wheeler; bacula-users@lists.sourceforge.net
Subject: Re: FW: [Bacula-users] bconsole spawns thousands of copies of
itself


Paul Heinlein wrote:
 On Wed, 10 Aug 2005, Ron Wheeler wrote:
 
 ldd just says that it is not a dynamic executable.
 
 
 Are you running ldd against /etc/bacula/bconsole or against
 /usr/sbin/bconsole? The former is a shell script, but the latter should
 be a compiled binary.


Ohh

I'll bet there's a path problem, and the bconsole script is recursively
spawning *ITSELF* instead of starting the bconsole binary.  That'd do it
for sure.  A configure error could cause that.

Check the paths *inside* the bconsole script.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net

[Bacula-users] Restore a whole backup

2005-08-10 Thread Ron Wheeler
If I am lucky, I have some full backups on tape that I not need to restore.

I now have a fresh, clean, running bacula with no knowledge of life before 5 
minutes ago.

I need to get the files off these tapes.
Any suggestions or warnings (besides write protect the media)?

I hope that bacula can figure out how it made all these tapes with backups 
spanning volumes.
Each tape should contain 2 full backups and a bit (25 GB going ona 72 GB media)

Ron


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


RE: [Bacula-users] Restore a whole backup

2005-08-10 Thread Ron Wheeler
Well now I am in big trouble.

I am trying to use bscan to read a tape and restore the catalog information 
from the tape.

I am following the example in the documentation
./bscan -s -m -c /etc/bacula/bacula-sd.conf -v -V D006 /dev/nst0
It says
bscan: butil.c:258 Using device: /dev/nst0 for reading
Aug 10 21:57 bscan Ready to read from volume D006 on device /dev/nst0
bscan: butil.c:274 Using Database: bacula User: bacula
bscan: butil.c:391 Volume is prelabeled. This tape can not be scanned.
Records added or updated in the catalog
0   Media
0   Job
0   Pool
0   File


1) it wanted the tape write enabled which makes me uncomfortable
2) Shouldn't it expect that each tape will be labeled if it has a backup on it.


Help. This is getting scary.

Ron



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ron
Wheeler
Sent: August 10, 2005 9:22 PM
To: bacula-users@lists.sourceforge.net
Cc: bacula-users@lists.sourceforge.net
Subject: [Bacula-users] Restore a whole backup


If I am lucky, I have some full backups on tape that I not need to restore.

I now have a fresh, clean, running bacula with no knowledge of life before 5 
minutes ago.

I need to get the files off these tapes.
Any suggestions or warnings (besides write protect the media)?

I hope that bacula can figure out how it made all these tapes with backups 
spanning volumes.
Each tape should contain 2 full backups and a bit (25 GB going ona 72 GB media)

Ron


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users