\footnotesize
\begin{lstlisting}
-Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
+Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d"
\end{lstlisting}
\normalsize
Name = "Autochanger"
Device = DDS-4
Changer Device = /dev/sg0
- Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
+ Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d"
}
Device {
Name = "Autochanger"
Device = Drive-1, Drive-2
Changer Device = /dev/sg0
- Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
+ Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d"
}
Device {
Before attempting to use the autochanger with Bacula, it is preferable to
"hand-test" that the changer works. To do so, we suggest you do the
following commands (assuming that the {\bf mtx-changer} script is installed in
-{\bf /etc/bacula/mtx-changer}):
+{\bf /opt/bacula/scripts/mtx-changer}):
\begin{description}
\item [Make sure Bacula is not running.]
-\item [/etc/bacula/mtx-changer \ /dev/sg0 \ list \ 0 \ /dev/nst0 \ 0]
+\item [/opt/bacula/scripts/mtx-changer \ /dev/sg0 \ list \ 0 \ /dev/nst0 \ 0]
\index[sd]{mtx-changer list}
This command should print:
if {\bf /dev/sg0} is incorrect). For example, on FreeBSD systems, the
autochanger SCSI control device is generally {\bf /dev/pass2}.
-\item [/etc/bacula/mtx-changer \ /dev/sg0 \ listall \ 0 \ /dev/nst0 \ 0]
+\item [/opt/bacula/scripts/mtx-changer \ /dev/sg0 \ listall \ 0 \ /dev/nst0 \ 0]
\index[sd]{mtx-changer listall}
This command should print:
\end{lstlisting}
\normalsize
-\item [/etc/bacula/mtx-changer \ /dev/sg0 \ transfer \ 1 \ 2]
+\item [/opt/bacula/scripts/mtx-changer \ /dev/sg0 \ transfer \ 1 \ 2]
\index[sd]{mtx-changer listall}
This command should transfer a volume from source (1) to destination (2)
-\item [/etc/bacula/mtx-changer \ /dev/sg0 \ slots ]
+\item [/opt/bacula/scripts/mtx-changer \ /dev/sg0 \ slots ]
\index[sd]{mtx-changer slots}
This command should return the number of slots in your autochanger.
-\item [/etc/bacula/mtx-changer \ /dev/sg0 \ unload \ 1 \ /dev/nst0 \ 0 ]
+\item [/opt/bacula/scripts/mtx-changer \ /dev/sg0 \ unload \ 1 \ /dev/nst0 \ 0 ]
\index[sd]{mtx-changer unload}
If a tape is loaded from slot 1, this should cause it to be unloaded.
-\item [/etc/bacula/mtx-changer \ /dev/sg0 \ load \ 3 \ /dev/nst0 \ 0 ]
+\item [/opt/bacula/scripts/mtx-changer \ /dev/sg0 \ load \ 3 \ /dev/nst0 \ 0 ]
\index[sd]{mtx-changer load}
Assuming you have a tape in slot 3, it will be loaded into drive (0).
-\item [/etc/bacula/mtx-changer \ /dev/sg0 \ loaded \ 0 \ /dev/nst0 \ 0]
+\item [/opt/bacula/scripts/mtx-changer \ /dev/sg0 \ loaded \ 0 \ /dev/nst0 \ 0]
\index[sd]{mtx-changer loaded}
It should print "3"
because the drive parameter at the end of the command is needed to select
the correct drive.
-\item [/etc/bacula/mtx-changer \ /dev/sg0 \ unload \ 3 /dev/nst0 \ 0]
+\item [/opt/bacula/scripts/mtx-changer \ /dev/sg0 \ unload \ 3 /dev/nst0 \ 0]
will unload the tape into slot 3.
\footnotesize
\begin{lstlisting}
#!/bin/sh
-/etc/bacula/mtx-changer /dev/sg0 unload 1 /dev/nst0 0
-/etc/bacula/mtx-changer /dev/sg0 load 3 /dev/nst0 0
+/opt/bacula/scripts/mtx-changer /dev/sg0 unload 1 /dev/nst0 0
+/opt/bacula/scripts/mtx-changer /dev/sg0 load 3 /dev/nst0 0
mt -f /dev/st0 rewind
mt -f /dev/st0 weof
\end{lstlisting}
\footnotesize
\begin{lstlisting}
#!/bin/sh
-/etc/bacula/mtx-changer /dev/sg0 unload 1 /dev/nst0 0
+/opt/bacula/scripts/mtx-changer /dev/sg0 unload 1 /dev/nst0 0
mt -f /dev/st0 offline
-/etc/bacula/mtx-changer /dev/sg0 load 3 /dev/nst0 0
+/opt/bacula/scripts/mtx-changer /dev/sg0 load 3 /dev/nst0 0
mt -f /dev/st0 rewind
mt -f /dev/st0 weof
\end{lstlisting}