From: Mantis B. T. <no...@bu...> - 2011-10-27 15:51:21
|
The following issue has been SUBMITTED. ====================================================================== http://bugs.bacula.org/view.php?id=1772 ====================================================================== Reported By: afuentes Assigned To: ====================================================================== Project: bacula Issue ID: 1772 Category: Director Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2011-10-27 16:51 BST Last Modified: 2011-10-27 16:51 BST ====================================================================== Summary: File = \</path/backup.dontDELETE in the fileset produces the catalog job to fail Description: as set in the doc, File = \</path/backup.dontDELETE should work fine, but it does not. The job works fine, but the catalog job failed instead with the error: 2011-10-27 16:43:04 comp-dir JobId 10757: shell command: run BeforeJob "/usr/local/bacula/bin/make_catalog_backup.pl MyCatalog" 2011-10-27 16:43:04 comp-dir JobId 10757: BeforeJob: Can't find your catalog (MyCatalog) in director configuration 2011-10-27 16:43:04 comp-dir JobId 10757: Error: Runscript: BeforeJob returned non-zero status=1. ERR=Child exited with code 1 2011-10-27 16:43:04 comp-dir JobId 10757: Error: Bacula comp-dir 5.0.0 (26Jan10): 27-Oct-2011 16:43:04 Build OS: x86_64-unknown-linux-gnu ubuntu 9.04 JobId: 10757 Job: BackupCatalog.2011-10-27_16.43.02_21 Backup Level: Full everytime i tried to run the job it failed. Workaround, use quotes in the fileset and double \ Steps to Reproduce: FileSet { Name = "machine_fs" Include { Options { compression=GZIP } File = \</path/backup.dontDELETE } } Job { Name = "BackupCatalog" Type = Backup Level = Full Client = comp-fd FileSet="Catalog" Schedule = "weeklybackup" # This creates an ASCII copy of the catalog # Arguments to make_catalog_backup.pl are: # make_catalog_backup.pl <catalog-name> Storage = disk1 Messages = Standard Pool = databases_1 RunBeforeJob = "/usr/local/bacula/bin/make_catalog_backup.pl MyCatalog" # This deletes the copy of the catalog RunAfterJob = "/usr/local/bacula/bin/delete_catalog_backup" Write Bootstrap = "/var/bacula/working/%n.bsr" Priority = 11 # run after main backup } Additional Information: make_catalog_backup.pl attached to show the following error just read (27-Oct 16:43 dbcheck: ERROR TERMINATION at inc_conf.c:646 ) just read (Config error: Backslash found. Use forward slashes or quote the string.: \</path/backup.dontDELETE ) just read ( ) just read ( : line 256, col 33 of file /usr/local/bacula/configs/fileset.conf ) just read ( File = \</path/backup.dontDELETE ) just read ( ) outside loop just read (catalog=MyCatalog ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2011-10-27 16:51 afuentes New Issue 2011-10-27 16:51 afuentes File Added: make_catalog_backup.pl ====================================================================== |