Bacula-users

[Bacula-users] relative order of scripts vs files

2016-04-13 11:38:59
Subject: [Bacula-users] relative order of scripts vs files
From: Lloyd Brown <lloyd_brown AT byu DOT edu>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 13 Apr 2016 09:37:51 -0600
If I have a situation like the attached file, can someone help me
understand which comes first, between the "Client Run Before Job"
script, and the "File = "\\</path/to/file" inside the FileSet?

The reason is this.  This situation is a little complicated, but the
short answer is that the "Client Run Before Job" script, will create the
file, which is later referenced in the fileset.  But I keep getting an
error like this:

> 13-Apr 09:24 zhomebackup2-fd JobId 59114: Fatal error: Cannot open
> FileSet input file: /etc/bacula/zhome_jobfile_lists/zhome_list_l.
> ERR=No such file or directory

And it's right.  The file doesn't exist ... yet.  But if it were to run
the "Client Run Before Job" script, it would exist.  It appears to be
trying to read the file first, before executing the script.

In this case, the file will change, though not very often.  I can create
it manually once, and then it should work ... kinda.  If it's reading
the fileset file first, then any changes would only be reflected on the
NEXT job, rather than the current one.  Not a tragedy, but certainly not
ideal.

Any recommendations here?  Am I completely misunderstanding the situation?

-- 
Lloyd Brown
Systems Administrator
Fulton Supercomputing Lab
Brigham Young University
http://marylou.byu.edu

Attachment: bacula_script_file_order_example.conf
Description: Text document

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users