Bacula-users

Re: [Bacula-users] RunAfterJob and Environment

2010-01-27 14:51:41
Subject: Re: [Bacula-users] RunAfterJob and Environment
From: ganiuszka <ganiuszka AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 27 Jan 2010 20:46:33 +0100
Dirk H. Schulz pisze:
> Does Bacula call a "RunAfterJob" script with certain environment 
> variables or arguments like e.g. jobid, jobname, success/failure, etc.?

Hi

Yes, there is able to define environment variables in "Run After Job" 
directive, e.g.

%c = Client's name
%d = Director's name
%e = Job Exit Status
%i = JobId
%j = Unique Job id
%l = Job Level
%n = Job name
%s = Since time
%t = Job type (Backup, ...)
%v = Volume name (Only on director side)

For example:

Run After Job = "/path/script.sh %n %e"

More details you can find in a documentation:

http://bacula.org/5.0.x-manuals/en/main/main/Configuring_Director.html#SECTION001630000000000000000

Regards
gani

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>