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