Explorar el Código

add eject script

Maximilian Ronniger hace 9 años
padre
commit
f2a775328f
Se han modificado 1 ficheros con 15 adiciones y 0 borrados
  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"
+