Bacula-users

[Bacula-users] expand Since Time on Client Run Before Job

2013-02-06 07:40:04
Subject: [Bacula-users] expand Since Time on Client Run Before Job
From: stefano scotti <scottistefano91 AT gmail DOT com>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Wed, 6 Feb 2013 13:37:01 +0100

Hi everybody,

i'm trying to pass the since time as a parameter to my client side script before running the job.
the user guide says that the related substitution character is "%s".

now, i know that not every variable expansion can be done on client side, in fact the user guide specifies that list:

    %% = %
%b = Job Bytes
%c = Client's name
%d = Daemon's name (Such as host-dir or host-fd)
%D = Director's name (Also valid on file daemon)
%e = Job Exit Status
%f = Job FileSet (Only on director side)
%F = Job Files
%h = Client address
%i = JobId
%j = Unique Job id
%l = Job Level
%n = Job name
%p = Pool name (Only on director side)
%s = Since time
%t = Job type (Backup, ...)
%v = Volume name (Only on director side)
%w = Storage name (Only on director side)
%x = Spooling enabled? ("yes" or "no")

as you see %s is not only on directory side.
despite of that the expansion occurs correctly only with Run Before Job and not with Client Run Before Job.
with the Client Run it always returns "*none*".
with the server side Run it returns "0000-00-00 00:00:00" while scheduling full backups and the correct relative data when scheduling incremental and differential ones.

i'm using bacula 5.0.2-2.2+squeeze1.

am i missing something or it is just a bug?

thank in advance for your help.


--
 Please consider the environment before printing this email
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
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>