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