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