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 Maximum Concurrent Jobs = 100 20 Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3" 21 Messages = Daemon 22 FD Connect Timeout = 2min 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 = tape 34 Messages = Standard 35 Pool = Default 36 Write Bootstrap = "@working_dir@/NightlySave.bsr" 37 Maximum Concurrent Jobs = 100 38 SpoolData = yes 39# Prefer Mounted Volumes = no 40 Max Run Time = 30min 41} 42 43 44Job { 45 Name = "NightlySave1" 46 Type = Backup 47 Client = @hostname@-fd 48 FileSet="Full Set" 49 Storage = tape 50 Messages = Standard 51 Pool = Default 52 Write Bootstrap = "@working_dir@/NightlySave.bsr" 53 Maximum Concurrent Jobs = 100 54 SpoolData = yes 55# Prefer Mounted Volumes = no 56 Client Run Before Job = "sleep 5" 57 Max Run Time = 30min 58} 59 60Job { 61 Name = "NightlySave2" 62 Type = Backup 63 Client=@hostname@-fd 64 FileSet="Full Set" 65 Storage = tape 66 Messages = Standard 67 Pool = Default 68 Write Bootstrap = "@working_dir@/NightlySave.bsr" 69 Maximum Concurrent Jobs = 100 70 SpoolData = yes 71# Prefer Mounted Volumes = no 72 Max Run Time = 30min 73} 74 75Job { 76 Name = "VerifyTape" 77 Type = Verify 78 Level = VolumeToCatalog 79 Client=@hostname@-fd 80 FileSet="Verify Set" 81 Storage = tape 82 Messages = Standard 83 Pool = Default 84 Write Bootstrap = "@working_dir@/NightlySave.bsr" 85 Maximum Concurrent Jobs = 100 86 SpoolData = yes 87# Prefer Mounted Volumes = no 88 Max Run Time = 30min 89} 90 91Job { 92 Name = "Virtual" 93 Type = Backup 94 Client=@hostname@-fd 95 FileSet="Full Set" 96 Storage = Virtual 97 Messages = Standard 98 Pool = Default 99 Write Bootstrap = "@working_dir@/NightlySave.bsr" 100 Maximum Concurrent Jobs = 100 101 SpoolData = yes 102# Prefer Mounted Volumes = no 103 Max Run Time = 30min 104} 105 106 107 108# Standard Restore template, to be changed by Console program 109Job { 110 Name = "RestoreFiles" 111 Type = Restore 112 Client=@hostname@-fd 113 FileSet="Full Set" 114 Storage = tape 115 Messages = Standard 116 Pool = Default 117 Where = @tmpdir@/bareos-restores 118 Max Run Time = 30min 119} 120 121 122# List of files to be backed up 123FileSet { 124 Name = "Full Set" 125 Include { Options { signature=MD5 } 126 File = <@tmpdir@/file-list 127 } 128} 129 130FileSet { 131 Name = "Verify Set" 132 Include { 133 Options { 134 signature=MD5 135 verify=pins1 136 } 137 File = <@tmpdir@/file-list 138 } 139} 140 141 142 143# 144# When to do the backups, full backup on first sunday of the month, 145# differential (i.e. incremental since full) every other sunday, 146# and incremental backups other days 147Schedule { 148 Name = "WeeklyCycle" 149 Run = Full 1st sun at 1:05 150 Run = Differential 2nd-5th sun at 1:05 151 Run = Incremental mon-sat at 1:05 152} 153 154# Client (File Services) to backup 155Client { 156 Name = @hostname@-fd 157 Address = @hostname@ 158 FDPort = @fdport@ 159 Catalog = MyCatalog 160 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon 161 File Retention = 30d # 30 days 162 Job Retention = 180d # six months 163 AutoPrune = yes # Prune expired Jobs/Files 164 Maximum Concurrent Jobs = 100 165} 166 167# Definition of File storage device 168Storage { 169 Name = File 170 Address = @hostname@ # N.B. Use a fully qualified name here 171 SDPort = @sdport@ 172 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" # password for Storage daemon 173 Device = FileStorage # must be same as Device in Storage daemon 174 Media Type = FileMedia # must be same as MediaType in Storage daemon 175 Maximum Concurrent Jobs = 100 176} 177 178# Definition of File2 storage device 179Storage { 180 Name = File2 181 Address = @hostname@ # N.B. Use a fully qualified name here 182 SDPort = @sdport@ 183 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" # password for Storage daemon 184 Device = FileStorage # must be same as Device in Storage daemon 185 Media Type = FileMedia2 # must be same as MediaType in Storage daemon 186 Maximum Concurrent Jobs = 100 187} 188 189# Definition of File3 storage device 190Storage { 191 Name = File3 192 Address = @hostname@ # N.B. Use a fully qualified name here 193 SDPort = @sdport@ 194 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" # password for Storage daemon 195 Device = FileStorage # must be same as Device in Storage daemon 196 Media Type = FileMedia3 # must be same as MediaType in Storage daemon 197 Maximum Concurrent Jobs = 100 198} 199 200# Definition of File4 storage device 201Storage { 202 Name = File4 203 Address = @hostname@ # N.B. Use a fully qualified name here 204 SDPort = @sdport@ 205 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" # password for Storage daemon 206 Device = FileStorage # must be same as Device in Storage daemon 207 Media Type = FileMedia4 # must be same as MediaType in Storage daemon 208 Maximum Concurrent Jobs = 100 209} 210 211# Definition of DDS tape storage device 212Storage { 213 Name = tape 214 Address = @hostname@ # N.B. Use a fully qualified name here 215 SDPort = @sdport@ 216 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" # password for Storage daemon 217 Device = tape # must be same as Device in Storage daemon 218 Media Type = tape # must be same as MediaType in Storage daemon 219 Maximum Concurrent Jobs = 100 220# Autochanger = yes 221} 222 223# Definition of Virtual storage device 224Storage { 225 Name = Virtual 226 Address = @hostname@ # N.B. Use a fully qualified name here 227 SDPort = @sdport@ 228 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" # password for Storage daemon 229 Device = Virtual # must be same as Device in Storage daemon 230 Media Type = Disk # must be same as MediaType in Storage daemon 231 Maximum Concurrent Jobs = 100 232 Autochanger = yes 233} 234 235 236 237 238# Generic catalog service 239Catalog { 240 Name = MyCatalog 241 @libdbi@ 242 dbdriver = "@db_type@" 243 dbname = @db_name@ 244 user = @db_user@ 245 password = "@db_password@" 246} 247 248# Reasonable message delivery -- send most everything to email address 249# and to the console 250Messages { 251 Name = Standard 252 mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r" 253 operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r" 254# MailOnError = @job_email@ = all, !terminate 255# operator = @job_email@ = mount 256 console = all, !skipped, !terminate, !restored, !audit 257# 258# WARNING! the following will create a file that you must cycle from 259# time to time as it will grow indefinitely. However, it will 260# also keep all your messages if the scroll off the console. 261# 262 append = "@working_dir@/log" = all, !skipped, !audit 263 catalog = all, !skipped, !audit 264} 265 266# 267# Message delivery for daemon messages (no job). 268Messages { 269 Name = Daemon 270 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bareos regression\) %r\" -s \"Regression daemon message\" %r" 271# mail = @job_email@ = all, !skipped, !audit 272 console = all, !skipped, !saved, !audit 273 append = "@working_dir@/log" = all, !skipped, !audit 274 catalog = all, !skipped, !audit 275} 276 277 278# Default pool definition 279Pool { 280 Name = Default 281 Pool Type = Backup 282 Recycle = yes # Bareos can automatically recycle Volumes 283 AutoPrune = yes # Prune expired volumes 284 Volume Retention = 365d # one year 285 RecyclePool=Scratch # test forward reference 286} 287 288Pool { 289 Name = Full 290 Pool Type = Backup 291 Recycle = yes # Bareos can automatically recycle Volumes 292 AutoPrune = yes # Prune expired volumes 293 Volume Retention = 365d # one year 294} 295 296Pool { 297 Name = Inc 298 Pool Type = Backup 299 Recycle = yes # Bareos can automatically recycle Volumes 300 AutoPrune = yes # Prune expired volumes 301 Volume Retention = 365d # one year 302} 303 304Pool { 305 Name = Scratch 306 Pool Type = Backup 307 Recycle = yes # Bareos can automatically recycle Volumes 308 AutoPrune = yes # Prune expired volumes 309 Volume Retention = 365d # one year 310 Recycle Pool = Scratch # recycle back here 311} 312 313Pool { 314 Name = Special 315 Pool Type = Backup 316 Recycle = yes # Bareos can automatically recycle Volumes 317 AutoPrune = yes # Prune expired volumes 318 Volume Retention = 365d # one year 319 ScratchPool = SpecialScratch 320 Maximum Volume Jobs = 1 321} 322 323Pool { 324 Name = SpecialScratch 325 Pool Type = Backup 326 Recycle = yes # Bareos can automatically recycle Volumes 327 AutoPrune = yes # Prune expired volumes 328 Volume Retention = 365d # one year 329 Recycle Pool = SpecialScratch # recycle back here 330} 331