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