>>>>> On Wed, 10 Apr 2019 09:48:59 +0100, Adam Weremczuk said:
> 
> Hi all,
> 
> I'm running old Bacula 5.2.6 with LTO-4 tapes and trying to add a test 
> job that will execute a script from the director:
> 
>   RunScript {
>           RunsWhen = after
>           RunsOnClient = no
>           RunsOnFailure = yes
>           FailJobOnError = no
>           Command = "/etc/bacula/scripts/test.sh %i"
>         }
> 
> I hoped that it would be enough to supply:
> 
>    Name = script_test
>    Type = Admin
> 
> but it keeps complaining:
> 
> sudo service bacula-director start
> 
> [....] Starting Bacula Director...: bacula-dir10-Apr 09:32 bacula-dir 
> ERROR TERMINATION
> "pool" directive in Job "script_test" resource is required, but not found.
>   failed!
> 
> [....] Starting Bacula Director...: bacula-dir10-Apr 09:34 bacula-dir 
> ERROR TERMINATION
> "client" directive in Job "script_test" resource is required, but not found.
>   failed!
> 
> etc.
> 
> Is it possible to define a job not involving a client, file set and tapes?

No, you must provide valid values for pool, client etc.  However, Admin jobs
will not actually use them for anything.

__Martin


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to