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