Hi,

I think that this is not issue when building from source or using
pre-packaged bacula installation.

Whatever "default" value for @working_dir@ will be after i
./configure, i still may need to set
WorkingDirectory value in bacula-dir.conf something else. For example
- if default value is set during installation to be "/var/some/thing",
my database dump can grow too big and does'nt to fit to there (/var).
So i simply change WorkingDirectory in bacula-dir.conf to point
somewhere where i do have enough room for it.

box /usr/ports/sysutils/bacula-server # grep rm
work/bacula-5.0.3/src/cats/delete_catalog_backup.in
rm -f @working_dir@/${db_name}.sql

So i think that right after "./configure && make" those paths are kind
of hardcoded.

--
Eimar Koort
( eimar.ko...@gmail.com )



2011/9/30 Kern Sibbald <k...@sibbald.com>:
> Hello,
>
> I cannot say what happens on FreeBSD, but the paths are definitely not
> hardcoded.  They are set during the ./configure process.  So, either there
> is some bug with FreeBSD or the ./configure line you used is incorrect.
>
> Any change to delete_catalog_backup will simply be overwritten the next
> time a ./configure is done since it is generated each time from
> delete_catalog_backup.in
>
> Regards,
>
> Kern
>
> On 09/30/2011 07:57 AM, Eimar Koort wrote:
>
> Hi,
>
> Problem is that catalog backup paths are hardcoded and scripts are
> failing if 'working dir' is not /var/db/bacula:
>
> Director {
> WorkingDirectory = "/data/bacula"
>
> Original files are located in /usr/local/share/bacula/ directory on FreeBSD.
>
> I also added two small patches. I'm aware that one of those patches is
> specific to FreeBSD. However - they should just give idea.
>
> Regards,
> --
> Eimar Koort
> ( eimar.ko...@gmail.com )
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2dcopy2
>
> _______________________________________________
> Bacula-devel mailing list
> Bacula-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-devel
>
>

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to