2 # Default Bacula Storage Daemon Configuration file
4 # For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@ @DISTVER@
6 # You may need to change the name of your tape drive
7 # on the "Archive Device" directive in the Device
8 # resource. If you change the Name and/or the
9 # "Media Type" in the Device resource, please ensure
10 # that dird.conf has corresponding changes.
13 # Copyright (C) 2000-2017 Kern Sibbald
14 # License: BSD 2-Clause; see file LICENSE-FOSS
17 Storage { # definition of myself
19 SDPort = @sd_port@ # Director's port
20 WorkingDirectory = "@working_dir@"
21 Pid Directory = "@piddir@"
22 Plugin Directory = "@plugindir@"
23 Maximum Concurrent Jobs = 20
27 # List Directors who are permitted to contact Storage daemon
31 Password = "@sd_password@"
35 # Restricted Director, used by tray-monitor to get the
36 # status of the storage daemon
40 Password = "@mon_sd_password@"
45 # Note, for a list of additional Device templates please
46 # see the directory <bacula-source>/examples/devices
47 # Or follow the following link:
48 # http://www.bacula.org/git/cgit.cgi/bacula/tree/bacula/examples/devices?h=Branch-7.4
52 # Devices supported by this Storage daemon
53 # To connect, the Director's bacula-dir.conf must have the
54 # same Name and MediaType.
58 # Define a Virtual autochanger
62 Device = FileChgr1-Dev1, FileChgr1-Dev2
64 Changer Device = /dev/null
70 Archive Device = @archivedir@
71 LabelMedia = yes; # lets Bacula label unlabeled media
73 AutomaticMount = yes; # when device opened, read it
76 Maximum Concurrent Jobs = 5
82 Archive Device = @archivedir@
83 LabelMedia = yes; # lets Bacula label unlabeled media
85 AutomaticMount = yes; # when device opened, read it
88 Maximum Concurrent Jobs = 5
92 # Define a second Virtual autochanger
96 Device = FileChgr2-Dev1, FileChgr2-Dev2
98 Changer Device = /dev/null
102 Name = FileChgr2-Dev1
104 Archive Device = @archivedir@
105 LabelMedia = yes; # lets Bacula label unlabeled media
107 AutomaticMount = yes; # when device opened, read it
110 Maximum Concurrent Jobs = 5
114 Name = FileChgr2-Dev2
116 Archive Device = @archivedir@
117 LabelMedia = yes; # lets Bacula label unlabeled media
119 AutomaticMount = yes; # when device opened, read it
122 Maximum Concurrent Jobs = 5
128 # An autochanger device with two drives
134 # Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
135 # Changer Device = /dev/sg0
141 # Media Type = DLT-8000
142 # Archive Device = /dev/nst0
143 # AutomaticMount = yes; # when device opened, read it
145 # RemovableMedia = yes;
149 # # New alert command in Bacula 9.0.0
150 # # Note: you must have the sg3_utils (rpms) or the
151 # # sg3-utils (deb) installed on your system.
152 # # and you must set the correct control device that
153 # # corresponds to the Archive Device
154 # Control Device = /dev/sg?? # must be SCSI ctl for /dev/nst0
155 # Alert Command = "@scriptdir@/tapealert %l"
158 # # Enable the Alert command only if you have the mtx package loaded
159 # # Note, apparently on some systems, tapeinfo resets the SCSI controller
160 # # thus if you turn this on, make sure it does not reset your SCSI
161 # # controller. I have never had any problems, and smartctl does
162 # # not seem to cause such problems.
164 # Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
165 # If you have smartctl, enable this, it has more info than tapeinfo
166 # Alert Command = "sh -c 'smartctl -H -l error %c'"
172 # Media Type = DLT-8000
173 # Archive Device = /dev/nst1
174 # AutomaticMount = yes; # when device opened, read it
176 # RemovableMedia = yes;
179 # # Enable the Alert command only if you have the mtx package loaded
180 # Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
181 # If you have smartctl, enable this, it has more info than tapeinfo
182 # Alert Command = "sh -c 'smartctl -H -l error %c'"
186 # A Linux or Solaris LTO-2 tape drive
191 # Archive Device = @TAPEDRIVE@
192 # AutomaticMount = yes; # when device opened, read it
194 # RemovableMedia = yes;
196 # Maximum File Size = 3GB
197 ## Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
198 ## Changer Device = /dev/sg0
200 # # Enable the Alert command only if you have the mtx package loaded
201 ## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
202 ## If you have smartctl, enable this, it has more info than tapeinfo
203 ## Alert Command = "sh -c 'smartctl -H -l error %c'"
207 # A Linux or Solaris LTO-3 tape drive
212 # Archive Device = @TAPEDRIVE@
213 # AutomaticMount = yes; # when device opened, read it
215 # RemovableMedia = yes;
217 # Maximum File Size = 4GB
218 # Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
219 # Changer Device = /dev/sg0
222 # # New alert command in Bacula 9.0.0
223 # # Note: you must have the sg3_utils (rpms) or the
224 # # sg3-utils (deb) installed on your system.
225 # # and you must set the correct control device that
226 # # corresponds to the Archive Device
227 # Control Device = /dev/sg?? # must be SCSI ctl for @TAPEDRIVE@
228 # Alert Command = "@scriptdir@/tapealert %l"
230 # # Enable the Alert command only if you have the mtx package loaded
231 ## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
232 ## If you have smartctl, enable this, it has more info than tapeinfo
233 ## Alert Command = "sh -c 'smartctl -H -l error %c'"
237 # A Linux or Solaris LTO-4 tape drive
242 # Archive Device = @TAPEDRIVE@
243 # AutomaticMount = yes; # when device opened, read it
245 # RemovableMedia = yes;
247 # Maximum File Size = 5GB
248 # Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
249 # Changer Device = /dev/sg0
252 # # New alert command in Bacula 9.0.0
253 # # Note: you must have the sg3_utils (rpms) or the
254 # # sg3-utils (deb) installed on your system.
255 # # and you must set the correct control device that
256 # # corresponds to the Archive Device
257 # Control Device = /dev/sg?? # must be SCSI ctl for @TAPEDRIVE@
258 # Alert Command = "@scriptdir@/tapealert %l"
260 # # Enable the Alert command only if you have the mtx package loaded
261 ## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
262 ## If you have smartctl, enable this, it has more info than tapeinfo
263 ## Alert Command = "sh -c 'smartctl -H -l error %c'"
267 # An HP-UX tape drive
272 # Media Type = DLT-8000
273 # Archive Device = /dev/rmt/1mnb
274 # AutomaticMount = yes; # when device opened, read it
276 # RemovableMedia = yes;
280 # Hardware End of Medium = no
281 # Fast Forward Space File = no
283 # # New alert command in Bacula 9.0.0
284 # # Note: you must have the sg3_utils (rpms) or the
285 # # sg3-utils (deb) installed on your system.
286 # # and you must set the correct control device that
287 # # corresponds to the Archive Device
288 # Control Device = /dev/sg?? # must be SCSI ctl for /dev/rmt/1mnb
289 # Alert Command = "@scriptdir@/tapealert %l"
292 # # Enable the Alert command only if you have the mtx package loaded
293 # Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
294 # If you have smartctl, enable this, it has more info than tapeinfo
295 # Alert Command = "sh -c 'smartctl -H -l error %c'"
299 # A FreeBSD tape drive
303 # Description = "DDS-4 for FreeBSD"
305 # Archive Device = /dev/nsa1
306 # AutomaticMount = yes; # when device opened, read it
308 # Offline On Unmount = no
309 # Hardware End of Medium = no
311 # Backward Space Record = no
312 # Fast Forward Space File = no
315 # # New alert command in Bacula 9.0.0
316 # # Note: you must have the sg3_utils (rpms) or the
317 # # sg3-utils (deb) installed on your system.
318 # # and you must set the correct control device that
319 # # corresponds to the Archive Device
320 # Control Device = /dev/sg?? # must be SCSI ctl for /dev/nsa1
321 # Alert Command = "@scriptdir@/tapealert %l"
323 # If you have smartctl, enable this, it has more info than tapeinfo
324 # Alert Command = "sh -c 'smartctl -H -l error %c'"
328 # Send all messages to the Director,
329 # mount messages also are sent to the email address
333 director = @basename@-dir = all