Bacula-users

Re: [Bacula-users] Jobs from command line

2010-05-21 10:24:50
Subject: Re: [Bacula-users] Jobs from command line
From: Heitor Faria <heitor AT bacula.com DOT br>
To: Henrik Johansen <henrik AT scannet DOT dk>
Date: Fri, 21 May 2010 11:21:54 -0300
Henrik Johansen wrote:
> On 05/20/10 02:17 PM, Tyekanyk wrote:
>   
>> Hi List,
>>
>> Its a pretty easy question the one I have.
>>
>> I was wondering if it is possible to run certain job from command
>> line, by name or by anything that can be 'scriptable'.
>>
>> My interest lies in running the job from outside bacula with a script
>> or a command.
>>     
>
> Something like 'echo run jobname yes | bconsole ' ?
>   
Tape ejection example:

exec 6>&1
exec > /etc/bacula/scripts/status_tape_eject.log # [records script log]
/etc/bacula/bconsole -c /etc/bacula/bconsole.conf <<END
unmount storage=”[storage_name]”
END
exec 1>&6 6>&-

mt -f /dev/nst0 rewind

mt -f /dev/nst0 eject

Source: http://www.bacula.com.br/?p=200
>> Thanks!
>>
>>     
>
>
>   


------------------------------------------------------------------------------

_______________________________________________
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>