Bacula-users

Re: [Bacula-users] Issue on catalog off-site backup

2014-12-01 10:58:55
Subject: Re: [Bacula-users] Issue on catalog off-site backup
From: "Fábio R. Medeiros" <fabior AT unicamp DOT br>
To: Heitor Faria <heitor AT bacula.com DOT br>
Date: Mon, 01 Dec 2014 13:55:31 -0200
On 01-12-2014 09:42, Heitor Faria wrote:
>> There are some strange behaviors, i.e., my catalog name is "Catalogo",
>> if the job is set to:
>>
>> ClientRunBeforeJob = "/usr/local/share/bacula/make_catalog_backup.pl
>> Catalogo"
>>
>> then I got the error:
>>
>> 26-Nov 03:00 bacula-fd JobId 43790: shell command: run ClientRunBeforeJob
>> "/usr/local/share/bacula/make_catalog_backup.pl Catalogo"
>> 26-Nov 03:00 bacula-fd JobId 43790:      Could not stat "": ERR=No such file
>> or directory
> Hey Mr. Fábio: are you sure that your Bacula Database dump script is in 
> /usr/local/share/bacula/?
> Usually this script is located at bacula scripts folder, witch can be changed 
> at compilation.
Hi Mr. Heitor,

Yes, I checked the path, it's all correct. I'm looking for possible 
errors in the script itself as suggested by Ana.

>
>> However, if the catalog name is changed to any other, the error changes to:
>>
>> Can't find your catalog (Catalog) in director configuration
> This is normal. If you changer your Catalog resource name you gotta change it 
> as the script variable - $1 ( e. g.: 
> "/usr/local/share/bacula/make_catalog_backup.pl new_Catalogo").
> So they really need to match.

For sure. But what I'm pointing out is if the catalog name is wrong, so 
server finds the script, run it and returns the error. But when set to 
the correct catalog name, the server simply doesn't find the script.

Regards!

Fábio

>
> Regards
> ==============================================================================
> Heitor Medrado de Faria - LPIC-III | ITIL-F
> 12 a 23 de janeiro de 2015 - Treinamento Telepresencial Bacula: 
> http://www.bacula.com.br/?p=2174
> 61 2021-8260 | 8268-4220
> Site: www.bacula.com.br | Facebook: heitor.faria | Gtalk: heitorfaria AT 
> gmail DOT com
> ===============================================================================
>
> ----- Mensagem original -----
>> De: "Fábio R. Medeiros" <fabior AT unicamp DOT br>
>> Para: bacula-users AT lists.sourceforge DOT net
>> Enviadas: Segunda-feira, 1 de dezembro de 2014 9:08:05
>> Assunto: [Bacula-users] Issue on catalog off-site backup
>>
>> Hello!!
>>
>> I've got a bacula server, updated to 7.0.5, running on a FreeBSD 10. I
>> also have an off-site backup of bacula server, witch is the client of
>> off-site bacula server.
>>
>> All jobs are running pretty well, but I've got issues on catalog backup.
>> This has occurred after the upgrade of my local server to version 7.0.5.
>> The off-site bacula server also runs version 7.
>>
>> There are some strange behaviors, i.e., my catalog name is "Catalogo",
>> if the job is set to:
>>
>> ClientRunBeforeJob = "/usr/local/share/bacula/make_catalog_backup.pl
>> Catalogo"
>>
>> then I got the error:
>>
>> 26-Nov 03:00 bacula-fd JobId 43790: shell command: run ClientRunBeforeJob
>> "/usr/local/share/bacula/make_catalog_backup.pl Catalogo"
>> 26-Nov 03:00 bacula-fd JobId 43790:      Could not stat "": ERR=No such file
>> or directory
>>
>> However, if the catalog name is changed to any other, the error changes to:
>>
>> Can't find your catalog (Catalog) in director configuration
>>
>> Thus, bacula aren't find the script when the catalog name is correct.
>> But if the catalog name is wrong, bacula find the script but, obviously,
>> don't find the catalog.
>>
>> Locally, that is, on my local bacula server the catalog job runs without
>> any errors.
>>
>> Do anyone know what's happening?
>>
>> Fábio
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Bacula-users mailing list
>> Bacula-users AT lists.sourceforge DOT net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users