Browse Source

add eject script

Maximilian Ronniger 9 years ago
parent
commit
f2a775328f
1 changed files with 15 additions and 0 deletions
  1. 15 0
      bin/eject_tape

+ 15 - 0
bin/eject_tape

@@ -0,0 +1,15 @@
+#!/bin/sh
+/usr/bin/bconsole -c /etc/bacula/bconsole.conf <<END_OF_DATA
+unmount storage=TapeDrive
+END_OF_DATA
+#mt eject
+#sleep 10
+echo "LTO5 unmounted"
+mt eject -f /dev/st0
+echo "LTO5 ejected"
+#sleep 10
+/usr/bin/bconsole -c /etc/bacula/bconsole.conf <<END_OF_DATA
+mount storage=TapeDrive
+END_OF_DATA
+echo "enabling remount LTO5"
+