]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/stored/bacula-sd.conf.in
f9948109ec79f21e4c28d7c32e809c4ff4f995d5
[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-2015 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   Maximum Concurrent Jobs = 20
23 }
24
25 #
26 # List Directors who are permitted to contact Storage daemon
27 #
28 Director {
29   Name = @basename@-dir
30   Password = "@sd_password@"
31 }
32
33 #
34 # Restricted Director, used by tray-monitor to get the
35 #   status of the storage daemon
36 #
37 Director {
38   Name = @basename@-mon
39   Password = "@mon_sd_password@"
40   Monitor = yes
41 }
42
43 #
44 # Note, for a list of additional Device templates please
45 #  see the directory <bacula-source>/examples/devices
46 # Or follow the following link:
47 #  http://bacula.svn.sourceforge.net/viewvc/bacula/trunk/bacula/examples/devices/
48 #
49
50 #
51 # Devices supported by this Storage daemon
52 # To connect, the Director's bacula-dir.conf must have the
53 #  same Name and MediaType.
54 #
55
56 #
57 # Define a Virtual autochanger
58 #
59 Autochanger {
60   Name = FileChgr1
61   Device = FileChgr1-Dev1, FileChgr1-Dev2
62   Changer Command = ""
63   Changer Device = /dev/null
64 }
65
66 Device {
67   Name = FileChgr1-Dev1
68   Media Type = File1
69   Archive Device = @archivedir@
70   LabelMedia = yes;                   # lets Bacula label unlabeled media
71   Random Access = Yes;
72   AutomaticMount = yes;               # when device opened, read it
73   RemovableMedia = no;
74   AlwaysOpen = no;
75   Maximum Concurrent Jobs = 5
76 }
77
78 Device {
79   Name = FileChgr1-Dev2
80   Media Type = File1
81   Archive Device = @archivedir@
82   LabelMedia = yes;                   # lets Bacula label unlabeled media
83   Random Access = Yes;
84   AutomaticMount = yes;               # when device opened, read it
85   RemovableMedia = no;
86   AlwaysOpen = no;
87   Maximum Concurrent Jobs = 5
88 }
89
90 #
91 # Define a second Virtual autochanger
92 #
93 Autochanger {
94   Name = FileChgr2
95   Device = FileChgr2-Dev1, FileChgr2-Dev2
96   Changer Command = ""
97   Changer Device = /dev/null
98 }
99
100 Device {
101   Name = FileChgr2-Dev1
102   Media Type = File2
103   Archive Device = @archivedir@
104   LabelMedia = yes;                   # lets Bacula label unlabeled media
105   Random Access = Yes;
106   AutomaticMount = yes;               # when device opened, read it
107   RemovableMedia = no;
108   AlwaysOpen = no;
109   Maximum Concurrent Jobs = 5
110 }
111
112 Device {
113   Name = FileChgr2-Dev2
114   Media Type = File2
115   Archive Device = @archivedir@
116   LabelMedia = yes;                   # lets Bacula label unlabeled media
117   Random Access = Yes;
118   AutomaticMount = yes;               # when device opened, read it
119   RemovableMedia = no;
120   AlwaysOpen = no;
121   Maximum Concurrent Jobs = 5
122 }
123
124
125
126 #
127 # An autochanger device with two drives
128 #
129 #Autochanger {
130 #  Name = Autochanger
131 #  Device = Drive-1
132 #  Device = Drive-2
133 #  Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
134 #  Changer Device = /dev/sg0
135 #}
136
137 #Device {
138 #  Name = Drive-1                      #
139 #  Drive Index = 0
140 #  Media Type = DLT-8000
141 #  Archive Device = /dev/nst0
142 #  AutomaticMount = yes;               # when device opened, read it
143 #  AlwaysOpen = yes;
144 #  RemovableMedia = yes;
145 #  RandomAccess = no;
146 #  AutoChanger = yes
147 #  #
148 #  # Enable the Alert command only if you have the mtx package loaded
149 #  # Note, apparently on some systems, tapeinfo resets the SCSI controller
150 #  #  thus if you turn this on, make sure it does not reset your SCSI
151 #  #  controller.  I have never had any problems, and smartctl does
152 #  #  not seem to cause such problems.
153 #  #
154 #  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
155 #  If you have smartctl, enable this, it has more info than tapeinfo
156 #  Alert Command = "sh -c 'smartctl -H -l error %c'"
157 #}
158
159 #Device {
160 #  Name = Drive-2                      #
161 #  Drive Index = 1
162 #  Media Type = DLT-8000
163 #  Archive Device = /dev/nst1
164 #  AutomaticMount = yes;               # when device opened, read it
165 #  AlwaysOpen = yes;
166 #  RemovableMedia = yes;
167 #  RandomAccess = no;
168 #  AutoChanger = yes
169 #  # Enable the Alert command only if you have the mtx package loaded
170 #  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
171 #  If you have smartctl, enable this, it has more info than tapeinfo
172 #  Alert Command = "sh -c 'smartctl -H -l error %c'"
173 #}
174
175 #
176 # A Linux or Solaris LTO-2 tape drive
177 #
178 #Device {
179 #  Name = LTO-2
180 #  Media Type = LTO-2
181 #  Archive Device = @TAPEDRIVE@
182 #  AutomaticMount = yes;               # when device opened, read it
183 #  AlwaysOpen = yes;
184 #  RemovableMedia = yes;
185 #  RandomAccess = no;
186 #  Maximum File Size = 3GB
187 ## Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
188 ## Changer Device = /dev/sg0
189 ## AutoChanger = yes
190 #  # Enable the Alert command only if you have the mtx package loaded
191 ## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
192 ## If you have smartctl, enable this, it has more info than tapeinfo
193 ## Alert Command = "sh -c 'smartctl -H -l error %c'"
194 #}
195
196 #
197 # A Linux or Solaris LTO-3 tape drive
198 #
199 #Device {
200 #  Name = LTO-3
201 #  Media Type = LTO-3
202 #  Archive Device = @TAPEDRIVE@
203 #  AutomaticMount = yes;               # when device opened, read it
204 #  AlwaysOpen = yes;
205 #  RemovableMedia = yes;
206 #  RandomAccess = no;
207 #  Maximum File Size = 4GB
208 ## Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
209 ## Changer Device = /dev/sg0
210 ## AutoChanger = yes
211 #  # Enable the Alert command only if you have the mtx package loaded
212 ## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
213 ## If you have smartctl, enable this, it has more info than tapeinfo
214 ## Alert Command = "sh -c 'smartctl -H -l error %c'"
215 #}
216
217 #
218 # A Linux or Solaris LTO-4 tape drive
219 #
220 #Device {
221 #  Name = LTO-4
222 #  Media Type = LTO-4
223 #  Archive Device = @TAPEDRIVE@
224 #  AutomaticMount = yes;               # when device opened, read it
225 #  AlwaysOpen = yes;
226 #  RemovableMedia = yes;
227 #  RandomAccess = no;
228 #  Maximum File Size = 5GB
229 ## Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
230 ## Changer Device = /dev/sg0
231 ## AutoChanger = yes
232 #  # Enable the Alert command only if you have the mtx package loaded
233 ## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
234 ## If you have smartctl, enable this, it has more info than tapeinfo
235 ## Alert Command = "sh -c 'smartctl -H -l error %c'"
236 #}
237
238 #
239 # An HP-UX tape drive
240 #
241 #Device {
242 #  Name = Drive-1                      #
243 #  Drive Index = 0
244 #  Media Type = DLT-8000
245 #  Archive Device = /dev/rmt/1mnb
246 #  AutomaticMount = yes;               # when device opened, read it
247 #  AlwaysOpen = yes;
248 #  RemovableMedia = yes;
249 #  RandomAccess = no;
250 #  AutoChanger = no
251 #  Two EOF = yes
252 #  Hardware End of Medium = no
253 #  Fast Forward Space File = no
254 #  #
255 #  # Enable the Alert command only if you have the mtx package loaded
256 #  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
257 #  If you have smartctl, enable this, it has more info than tapeinfo
258 #  Alert Command = "sh -c 'smartctl -H -l error %c'"
259 #}
260
261 #
262 # A FreeBSD tape drive
263 #
264 #Device {
265 #  Name = DDS-4
266 #  Description = "DDS-4 for FreeBSD"
267 #  Media Type = DDS-4
268 #  Archive Device = /dev/nsa1
269 #  AutomaticMount = yes;               # when device opened, read it
270 #  AlwaysOpen = yes
271 #  Offline On Unmount = no
272 #  Hardware End of Medium = no
273 #  BSF at EOM = yes
274 #  Backward Space Record = no
275 #  Fast Forward Space File = no
276 #  TWO EOF = yes
277 #  If you have smartctl, enable this, it has more info than tapeinfo
278 #  Alert Command = "sh -c 'smartctl -H -l error %c'"
279 #}
280
281 #
282 # Send all messages to the Director,
283 # mount messages also are sent to the email address
284 #
285 Messages {
286   Name = Standard
287   director = @basename@-dir = all
288 }