#!/bin/sh echo "Release tapedrive" /etc/init.d/bacula-sd stop echo "Rewind Tape" mt -f /dev/st0 rewind echo "Write count EOF marks at current position." mt -f /dev/st0 weof echo "Rewind Tape" mt -f /dev/st0 rewind echo "Let Storage Daemon reclaim the tapedrive" /etc/init.d/bacula-sd start