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