Re: [Bacula-users] Retention on SD File

2009-11-25 Thread David Dumortier
Hi all,

David Dumortier a écrit :
 Hello,

 John Drescher a écrit :
 On Mon, Nov 23, 2009 at 4:16 AM, David Dumortier
 david.dumort...@linagora.com wrote:

 My bacula-sd.conf :
 Device {
  Name = stockage
  Media Type = File
  Archive Device = /mnt/sauvegardes
  LabelMedia = yes;                   # lets Bacula label unlabeled
 media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = yes;
 }

 My bacula-dir.conf :
 Client {
  Name = myhost
  Address = myIP
  FDPort = 9102
  Catalog = MyCatalog
  Password = *
  File Retention = 7 days
  Job Retention = 7 days
  AutoPrune = yes               # Prune expired Jobs/Files
 }


 They will grow until you run out of disk space on your storage if you
 do not set one of the 4 pool options to limit the size or usage of the
 volumes.

 * Use Volume Once = yes
 * Volume Use Duration = ttt
 * Maximum Volume Jobs = nnn
 * Maximum Volume Bytes = mmm

 see http://www.bacula.org/en/rel-manual/Automatic_Volume_Recycling.html

 Also remember that retention periods do not take effect until the
 volume is marked Full or Used.

 John


 Ok, so I missed this point in the documentation. So I read it.
 I don't understand everything (due to my poor english or subtilities I
 don't see).

 What I have :

 Pool {
   Name = Default
   Pool Type = Backup
   Recycle = yes
   AutoPrune = yes
   Volume Retention = 14 days
   Maximum Volumes = 2
 }

 My volumes :
 |   4 | P21| Append|   1 | 239,080,660,514 | ...
 |   5 | P220001| Append|   1 |   0 | ...


 What I want to reconfigure (is it in the Pool section ?) :
   Volume Use Duration = 7 days
   Maximum Volume Bytes = 250G

 Is this make a 2 weeks rotation ? (P21 for a week, P220001 for the second
 week)

 Thank you for any help
 --
 David Dumortier


So I have this on my bacula-dir.conf
Pool {
  Name = Default
  Pool Type = Backup
  Recycle = yes   # Bacula can automatically recycle
Volumes
  AutoPrune = yes # Prune expired volumes
  Volume Retention = 7 days   # one week
  Maximum Volumes = 30
  Maximum Volume Bytes = 25GB
  Volume Use Duration = 7 days
}

But I don't have any rotation on my SD-file.

Any help would be appreciated.
-- 
David Dumortier



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Retention on SD File

2009-11-25 Thread John Drescher
On Wed, Nov 25, 2009 at 4:07 AM, David Dumortier
david.dumort...@linagora.com wrote:
 Hi all,

 David Dumortier a écrit :
 Hello,

 John Drescher a écrit :
 On Mon, Nov 23, 2009 at 4:16 AM, David Dumortier
 david.dumort...@linagora.com wrote:

 My bacula-sd.conf :
 Device {
  Name = stockage
  Media Type = File
  Archive Device = /mnt/sauvegardes
  LabelMedia = yes;                   # lets Bacula label unlabeled
 media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = yes;
 }

 My bacula-dir.conf :
 Client {
  Name = myhost
  Address = myIP
  FDPort = 9102
  Catalog = MyCatalog
  Password = *
  File Retention = 7 days
  Job Retention = 7 days
  AutoPrune = yes               # Prune expired Jobs/Files
 }


 They will grow until you run out of disk space on your storage if you
 do not set one of the 4 pool options to limit the size or usage of the
 volumes.

     * Use Volume Once = yes
     * Volume Use Duration = ttt
     * Maximum Volume Jobs = nnn
     * Maximum Volume Bytes = mmm

 see http://www.bacula.org/en/rel-manual/Automatic_Volume_Recycling.html

 Also remember that retention periods do not take effect until the
 volume is marked Full or Used.

 John


 Ok, so I missed this point in the documentation. So I read it.
 I don't understand everything (due to my poor english or subtilities I
 don't see).

 What I have :

 Pool {
   Name = Default
   Pool Type = Backup
   Recycle = yes
   AutoPrune = yes
   Volume Retention = 14 days
   Maximum Volumes = 2
 }

 My volumes :
 |       4 | P21        | Append    |       1 | 239,080,660,514 | ...
 |       5 | P220001    | Append    |       1 |               0 | ...


 What I want to reconfigure (is it in the Pool section ?) :
   Volume Use Duration = 7 days
   Maximum Volume Bytes = 250G

 Is this make a 2 weeks rotation ? (P21 for a week, P220001 for the second
 week)

 Thank you for any help
 --
 David Dumortier


 So I have this on my bacula-dir.conf
 Pool {
  Name = Default
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle
 Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 7 days           # one week
  Maximum Volumes = 30
  Maximum Volume Bytes = 25GB
  Volume Use Duration = 7 days
 }

 But I don't have any rotation on my SD-file.

 Any help would be appreciated.
 --
 David Dumortier



Changes to some of these parameters after the fact only apply to new
volumes. To fix this use

update

then select Pool from resource

Then select your pool.

Also remember that Retention does not start until the volume is marked
Full or Used.

Use the list media command to check that.

John

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Best Practice tip: automatically cancel Jobs

2009-11-25 Thread Sascha Retzki
Hello List,

I've got a best practice question. When a Job is started it changes to 
Status=Running and the FD tries to connect to the SD. Let's assume this 
fails due to network outages, or in my case I configured an IP for the 
SD which is not accessible from the Client.

What happens is the Job sits in Status=Running and no Data is 
transfered. On canceling the Job,  I see things like:
25-Nov 11:25 bacula-dir JobId 27: Start Backup JobId 27, 
Job=bacula-test.2009-11-25_11.25.40
25-Nov 11:25 bacula-dir JobId 27: Created new Volume bacula-test-0017 
in catalog.
25-Nov 11:25 bacula-dir JobId 27: Using Device bacula-test-file
25-Nov 11:34 bacula-test-fd JobId 27: Fatal error: Failed to connect to 
Storage daemon: 192.168.1.xxx:9103
25-Nov 11:31 bacula-test-fd JobId 27: Warning: bsock.c:123 Could not 
connect to Storage daemon on 192.168.1.xxx:9103. ERR=Connection timed out
Retrying ...
25-Nov 11:34 bacula-dir JobId 27: Fatal error: Socket error on Storage 
command: ERR=No data available
25-Nov 11:34 bacula-dir JobId 27: Bacula bacula-dir 2.2.8 (26Jan08): 
25-Nov-2009 11:34:59
  Build OS:   x86_64-pc-linux-gnu debian lenny/sid
  JobId:  27
  Job:bacula-test.2009-11-25_11.25.40
  Backup Level:   Full
  Client: bacula-test-fd 2.4.4 (28Dec08) 
i486-pc-linux-gnu,debian,5.0
  FileSet:bacula-test-fileset 2009-11-25 11:25:10
  Pool:   bacula-test-pool (From Job resource)
  Storage:bacula-test-sd (From Pool resource)
  Scheduled time: 25-Nov-2009 11:24:58
  Start time: 25-Nov-2009 11:25:12
  End time:   25-Nov-2009 11:34:59
  Elapsed time:   9 mins 47 secs
  Priority:   10
  FD Files Written:   0
  SD Files Written:   0
  FD Bytes Written:   0 (0 B)
  SD Bytes Written:   0 (0 B)
  Rate:   0.0 KB/s
  Software Compression:   None
  VSS:no
  Storage Encryption: no
  Volume name(s):
  Volume Session Id:  2
  Volume Session Time:1259081276
  Last Volume Bytes:  0 (0 B)
  Non-fatal FD errors:0
  SD Errors:  0
  FD termination status:
  SD termination status:  Waiting on FD
  Termination:Backup Canceled



I've already set the following timeouts in my bacula-dir.conf:
Director {
...
FD Connect Timeout = 5
SD Connect Timeout = 1
...
}
(I had n postfixed to the numbers because I somewhere read it means 
minutes, so originally I had XD Connect Timeout = 5n, but it doesnt work 
either way)


Okay so I want it to timeout so it triggers a log message like it does 
when I cancel the job. I want the people who're responsible for these 
backup to come to the office in the morning and see their daily backup 
job succeeded or failed. I don't actually care if it cancels or not, at 
least if all the other jobs are succeeding regardlessly ;-)


Soo, give me your best practice advice, or tell me if I just did 
something wrong with teh configuration and I am on the wrong track!


Thanks in advance, Sascha

-- 
__
Sascha Retzki   n...@work Internet Informationssyteme
EMail: sas...@work.de   Wandalenweg 5 - 20097 Hamburg
Tel.: +49 (0)40-23 88 09-338Germany -   http://www.work.de
HR B 61 668 - Amtsgericht Hamburg Geschaeftsfuehrer Jan Diegelmann
__


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Retention on SD File

2009-11-25 Thread David Dumortier

John Drescher a écrit :
 On Wed, Nov 25, 2009 at 4:07 AM, David Dumortier
 david.dumort...@linagora.com wrote:
 Hi all,

 David Dumortier a écrit :
 Hello,

 John Drescher a écrit :
 On Mon, Nov 23, 2009 at 4:16 AM, David Dumortier
 david.dumort...@linagora.com wrote:

 My bacula-sd.conf :
 Device {
  Name = stockage
  Media Type = File
  Archive Device = /mnt/sauvegardes
  LabelMedia = yes;                   # lets Bacula label unlabeled
 media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = yes;
 }

 My bacula-dir.conf :
 Client {
  Name = myhost
  Address = myIP
  FDPort = 9102
  Catalog = MyCatalog
  Password = *
  File Retention = 7 days
  Job Retention = 7 days
  AutoPrune = yes               # Prune expired Jobs/Files
 }


 They will grow until you run out of disk space on your storage if you
 do not set one of the 4 pool options to limit the size or usage of the
 volumes.

     * Use Volume Once = yes
     * Volume Use Duration = ttt
     * Maximum Volume Jobs = nnn
     * Maximum Volume Bytes = mmm

 see
 http://www.bacula.org/en/rel-manual/Automatic_Volume_Recycling.html

 Also remember that retention periods do not take effect until the
 volume is marked Full or Used.

 John


 Ok, so I missed this point in the documentation. So I read it.
 I don't understand everything (due to my poor english or subtilities I
 don't see).

 What I have :

 Pool {
   Name = Default
   Pool Type = Backup
   Recycle = yes
   AutoPrune = yes
   Volume Retention = 14 days
   Maximum Volumes = 2
 }

 My volumes :
 |       4 | P21        | Append    |       1 | 239,080,660,514 | ...
 |       5 | P220001    | Append    |       1 |               0 | ...


 What I want to reconfigure (is it in the Pool section ?) :
   Volume Use Duration = 7 days
   Maximum Volume Bytes = 250G

 Is this make a 2 weeks rotation ? (P21 for a week, P220001 for the
 second
 week)

 Thank you for any help
 --
 David Dumortier


 So I have this on my bacula-dir.conf
 Pool {
  Name = Default
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle
 Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 7 days           # one week
  Maximum Volumes = 30
  Maximum Volume Bytes = 25GB
  Volume Use Duration = 7 days
 }

 But I don't have any rotation on my SD-file.

 Any help would be appreciated.
 --
 David Dumortier



 Changes to some of these parameters after the fact only apply to new
 volumes. To fix this use

 update

 then select Pool from resource

 Then select your pool.

Ok I have
MaxVolBytes 25,000,000,000
MaxVols 30

 Also remember that Retention does not start until the volume is marked
 Full or Used.

 Use the list media command to check that.

I have :
4 VolStatus Append VolBytes 296,395,270,741
5 VolStatus Append VolBytes 0

But I search an automatic method to mark my Vol 4 Full.
Perhaps I must tag the first time ?

Second question, have I to create the 30 volumes ?

 John


Thank you,
-- 
David Dumortier



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Retention on SD File

2009-11-25 Thread John Drescher
On Wed, Nov 25, 2009 at 10:08 AM, David Dumortier
david.dumort...@linagora.com wrote:

 John Drescher a écrit :
 On Wed, Nov 25, 2009 at 4:07 AM, David Dumortier
 david.dumort...@linagora.com wrote:
 Hi all,

 David Dumortier a écrit :
 Hello,

 John Drescher a écrit :
 On Mon, Nov 23, 2009 at 4:16 AM, David Dumortier
 david.dumort...@linagora.com wrote:

 My bacula-sd.conf :
 Device {
  Name = stockage
  Media Type = File
  Archive Device = /mnt/sauvegardes
  LabelMedia = yes;                   # lets Bacula label unlabeled
 media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = yes;
 }

 My bacula-dir.conf :
 Client {
  Name = myhost
  Address = myIP
  FDPort = 9102
  Catalog = MyCatalog
  Password = *
  File Retention = 7 days
  Job Retention = 7 days
  AutoPrune = yes               # Prune expired Jobs/Files
 }


 They will grow until you run out of disk space on your storage if you
 do not set one of the 4 pool options to limit the size or usage of the
 volumes.

     * Use Volume Once = yes
     * Volume Use Duration = ttt
     * Maximum Volume Jobs = nnn
     * Maximum Volume Bytes = mmm

 see
 http://www.bacula.org/en/rel-manual/Automatic_Volume_Recycling.html

 Also remember that retention periods do not take effect until the
 volume is marked Full or Used.

 John


 Ok, so I missed this point in the documentation. So I read it.
 I don't understand everything (due to my poor english or subtilities I
 don't see).

 What I have :

 Pool {
   Name = Default
   Pool Type = Backup
   Recycle = yes
   AutoPrune = yes
   Volume Retention = 14 days
   Maximum Volumes = 2
 }

 My volumes :
 |       4 | P21        | Append    |       1 | 239,080,660,514 | ...
 |       5 | P220001    | Append    |       1 |               0 | ...


 What I want to reconfigure (is it in the Pool section ?) :
   Volume Use Duration = 7 days
   Maximum Volume Bytes = 250G

 Is this make a 2 weeks rotation ? (P21 for a week, P220001 for the
 second
 week)

 Thank you for any help
 --
 David Dumortier


 So I have this on my bacula-dir.conf
 Pool {
  Name = Default
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle
 Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 7 days           # one week
  Maximum Volumes = 30
  Maximum Volume Bytes = 25GB
  Volume Use Duration = 7 days
 }

 But I don't have any rotation on my SD-file.

 Any help would be appreciated.
 --
 David Dumortier



 Changes to some of these parameters after the fact only apply to new
 volumes. To fix this use

 update

 then select Pool from resource

 Then select your pool.

 Ok I have
 MaxVolBytes 25,000,000,000
 MaxVols 30

 Also remember that Retention does not start until the volume is marked
 Full or Used.

 Use the list media command to check that.

 I have :
 4 VolStatus Append VolBytes 296,395,270,741
 5 VolStatus Append VolBytes 0

 But I search an automatic method to mark my Vol 4 Full.
 Perhaps I must tag the first time ?

No, this is not required however changing the pool resource in
bacula-dir.conf file does not (totally?) affect currently labeled
volumes. It is more of a plan for new volumes. That is why I wanted
you to update from pool resource. I put the (totally?) part in there
because I am not sure about the max vol size param. I do know
retention periods are not changed on currently labled volumes if you
reduce the retention time in the pool resource.

Did you execute the update pool from resource command that I suggested?

You can mark volume 4 full or used by the update volume status command
to force the retention period to begin.


 Second question, have I to create the 30 volumes ?

No.

John

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Client work with Windows 7 professional ?

2009-11-25 Thread bacula
Dear,

The client of version 3 are funcional with Windows 7 professional ?

someone did the test?

Thanks

Mauricio


--


**
Mauricio Bertholino
mauri...@bertholino.com.br
Fone: 11-7616-0777
**

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Client work with Windows 7 professional ?

2009-11-25 Thread Gavin McCullagh
On Wed, 25 Nov 2009, bac...@bertholino.com.br wrote:

 The client of version 3 are funcional with Windows 7 professional ?

I have installed a bacula-fd v3.0.3 on Windows 7 Professional and run some
backups against it successfully.

I wouldn't call it rigorous testing, but it seemed to work fine.  The
bacula-console was a little confusing in that (as far as I recall) it
wouldn't run from the start menu.  I think it had to run as local admin
from the command line user runas, but perhaps that's expected.

Gavin


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Best Practice tip: automatically cancel Jobs

2009-11-25 Thread Arno Lehmann
Hi,

25.11.2009 14:20, Sascha Retzki wrote:
 Hello List,
 
 I've got a best practice question. When a Job is started it changes to 
 Status=Running and the FD tries to connect to the SD. Let's assume this 
 fails due to network outages, or in my case I configured an IP for the 
 SD which is not accessible from the Client.

I suggest to first upgrade... the versions you're running are really 
old, and espcially regarding the different max ... time settings, much 
has been improved in between.

Furthermore, it's unlikely anybody has a 2.2.8 reference installation 
available any more :-)

Cheers,

Arno

 What happens is the Job sits in Status=Running and no Data is 
 transfered. On canceling the Job,  I see things like:
 25-Nov 11:25 bacula-dir JobId 27: Start Backup JobId 27, 
 Job=bacula-test.2009-11-25_11.25.40
 25-Nov 11:25 bacula-dir JobId 27: Created new Volume bacula-test-0017 
 in catalog.
 25-Nov 11:25 bacula-dir JobId 27: Using Device bacula-test-file
 25-Nov 11:34 bacula-test-fd JobId 27: Fatal error: Failed to connect to 
 Storage daemon: 192.168.1.xxx:9103
 25-Nov 11:31 bacula-test-fd JobId 27: Warning: bsock.c:123 Could not 
 connect to Storage daemon on 192.168.1.xxx:9103. ERR=Connection timed out
 Retrying ...
 25-Nov 11:34 bacula-dir JobId 27: Fatal error: Socket error on Storage 
 command: ERR=No data available
 25-Nov 11:34 bacula-dir JobId 27: Bacula bacula-dir 2.2.8 (26Jan08): 
 25-Nov-2009 11:34:59
   Build OS:   x86_64-pc-linux-gnu debian lenny/sid
   JobId:  27
   Job:bacula-test.2009-11-25_11.25.40
   Backup Level:   Full
   Client: bacula-test-fd 2.4.4 (28Dec08) 
 i486-pc-linux-gnu,debian,5.0
   FileSet:bacula-test-fileset 2009-11-25 11:25:10
   Pool:   bacula-test-pool (From Job resource)
   Storage:bacula-test-sd (From Pool resource)
   Scheduled time: 25-Nov-2009 11:24:58
   Start time: 25-Nov-2009 11:25:12
   End time:   25-Nov-2009 11:34:59
   Elapsed time:   9 mins 47 secs
   Priority:   10
   FD Files Written:   0
   SD Files Written:   0
   FD Bytes Written:   0 (0 B)
   SD Bytes Written:   0 (0 B)
   Rate:   0.0 KB/s
   Software Compression:   None
   VSS:no
   Storage Encryption: no
   Volume name(s):
   Volume Session Id:  2
   Volume Session Time:1259081276
   Last Volume Bytes:  0 (0 B)
   Non-fatal FD errors:0
   SD Errors:  0
   FD termination status:
   SD termination status:  Waiting on FD
   Termination:Backup Canceled
 
 
 
 I've already set the following timeouts in my bacula-dir.conf:
 Director {
 ...
 FD Connect Timeout = 5
 SD Connect Timeout = 1
 ...
 }
 (I had n postfixed to the numbers because I somewhere read it means 
 minutes, so originally I had XD Connect Timeout = 5n, but it doesnt work 
 either way)
 
 
 Okay so I want it to timeout so it triggers a log message like it does 
 when I cancel the job. I want the people who're responsible for these 
 backup to come to the office in the morning and see their daily backup 
 job succeeded or failed. I don't actually care if it cancels or not, at 
 least if all the other jobs are succeeding regardlessly ;-)
 
 
 Soo, give me your best practice advice, or tell me if I just did 
 something wrong with teh configuration and I am on the wrong track!
 
 
 Thanks in advance, Sascha
 

-- 
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Cannot find shared script applybaculadate

2009-11-25 Thread Timo Neuvonen
  After updating two Bacula 3.0.2 servers to version 3.0.3 both of them
  started to claim this:
 
  
  /etc/cron.daily/0logwatch:
 
  Cannot find shared script applybaculadate
  
 
  Both are 64-bit CentOS5 systems, rpm installations.
 
  This is obviously due to some packaging specific change in log file
  handling.
  Has anyone else met this, any ideas how to start troublesoot?
 
  Same day I also updated these systems from CentOS 5.3 to 5.4

 Check if you've got files that look like they are logwatch-related in
 /etc/log.d/ - I was pointed to this issue by a customer and haven't
 investigated yet, but it looks like a packaging issue.

 Ideally, you'd only have to move those files to their correct
 locations in /etc/logwatch/ and everything's fine.


Actually, looks like it's vice versa, there used to be bacula-related files 
under log.d, but now they are under logwatch, which previously was 
practically empty (in my system).
The file trees under both these directories are shown at the very far below, 
for both the new and before-upgrade systems.

Currently  /etc/logwatch/scripts/services/bacula  starts this way:

#!/usr/bin/perl -w
#
# logwatch filter script for bacula log files
#
# Mon Jan 03 2005
# D. Scott Barninger and Karl Cunningham
clip

So, to me it looks that it's in the correct tree now, something 
logwatch-related under /etc/logwatch. Sounds reasonable?


/etc/logwatch/conf/services/bacula.conf  after the update:

Title = bacula

# Which logfile group...
LogFile = bacula

*ApplyBaculaDate =

The last line here sounds like the script name in the error message, that 
could not be found. Should it possibly be edited to point to the script 
above or something..?
(sorry, I don't know the internals of logwatch)


Finally,  /etc/logwatch/conf/logfiles/bacula.conf  (edited, since I write 
logs to /var/log/... instead of packager's default)

# What actual file?  Defaults to LogPath if not absolute path
# LogFile = /var/lib/bacula/log
LogFile = /var/log/bacula/log



Is it possible that the logwatch wasn't working previously at all, due to 
mislocated files?
This will be a guess only, but I'll add to the last line of 
/etc/logwatch/conf/services/bacula.conf  a path to the perl script above. 
Tomorrow I'll see if there was a new error message again...
Whether it works or not, I hope someone more competent than me could have a 
look at it too.


Old set of files restored from a backup of 3.0.2:

[r...@garfield etc]# pwd
/tmp/bacula-restores/etc
[r...@garfield etc]# tree -D log.d/
log.d/
|-- [Jan 28  2009]  conf
|   |-- [Jul 31 10:15]  logfiles
|   |   `-- [Jul 31  0:21]  bacula.conf
|   `-- [Jul 31 10:15]  services
|   `-- [Jul 14 22:10]  bacula.conf
`-- [Jan 28  2009]  scripts
`-- [Jul 31 10:15]  services
`-- [Jul 14 22:10]  bacula

5 directories, 3 files
[r...@garfield etc]# tree -D logwatch/
logwatch/
|-- [Dec 27  2008]  conf
|   |-- [May 24  2008]  ignore.conf
|   |-- [May 24  2008]  logfiles
|   |-- [May 24  2008]  logwatch.conf
|   |-- [May 24  2008]  override.conf
|   `-- [May 24  2008]  services
`-- [May 24  2008]  scripts

4 directories, 3 files


And a new set of files in the current system, after 3.0.2 - 3.0.3 upgrade:

[r...@garfield etc]# pwd
/etc
[r...@garfield etc]# tree -D log.d/
log.d/
|-- [Jan 28  2009]  conf
|   |-- [Nov 22  2:06]  logfiles
|   `-- [Nov 22  2:06]  services
`-- [Jan 28  2009]  scripts
`-- [Nov 22  2:06]  services

5 directories, 0 files
[r...@garfield etc]# tree -D logwatch/
logwatch/
|-- [Nov 22 19:33]  conf
|   |-- [May 24  2008]  ignore.conf
|   |-- [Nov 22 19:39]  logfiles
|   |   `-- [Nov 22 19:39]  bacula.conf
|   |-- [May 24  2008]  logwatch.conf
|   |-- [May 24  2008]  override.conf
|   `-- [Nov 22 19:34]  services
|   `-- [Oct 18 12:10]  bacula.conf
`-- [Nov 22  2:06]  scripts
`-- [Nov 22 19:32]  services
`-- [Oct 18 12:10]  bacula

5 directories, 6 files




--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Cannot find shared script applybaculadate

2009-11-25 Thread Arno Lehmann
Hi,

25.11.2009 20:16, Timo Neuvonen wrote:
 After updating two Bacula 3.0.2 servers to version 3.0.3 both of them
 started to claim this:

 
 /etc/cron.daily/0logwatch:

 Cannot find shared script applybaculadate
 

 Both are 64-bit CentOS5 systems, rpm installations.

 This is obviously due to some packaging specific change in log file
 handling.
 Has anyone else met this, any ideas how to start troublesoot?

 Same day I also updated these systems from CentOS 5.3 to 5.4
 Check if you've got files that look like they are logwatch-related in
 /etc/log.d/ - I was pointed to this issue by a customer and haven't
 investigated yet, but it looks like a packaging issue.

 Ideally, you'd only have to move those files to their correct
 locations in /etc/logwatch/ and everything's fine.
 
 
 Actually, looks like it's vice versa, there used to be bacula-related files 
 under log.d, but now they are under logwatch, which previously was 
 practically empty (in my system).

Now I'm confused... I understand that, the files placed into 
/etc/logwatch/, logwatch works. But that's what  suggested, not vice 
versa.

...
 (sorry, I don't know the internals of logwatch)

Exactly my problem, too :-)

Cheers,

Arno

-- 
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Unable to run bacula-dir

2009-11-25 Thread arigion


Chandranshu . wrote:
 
 The only change I made was to insert the password 'bacula' in the 
 bacula-dir.conf file in the CATALOG section. And this was after it didn't 
 work without passwords. The relevant section of the bacula-dir.conf file is:
 # Generic catalog service
 Catalog {
   Name = MyCatalog
   dbname = bacula; dbuser = bacula; dbpassword = bacula
 }
 


Hi, I had the same problem. It seems that the semicolon ; is the problem. Try 
this:

nbsp;Catalog #123;
nbsp; Name = MyCatalog
nbsp; dbname = bacula 
nbsp; dbuser = bacula 
nbsp; dbpassword = bacula
#125;


+--
|This was sent by aa...@hotmail.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Incremental and full backups of the same host to different disks

2009-11-25 Thread Moby
It is my understanding that one must use the same job name for full and
incremental backups, otherwise Bacula is not able to perform an
incremental backup.
I have a need to send full backups of machines to one disk and
incremental backups to another disk.  If I have to use the same job
definition for both incremental and full backups (with incremental and
full backup levels being specified in the schedule definition), then how
can I send full backups to one disk and incrementals to another?

Thanks in advance for any help.

-- 
--Moby

They that can give up essential liberty to obtain a little temporary safety 
deserve neither liberty nor safety.  -- Benjamin Franklin



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Incremental and full backups of the same host to different disks

2009-11-25 Thread Ralf Gross
Moby schrieb:
 It is my understanding that one must use the same job name for full and
 incremental backups, otherwise Bacula is not able to perform an
 incremental backup.
 I have a need to send full backups of machines to one disk and
 incremental backups to another disk.  If I have to use the same job
 definition for both incremental and full backups (with incremental and
 full backup levels being specified in the schedule definition), then how
 can I send full backups to one disk and incrementals to another?

you can overwrite the storage device and the pool in your schedule resource.


Schedule {
  Name = Backup VU0EM005
  Run = Level=Full 1st sun at 00:08
  Run = Level=Differential Storage=VU0EM005-DISK 
Pool=VU0EM005-Disk-Differential 2nd-5th sun at 00:08
  Run = Level=Incremental Storage=VU0EM005-DISK Pool=VU0EM005-Disk-Incremental 
tue-sat at 00:08
}

Ralf

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users