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