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