]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/new-test-bacula-dir.conf.in
UPdate verify-vol-test
[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   Maximum Concurrent Jobs = 4
23   Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"         # Console password
24   Messages = Standard
25 }
26
27 #
28 # Define the main nightly save backup job
29 #   By default, this job will back up to disk in @tmpdir@
30 Job {
31   Name = "NightlySave"
32   Type = Backup
33   Client=@hostname@-fd 
34   FileSet="Full Set"
35   Storage = File
36   Messages = Standard
37   Pool = Default
38   Write Bootstrap = "@working_dir@/NightlySave.bsr"
39   Maximum Concurrent Jobs = 4
40   SpoolData=yes
41 }
42
43 Job {
44   Name = "MonsterSave"
45   Type = Backup
46   Client=@hostname@-fd 
47   FileSet="Full Set"
48   Storage = File1
49   Messages = Standard
50   Pool = Default
51   Write Bootstrap = "@working_dir@/NightlySave.bsr"
52 }
53
54 Job {
55   Name = "MonsterFileSet"
56   Type = Backup
57   Client=@hostname@-fd 
58   FileSet="MonsterFileSet"
59   Storage = File
60   Messages = Standard
61   Pool = Default
62   Maximum Concurrent Jobs = 4
63   Write Bootstrap = "@working_dir@/NightlySave.bsr"
64 }
65
66
67
68 Job {
69   Name = "VerifyVolume"
70   Type = Verify
71   Level = VolumeToCatalog
72   Client=@hostname@-fd 
73   FileSet="Full Set"
74   Storage = File
75   Messages = Standard
76   Pool = Default
77   Write Bootstrap = "@working_dir@/NightlySave.bsr"
78 }
79
80
81 Job {
82   Name = "SparseTest"
83   Type = Backup
84   Client=@hostname@-fd 
85   FileSet="SparseSet"
86   Storage = File
87   Messages = Standard
88   Pool = Default
89   Write Bootstrap = "@working_dir@/NightlySave.bsr"
90 }
91
92 Job {
93   Name = "CompressedTest"
94   Type = Backup
95   Client=@hostname@-fd 
96   FileSet="CompressedSet"
97   Storage = File
98   Messages = Standard
99   Pool = Default
100   Maximum Concurrent Jobs = 4
101   Write Bootstrap = "@working_dir@/NightlySave.bsr"
102 }
103
104 Job {
105   Name = "SparseCompressedTest"
106   Type = Backup
107   Client=@hostname@-fd 
108   FileSet="SparseCompressedSet"
109   Storage = File
110   Messages = Standard
111   Pool = Default
112   Write Bootstrap = "@working_dir@/NightlySave.bsr"
113 }
114
115 Job {
116   Name = "FIFOTest"
117   Type = Backup
118   Client=@hostname@-fd 
119   FileSet="FIFOSet"
120   Storage = File
121   Messages = Standard
122   Pool = Default
123   Write Bootstrap = "@working_dir@/NightlySave.bsr"
124   ClientRunBeforeJob = "/bin/sleep 60"
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 60"
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 = "FIFOSet"
219   Include {
220     Options {
221       readfifo = yes
222       signature=MD5 
223     }
224     File = <@tmpdir@/file-list
225   }
226 }
227
228
229 FileSet {
230   Name = "SparseCompressedSet"
231   Include {
232     Options {
233       signature=MD5 
234       compression=GZIP
235       sparse=yes
236     }
237     File = <@tmpdir@/file-list
238   }
239 }
240
241 FileSet {
242   Name = "MonsterFileSet"
243   Include {
244     Options {
245        signature = MD5
246        noatime = yes
247        ignore case = yes
248        Exclude = yes
249        RegexDir = "Cache"
250        RegexDir = "Windows Defender"
251        RegexDir = "Temporary Internet Files"
252        RegexDir = "bacula"
253        RegexDir = "Temp"
254
255        RegexDir = "ATI Technologies"
256
257        RegexDir = "wmdownloads"
258        RegexDir = "My Music"
259        RegexDir = "iTunes"
260        RegexDir = "Cookies"
261
262        RegexFile = "desktop.ini"
263        RegexFile = "thumbs.db"
264        RegexFile = "acrobat7.exe"
265        RegexFile = "acr6win.exe"
266        RegexFile = "AdbeRdr70_enu_full.exe"
267        RegexFile = "antivirus10_1_5.exe"
268        #thunderbird lock file
269        RegexFile = "parent.lock"
270
271        RegexDir = "Retrospect Restore Points"
272
273        #exclude i386 director of windows installer files
274        WildDir = "[A-Z]:/i386"
275
276        # Exclude Mozilla-based programs' file caches
277        WildDir = "[A-Z]:/Documents and Settings/*/Application Data/*/Profiles/*/*/ImapMail"
278        WildDir = "[A-Z]:/Users/*/Application Data/*/Profiles/*/*/ImapMail"
279
280        # Exclude user's registry files - they're always in use anyway.
281        WildFile = "[A-Z]:/Documents and Settings/*/Local Settings/Application Data/Microsoft/Windows/usrclass.*"
282        WildFile = "[A-Z]:/Users/*/Local Settings/Application Data/Microsoft/Windows/usrclass.*"
283        WildFile = "[A-Z]:/Documents and Settings/*/ntuser.*"
284        WildFile = "[A-Z]:/Users/*/ntuser.*"
285
286        WildDir = "[A-Z]:/Documents and Settings/*/Recent"
287        WildDir = "[A-Z]:/Users/*/Recent"
288
289        WildDir = "[A-Z]:/Documents and Settings/*/Local Settings/History"
290        WildDir = "[A-Z]:/Users/*/Local Settings/History"
291
292        # These are always open and unable to be backed up
293        WildFile = "[A-Z]:/Documents and Settings/All Users/Application Data/Microsoft/Network/Downloader/qmgr[01].dat"
294        WildFile = "[A-Z]:/Users/All Users/Application Data/Microsoft/Network/Downloader/qmgr[01].dat"
295
296        #Exclude all of Windows...
297        WildDir = "[A-Z]:/windows"
298        WildDir = "[A-Z]:/winnt"
299        WildDir = "[A-Z]:/winxp"
300        WildDir = "[A-Z]:/win"
301
302        #symantec antivirus app stuff
303        WildDir = "[A-Z]:/*/Symantec*"
304
305        #system volume information
306        WildDir = "[A-Z]:/System Volume Information"
307
308        WildFile = "*.tmp"
309        # ghost image and spanning files
310        WildFile = "*.gho"
311        WildFile = "*.ghs"
312
313        # Recycle bins
314        WildDir = "[A-Z]:/RECYCLER"
315        WildDir = "[A-Z]:/RECYCLER"
316        WildDir = "[A-Z]:/RECYCLED"
317        WildDir = "[A-Z]:/$RECYCLE.BIN"
318
319        # Swap files
320        WildFile = "[A-Z]:/pagefile.sys"
321
322        # These are programs and are easier to reinstall than restore from
323        # backup
324        WildDir = "[A-Z]:/cygwin"
325        WildDir = "[A-Z]:/Program Files/Adobe/Acrobat 7.0"
326        WildDir = "[A-Z]:/Program Files/Adobe/Acrobat 8.0"
327
328        WildDir = "[A-Z]:/Program Files/Common Files/Software Center"
329        WildDir = "[A-Z]:/Software Center"
330
331        WildDir = "[A-Z]:/Program Files/Grisoft"
332        WildDir = "[A-Z]:/Program Files/Java"
333        WildDir = "[A-Z]:/Program Files/Java Web Start"
334        WildDir = "[A-Z]:/Program Files/JavaSoft"
335        WildDir = "[A-Z]:/Program Files/Microsoft Office"
336        WildDir = "[A-Z]:/Program Files/Mozilla Firefox"
337        WildDir = "[A-Z]:/Program Files/Mozilla Thunderbird"
338        WildDir = "[A-Z]:/Program Files/mozilla.org"
339        WildDir = "[A-Z]:/Program Files/OpenOffice*"
340     }
341     File = <@tmpdir@/file-list
342   }
343 }
344
345
346 #
347 # When to do the backups, full backup on first sunday of the month,
348 #  differential (i.e. incremental since full) every other sunday,
349 #  and incremental backups other days
350 Schedule {
351   Name = "WeeklyCycle"
352   Run = Level=Full 1st sun at 1:05
353   Run = Level=Differential 2nd-5th sun at 1:05
354   Run = Level=Incremental mon-sat at 1:05
355 }
356
357 # This schedule does the catalog. It starts after the WeeklyCycle
358 Schedule {
359   Name = "WeeklyCycleAfterBackup"
360   Run = Level=Full sun-sat at 1:10
361 }
362
363 # This is the backup of the catalog
364 FileSet {
365   Name = "Catalog"
366   Include {
367     Options {
368       signature=MD5
369     }
370     File = /home/kern/bacula/regress/bin/working/bacula.sql
371   }
372 }
373
374 # Client (File Services) to backup
375 Client {
376   Name = @hostname@-fd
377   Address = @hostname@
378   FDPort = @fdport@
379   Catalog = MyCatalog
380   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
381   File Retention = 30d                # 30 days
382   Job Retention = 180d                # six months
383   AutoPrune = yes                     # Prune expired Jobs/Files
384   Maximum Concurrent Jobs = 4
385 }
386
387 # Definiton of file storage device
388 Storage {
389   Name = File
390   Address = @hostname@                # N.B. Use a fully qualified name here
391   SDPort = @sdport@
392   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
393   Device = FileStorage
394   Media Type = File
395   Maximum Concurrent Jobs = 4
396 }
397
398 Storage {
399   Name = File1
400   Address = @hostname@                # N.B. Use a fully qualified name here
401   SDPort = @sdport@
402   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
403   Device = FileStorage1
404   Media Type = File1
405   Maximum Concurrent Jobs = 4
406 }
407
408
409 # Definition of DLT tape storage device
410 #Storage {
411 #  Name = DLTDrive
412 #  Address = @hostname@                # N.B. Use a fully qualified name here
413 #  SDPort = @sdport@
414 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
415 #  Device = "HP DLT 80"                # must be same as Device in Storage daemon
416 #  Media Type = DLT8000                # must be same as MediaType in Storage daemon
417 #}
418
419 # Definition of DDS tape storage device
420 #Storage {
421 #  Name = SDT-10000
422 #  Address = @hostname@                # N.B. Use a fully qualified name here
423 #  SDPort = @sdport@
424 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
425 #  Device = SDT-10000                  # must be same as Device in Storage daemon
426 #  Media Type = DDS-4                  # must be same as MediaType in Storage daemon
427 #}
428
429 # Definition of 8mm tape storage device
430 #Storage {
431 #  Name = "8mmDrive"
432 #  Address = @hostname@                # N.B. Use a fully qualified name here
433 #  SDPort = @sdport@
434 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
435 #  Device = "Exabyte 8mm"
436 #  MediaType = "8mm"
437 #}
438
439
440 # Generic catalog service
441 Catalog {
442   Name = MyCatalog
443   @libdbi@
444   dbname = @db_name@; user = @db_user@; password = "@db_password@"
445 }
446
447 # Reasonable message delivery -- send most everything to email address
448 #  and to the console
449 Messages {
450   Name = Standard
451   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
452   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
453 # MailOnError = @job_email@ = all
454 # operator = @job_email@ = mount
455   console = all, !skipped, !terminate, !restored
456 #
457 # WARNING! the following will create a file that you must cycle from
458 #          time to time as it will grow indefinitely. However, it will
459 #          also keep all your messages if the scroll off the console.
460 #
461   append = "@working_dir@/log" = all, !skipped
462   catalog = all, !skipped
463 }
464
465 Messages {
466   Name = NoEmail
467   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
468   console = all, !skipped, !terminate
469 #
470 # WARNING! the following will create a file that you must cycle from
471 #          time to time as it will grow indefinitely. However, it will
472 #          also keep all your messages if the scroll off the console.
473 #
474   append = "@working_dir@/log" = all, !skipped
475   catalog = all, !skipped
476 }
477
478     
479 # Default pool definition
480 Pool {
481   Name = Default
482   Pool Type = Backup
483   Recycle = yes                       # Bacula can automatically recycle Volumes
484   AutoPrune = yes                     # Prune expired volumes
485   Volume Retention = 365d             # one year
486 # Label Format = "TEST-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}:${NumVols}"
487 # Maximum Volume Jobs = 1
488 }