1#
2# Default Bareos 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#  You might also want to change the default email address
9#   from root to your address.  See the "mail" and "operator"
10#   directives in the Messages resource.
11#
12
13Director {                            # define myself
14  Name = @hostname@-dir
15  DIRPort = @dirport@                # where we listen for UA connections
16  QueryFile = "@scriptdir@/query.sql"
17  WorkingDirectory = "@working_dir@"
18  PidDirectory = "@piddir@"
19  PluginDirectory = "@plugindir@"
20  Maximum Concurrent Jobs = 4
21  Heartbeat Interval = 330
22  Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"         # Console password
23  Messages = Standard
24}
25
26#
27# Define the main nightly save backup job
28#   By default, this job will back up to disk in @tmpdir@
29Job {
30  Name = "NightlySave"
31  Type = Backup
32  Client=@hostname@-fd
33  FileSet="Full Set"
34  Storage = File
35  Messages = Standard
36  Pool = Default
37  Write Bootstrap = "@working_dir@/NightlySave.bsr"
38  Maximum Concurrent Jobs = 10
39  SpoolData=yes
40  Max Run Time = 30min
41  Reschedule On Error = no
42  Reschedule Interval = 10
43  Reschedule Times = 1
44}
45
46Job {
47  Name = "MonsterSave"
48  Type = Backup
49  Client=@hostname@-fd
50  FileSet="Full Set"
51  Storage = File1
52  Messages = Standard
53  Pool = Default
54  Write Bootstrap = "@working_dir@/NightlySave.bsr"
55  Max Run Time = 30min
56  Maximum Concurrent Jobs = 10
57  SpoolData=yes
58}
59
60Job {
61  Name = "MonsterFileSet"
62  Type = Backup
63  Client=@hostname@-fd
64  FileSet="MonsterFileSet"
65  Storage = File
66  Messages = Standard
67  Pool = Default
68  Maximum Concurrent Jobs = 10
69  Write Bootstrap = "@working_dir@/NightlySave.bsr"
70  Max Run Time = 30min
71  SpoolData=yes
72}
73
74
75
76Job {
77  Name = "VerifyVolume"
78  Type = Verify
79  Level = VolumeToCatalog
80  Client=@hostname@-fd
81  FileSet="Full Set"
82  Storage = File
83  Messages = Standard
84  Pool = Default
85  Write Bootstrap = "@working_dir@/NightlySave.bsr"
86  Max Run Time = 30min
87}
88
89
90Job {
91  Name = "SparseTest"
92  Type = Backup
93  Client=@hostname@-fd
94  FileSet="SparseSet"
95  Storage = File
96  Messages = Standard
97  Pool = Default
98  Write Bootstrap = "@working_dir@/NightlySave.bsr"
99  Max Run Time = 30min
100  SpoolData=yes
101  Maximum Concurrent Jobs = 10
102}
103
104Job {
105  Name = "CompressedTest"
106  Type = Backup
107  Client=@hostname@-fd
108  FileSet="CompressedSet"
109  Storage = File
110  Messages = Standard
111  Pool = Default
112  Maximum Concurrent Jobs = 10
113  Write Bootstrap = "@working_dir@/NightlySave.bsr"
114  Max Run Time = 30min
115  SpoolData=yes
116}
117
118Job {
119  Name = "SparseCompressedTest"
120  Type = Backup
121  Client=@hostname@-fd
122  FileSet="SparseCompressedSet"
123  Storage = File
124  Messages = Standard
125  Pool = Default
126  Write Bootstrap = "@working_dir@/NightlySave.bsr"
127  Max Run Time = 30min
128  SpoolData=yes
129  Maximum Concurrent Jobs = 10
130}
131
132#####  LZO
133Job {
134  Name = "LZOTest"
135  Type = Backup
136  Client=@hostname@-fd
137  FileSet="LZOSet"
138  Storage = File
139  Messages = Standard
140  Pool = Default
141  Maximum Concurrent Jobs = 10
142  Write Bootstrap = "@working_dir@/NightlySave.bsr"
143  Max Run Time = 30min
144  SpoolData=yes
145}
146
147FileSet {
148  Name = "LZOSet"
149  Include {
150    Options {
151      signature=MD5
152      compression=LZO
153    }
154    File = <@tmpdir@/file-list
155  }
156}
157###### LZO END
158
159#####  lzfast
160Job {
161  Name = "lzfastTest"
162  Type = Backup
163  Client=@hostname@-fd
164  FileSet="lzfastSet"
165  Storage = File
166  Messages = Standard
167  Pool = Default
168  Maximum Concurrent Jobs = 10
169  Write Bootstrap = "@working_dir@/NightlySave.bsr"
170  Max Run Time = 30min
171  SpoolData=yes
172}
173
174FileSet {
175  Name = "lzfastSet"
176  Include {
177    Options {
178      signature=MD5
179      compression=lzfast
180    }
181    File = <@tmpdir@/file-list
182  }
183}
184###### lzfast END
185
186#####  lz4
187Job {
188  Name = "lz4Test"
189  Type = Backup
190  Client=@hostname@-fd
191  FileSet="lz4Set"
192  Storage = File
193  Messages = Standard
194  Pool = Default
195  Maximum Concurrent Jobs = 10
196  Write Bootstrap = "@working_dir@/NightlySave.bsr"
197  Max Run Time = 30min
198  SpoolData=yes
199}
200
201FileSet {
202  Name = "lz4Set"
203  Include {
204    Options {
205      signature=MD5
206      compression=lz4
207    }
208    File = <@tmpdir@/file-list
209  }
210}
211###### lz4 END
212
213#####  lz4hc
214Job {
215  Name = "lz4hcTest"
216  Type = Backup
217  Client=@hostname@-fd
218  FileSet="lz4hcSet"
219  Storage = File
220  Messages = Standard
221  Pool = Default
222  Maximum Concurrent Jobs = 10
223  Write Bootstrap = "@working_dir@/NightlySave.bsr"
224  Max Run Time = 30min
225  SpoolData=yes
226}
227
228FileSet {
229  Name = "lz4hcSet"
230  Include {
231    Options {
232      signature=MD5
233      compression=lz4hc
234    }
235    File = <@tmpdir@/file-list
236  }
237}
238###### lz4hc END
239
240
241
242Job {
243  Name = "SparseLZOTest"
244  Type = Backup
245  Client=@hostname@-fd
246  FileSet="SparseLZOSet"
247  Storage = File
248  Messages = Standard
249  Pool = Default
250  Write Bootstrap = "@working_dir@/NightlySave.bsr"
251  Max Run Time = 30min
252  SpoolData=yes
253  Maximum Concurrent Jobs = 10
254}
255
256Job {
257  Name = "FIFOTest"
258  Type = Backup
259  Client=@hostname@-fd
260  FileSet="FIFOSet"
261  Storage = File
262  Messages = Standard
263  Pool = Default
264  Write Bootstrap = "@working_dir@/NightlySave.bsr"
265  ClientRunBeforeJob = "sleep 5"
266  Max Run Time = 30min
267}
268
269
270
271# Backup the catalog database (after the nightly save)
272Job {
273  Name = "BackupCatalog"
274  Type = Backup
275  Client=@hostname@-fd
276  FileSet="Catalog"
277#  Schedule = "WeeklyCycleAfterBackup"
278  Storage = File
279  Messages = Standard
280  Pool = Default
281  # This creates an ASCII copy of the catalog
282  RunBeforeJob = "@sbindir@/make_catalog_backup -u regress"
283  # This deletes the copy of the catalog
284  RunAfterJob  = "@sbindir@/delete_catalog_backup"
285  Write Bootstrap = "@working_dir@/BackupCatalog.bsr"
286  Max Run Time = 30min
287}
288
289JobDefs {
290  Name = "BackupJob"
291  Type = Backup
292  Pool = Default
293  Storage = File
294  Messages = Standard
295  Priority = 10
296  Max Run Time = 30min
297}
298
299Job {
300  JobDefs = "BackupJob"
301  Name = "bug621-job-1"
302  Client = @hostname@-fd
303  FileSet="Full Set"
304  ClientRunBeforeJob = "sleep 5"
305}
306
307Job {
308  JobDefs = "BackupJob"
309  Name = "bug621-job-2"
310  Client = @hostname@-fd
311  FileSet = "Full Set"
312  Max Run Time = 30
313  Priority = 15
314}
315
316
317# Standard Restore template, to be changed by Console program
318Job {
319  Name = "RestoreFiles"
320  Type = Restore
321  Client=@hostname@-fd
322  FileSet="Full Set"
323  Storage = File
324  Messages = Standard
325  Pool = Default
326  Where = @tmpdir@/bareos-restores
327  Max Run Time = 30min
328}
329
330
331# List of files to be backed up
332FileSet {
333  Name = "Full Set"
334  Include {
335     Options { signature=MD5; sparse=yes;
336       verify=pins5 }
337     File =  <@tmpdir@/file-list
338  }
339}
340
341FileSet {
342  Name = "SparseSet"
343  Include {
344    Options {
345      signature=MD5
346      sparse=yes
347    }
348    File = <@tmpdir@/file-list
349  }
350}
351
352FileSet {
353  Name = "CompressedSet"
354  Include {
355    Options {
356      signature=MD5
357      compression=GZIP
358    }
359    File = <@tmpdir@/file-list
360  }
361}
362
363FileSet {
364  Name = "FIFOSet"
365  Include {
366    Options {
367      readfifo = yes
368      signature=MD5
369    }
370    File = <@tmpdir@/file-list
371  }
372}
373
374
375FileSet {
376  Name = "SparseCompressedSet"
377  Include {
378    Options {
379      signature=MD5
380      compression=GZIP
381      sparse=yes
382    }
383    File = <@tmpdir@/file-list
384  }
385}
386
387FileSet {
388  Name = "SparseLZOSet"
389  Include {
390    Options {
391      signature=MD5
392      compression=LZO
393      sparse=yes
394    }
395    File = <@tmpdir@/file-list
396  }
397}
398
399FileSet {
400  Name = "MonsterFileSet"
401  Include {
402    Options {
403       signature = MD5
404       noatime = yes
405       ignore case = yes
406       Exclude = yes
407       RegexDir = "Cache"
408       RegexDir = "Windows Defender"
409       RegexDir = "Temporary Internet Files"
410       RegexDir = "bareos"
411       RegexDir = "Temp"
412
413       RegexDir = "ATI Technologies"
414
415       RegexDir = "wmdownloads"
416       RegexDir = "My Music"
417       RegexDir = "iTunes"
418       RegexDir = "Cookies"
419
420       RegexFile = "desktop.ini"
421       RegexFile = "thumbs.db"
422       RegexFile = "acrobat7.exe"
423       RegexFile = "acr6win.exe"
424       RegexFile = "AdbeRdr70_enu_full.exe"
425       RegexFile = "antivirus10_1_5.exe"
426       #thunderbird lock file
427       RegexFile = "parent.lock"
428
429       RegexDir = "Retrospect Restore Points"
430
431       #exclude i386 director of windows installer files
432       WildDir = "[A-Z]:/i386"
433
434       # Exclude Mozilla-based programs' file caches
435       WildDir = "[A-Z]:/Documents and Settings/*/Application Data/*/Profiles/*/*/ImapMail"
436       WildDir = "[A-Z]:/Users/*/Application Data/*/Profiles/*/*/ImapMail"
437
438       # Exclude user's registry files - they're always in use anyway.
439       WildFile = "[A-Z]:/Documents and Settings/*/Local Settings/Application Data/Microsoft/Windows/usrclass.*"
440       WildFile = "[A-Z]:/Users/*/Local Settings/Application Data/Microsoft/Windows/usrclass.*"
441       WildFile = "[A-Z]:/Documents and Settings/*/ntuser.*"
442       WildFile = "[A-Z]:/Users/*/ntuser.*"
443
444       WildDir = "[A-Z]:/Documents and Settings/*/Recent"
445       WildDir = "[A-Z]:/Users/*/Recent"
446
447       WildDir = "[A-Z]:/Documents and Settings/*/Local Settings/History"
448       WildDir = "[A-Z]:/Users/*/Local Settings/History"
449
450       # These are always open and unable to be backed up
451       WildFile = "[A-Z]:/Documents and Settings/All Users/Application Data/Microsoft/Network/Downloader/qmgr[01].dat"
452       WildFile = "[A-Z]:/Users/All Users/Application Data/Microsoft/Network/Downloader/qmgr[01].dat"
453
454       #Exclude all of Windows...
455       WildDir = "[A-Z]:/windows"
456       WildDir = "[A-Z]:/winnt"
457       WildDir = "[A-Z]:/winxp"
458       WildDir = "[A-Z]:/win"
459
460       #symantec antivirus app stuff
461       WildDir = "[A-Z]:/*/Symantec*"
462
463       #system volume information
464       WildDir = "[A-Z]:/System Volume Information"
465
466       WildFile = "*.tmp"
467       # ghost image and spanning files
468       WildFile = "*.gho"
469       WildFile = "*.ghs"
470
471       # Recycle bins
472       WildDir = "[A-Z]:/RECYCLER"
473       WildDir = "[A-Z]:/RECYCLER"
474       WildDir = "[A-Z]:/RECYCLED"
475       WildDir = "[A-Z]:/$RECYCLE.BIN"
476
477       # Swap files
478       WildFile = "[A-Z]:/pagefile.sys"
479
480       # These are programs and are easier to reinstall than restore from
481       # backup
482       WildDir = "[A-Z]:/cygwin"
483       WildDir = "[A-Z]:/Program Files/Adobe/Acrobat 7.0"
484       WildDir = "[A-Z]:/Program Files/Adobe/Acrobat 8.0"
485
486       WildDir = "[A-Z]:/Program Files/Common Files/Software Center"
487       WildDir = "[A-Z]:/Software Center"
488
489       WildDir = "[A-Z]:/Program Files/Grisoft"
490       WildDir = "[A-Z]:/Program Files/Java"
491       WildDir = "[A-Z]:/Program Files/Java Web Start"
492       WildDir = "[A-Z]:/Program Files/JavaSoft"
493       WildDir = "[A-Z]:/Program Files/Microsoft Office"
494       WildDir = "[A-Z]:/Program Files/Mozilla Firefox"
495       WildDir = "[A-Z]:/Program Files/Mozilla Thunderbird"
496       WildDir = "[A-Z]:/Program Files/mozilla.org"
497       WildDir = "[A-Z]:/Program Files/OpenOffice*"
498    }
499    File = <@tmpdir@/file-list
500  }
501}
502
503
504#
505# When to do the backups, full backup on first sunday of the month,
506#  differential (i.e. incremental since full) every other sunday,
507#  and incremental backups other days
508Schedule {
509  Name = "WeeklyCycle"
510  Run = Level=Full 1st sun at 1:05
511  Run = Level=Differential 2nd-5th sun at 1:05
512  Run = Level=Incremental mon-sat at 1:05
513}
514
515# This schedule does the catalog. It starts after the WeeklyCycle
516Schedule {
517  Name = "WeeklyCycleAfterBackup"
518  Run = Level=Full sun-sat at 1:10
519}
520
521# This is the backup of the catalog
522FileSet {
523  Name = "Catalog"
524  Include {
525    Options {
526      signature=MD5
527    }
528    File = /home/kern/bareos/regress/bin/working/bareos.sql
529  }
530}
531
532# Client (File Services) to backup
533Client {
534  Name = @hostname@-fd
535  Address = @hostname@
536  FDPort = @fdport@
537  Catalog = MyCatalog
538  Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
539  File Retention = 30d                # 30 days
540  Job Retention = 180d                # six months
541  AutoPrune = yes                     # Prune expired Jobs/Files
542  Maximum Concurrent Jobs = 10
543}
544
545# Definiton of file storage device
546Storage {
547  Name = File
548  Address = @hostname@                # N.B. Use a fully qualified name here
549  SDPort = @sdport@
550  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
551  Device = FileStorage
552  Media Type = File
553  Maximum Concurrent Jobs = 10
554  Heartbeat Interval = 330
555}
556
557Storage {
558  Name = File1
559  Address = @hostname@                # N.B. Use a fully qualified name here
560  SDPort = @sdport@
561  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
562  Device = FileStorage1
563  Media Type = File1
564  Maximum Concurrent Jobs = 10
565  Heartbeat Interval = 330
566}
567
568
569# Definition of DLT tape storage device
570#Storage {
571#  Name = DLTDrive
572#  Address = @hostname@                # N.B. Use a fully qualified name here
573#  SDPort = @sdport@
574#  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
575#  Device = "HP DLT 80"                # must be same as Device in Storage daemon
576#  Media Type = DLT8000                # must be same as MediaType in Storage daemon
577#}
578
579# Definition of DDS tape storage device
580#Storage {
581#  Name = SDT-10000
582#  Address = @hostname@                # N.B. Use a fully qualified name here
583#  SDPort = @sdport@
584#  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
585#  Device = SDT-10000                  # must be same as Device in Storage daemon
586#  Media Type = tape                  # must be same as MediaType in Storage daemon
587#}
588
589# Definition of 8mm tape storage device
590#Storage {
591#  Name = "8mmDrive"
592#  Address = @hostname@                # N.B. Use a fully qualified name here
593#  SDPort = @sdport@
594#  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
595#  Device = "Exabyte 8mm"
596#  MediaType = "8mm"
597#}
598
599
600# Generic catalog service
601Catalog {
602  Name = MyCatalog
603  @libdbi@
604  dbdriver = "@db_type@"
605  dbname = @db_name@
606  user = @db_user@
607  password = "@db_password@"
608}
609
610# Reasonable message delivery -- send most everything to email address
611#  and to the console
612Messages {
613  Name = Standard
614  mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
615  operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
616# MailOnError = @job_email@ = all
617# operator = @job_email@ = mount
618  console = all, !skipped, !terminate, !restored, !audit
619#
620# WARNING! the following will create a file that you must cycle from
621#          time to time as it will grow indefinitely. However, it will
622#          also keep all your messages if the scroll off the console.
623#
624  append = "@working_dir@/log" = all, !skipped, !audit
625  catalog = all, !skipped, !audit
626}
627
628Messages {
629  Name = NoEmail
630  mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
631  console = all, !skipped, !terminate, !audit
632#
633# WARNING! the following will create a file that you must cycle from
634#          time to time as it will grow indefinitely. However, it will
635#          also keep all your messages if the scroll off the console.
636#
637  append = "@working_dir@/log" = all, !skipped, !audit
638  catalog = all, !skipped, !audit
639}
640
641
642# Default pool definition
643Pool {
644  Name = Default
645  Pool Type = Backup
646  Recycle = yes                       # Bareos can automatically recycle Volumes
647  AutoPrune = yes                     # Prune expired volumes
648  Volume Retention = 365d             # one year
649# Label Format = "TEST-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}:${NumVols}"
650# Simple Label Format = "Backup-"
651# Maximum Volume Jobs = 1
652# Maximum Volume Bytes = 512000
653}
654