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