1 \subsection*{Autochanger Resource}
2 \index[sd]{Autochanger Resource }
3 \index[sd]{Resource!Autochanger }
4 \addcontentsline{toc}{subsection}{Autochanger Resource}
6 The Autochanger resource serves to group one or more Device resources
7 into one unit called an autochanger in Bacula (referred to
8 as a tape library by autochanger manufacturers).
11 \item [Name = \lt{}Autochanger-Name\gt{}]
13 Specifies the Name of the Autochanger. This name is used in
14 the Director's Storage definition to refer to the autochanger.
15 This directive is required.
17 \item [Device = \lt{}Device-name1, device-name2, ...\gt{}]
18 Specifies the names of the Device resource that corresponds
19 to the autochanger drive. If you have a multiple drive
20 autochanger, you must specify multiple Device names, each
21 one referring to a Device resource that contains a the
22 Drive Index specification that corresponds to the drive
23 number. You may specify multiple device names on
24 a single line separated by commas, and/or you may specify
25 multiple Device directives.
26 This directive is required.
28 \item [Changer Device = {\it name-string}]
29 \index[sd]{Changer Device}
30 The specified {\bf name-string} gives the system file name of the autochanger
31 device name. If specified in this resource, the Changer Device name
32 is not needed in the Device resource. If it is specified in the Device
33 resource (see above), it will take precidence over one specified in
34 the Autochanger resource.
36 \item [Changer Command = {\it name-string}]
37 \index[sd]{Changer Command }
38 The {\bf name-string} specifies an external program to be called that will
39 automatically change volumes as required by {\bf Bacula}. Most frequently,
40 you will specify the Bacula supplied {\bf mtx-changer} script as follows.
41 If it is specified here, it need not be specified in the Device
42 resource. If it is specified in the Device resource, it will take
43 precidence over the one specified in the Autochanger resource.
47 The following is an example of a valid Autochanger resource definition:
52 Name = "DDS-4-changer"
53 Device = DDS-4-1, DDS-4-2
54 Changer Device = /dev/sg0
55 Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"