Ok, i have found it :-)

studying the documentation is mostly better than posting around :-)

> Hi all,
>
> i have written an perl Script for my colleagues, which does all the 
> restore jobs from one server, so that there is no need to use the bacula 
> console.
> this is for security reason. :-)
>
> The problem itself is now, that they start an restore job over the 
> script and the script does all what is needed to restore the files,
> but they cant read the mail that the restore job is done.
> An now my question:
> Is there an way in the bacula restore command to send the mail to an 
> specific e-mail adress, w/o adding more restore Jobs ?
>
> Greetings,
> Daniel
>
>   
/usr/local/bacula/etc/bconsole -c /usr/local/bacula/etc/bconsole.conf <<EOF
messages
@output /backup/messages.'.$rand.'
restore client=\"'.$clientname.'\" before=\"'.$date.'" 
file=?Restore_'.$rand.'
yes
wait job=\"Restore\"
messages
@output
quit
EOF'";

                if ($cmd =~ m/Restore OK/) {
                    print GREEN, "Restore OK\n", RESET;
                } else {
                    print RED, "Restore Fehler\n", RESET;
               };


Greetings,
Daniel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to