On 10/20/2014 6:53 PM,
hei...@bacula.com.br wrote:
Unless it has changed, a Type=Admin job cannot execute scripts on the client machine. To run a script on a client as a "psuedo" admin job, define a second Type=Backup job for the SD that selects no files to backup and add the ClientRunAfterJob script to that job, scheduling/prioritizing the "psuedo" admin job to be the last job to run. I also suggest redirecting stdXXX for the mt command and running it in the background. RunScript { RunsWhen = After RunsOnClient = Yes Command = "/usr/local/bin/bacula-eject.sh" } #!/bin/bash # /usr/local/bin/my-eject.sh on the SD machine mt -f /dev/st0 eject >/var/log/bacula/eject.log 2>&1 < /dev/null & # eof
|
------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users