]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir-vtape2.conf.in
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / scripts / bacula-dir-vtape2.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 Job {
92   Name = "copy-job"
93   Type = Copy
94   Level = Full
95   Client=@hostname@-fd 
96   FileSet="Full Set"
97   Messages = Standard
98   Storage = LTO3
99   Write Bootstrap = "@working_dir@/copyjob.bsr"
100   Pool = Default
101   Maximum Concurrent Jobs = 4
102   Selection Type = Job 
103   Selection Pattern = ".*Save"
104 # Allow Duplicate Jobs = No
105 }
106
107 # Standard Restore template, to be changed by Console program
108 Job {
109   Name = "RestoreFiles"
110   Type = Restore
111   Client=@hostname@-fd 
112   FileSet="Full Set"
113   Storage = LTO1
114   Messages = Standard
115   Pool = Default
116   Where = @tmpdir@/bacula-restores
117 }
118
119
120 # List of files to be backed up
121 FileSet {
122   Name = "Full Set"
123   Include { Options { signature=MD5 }
124     File =  <@tmpdir@/file-list
125   }
126 }
127
128 FileSet {
129   Name = "Verify Set"
130   Include { 
131     Options { 
132        signature=MD5
133        verify=pins1
134     }
135     File =  <@tmpdir@/file-list
136   }
137 }
138
139
140 # Client (File Services) to backup
141 Client {
142   Name = @hostname@-fd
143   Address = @hostname@
144   FDPort = @fdport@
145   Catalog = MyCatalog
146   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
147   File Retention = 30d                # 30 days
148   Job Retention = 180d                # six months
149   AutoPrune = yes                     # Prune expired Jobs/Files
150   Maximum Concurrent Jobs = 10
151 }
152
153 # Client (File Services) to backup
154 Client {
155   Name = @hostname@-fd2
156   Address = @hostname@
157   FDPort = 1@fdport@
158   Catalog = MyCatalog
159   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
160   File Retention = 30d                # 30 days
161   Job Retention = 180d                # six months
162   AutoPrune = yes                     # Prune expired Jobs/Files
163   Maximum Concurrent Jobs = 10
164 }
165
166 # Client (File Services) to backup
167 Client {
168   Name = @hostname@-fd3
169   Address = @hostname@
170   FDPort = 2@fdport@
171   Catalog = MyCatalog
172   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
173   File Retention = 30d                # 30 days
174   Job Retention = 180d                # six months
175   AutoPrune = yes                     # Prune expired Jobs/Files
176   Maximum Concurrent Jobs = 10
177 }
178
179 # Client (File Services) to backup
180 Client {
181   Name = @hostname@-fd4
182   Address = @hostname@
183   FDPort = 3@fdport@
184   Catalog = MyCatalog
185   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
186   File Retention = 30d                # 30 days
187   Job Retention = 180d                # six months
188   AutoPrune = yes                     # Prune expired Jobs/Files
189   Maximum Concurrent Jobs = 10
190 }
191
192 # Client (File Services) to backup
193 Client {
194   Name = @hostname@-fd5
195   Address = @hostname@
196   FDPort = 4@fdport@
197   Catalog = MyCatalog
198   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
199   File Retention = 30d                # 30 days
200   Job Retention = 180d                # six months
201   AutoPrune = yes                     # Prune expired Jobs/Files
202   Maximum Concurrent Jobs = 10
203 }
204
205
206 Storage {
207   Name = LTO1
208   Address = @hostname@ 
209   SDPort = @sdport@
210   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
211   Device = LTO
212   Media Type = LTO1
213   Autochanger = LTO3
214   Maximum Concurrent Jobs = 50
215 }
216
217 Autochanger {
218   Name = LTO3
219   Address = @hostname@ 
220   SDPort = @sdport@
221   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
222   Device = LTO
223   Media Type = LTO3
224   Maximum Concurrent Jobs = 50
225 }
226
227 ################################################################
228 # WARNING: Bacula doesn't support this kind of configuration
229 #          This is for testing purpose only !!!!!!!!!!!!
230 ################################################################
231
232 Storage {
233   Name = LTO3_0
234   Address = @hostname@ 
235   SDPort = @sdport@
236   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
237   Device = LTO3_0
238   Media Type = LTO3
239   Autochanger = LTO3
240   Maximum Concurrent Jobs = 5
241 }
242
243 Storage {
244   Name = LTO3_1
245   Address = @hostname@ 
246   SDPort = @sdport@
247   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
248   Device = LTO3_1
249   Media Type = LTO3
250   Autochanger = LTO3
251   Maximum Concurrent Jobs = 5
252 }
253
254 Storage {
255   Name = LTO3_2
256   Address = @hostname@ 
257   SDPort = @sdport@
258   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
259   Device = LTO3_2
260   Media Type = LTO3
261   Autochanger = LTO3
262   Maximum Concurrent Jobs = 5
263 }
264
265 Storage {
266   Name = LTO1_3
267   Address = @hostname@ 
268   SDPort = @sdport@
269   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
270   Device = LTO1_3
271   Media Type = LTO1
272   Autochanger = LTO3
273   Maximum Concurrent Jobs = 5
274 }
275
276 Storage {
277   Name = LTO1_4
278   Address = @hostname@ 
279   SDPort = @sdport@
280   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
281   Device = LTO1_4
282   Media Type = LTO1
283   Autochanger = LTO3
284   Maximum Concurrent Jobs = 5
285 }
286
287 Storage {
288   Name = LTO1_5
289   Address = @hostname@ 
290   SDPort = @sdport@
291   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
292   Device = LTO1_5
293   Media Type = LTO1
294   Autochanger = LTO3
295   Maximum Concurrent Jobs = 5
296 }
297
298 Storage {
299   Name = LTO1-ANSI_6
300   Address = @hostname@ 
301   SDPort = @sdport@
302   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
303   Device = LTO1-ANSI_6
304   Media Type = LTO1-ANSI
305   Autochanger = LTO3
306   Maximum Concurrent Jobs = 5
307 }
308
309 # Definition of File storage device
310 Storage {
311   Name = File
312   Address = @hostname@                # N.B. Use a fully qualified name here
313   SDPort = @sdport@
314   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
315   Device = FileStorage                # must be same as Device in Storage daemon
316   Media Type = FileMedia              # must be same as MediaType in Storage daemon
317   Maximum Concurrent Jobs = 10
318 }
319
320 # Generic catalog service
321 Catalog {
322   Name = MyCatalog
323   @libdbi@
324   dbname = @db_name@; user = @db_user@; password = "@db_password@"
325 }
326
327 # Reasonable message delivery -- send most everything to email address
328 #  and to the console
329 Messages {
330   Name = Standard
331   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
332   mail = @job_email@ = all, !skipped            
333   console = all, !skipped, !terminate, !restored
334   append = "@working_dir@/log" = all, !skipped
335   catalog = all, !skipped, !saved
336 }
337
338 #
339 # Message delivery for daemon messages (no job).
340 Messages {
341   Name = Daemon
342   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
343   mail = @job_email@ = all, !skipped            
344   console = all, !skipped, !saved
345   append = "@working_dir@/log" = all, !skipped
346   catalog = all, !skipped, !saved
347 }
348
349     
350 # Default pool definition
351 Pool {
352   Name = Default
353   Pool Type = Backup
354   Recycle = yes                       # Bacula can automatically recycle Volumes
355   AutoPrune = yes                     # Prune expired volumes
356   Volume Retention = 365d             # one year
357   Next Pool = MigrationLTO3
358 }
359
360 Pool {
361   Name = Full
362   Pool Type = Backup
363   Recycle = yes                       # Bacula can automatically recycle Volumes
364   AutoPrune = yes                     # Prune expired volumes
365   Volume Retention = 365d             # one year
366   Next Pool = MigrationLTO3
367 }
368
369 Pool {
370   Name = Test
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   MaximumVolumeJobs = 1
376   Next Pool = MigrationLTO3
377 }
378
379 Pool {
380   Name = Inc
381   Pool Type = Backup
382   Recycle = yes                       # Bacula can automatically recycle Volumes
383   AutoPrune = yes                     # Prune expired volumes
384   Volume Retention = 365d             # one year
385   Next Pool = MigrationLTO3
386 }
387
388 Pool {
389   Name = Diff
390   Pool Type = Backup
391   Recycle = yes                       # Bacula can automatically recycle Volumes
392   AutoPrune = yes                     # Prune expired volumes
393   Volume Retention = 365d             # one year
394   Next Pool = MigrationLTO3
395 }
396
397 Pool {
398   Name = Scratch
399   Pool Type = Backup
400   Recycle = yes                       # Bacula can automatically recycle Volumes
401   AutoPrune = yes                     # Prune expired volumes
402   Volume Retention = 365d             # one year
403   Recycle Pool = Scratch              # recycle back here
404   Cleaning Prefix = CLN
405 }
406
407 Pool {
408   Name = MigrationLTO3
409   Pool Type = Backup
410   Recycle = yes
411   AutoPrune = yes
412   Volume Retention = 2d
413   Storage = LTO3
414 }
415
416 Pool {
417   Name = MigrationLTO1
418   Pool Type = Backup
419   Recycle = yes
420   AutoPrune = yes
421   Volume Retention = 2d
422   Storage = LTO1
423 }