my backup catalog job seems to not run the runbefore/runafter scripts to make an sql dump. this is bacula 1.38.0 with postgres db. the scripts run if i run them from a shell and the scripts are listed in bconsole if i run show jobs. the job description in bacula-dir.conf is:
Job { Name = "BackupCatalog" JobDefs = "DefaultJob" Level = Full FileSet="Catalog" Schedule = "WeeklyCycleAfterBackup" # This creates an ASCII copy of the catalog #RunBeforeJob = "/bacula/bin/make_catalog_backup bacula bacula" RunBeforeJob = "/bacula/bin/make_catalog_backup bacula bacula" # This deletes the copy of the catalog RunAfterJob = "/bacula/bin/delete_catalog_backup" Write Bootstrap = "/bacula/working/BackupCatalog.bsr" Priority = 11 # run after main backup } and in list jobs in bconsole: Job: name=BackupCatalog JobType=66 level=Full Priority=11 MaxJobs=1 Resched=0 Times=0 Interval=1,800 Spool=0 WritePartAfterJob=0 --> Client: name=rock-fd address=rockhopper.ornl.gov FDport=9102 MaxJobs=1 JobRetention=6 months FileRetention=1 month AutoPrune=1 --> Catalog: name=MyCatalog address=*None* DBport=0 db_name=bacula db_user=bacula MutliDBConn=0 --> FileSet: name=Catalog O M N I /bacula/working/bacula.sql N --> Schedule: name=WeeklyCycleAfterBackup --> Run Level=Full hour=5 mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 month=0 1 2 3 4 5 6 7 8 9 10 11 wday=1 wom=0 1 2 3 4 woy=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 mins=10 --> Run Level=Full hour=13 mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 month=0 1 2 3 4 5 6 7 8 9 10 11 wday=5 wom=0 1 2 3 4 woy=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 mins=10 --> RunBefore=/bacula/bin/make_catalog_backup bacula bacula --> RunAfter=/bacula/bin/delete_catalog_backup --> WriteBootstrap=/bacula/working/BackupCatalog.bsr --> Storage: name=File address=lance SDport=9103 MaxJobs=1 DeviceName=FileStorage MediaType=File StorageId=1 --> Pool: name=Default PoolType=Backup use_cat=1 use_once=1 acpt_any=1 cat_files=1 max_vols=0 auto_prune=1 VolRetention=1 month 15 days VolUse=0 secs recycle=1 LabelFormat=Default- CleaningPrefix=*None* LabelType=0 RecyleOldest=0 PurgeOldest=0 MaxVolJobs=0 MaxVolFiles=0 --> Messages: name=Standard mailcmd=/bacula/bin/bsmtp -h localhost -f "(Bacula) %r" -s "Bacula: %t %e of %c %l" %r opcmd=/bacula/bin/bsmtp -h localhost -f "(Bacula) %r" -s "Bacula: Intervention needed for %j" %r and the console output from running a job: *run Using default Catalog name=MyCatalog DB=bacula A job name must be specified. The defined Job resources are: 1: BackupCatalog 2: RestoreFiles 3: rockhopper Select Job resource (1-3): 1 Run Backup job JobName: BackupCatalog FileSet: Catalog Level: Full Client: rock-fd Storage: File Pool: Default When: 2005-11-11 13:55:58 Priority: 11 OK to run? (yes/mod/no): Job started. JobId=11 * You have messages. * *messages 11-Nov 13:56 lance-dir: Start Backup JobId 11, Job=BackupCatalog.2005-11-11_13.56.01 11-Nov 13:56 lance-dir: Created new Volume "Default-0008" in catalog. 11-Nov 13:56 lance-sd: Labeled new Volume "Default-0008" on device "FileStorage" (/backups/local). 11-Nov 13:56 lance-sd: Wrote label to prelabeled Volume "Default-0008" on device "FileStorage" (/backups/local) 11-Nov 13:56 rockhopper-fd: Could not stat /bacula/working/bacula.sql: ERR=No such file or directory 11-Nov 13:56 lance-dir: Volume used once. Marking Volume "Default-0008" as Used. 11-Nov 13:56 lance-dir: Bacula 1.38.0 (28Oct05): 11-Nov-2005 13:56:06 JobId: 11 Job: BackupCatalog.2005-11-11_13.56.01 Backup Level: Full Client: "rock-fd" x86_64-unknown-linux-gnu,suse,9.3 FileSet: "Catalog" 2005-11-11 13:04:05 Pool: "Default" Storage: "File" Scheduled time: 11-Nov-2005 13:55:58 Start time: 11-Nov-2005 13:56:03 End time: 11-Nov-2005 13:56:06 Priority: 11 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): Default-0008 Volume Session Id: 4 Volume Session Time: 1131733992 Last Volume Bytes: 395 Non-fatal FD errors: 1 SD Errors: 0 FD termination status: OK SD termination status: OK Termination: Backup OK -- with warnings 11-Nov 13:56 lance-dir: Begin pruning Jobs. 11-Nov 13:56 lance-dir: No Jobs found to prune. 11-Nov 13:56 lance-dir: Begin pruning Files. 11-Nov 13:56 lance-dir: No Files found to prune. 11-Nov 13:56 lance-dir: End auto prune. thanks! -- michael ------------------------------------------------------- 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