On Mon, 20 Oct 2008 07:39:53 +0200, Adrian Moisey wrote: > I have a Weekly pool with 10 tapes in it. Each full backup runs on a > sunday night and takes up 2 tapes. > > Once the first tape it done, it marks it as "Full". Once the second > tape is done, I have to manually unmount and eject it.
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: --------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<-------- > What should I > set the Status to on this tape? Also full? Normally you shouldn't need to change the tape status manually. Bacula will automatically set it to the appropriate value according to the pool parameters you set in the director configuration. If it doesn't, you can probably fix it by adjusting your pool parameters "Volume Use Duration" and/or "Maximum Volume Jobs". If after that you still have problems, report them here so we can discuss whether manually overriding the tape status is an appropriate solution. HTH T. -- Tilman Schmidt Phoenix Software GmbH Bonn, Germany
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- 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