Hi

> My way around that is adding the directive:
> 
>   RunAfterJob  = "/usr/local/bin/bacula-eject"
> 
> to the (last) backup job, where /usr/local/bin/bacula-eject is the
> script:

I would like to do that, but during the week I backup to disk.
Can I get this to run only if there is a tape job that ran?

> --------8<--------8<--------8<--------8<--------8<--------8<--------
> #!/bin/sh
> 
> # eject the tape from a standalone tape drive controlled by Bacula
> 
> PATH=/bin:/usr/bin ; export PATH
> 
> TAPENAME="LTO1"
> TAPEDEV="/dev/nst0"
> 
> BCONSOLE="/usr/sbin/bconsole -c /etc/bacula/bconsole.conf"
> MT="/usr/bin/mt"
> 
> # tell Bacula to release the drive
> echo "unmount ${TAPENAME}" | ${BCONSOLE}
> 
> # tell the drive to eject the tape
> ${MT} -f ${TAPEDEV} eject
> 
> # tell Bacula to watch the drive for tape insertion
> echo "mount ${TAPENAME}" | ${BCONSOLE}
> 
> # always signal success
> exit 0
> --------8<--------8<--------8<--------8<--------8<--------8<--------

-- 
Adrian Moisey
Systems Administrator | CareerJunction | Your Future Starts Here.
Web: www.careerjunction.co.za | Email: [EMAIL PROTECTED]
Phone: +27 21 818 8621 | Mobile: +27 82 858 7830 | Fax: +27 21 818 8855

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to