Hello,

maybe this issue has been clarified already - I just couldn't find it. Please don't spend time reading further if that is the case. Just give me a hint where to find the discussion.

My understanding from the manual is that the entire Job will (should?) terminate as '*** Backup Error ***' if the ClientRunAfterJob command returns something non-zero.

I am using a bash script as ClientRunAfterJob and tried two things:

        exit -1
and
        exit 5

when returning '-1' the job ends like this (Backup OK):

[...]
15-Sep 21:05 dd-lx-oracle3.dd.net-linx: ClientRunAfterJob: Thu 15 Sep 2005 
09:05:46 PM CEST - start backup check of Instance: DD31
15-Sep 21:05 dd-lx-oracle3.dd.net-linx: ClientRunAfterJob: Database Export of 
database DD31 was not successfull! Please check the logfile...
15-Sep 21:05 dd-lx-oracle3.dd.net-linx: DD31.2005-09-15_19.00.00 Fatal error: 
ClientRunAfterJob returned non-zero status=268435711. ERR=Unknown error during 
program execvp
15-Sep 21:05 dd-lx-backup.dd.net-linx: Bacula 1.36.3 (22Apr05): 15-Sep-2005 
21:05:46
  JobId:                  876
  Job:                    DD31.2005-09-15_19.00.00
  Backup Level:           Full (upgraded from Incremental)
  Client:                 dd-lx-oracle3
  FileSet:                "Data-UNIX-Oracle" 2005-08-05 19:00:01
  Pool:                   "disk4"
  Storage:                "disk4"
  Start time:             15-Sep-2005 19:00:01
  End time:               15-Sep-2005 21:05:46
  FD Files Written:       1
  SD Files Written:       1
  FD Bytes Written:       5,558,467,555
  SD Bytes Written:       5,558,467,641
  Rate:                   736.7 KB/s
  Software Compression:   81.1 %
  Volume name(s):         disk4-0004
  Volume Session Id:      292
  Volume Session Time:    1125570766
  Last Volume Bytes:      43,821,823,021
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK
[...]

when returning '5'  it ends like this (Backup OK - with warnings)
[...]
20-Sep 10:11 dd-lx-oracle3.dd.net-linx: DD31.2005-09-20_10.08.53 Fatal error: 
ClientRunAfterJob returned non-zero status=268435461. ERR=Child exited with 
code 5
20-Sep 10:11 dd-lx-backup.dd.net-linx: Bacula 1.36.3 (22Apr05): 20-Sep-2005 
10:11:10
  JobId:                  983
  Job:                    DD31.2005-09-20_10.08.53
  Backup Level:           Incremental, since=2005-09-15 19:00:01
  Client:                 dd-lx-oracle3
  FileSet:                "Data-UNIX-Oracle" 2005-08-05 19:00:01
  Pool:                   "disk4"
  Storage:                "disk4"
  Start time:             20-Sep-2005 10:09:55
  End time:               20-Sep-2005 10:11:10
  FD Files Written:       0
  SD Files Written:       0
  FD Bytes Written:       0
  SD Bytes Written:       0
  Rate:                   0.0 KB/s
  Software Compression:   None
  Volume name(s):         disk4-0008
  Volume Session Id:      1
  Volume Session Time:    1127203794
  Last Volume Bytes:      385
  Non-fatal FD errors:    1
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK -- with warnings
[...]

Bacula is clearly detecting the return code. But the Job Termination is always 'Backup OK' (with or without warnings). I would expect to see '*** Backup Error ***' in that case.

Is that something that should not be? Or is just my expectation wrong?

(please note that the second output was a test where I modified the script to exit right away - so it did not produce any output and no data was transfered)

thanks and regards,
Stephan


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to