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