On Mar 29, 2007, at 11:28 AM, [EMAIL PROTECTED] wrote:

> How is the
>        File = "|...."
> mechanism implemented in the FileSet resource? Is there any way for  
> the external
> program to determine which client backup is causing the call to the  
> program? For
> example, if Bacula set and exported environment variables with  
> details about the
> job (the job name, client name, level, etc.), then the external  
> program to test
> that the server listed in the automount map matches the current  
> client, and no
> other machine.

Hmm. Come to think of it, I don't know whether the
File="\|/remote/script"
directive will take variable substitution. I'm going to write this  
post assuming it does not.


I bet you can use a Run-before-job script (running on the remote  
client) that generates the exclude list, and then specify that list  
file like:
File "\\</remote/excludelist.txt"

The reason I say to use a run-before-job is because I know in the  
Runscript directive you can pass certain job details to the remote  
script, and it can use that logic to build the proper exclude list.

Maybe...

RunScript {
     RunsWhen = Before
     Runs On Client = yes
     AbortJobOnError = Yes # You choice
     Command = "/remote/buildexcludelist.sh %c > /remote/ 
excludelist.txt"
}

Where Bacula should replace "%c" with the current client name, and  
your buildexcludelist.sh script can take that, parse it depending on  
how you name your clients, and put the appropriate exclude list into / 
remote/excludelist.txt. (If I am wrong, and you can also use %c in a  
Fileset remote script specification, then you can just call the  
script directly and use it's stdout and forget the run-before stuff.)

Good luck :)

--
--Darien A. Hager
[EMAIL PROTECTED]
Mobile: (206) 734-5666



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to