]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/stored/bacula-sd.conf.in
Big backport from Enterprise
[bacula/bacula] / bacula / src / stored / bacula-sd.conf.in
1 #
2 # Default Bacula Storage Daemon Configuration file
3 #
4 #  For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@ @DISTVER@
5 #
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.
11 #
12 #
13 # Copyright (C) 2000-2017 Kern Sibbald
14 # License: BSD 2-Clause; see file LICENSE-FOSS
15 #
16
17 Storage {                             # definition of myself
18   Name = @basename@-sd
19   SDPort = @sd_port@                  # Director's port
20   WorkingDirectory = "@working_dir@"
21   Pid Directory = "@piddir@"
22   Plugin Directory = "@plugindir@"
23   Maximum Concurrent Jobs = 20
24 }
25
26 #
27 # List Directors who are permitted to contact Storage daemon
28 #
29 Director {
30   Name = @basename@-dir
31   Password = "@sd_password@"
32 }
33
34 #
35 # Restricted Director, used by tray-monitor to get the
36 #   status of the storage daemon
37 #
38 Director {
39   Name = @basename@-mon
40   Password = "@mon_sd_password@"
41   Monitor = yes
42 }
43
44 #
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
49 #
50
51 #
52 # Devices supported by this Storage daemon
53 # To connect, the Director's bacula-dir.conf must have the
54 #  same Name and MediaType.
55 #
56
57 #
58 # Define a Virtual autochanger
59 #
60 Autochanger {
61   Name = FileChgr1
62   Device = FileChgr1-Dev1, FileChgr1-Dev2
63   Changer Command = ""
64   Changer Device = /dev/null
65 }
66
67 Device {
68   Name = FileChgr1-Dev1
69   Media Type = File1
70   Archive Device = @archivedir@
71   LabelMedia = yes;                   # lets Bacula label unlabeled media
72   Random Access = Yes;
73   AutomaticMount = yes;               # when device opened, read it
74   RemovableMedia = no;
75   AlwaysOpen = no;
76   Maximum Concurrent Jobs = 5
77 }
78
79 Device {
80   Name = FileChgr1-Dev2
81   Media Type = File1
82   Archive Device = @archivedir@
83   LabelMedia = yes;                   # lets Bacula label unlabeled media
84   Random Access = Yes;
85   AutomaticMount = yes;               # when device opened, read it
86   RemovableMedia = no;
87   AlwaysOpen = no;
88   Maximum Concurrent Jobs = 5
89 }
90
91 #
92 # Define a second Virtual autochanger
93 #
94 Autochanger {
95   Name = FileChgr2
96   Device = FileChgr2-Dev1, FileChgr2-Dev2
97   Changer Command = ""
98   Changer Device = /dev/null
99 }
100
101 Device {
102   Name = FileChgr2-Dev1
103   Media Type = File2
104   Archive Device = @archivedir@
105   LabelMedia = yes;                   # lets Bacula label unlabeled media
106   Random Access = Yes;
107   AutomaticMount = yes;               # when device opened, read it
108   RemovableMedia = no;
109   AlwaysOpen = no;
110   Maximum Concurrent Jobs = 5
111 }
112
113 Device {
114   Name = FileChgr2-Dev2
115   Media Type = File2
116   Archive Device = @archivedir@
117   LabelMedia = yes;                   # lets Bacula label unlabeled media
118   Random Access = Yes;
119   AutomaticMount = yes;               # when device opened, read it
120   RemovableMedia = no;
121   AlwaysOpen = no;
122   Maximum Concurrent Jobs = 5
123 }
124
125
126
127 #
128 # An autochanger device with two drives
129 #
130 #Autochanger {
131 #  Name = Autochanger
132 #  Device = Drive-1
133 #  Device = Drive-2
134 #  Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
135 #  Changer Device = /dev/sg0
136 #}
137
138 #Device {
139 #  Name = Drive-1                      #
140 #  Drive Index = 0
141 #  Media Type = DLT-8000
142 #  Archive Device = /dev/nst0
143 #  AutomaticMount = yes;               # when device opened, read it
144 #  AlwaysOpen = yes;
145 #  RemovableMedia = yes;
146 #  RandomAccess = no;
147 #  AutoChanger = yes
148 #  #
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"
156 #
157 #  #
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.
163 #  #
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'"
167 #}
168
169 #Device {
170 #  Name = Drive-2                      #
171 #  Drive Index = 1
172 #  Media Type = DLT-8000
173 #  Archive Device = /dev/nst1
174 #  AutomaticMount = yes;               # when device opened, read it
175 #  AlwaysOpen = yes;
176 #  RemovableMedia = yes;
177 #  RandomAccess = no;
178 #  AutoChanger = 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'"
183 #}
184
185 #
186 # A Linux or Solaris LTO-2 tape drive
187 #
188 #Device {
189 #  Name = LTO-2
190 #  Media Type = LTO-2
191 #  Archive Device = @TAPEDRIVE@
192 #  AutomaticMount = yes;               # when device opened, read it
193 #  AlwaysOpen = yes;
194 #  RemovableMedia = yes;
195 #  RandomAccess = no;
196 #  Maximum File Size = 3GB
197 ## Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
198 ## Changer Device = /dev/sg0
199 ## AutoChanger = yes
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'"
204 #}
205
206 #
207 # A Linux or Solaris LTO-3 tape drive
208 #
209 #Device {
210 #  Name = LTO-3
211 #  Media Type = LTO-3
212 #  Archive Device = @TAPEDRIVE@
213 #  AutomaticMount = yes;               # when device opened, read it
214 #  AlwaysOpen = yes;
215 #  RemovableMedia = yes;
216 #  RandomAccess = no;
217 #  Maximum File Size = 4GB
218 # Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
219 # Changer Device = /dev/sg0
220 # AutoChanger = yes
221 #  #
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"
229 #
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'"
234 #}
235
236 #
237 # A Linux or Solaris LTO-4 tape drive
238 #
239 #Device {
240 #  Name = LTO-4
241 #  Media Type = LTO-4
242 #  Archive Device = @TAPEDRIVE@
243 #  AutomaticMount = yes;               # when device opened, read it
244 #  AlwaysOpen = yes;
245 #  RemovableMedia = yes;
246 #  RandomAccess = no;
247 #  Maximum File Size = 5GB
248 # Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
249 # Changer Device = /dev/sg0
250 # AutoChanger = yes
251 #  #
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"
259 #
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'"
264 #}
265
266 #
267 # An HP-UX tape drive
268 #
269 #Device {
270 #  Name = Drive-1                      #
271 #  Drive Index = 0
272 #  Media Type = DLT-8000
273 #  Archive Device = /dev/rmt/1mnb
274 #  AutomaticMount = yes;               # when device opened, read it
275 #  AlwaysOpen = yes;
276 #  RemovableMedia = yes;
277 #  RandomAccess = no;
278 #  AutoChanger = no
279 #  Two EOF = yes
280 #  Hardware End of Medium = no
281 #  Fast Forward Space File = no
282 #  #
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"
290 #
291 #  #
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'"
296 #}
297
298 #
299 # A FreeBSD tape drive
300 #
301 #Device {
302 #  Name = DDS-4
303 #  Description = "DDS-4 for FreeBSD"
304 #  Media Type = DDS-4
305 #  Archive Device = /dev/nsa1
306 #  AutomaticMount = yes;               # when device opened, read it
307 #  AlwaysOpen = yes
308 #  Offline On Unmount = no
309 #  Hardware End of Medium = no
310 #  BSF at EOM = yes
311 #  Backward Space Record = no
312 #  Fast Forward Space File = no
313 #  TWO EOF = yes
314 #  #
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"
322 #
323 #  If you have smartctl, enable this, it has more info than tapeinfo
324 #  Alert Command = "sh -c 'smartctl -H -l error %c'"
325 #}
326
327 #
328 # Send all messages to the Director,
329 # mount messages also are sent to the email address
330 #
331 Messages {
332   Name = Standard
333   director = @basename@-dir = all
334 }