]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/new-test-bacula-dir.conf.in
Fix slow regress setups
[bacula/bacula] / regress / scripts / new-test-bacula-dir.conf.in
1 #
2 # Default Bacula Director Configuration file
3 #
4 #  The only thing that MUST be changed is to add one or more
5 #   file or directory names in the Include directive of the
6 #   FileSet resource.
7 #
8 #  For Bacula release 1.39 or later
9 #
10 #  You might also want to change the default email address
11 #   from root to your address.  See the "mail" and "operator"
12 #   directives in the Messages resource.
13 #
14
15 Director {                            # define myself
16   Name = @hostname@-dir
17   DIRPort = @dirport@                # where we listen for UA connections
18   QueryFile = "@scriptdir@/query.sql"
19   WorkingDirectory = "@working_dir@"
20   PidDirectory = "@piddir@"
21   SubSysDirectory = "@subsysdir@"
22   PluginDirectory = "@sbindir@"
23   Maximum Concurrent Jobs = 4
24   Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"         # Console password
25   Messages = Standard
26 }
27
28 #
29 # Define the main nightly save backup job
30 #   By default, this job will back up to disk in @tmpdir@
31 Job {
32   Name = "NightlySave"
33   Type = Backup
34   Client=@hostname@-fd 
35   FileSet="Full Set"
36   Storage = File
37   Messages = Standard
38   Pool = Default
39   Write Bootstrap = "@working_dir@/NightlySave.bsr"
40   Maximum Concurrent Jobs = 10
41   SpoolData=yes
42   Max Run Time = 30min
43   Reschedule On Error = no
44   Reschedule Interval = 10
45   Reschedule Times = 1
46 }
47
48 Job {
49   Name = "MonsterSave"
50   Type = Backup
51   Client=@hostname@-fd 
52   FileSet="Full Set"
53   Storage = File1
54   Messages = Standard
55   Pool = Default
56   Write Bootstrap = "@working_dir@/NightlySave.bsr"
57   Max Run Time = 30min
58   Maximum Concurrent Jobs = 10
59   SpoolData=yes
60 }
61
62 Job {
63   Name = "MonsterFileSet"
64   Type = Backup
65   Client=@hostname@-fd 
66   FileSet="MonsterFileSet"
67   Storage = File
68   Messages = Standard
69   Pool = Default
70   Maximum Concurrent Jobs = 10
71   Write Bootstrap = "@working_dir@/NightlySave.bsr"
72   Max Run Time = 30min
73   SpoolData=yes
74 }
75
76
77
78 Job {
79   Name = "VerifyVolume"
80   Type = Verify
81   Level = VolumeToCatalog
82   Client=@hostname@-fd 
83   FileSet="Full Set"
84   Storage = File
85   Messages = Standard
86   Pool = Default
87   Write Bootstrap = "@working_dir@/NightlySave.bsr"
88   Max Run Time = 30min
89 }
90
91
92 Job {
93   Name = "SparseTest"
94   Type = Backup
95   Client=@hostname@-fd 
96   FileSet="SparseSet"
97   Storage = File
98   Messages = Standard
99   Pool = Default
100   Write Bootstrap = "@working_dir@/NightlySave.bsr"
101   Max Run Time = 30min
102   SpoolData=yes
103   Maximum Concurrent Jobs = 10
104 }
105
106 Job {
107   Name = "CompressedTest"
108   Type = Backup
109   Client=@hostname@-fd 
110   FileSet="CompressedSet"
111   Storage = File
112   Messages = Standard
113   Pool = Default
114   Maximum Concurrent Jobs = 10
115   Write Bootstrap = "@working_dir@/NightlySave.bsr"
116   Max Run Time = 30min
117   SpoolData=yes
118 }
119
120 Job {
121   Name = "SparseCompressedTest"
122   Type = Backup
123   Client=@hostname@-fd 
124   FileSet="SparseCompressedSet"
125   Storage = File
126   Messages = Standard
127   Pool = Default
128   Write Bootstrap = "@working_dir@/NightlySave.bsr"
129   Max Run Time = 30min
130   SpoolData=yes
131   Maximum Concurrent Jobs = 10
132 }
133
134 Job {
135   Name = "LZOTest"
136   Type = Backup
137   Client=@hostname@-fd
138   FileSet="LZOSet"
139   Storage = File
140   Messages = Standard
141   Pool = Default
142   Maximum Concurrent Jobs = 10
143   Write Bootstrap = "@working_dir@/NightlySave.bsr"
144   Max Run Time = 30min
145   SpoolData=yes
146 }
147
148 Job {
149   Name = "SparseLZOTest"
150   Type = Backup
151   Client=@hostname@-fd
152   FileSet="SparseLZOSet"
153   Storage = File
154   Messages = Standard
155   Pool = Default
156   Write Bootstrap = "@working_dir@/NightlySave.bsr"
157   Max Run Time = 30min
158   SpoolData=yes
159   Maximum Concurrent Jobs = 10
160 }
161
162 Job {
163   Name = "FIFOTest"
164   Type = Backup
165   Client=@hostname@-fd 
166   FileSet="FIFOSet"
167   Storage = File
168   Messages = Standard
169   Pool = Default
170   Write Bootstrap = "@working_dir@/NightlySave.bsr"
171   ClientRunBeforeJob = "/bin/sleep 5"
172   Max Run Time = 30min
173 }
174
175
176
177 # Backup the catalog database (after the nightly save)
178 Job {
179   Name = "BackupCatalog"
180   Type = Backup
181   Client=@hostname@-fd 
182   FileSet="Catalog"
183 #  Schedule = "WeeklyCycleAfterBackup"
184   Storage = File
185   Messages = Standard
186   Pool = Default
187   # This creates an ASCII copy of the catalog
188   RunBeforeJob = "@sbindir@/make_catalog_backup -u regress"
189   # This deletes the copy of the catalog
190   RunAfterJob  = "@sbindir@/delete_catalog_backup"
191   Write Bootstrap = "@working_dir@/BackupCatalog.bsr"
192   Max Run Time = 30min
193 }
194
195 JobDefs {
196   Name = "BackupJob"
197   Type = Backup
198   Pool = Default
199   Storage = File
200   Messages = Standard
201   Priority = 10
202   Max Run Time = 30min
203 }
204
205 Job {
206   JobDefs = "BackupJob"
207   Name = "bug621-job-1"
208   Client = @hostname@-fd
209   FileSet="Full Set"
210   ClientRunBeforeJob = "/bin/sleep 5"
211 }
212
213 Job {
214   JobDefs = "BackupJob"
215   Name = "bug621-job-2"
216   Client = @hostname@-fd
217   FileSet = "Full Set"
218   Max Run Time = 30
219   Priority = 15
220 }
221
222
223 # Standard Restore template, to be changed by Console program
224 Job {
225   Name = "RestoreFiles"
226   Type = Restore
227   Client=@hostname@-fd 
228   FileSet="Full Set"
229   Storage = File
230   Messages = Standard
231   Pool = Default
232   Where = @tmpdir@/bacula-restores
233   Max Run Time = 30min
234 }
235
236
237 # List of files to be backed up
238 FileSet {
239   Name = "Full Set"
240   Include {  
241      Options { signature=MD5; sparse=yes;
242        verify=pins5 }
243      File =  <@tmpdir@/file-list
244   }
245 }
246
247 FileSet {
248   Name = "SparseSet"
249   Include {
250     Options {
251       signature=MD5
252       sparse=yes
253     }
254     File = <@tmpdir@/file-list
255   }
256 }
257
258 FileSet {
259   Name = "CompressedSet"
260   Include {
261     Options {
262       signature=MD5 
263       compression=GZIP 
264     }
265     File = <@tmpdir@/file-list
266   }
267 }
268
269 FileSet {
270   Name = "LZOSet"
271   Include {
272     Options {
273       signature=MD5
274       compression=LZO
275     }
276     File = <@tmpdir@/file-list
277   }
278 }
279
280 FileSet {
281   Name = "FIFOSet"
282   Include {
283     Options {
284       readfifo = yes
285       signature=MD5 
286     }
287     File = <@tmpdir@/file-list
288   }
289 }
290
291
292 FileSet {
293   Name = "SparseCompressedSet"
294   Include {
295     Options {
296       signature=MD5 
297       compression=GZIP
298       sparse=yes
299     }
300     File = <@tmpdir@/file-list
301   }
302 }
303
304 FileSet {
305   Name = "SparseLZOSet"
306   Include {
307     Options {
308       signature=MD5
309       compression=LZO
310       sparse=yes
311     }
312     File = <@tmpdir@/file-list
313   }
314 }
315
316 FileSet {
317   Name = "MonsterFileSet"
318   Include {
319     Options {
320        signature = MD5
321        noatime = yes
322        ignore case = yes
323        Exclude = yes
324        RegexDir = "Cache"
325        RegexDir = "Windows Defender"
326        RegexDir = "Temporary Internet Files"
327        RegexDir = "bacula"
328        RegexDir = "Temp"
329
330        RegexDir = "ATI Technologies"
331
332        RegexDir = "wmdownloads"
333        RegexDir = "My Music"
334        RegexDir = "iTunes"
335        RegexDir = "Cookies"
336
337        RegexFile = "desktop.ini"
338        RegexFile = "thumbs.db"
339        RegexFile = "acrobat7.exe"
340        RegexFile = "acr6win.exe"
341        RegexFile = "AdbeRdr70_enu_full.exe"
342        RegexFile = "antivirus10_1_5.exe"
343        #thunderbird lock file
344        RegexFile = "parent.lock"
345
346        RegexDir = "Retrospect Restore Points"
347
348        #exclude i386 director of windows installer files
349        WildDir = "[A-Z]:/i386"
350
351        # Exclude Mozilla-based programs' file caches
352        WildDir = "[A-Z]:/Documents and Settings/*/Application Data/*/Profiles/*/*/ImapMail"
353        WildDir = "[A-Z]:/Users/*/Application Data/*/Profiles/*/*/ImapMail"
354
355        # Exclude user's registry files - they're always in use anyway.
356        WildFile = "[A-Z]:/Documents and Settings/*/Local Settings/Application Data/Microsoft/Windows/usrclass.*"
357        WildFile = "[A-Z]:/Users/*/Local Settings/Application Data/Microsoft/Windows/usrclass.*"
358        WildFile = "[A-Z]:/Documents and Settings/*/ntuser.*"
359        WildFile = "[A-Z]:/Users/*/ntuser.*"
360
361        WildDir = "[A-Z]:/Documents and Settings/*/Recent"
362        WildDir = "[A-Z]:/Users/*/Recent"
363
364        WildDir = "[A-Z]:/Documents and Settings/*/Local Settings/History"
365        WildDir = "[A-Z]:/Users/*/Local Settings/History"
366
367        # These are always open and unable to be backed up
368        WildFile = "[A-Z]:/Documents and Settings/All Users/Application Data/Microsoft/Network/Downloader/qmgr[01].dat"
369        WildFile = "[A-Z]:/Users/All Users/Application Data/Microsoft/Network/Downloader/qmgr[01].dat"
370
371        #Exclude all of Windows...
372        WildDir = "[A-Z]:/windows"
373        WildDir = "[A-Z]:/winnt"
374        WildDir = "[A-Z]:/winxp"
375        WildDir = "[A-Z]:/win"
376
377        #symantec antivirus app stuff
378        WildDir = "[A-Z]:/*/Symantec*"
379
380        #system volume information
381        WildDir = "[A-Z]:/System Volume Information"
382
383        WildFile = "*.tmp"
384        # ghost image and spanning files
385        WildFile = "*.gho"
386        WildFile = "*.ghs"
387
388        # Recycle bins
389        WildDir = "[A-Z]:/RECYCLER"
390        WildDir = "[A-Z]:/RECYCLER"
391        WildDir = "[A-Z]:/RECYCLED"
392        WildDir = "[A-Z]:/$RECYCLE.BIN"
393
394        # Swap files
395        WildFile = "[A-Z]:/pagefile.sys"
396
397        # These are programs and are easier to reinstall than restore from
398        # backup
399        WildDir = "[A-Z]:/cygwin"
400        WildDir = "[A-Z]:/Program Files/Adobe/Acrobat 7.0"
401        WildDir = "[A-Z]:/Program Files/Adobe/Acrobat 8.0"
402
403        WildDir = "[A-Z]:/Program Files/Common Files/Software Center"
404        WildDir = "[A-Z]:/Software Center"
405
406        WildDir = "[A-Z]:/Program Files/Grisoft"
407        WildDir = "[A-Z]:/Program Files/Java"
408        WildDir = "[A-Z]:/Program Files/Java Web Start"
409        WildDir = "[A-Z]:/Program Files/JavaSoft"
410        WildDir = "[A-Z]:/Program Files/Microsoft Office"
411        WildDir = "[A-Z]:/Program Files/Mozilla Firefox"
412        WildDir = "[A-Z]:/Program Files/Mozilla Thunderbird"
413        WildDir = "[A-Z]:/Program Files/mozilla.org"
414        WildDir = "[A-Z]:/Program Files/OpenOffice*"
415     }
416     File = <@tmpdir@/file-list
417   }
418 }
419
420
421 #
422 # When to do the backups, full backup on first sunday of the month,
423 #  differential (i.e. incremental since full) every other sunday,
424 #  and incremental backups other days
425 Schedule {
426   Name = "WeeklyCycle"
427   Run = Level=Full 1st sun at 1:05
428   Run = Level=Differential 2nd-5th sun at 1:05
429   Run = Level=Incremental mon-sat at 1:05
430 }
431
432 # This schedule does the catalog. It starts after the WeeklyCycle
433 Schedule {
434   Name = "WeeklyCycleAfterBackup"
435   Run = Level=Full sun-sat at 1:10
436 }
437
438 # This is the backup of the catalog
439 FileSet {
440   Name = "Catalog"
441   Include {
442     Options {
443       signature=MD5
444     }
445     File = /home/kern/bacula/regress/bin/working/bacula.sql
446   }
447 }
448
449 # Client (File Services) to backup
450 Client {
451   Name = @hostname@-fd
452   Address = @hostname@
453   FDPort = @fdport@
454   Catalog = MyCatalog
455   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
456   File Retention = 30d                # 30 days
457   Job Retention = 180d                # six months
458   AutoPrune = yes                     # Prune expired Jobs/Files
459   Maximum Concurrent Jobs = 10
460 }
461
462 # Definiton of file storage device
463 Storage {
464   Name = File
465   Address = @hostname@                # N.B. Use a fully qualified name here
466   SDPort = @sdport@
467   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
468   Device = FileStorage
469   Media Type = File
470   Maximum Concurrent Jobs = 10
471 }
472
473 Storage {
474   Name = File1
475   Address = @hostname@                # N.B. Use a fully qualified name here
476   SDPort = @sdport@
477   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
478   Device = FileStorage1
479   Media Type = File1
480   Maximum Concurrent Jobs = 10
481 }
482
483
484 # Definition of DLT tape storage device
485 #Storage {
486 #  Name = DLTDrive
487 #  Address = @hostname@                # N.B. Use a fully qualified name here
488 #  SDPort = @sdport@
489 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
490 #  Device = "HP DLT 80"                # must be same as Device in Storage daemon
491 #  Media Type = DLT8000                # must be same as MediaType in Storage daemon
492 #}
493
494 # Definition of DDS tape storage device
495 #Storage {
496 #  Name = SDT-10000
497 #  Address = @hostname@                # N.B. Use a fully qualified name here
498 #  SDPort = @sdport@
499 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
500 #  Device = SDT-10000                  # must be same as Device in Storage daemon
501 #  Media Type = tape                  # must be same as MediaType in Storage daemon
502 #}
503
504 # Definition of 8mm tape storage device
505 #Storage {
506 #  Name = "8mmDrive"
507 #  Address = @hostname@                # N.B. Use a fully qualified name here
508 #  SDPort = @sdport@
509 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
510 #  Device = "Exabyte 8mm"
511 #  MediaType = "8mm"
512 #}
513
514
515 # Generic catalog service
516 Catalog {
517   Name = MyCatalog
518   @libdbi@
519   dbname = @db_name@; user = @db_user@; password = "@db_password@"
520 }
521
522 # Reasonable message delivery -- send most everything to email address
523 #  and to the console
524 Messages {
525   Name = Standard
526   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
527   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
528 # MailOnError = @job_email@ = all
529 # operator = @job_email@ = mount
530   console = all, !skipped, !terminate, !restored
531 #
532 # WARNING! the following will create a file that you must cycle from
533 #          time to time as it will grow indefinitely. However, it will
534 #          also keep all your messages if the scroll off the console.
535 #
536   append = "@working_dir@/log" = all, !skipped
537   catalog = all, !skipped
538 }
539
540 Messages {
541   Name = NoEmail
542   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
543   console = all, !skipped, !terminate
544 #
545 # WARNING! the following will create a file that you must cycle from
546 #          time to time as it will grow indefinitely. However, it will
547 #          also keep all your messages if the scroll off the console.
548 #
549   append = "@working_dir@/log" = all, !skipped
550   catalog = all, !skipped
551 }
552
553     
554 # Default pool definition
555 Pool {
556   Name = Default
557   Pool Type = Backup
558   Recycle = yes                       # Bacula can automatically recycle Volumes
559   AutoPrune = yes                     # Prune expired volumes
560   Volume Retention = 365d             # one year
561 # Label Format = "TEST-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}:${NumVols}"
562 # Simple Label Format = "Backup-"
563 # Maximum Volume Jobs = 1
564 # Maximum Volume Bytes = 512000
565 }