]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/new-test-bacula-dir.conf.in
c389f9f0a026cf62d4630e569b711fa79908810a
[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 = 5
47 }
48
49 Job {
50   Name = "Simple"
51   Type = Backup
52   Client=@hostname@-fd 
53   FileSet="SimpleSet"
54   Storage = File
55   Messages = Standard
56   Pool = Default
57   Maximum Concurrent Jobs = 10
58   Write Bootstrap = "@working_dir@/NightlySave.bsr"
59   Max Run Time = 30min
60 # SpoolData=yes
61 }
62
63
64 Job {
65   Name = "MonsterSave"
66   Type = Backup
67   Client=@hostname@-fd 
68   FileSet="Full Set"
69   Storage = File1
70   Messages = Standard
71   Pool = Default
72   Write Bootstrap = "@working_dir@/NightlySave.bsr"
73   Max Run Time = 30min
74   Maximum Concurrent Jobs = 10
75   SpoolData=yes
76 }
77
78 Job {
79   Name = "MonsterFileSet"
80   Type = Backup
81   Client=@hostname@-fd 
82   FileSet="MonsterFileSet"
83   Storage = File
84   Messages = Standard
85   Pool = Default
86   Maximum Concurrent Jobs = 10
87   Write Bootstrap = "@working_dir@/NightlySave.bsr"
88   Max Run Time = 30min
89   SpoolData=yes
90 }
91
92
93
94 Job {
95   Name = "VerifyVolume"
96   Type = Verify
97   Level = VolumeToCatalog
98   Client=@hostname@-fd 
99   FileSet="Full Set"
100   Storage = File
101   Messages = Standard
102   Pool = Default
103   Write Bootstrap = "@working_dir@/NightlySave.bsr"
104   Max Run Time = 30min
105 }
106
107 Job {
108   Name = "VerifyData"
109   Type = Verify
110   Level = Data
111   Client=@hostname@-fd 
112   FileSet="Full Set"
113   Storage = File
114   Messages = Standard
115   Pool = Default
116   Write Bootstrap = "@working_dir@/NightlySave.bsr"
117   Max Run Time = 30min
118 }
119
120
121 Job {
122   Name = "SparseTest"
123   Type = Backup
124   Client=@hostname@-fd 
125   FileSet="SparseSet"
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 = "DeltaTest"
137   Type = Backup
138   Client=@hostname@-fd 
139   FileSet="DeltaSet"
140   Storage = File
141   Messages = Standard
142   Pool = Default
143   Write Bootstrap = "@working_dir@/NightlySave.bsr"
144   Max Run Time = 30min
145   Maximum Concurrent Jobs = 10
146 }
147
148 Job {
149   Name = "CompressedTest"
150   Type = Backup
151   Client=@hostname@-fd 
152   FileSet="CompressedSet"
153   Storage = File
154   Messages = Standard
155   Pool = Default
156   Maximum Concurrent Jobs = 10
157   Write Bootstrap = "@working_dir@/NightlySave.bsr"
158   Max Run Time = 30min
159   SpoolData=yes
160 }
161
162 Job {
163   Name = "SparseCompressedTest"
164   Type = Backup
165   Client=@hostname@-fd 
166   FileSet="SparseCompressedSet"
167   Storage = File
168   Messages = Standard
169   Pool = Default
170   Write Bootstrap = "@working_dir@/NightlySave.bsr"
171   Max Run Time = 30min
172   SpoolData=yes
173   Maximum Concurrent Jobs = 10
174 }
175
176 Job {
177   Name = "vSphereTest"
178   Type = Backup
179   Client=@hostname@-fd
180   FileSet="vSphereSet"
181   Storage = File
182   Messages = Standard
183   Pool = Default
184   Maximum Concurrent Jobs = 10
185   Write Bootstrap = "@working_dir@/NightlySave.bsr"
186   Max Run Time = 30min
187 }
188
189 Job {
190   Name = "LZOTest"
191   Type = Backup
192   Client=@hostname@-fd
193   FileSet="LZOSet"
194   Storage = File
195   Messages = Standard
196   Pool = Default
197   Maximum Concurrent Jobs = 10
198   Write Bootstrap = "@working_dir@/NightlySave.bsr"
199   Max Run Time = 30min
200   SpoolData=yes
201 }
202
203 Job {
204   Name = "SparseLZOTest"
205   Type = Backup
206   Client=@hostname@-fd
207   FileSet="SparseLZOSet"
208   Storage = File
209   Messages = Standard
210   Pool = Default
211   Write Bootstrap = "@working_dir@/NightlySave.bsr"
212   Max Run Time = 30min
213   SpoolData=yes
214   Maximum Concurrent Jobs = 10
215 }
216
217 Job {
218   Name = "FIFOTest"
219   Type = Backup
220   Client=@hostname@-fd 
221   FileSet="FIFOSet"
222   Storage = File
223   Messages = Standard
224   Pool = Default
225   Write Bootstrap = "@working_dir@/NightlySave.bsr"
226   ClientRunBeforeJob = "sleep 5"
227   Max Run Time = 30min
228 }
229
230
231
232 # Backup the catalog database (after the nightly save)
233 Job {
234   Name = "BackupCatalog"
235   Type = Backup
236   Client=@hostname@-fd 
237   FileSet="Catalog"
238 #  Schedule = "WeeklyCycleAfterBackup"
239   Storage = File
240   Messages = Standard
241   Pool = Default
242   # This creates an ASCII copy of the catalog
243   RunBeforeJob = "@sbindir@/make_catalog_backup -u regress"
244   # This deletes the copy of the catalog
245   RunAfterJob  = "@sbindir@/delete_catalog_backup"
246   Write Bootstrap = "@working_dir@/BackupCatalog.bsr"
247   Max Run Time = 30min
248 }
249
250 JobDefs {
251   Name = "BackupJob"
252   Type = Backup
253   Pool = Default
254   Storage = File
255   Messages = Standard
256   Priority = 10
257   Max Run Time = 30min
258 }
259
260 Job {
261   JobDefs = "BackupJob"
262   Name = "bug621-job-1"
263   Client = @hostname@-fd
264   FileSet="Full Set"
265   ClientRunBeforeJob = "sleep 5"
266 }
267
268 Job {
269   JobDefs = "BackupJob"
270   Name = "bug621-job-2"
271   Client = @hostname@-fd
272   FileSet = "Full Set"
273   Max Run Time = 30
274   Priority = 15
275 }
276
277
278 # Standard Restore template, to be changed by Console program
279 Job {
280   Name = "RestoreFiles"
281   Type = Restore
282   Client=@hostname@-fd 
283   FileSet="Full Set"
284   Storage = File
285   Messages = Standard
286   Pool = Default
287   Where = @tmpdir@/bacula-restores
288   Max Run Time = 30min
289 }
290
291
292 # List of files to be backed up
293 FileSet {
294   Name = "Full Set"
295   Include {  
296      Options { signature=MD5; sparse=yes;
297        verify=pins5 }
298      File =  <@tmpdir@/file-list
299   }
300 }
301
302 FileSet {
303   Name = "FSno5"
304   Include  { Options { verify=s5 }
305     File = <@tmpdir@/file-list
306   }
307   Include  { Options { sparse=yes }
308     File = <@tmpdir@/file-list
309   }
310   Include  { Options { compression=GZIP }
311     File = <@tmpdir@/file-list
312   }
313   Include  { Options { compression=LZO }
314     File = <@tmpdir@/file-list
315   }
316   Include  { Options { compression=LZO; sparse=yes }
317     File = <@tmpdir@/file-list
318   }
319   Include  { Options { compression=GZIP; sparse=yes }
320     File = <@tmpdir@/file-list
321   }
322 }
323
324 FileSet {
325   Name = "FS5"
326   Include  { Options { signature=MD5; verify=s5 }
327     File = <@tmpdir@/file-list
328   }
329   Include  { Options { signature=MD5; sparse=yes }
330     File = <@tmpdir@/file-list
331   }
332   Include  { Options { signature=MD5; compression=GZIP }
333     File = <@tmpdir@/file-list
334   }
335   Include  { Options { signature=MD5; compression=LZO }
336     File = <@tmpdir@/file-list
337   }
338   Include  { Options { signature=MD5; compression=LZO; sparse=yes }
339     File = <@tmpdir@/file-list
340   }
341   Include  { Options { signature=MD5; compression=GZIP; sparse=yes }
342     File = <@tmpdir@/file-list
343   }
344 }
345
346 FileSet {
347   Name = "FS5nocheck"
348   Include  { Options { verify="nog"; signature=MD5 }
349     File = <@tmpdir@/file-list
350   }
351   Include  { Options { signature=MD5; sparse=yes }
352     File = <@tmpdir@/file-list
353   }
354   Include  { Options { signature=MD5; compression=GZIP }
355     File = <@tmpdir@/file-list
356   }
357   Include  { Options { signature=MD5; compression=LZO }
358     File = <@tmpdir@/file-list
359   }
360   Include  { Options { signature=MD5; compression=LZO; sparse=yes }
361     File = <@tmpdir@/file-list
362   }
363   Include  { Options { signature=MD5; compression=GZIP; sparse=yes }
364     File = <@tmpdir@/file-list
365   }
366 }
367
368 FileSet {
369   Name = "FS1"
370   Include  { Options { verify=s1; signature=SHA1 }
371     File = <@tmpdir@/file-list
372   }
373   Include  { Options { signature=SHA1; sparse=yes }
374     File = <@tmpdir@/file-list
375   }
376   Include  { Options { signature=SHA1; compression=GZIP }
377     File = <@tmpdir@/file-list
378   }
379   Include  { Options { signature=SHA1; compression=LZO }
380     File = <@tmpdir@/file-list
381   }
382   Include  { Options { signature=SHA1; compression=LZO; sparse=yes }
383     File = <@tmpdir@/file-list
384   }
385   Include  { Options { signature=SHA1; compression=GZIP; sparse=yes }
386     File = <@tmpdir@/file-list
387   }
388 }
389
390 FileSet {
391   Name = "SimpleSet"
392   Include {  
393      Options { signature=MD5 }
394      File =  <@tmpdir@/file-list
395   }
396 }
397
398
399 FileSet {
400   Name = vSphereSet
401    Include {
402     Options {
403       signature=MD5
404       compression = GZIP1
405     }
406     Plugin = "vsphere: host=@VSPHERE_HOST1@"
407   }
408 }
409
410 FileSet {
411   Name = vSphereSet2
412    Include {
413     Options {
414       signature=MD5
415       compression = GZIP1
416     }
417     Plugin = "vsphere: host=@VSPHERE_HOST1@"
418     Plugin = "vsphere: host=@VSPHERE_HOST2@"
419   }
420 }
421
422 FileSet {
423   Name = "SparseSet"
424   Include {
425     Options {
426       signature=MD5
427       sparse=yes
428     }
429     File = <@tmpdir@/file-list
430   }
431 }
432
433 FileSet {
434   Name = "CompressedSet"
435   Include {
436     Options {
437       signature=MD5 
438       compression=GZIP
439       onefs=no
440     }
441     File = <@tmpdir@/file-list
442   }
443 }
444
445 FileSet {
446   Name = "LZOSet"
447   Include {
448     Options {
449       signature=MD5
450       compression=LZO
451     }
452     File = <@tmpdir@/file-list
453   }
454 }
455
456 FileSet {
457   Name = "DeltaSet"
458   Include {
459     Options {
460       signature=MD5
461       plugin = delta
462     }
463     File = <@tmpdir@/file-list
464   }
465 }
466
467 FileSet {
468   Name = "FIFOSet"
469   Include {
470     Options {
471       readfifo = yes
472       signature=MD5 
473     }
474     File = <@tmpdir@/file-list
475   }
476 }
477
478
479 FileSet {
480   Name = "SparseCompressedSet"
481   Include {
482     Options {
483       signature=MD5 
484       compression=GZIP
485       sparse=yes
486     }
487     File = <@tmpdir@/file-list
488   }
489 }
490
491 FileSet {
492   Name = "SparseLZOSet"
493   Include {
494     Options {
495       signature=MD5
496       compression=LZO
497       sparse=yes
498     }
499     File = <@tmpdir@/file-list
500   }
501 }
502
503 FileSet {
504   Name = "MonsterFileSet"
505   Include {
506     Options {
507        signature = MD5
508        noatime = yes
509        ignore case = yes
510        Exclude = yes
511        RegexDir = "Cache"
512        RegexDir = "Windows Defender"
513        RegexDir = "Temporary Internet Files"
514        RegexDir = "bacula"
515        RegexDir = "Temp"
516
517        RegexDir = "ATI Technologies"
518
519        RegexDir = "wmdownloads"
520        RegexDir = "My Music"
521        RegexDir = "iTunes"
522        RegexDir = "Cookies"
523
524        RegexFile = "desktop.ini"
525        RegexFile = "thumbs.db"
526        RegexFile = "acrobat7.exe"
527        RegexFile = "acr6win.exe"
528        RegexFile = "AdbeRdr70_enu_full.exe"
529        RegexFile = "antivirus10_1_5.exe"
530        #thunderbird lock file
531        RegexFile = "parent.lock"
532
533        RegexDir = "Retrospect Restore Points"
534
535        #exclude i386 director of windows installer files
536        WildDir = "[A-Z]:/i386"
537
538        # Exclude Mozilla-based programs' file caches
539        WildDir = "[A-Z]:/Documents and Settings/*/Application Data/*/Profiles/*/*/ImapMail"
540        WildDir = "[A-Z]:/Users/*/Application Data/*/Profiles/*/*/ImapMail"
541
542        # Exclude user's registry files - they're always in use anyway.
543        WildFile = "[A-Z]:/Documents and Settings/*/Local Settings/Application Data/Microsoft/Windows/usrclass.*"
544        WildFile = "[A-Z]:/Users/*/Local Settings/Application Data/Microsoft/Windows/usrclass.*"
545        WildFile = "[A-Z]:/Documents and Settings/*/ntuser.*"
546        WildFile = "[A-Z]:/Users/*/ntuser.*"
547
548        WildDir = "[A-Z]:/Documents and Settings/*/Recent"
549        WildDir = "[A-Z]:/Users/*/Recent"
550
551        WildDir = "[A-Z]:/Documents and Settings/*/Local Settings/History"
552        WildDir = "[A-Z]:/Users/*/Local Settings/History"
553
554        # These are always open and unable to be backed up
555        WildFile = "[A-Z]:/Documents and Settings/All Users/Application Data/Microsoft/Network/Downloader/qmgr[01].dat"
556        WildFile = "[A-Z]:/Users/All Users/Application Data/Microsoft/Network/Downloader/qmgr[01].dat"
557
558        #Exclude all of Windows...
559        WildDir = "[A-Z]:/windows"
560        WildDir = "[A-Z]:/winnt"
561        WildDir = "[A-Z]:/winxp"
562        WildDir = "[A-Z]:/win"
563
564        #symantec antivirus app stuff
565        WildDir = "[A-Z]:/*/Symantec*"
566
567        #system volume information
568        WildDir = "[A-Z]:/System Volume Information"
569
570        WildFile = "*.tmp"
571        # ghost image and spanning files
572        WildFile = "*.gho"
573        WildFile = "*.ghs"
574
575        # Recycle bins
576        WildDir = "[A-Z]:/RECYCLER"
577        WildDir = "[A-Z]:/RECYCLER"
578        WildDir = "[A-Z]:/RECYCLED"
579        WildDir = "[A-Z]:/$RECYCLE.BIN"
580
581        # Swap files
582        WildFile = "[A-Z]:/pagefile.sys"
583
584        # These are programs and are easier to reinstall than restore from
585        # backup
586        WildDir = "[A-Z]:/cygwin"
587        WildDir = "[A-Z]:/Program Files/Adobe/Acrobat 7.0"
588        WildDir = "[A-Z]:/Program Files/Adobe/Acrobat 8.0"
589
590        WildDir = "[A-Z]:/Program Files/Common Files/Software Center"
591        WildDir = "[A-Z]:/Software Center"
592
593        WildDir = "[A-Z]:/Program Files/Grisoft"
594        WildDir = "[A-Z]:/Program Files/Java"
595        WildDir = "[A-Z]:/Program Files/Java Web Start"
596        WildDir = "[A-Z]:/Program Files/JavaSoft"
597        WildDir = "[A-Z]:/Program Files/Microsoft Office"
598        WildDir = "[A-Z]:/Program Files/Mozilla Firefox"
599        WildDir = "[A-Z]:/Program Files/Mozilla Thunderbird"
600        WildDir = "[A-Z]:/Program Files/mozilla.org"
601        WildDir = "[A-Z]:/Program Files/OpenOffice*"
602     }
603     File = <@tmpdir@/file-list
604   }
605 }
606
607
608 #
609 # When to do the backups, full backup on first sunday of the month,
610 #  differential (i.e. incremental since full) every other sunday,
611 #  and incremental backups other days
612 Schedule {
613   Name = "WeeklyCycle"
614   Run = Level=Full 1st sun at 1:05
615   Run = Level=Differential 2nd-5th sun at 1:05
616   Run = Level=Incremental mon-sat at 1:05
617 }
618
619 # This schedule does the catalog. It starts after the WeeklyCycle
620 Schedule {
621   Name = "WeeklyCycleAfterBackup"
622   Run = Level=Full sun-sat at 1:10
623 }
624
625 # This is the backup of the catalog
626 FileSet {
627   Name = "Catalog"
628   Include {
629     Options {
630       signature=MD5
631     }
632     File = /home/kern/bacula/regress/bin/working/bacula.sql
633   }
634 }
635
636 # Client (File Services) to backup
637 Client {
638   Name = @hostname@-fd
639   Address = @hostname@
640   FDPort = @fdport@
641   Catalog = MyCatalog
642   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
643   File Retention = 30d                # 30 days
644   Job Retention = 180d                # six months
645   AutoPrune = yes                     # Prune expired Jobs/Files
646   Maximum Concurrent Jobs = 10
647 }
648
649 # Definiton of file storage device
650 Storage {
651   Name = File
652   Address = @hostname@                # N.B. Use a fully qualified name here
653   SDPort = @sdport@
654   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
655   Device = FileStorage
656   Media Type = File
657   Maximum Concurrent Jobs = 10
658   Heartbeat Interval = 330
659 }
660
661 Storage {
662   Name = File1
663   Address = @hostname@                # N.B. Use a fully qualified name here
664   SDPort = @sdport@
665   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
666   Device = FileStorage1
667   Media Type = File1
668   Maximum Concurrent Jobs = 10
669   Heartbeat Interval = 330
670 }
671
672 Storage {
673   Name = File2
674   Address = @hostname@                # N.B. Use a fully qualified name here
675   SDPort = @sdport@
676   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
677   Device = FileStorage2
678   Media Type = File
679   Maximum Concurrent Jobs = 10
680   Heartbeat Interval = 330
681 }
682
683 # Definition of DLT tape storage device
684 #Storage {
685 #  Name = DLTDrive
686 #  Address = @hostname@                # N.B. Use a fully qualified name here
687 #  SDPort = @sdport@
688 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
689 #  Device = "HP DLT 80"                # must be same as Device in Storage daemon
690 #  Media Type = DLT8000                # must be same as MediaType in Storage daemon
691 #}
692
693 # Definition of DDS tape storage device
694 #Storage {
695 #  Name = SDT-10000
696 #  Address = @hostname@                # N.B. Use a fully qualified name here
697 #  SDPort = @sdport@
698 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
699 #  Device = SDT-10000                  # must be same as Device in Storage daemon
700 #  Media Type = tape                  # must be same as MediaType in Storage daemon
701 #}
702
703 # Definition of 8mm tape storage device
704 #Storage {
705 #  Name = "8mmDrive"
706 #  Address = @hostname@                # N.B. Use a fully qualified name here
707 #  SDPort = @sdport@
708 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
709 #  Device = "Exabyte 8mm"
710 #  MediaType = "8mm"
711 #}
712
713
714 # Generic catalog service
715 Catalog {
716   Name = MyCatalog
717   @libdbi@
718   dbname = @db_name@; user = @db_user@; password = "@db_password@"
719 }
720
721 # Reasonable message delivery -- send most everything to email address
722 #  and to the console
723 Messages {
724   Name = Standard
725   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
726   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
727 # MailOnError = @job_email@ = all
728 # operator = @job_email@ = mount
729   console = all, !skipped, !terminate, !restored
730 #
731 # WARNING! the following will create a file that you must cycle from
732 #          time to time as it will grow indefinitely. However, it will
733 #          also keep all your messages if the scroll off the console.
734 #
735   append = "@working_dir@/log" = all, !skipped
736   catalog = all, !skipped
737 }
738
739 Messages {
740   Name = NoEmail
741   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
742   console = all, !skipped, !terminate
743 #
744 # WARNING! the following will create a file that you must cycle from
745 #          time to time as it will grow indefinitely. However, it will
746 #          also keep all your messages if the scroll off the console.
747 #
748   append = "@working_dir@/log" = all, !skipped
749   catalog = all, !skipped
750 }
751
752     
753 # Default pool definition
754 Pool {
755   Name = Default
756   Pool Type = Backup
757   Recycle = yes                       # Bacula can automatically recycle Volumes
758   AutoPrune = yes                     # Prune expired volumes
759   Volume Retention = 365d             # one year
760 # Label Format = "TEST-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}:${NumVols}"
761 # Simple Label Format = "Backup-"
762 # Maximum Volume Jobs = 1
763 # Maximum Volume Bytes = 1500000
764 }