\subsection*{Autochanger Resource}
\index[sd]{Autochanger Resource }
\index[sd]{Resource!Autochanger }
\addcontentsline{toc}{subsection}{Autochanger Resource}

The Autochanger resource serves to group one or more Device resources     
into one unit called an autochanger in Bacula (referred to
as a tape library by autochanger manufacturers).

\begin{description}
\item [Name = \lt{}Autochanger-Name\gt{}]
   \index[sd]{Name}
   Specifies the Name of the Autochanger. This name is used in
   the Director's Storage definition to refer to the autochanger.
   This directive is required.  

\item [Device = \lt{}Device-name1, device-name2, ...\gt{}]
   Specifies the names of the Device resource that corresponds
   to the autochanger drive.  If you have a multiple drive
   autochanger, you must specify multiple Device names, each
   one referring to a Device resource that contains a the
   Drive Index specification that corresponds to the drive
   number. You may specify multiple device names on
   a single line separated by commas, and/or you may specify
   multiple Device directives.
   This directive is required.  

\item [Changer Device = {\it name-string}]
   \index[sd]{Changer Device}
   The specified {\bf name-string} gives the system file name of the  autochanger
   device name. If specified in this resource, the Changer Device name
   is not needed in the Device resource. If it is specified in the Device
   resource (see above), it will take precidence over one specified in
   the Autochanger resource.

\item [Changer Command = {\it name-string}]
   \index[sd]{Changer Command  }
   The {\bf name-string} specifies an external program to be called  that will
   automatically change volumes as required by {\bf Bacula}.  Most frequently,
   you will specify the Bacula supplied {\bf mtx-changer}  script as follows.
   If it is specified here, it need not be specified in the Device
   resource. If it is specified in the Device resource, it will take
   precidence over the one specified in the Autochanger resource.

\end{description}

The following is an example of a valid Autochanger resource definition: 

\footnotesize
\begin{verbatim}
Autochanger {
  Name = "DDS-4-changer"
  Device = DDS-4-1, DDS-4-2
  Changer Device = /dev/sg0
  Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
}
Device {
  Name = "DDS-4-1"
  Drive Index = 0
  ...
}
Device {
  Name = "DDS-4-2"
  Drive Index = 1
  ...
}
\end{verbatim}
\normalsize
