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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users