Ver código fonte

add eject script

Maximilian Ronniger 9 anos atrás
pai
commit
f2a775328f
1 arquivos alterados com 15 adições e 0 exclusões
  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"
+