#!/usr/bin/bash LOGGER="logger --id=$$ -t $(basename $0)" # Audible alert beep -f 2637 -D 50 -l 100 -r 2 # Unmount and eject tape for this storage, because operator intervention is requested if [ $# -gt 0 ] && [ -n "$1" ]; then echo "unmount storage=\"$1\"" | bconsole /etc/bareos/tape-helper "$1" eject shift else echo "Warning: No tape storage supplied, cartridge will remain in drive" | $LOGGER fi # Send alert by email [ $# -gt 0 ] && exec "$@" exit 0