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