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