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