]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir-vtape.conf.in
Big backport from Enterprise
[bacula/bacula] / regress / scripts / bacula-dir-vtape.conf.in
1 #
2 # Bacula Director Configuration file
3 #
4 #
5
6 Director {                            # define myself
7   Name = @hostname@-dir
8   DIRPort = @dirport@                # where we listen for UA connections
9   QueryFile = "@scriptdir@/query.sql"
10   WorkingDirectory = "@working_dir@"
11   PidDirectory = "@piddir@"
12   Maximum Concurrent Jobs = 40
13   Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"
14   Messages = Daemon
15 }
16
17 #
18 # Define the main nightly save backup job
19 #   By default, this job will back up to disk in @tmpdir@
20 Job {
21   Name = "NightlySave"
22   Type = Backup
23   Client=@hostname@-fd 
24   FileSet="Full Set"
25   Storage = LTO3
26   Messages = Standard
27   Pool = Default
28   Maximum Concurrent Jobs = 10
29   SpoolData = yes
30   Max Wait Time = 1m
31 # Prefer Mounted Volumes = no
32 }
33
34 Job {
35   Name = "NightlySave1"
36   Type = Backup
37   Client=@hostname@-fd 
38   FileSet="Full Set"
39   Storage = LTO1
40   Messages = Standard
41   Pool = Default
42   Write Bootstrap = "@working_dir@/NightlySave1.bsr"
43   Maximum Concurrent Jobs = 10
44   SpoolData = yes
45 # Prefer Mounted Volumes = no
46   Client Run Before Job = "sleep 2"
47 }
48
49 Job {
50   Name = "NightlySave2"
51   Type = Backup
52   Client=@hostname@-fd 
53   FileSet="Full Set"
54   Storage = LTO1
55   Messages = Standard
56   Pool = Default
57   Write Bootstrap = "@working_dir@/NightlySave2.bsr"
58   Maximum Concurrent Jobs = 10
59   SpoolData = yes
60 # Prefer Mounted Volumes = no
61 }
62
63 Job {
64   Name = "NightlySave3"
65   Type = Backup
66   Client=@hostname@-fd 
67   FileSet="Full Set"
68   Storage = LTO1
69   Messages = Standard
70   Pool = Default
71   Write Bootstrap = "@working_dir@/NightlySave3.bsr"
72   Maximum Concurrent Jobs = 10
73 # Prefer Mounted Volumes = no
74 }
75
76 Job {
77   Name = "VerifyTape"
78   Type = Verify
79   Level = VolumeToCatalog
80   Client=@hostname@-fd 
81   FileSet="Verify Set"
82   Storage = LTO1
83   Messages = Standard
84   Pool = Default
85   Write Bootstrap = "@working_dir@/NightlySave.bsr"
86   Maximum Concurrent Jobs = 4
87   SpoolData = yes
88 # Prefer Mounted Volumes = no
89 }
90
91
92 # Standard Restore template, to be changed by Console program
93 Job {
94   Name = "RestoreFiles"
95   Type = Restore
96   Client=@hostname@-fd 
97   FileSet="Full Set"
98   Storage = LTO1
99   Messages = Standard
100   Pool = Default
101   Where = @tmpdir@/bacula-restores
102 }
103
104
105 # List of files to be backed up
106 FileSet {
107   Name = "Full Set"
108   Include { Options { signature=MD5 }
109     File =  <@tmpdir@/file-list
110   }
111 }
112
113 FileSet {
114   Name = "Verify Set"
115   Include { 
116     Options { 
117        signature=MD5
118        verify=pins1
119     }
120     File =  <@tmpdir@/file-list
121   }
122 }
123
124
125 # Client (File Services) to backup
126 Client {
127   Name = @hostname@-fd
128   Address = @hostname@
129   FDPort = @fdport@
130   Catalog = MyCatalog
131   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
132   File Retention = 30d                # 30 days
133   Job Retention = 180d                # six months
134   AutoPrune = yes                     # Prune expired Jobs/Files
135   Maximum Concurrent Jobs = 10
136 }
137
138 # Client (File Services) to backup
139 Client {
140   Name = @hostname@-fd2
141   Address = @hostname@
142   FDPort = 1@fdport@
143   Catalog = MyCatalog
144   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
145   File Retention = 30d                # 30 days
146   Job Retention = 180d                # six months
147   AutoPrune = yes                     # Prune expired Jobs/Files
148   Maximum Concurrent Jobs = 10
149 }
150
151 # Client (File Services) to backup
152 Client {
153   Name = @hostname@-fd3
154   Address = @hostname@
155   FDPort = 2@fdport@
156   Catalog = MyCatalog
157   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
158   File Retention = 30d                # 30 days
159   Job Retention = 180d                # six months
160   AutoPrune = yes                     # Prune expired Jobs/Files
161   Maximum Concurrent Jobs = 10
162 }
163
164 # Client (File Services) to backup
165 Client {
166   Name = @hostname@-fd4
167   Address = @hostname@
168   FDPort = 3@fdport@
169   Catalog = MyCatalog
170   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
171   File Retention = 30d                # 30 days
172   Job Retention = 180d                # six months
173   AutoPrune = yes                     # Prune expired Jobs/Files
174   Maximum Concurrent Jobs = 10
175 }
176
177 # Client (File Services) to backup
178 Client {
179   Name = @hostname@-fd5
180   Address = @hostname@
181   FDPort = 4@fdport@
182   Catalog = MyCatalog
183   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
184   File Retention = 30d                # 30 days
185   Job Retention = 180d                # six months
186   AutoPrune = yes                     # Prune expired Jobs/Files
187   Maximum Concurrent Jobs = 10
188 }
189
190
191 Autochanger {
192   Name = LTO1
193   Address = @hostname@ 
194   SDPort = @sdport@
195   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
196   Device = LTO
197   Media Type = LTO1
198   Maximum Concurrent Jobs = 50
199 }
200
201 Autochanger {
202   Name = LTO3
203   Address = @hostname@ 
204   SDPort = @sdport@
205   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
206   Device = LTO
207   Media Type = LTO3
208   SharedStorage = LTO1
209   Maximum Concurrent Jobs = 50
210 }
211
212 ################################################################
213 # WARNING: Bacula doesn't support this kind of configuration
214 #          This is for testing purpose only !!!!!!!!!!!!
215 ################################################################
216
217 Storage {
218   Name = LTO3_0
219   Address = @hostname@ 
220   SDPort = @sdport@
221   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
222   Device = LTO3_0
223   Media Type = LTO3
224   Autochanger = LTO3
225   Maximum Concurrent Jobs = 5
226 }
227
228 Storage {
229   Name = LTO3_1
230   Address = @hostname@ 
231   SDPort = @sdport@
232   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
233   Device = LTO3_1
234   Media Type = LTO3
235   Autochanger = LTO3
236   Maximum Concurrent Jobs = 5
237 }
238
239 Storage {
240   Name = LTO3_2
241   Address = @hostname@ 
242   SDPort = @sdport@
243   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
244   Device = LTO3_2
245   Media Type = LTO3
246   Autochanger = LTO3
247   Maximum Concurrent Jobs = 5
248 }
249
250 Storage {
251   Name = LTO1_3
252   Address = @hostname@ 
253   SDPort = @sdport@
254   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
255   Device = LTO1_3
256   Media Type = LTO1
257   Autochanger = LTO1
258   Maximum Concurrent Jobs = 5
259 }
260
261 Storage {
262   Name = LTO1_4
263   Address = @hostname@ 
264   SDPort = @sdport@
265   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
266   Device = LTO1_4
267   Media Type = LTO1
268   Autochanger = LTO1
269   Maximum Concurrent Jobs = 5
270 }
271
272 Storage {
273   Name = LTO1_5
274   Address = @hostname@ 
275   SDPort = @sdport@
276   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
277   Device = LTO1_5
278   Media Type = LTO1
279   Autochanger = LTO1
280   Maximum Concurrent Jobs = 5
281 }
282
283 Storage {
284   Name = LTO1-ANSI_6
285   Address = @hostname@ 
286   SDPort = @sdport@
287   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
288   Device = LTO1-ANSI_6
289   Media Type = LTO1-ANSI
290   Autochanger = LTO1
291   Maximum Concurrent Jobs = 5
292 }
293
294 # Definition of File storage device
295 Storage {
296   Name = File
297   Address = @hostname@                # N.B. Use a fully qualified name here
298   SDPort = @sdport@
299   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
300   Device = FileStorage                # must be same as Device in Storage daemon
301   Media Type = FileMedia              # must be same as MediaType in Storage daemon
302   Maximum Concurrent Jobs = 10
303 }
304
305 # Generic catalog service
306 Catalog {
307   Name = MyCatalog
308   @libdbi@
309   dbname = @db_name@; user = @db_user@; password = "@db_password@"
310 }
311
312 # Reasonable message delivery -- send most everything to email address
313 #  and to the console
314 Messages {
315   Name = Standard
316   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
317   mail = @job_email@ = all, !skipped            
318   console = all, !skipped, !terminate, !restored
319   append = "@working_dir@/log" = all, !skipped
320   catalog = all, !skipped, !saved
321 }
322
323 #
324 # Message delivery for daemon messages (no job).
325 Messages {
326   Name = Daemon
327   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
328   mail = @job_email@ = all, !skipped            
329   console = all, !skipped, !saved
330   append = "@working_dir@/log" = all, !skipped
331   catalog = all, !skipped, !saved
332 }
333
334     
335 # Default pool definition
336 Pool {
337   Name = Default
338   Pool Type = Backup
339   Recycle = yes                       # Bacula can automatically recycle Volumes
340   AutoPrune = yes                     # Prune expired volumes
341   Volume Retention = 365d             # one year
342 }
343
344 Pool {
345   Name = Full
346   Pool Type = Backup
347   Recycle = yes                       # Bacula can automatically recycle Volumes
348   AutoPrune = yes                     # Prune expired volumes
349   Volume Retention = 365d             # one year
350 }
351
352 Pool {
353   Name = Test
354   Pool Type = Backup
355   Recycle = yes                       # Bacula can automatically recycle Volumes
356   AutoPrune = yes                     # Prune expired volumes
357   Volume Retention = 365d             # one year
358   MaximumVolumeJobs = 1
359 }
360
361 Pool {
362   Name = Inc
363   Pool Type = Backup
364   Recycle = yes                       # Bacula can automatically recycle Volumes
365   AutoPrune = yes                     # Prune expired volumes
366   Volume Retention = 365d             # one year
367 }
368
369 Pool {
370   Name = Diff
371   Pool Type = Backup
372   Recycle = yes                       # Bacula can automatically recycle Volumes
373   AutoPrune = yes                     # Prune expired volumes
374   Volume Retention = 365d             # one year
375 }
376
377 Pool {
378   Name = Scratch
379   Pool Type = Backup
380   Recycle = yes                       # Bacula can automatically recycle Volumes
381   AutoPrune = yes                     # Prune expired volumes
382   Volume Retention = 365d             # one year
383   Recycle Pool = Scratch              # recycle back here
384   Cleaning Prefix = CLN
385 }