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" 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 = Dummy 33 Messages = Standard 34 Pool = Default 35 Write Bootstrap = "@working_dir@/NightlySave.bsr" 36 Maximum Concurrent Jobs = 4 37 SpoolData = yes 38# Prefer Mounted Volumes = no 39} 40 41Job { 42 Name = "NightlySave1" 43 Type = Backup 44 Client=@hostname@-fd 45 FileSet="Full Set" 46 Storage = Dummy 47 Messages = Standard 48 Pool = Default 49 Write Bootstrap = "@working_dir@/NightlySave.bsr" 50 Maximum Concurrent Jobs = 4 51 SpoolData = yes 52# Prefer Mounted Volumes = no 53 Client Run Before Job = "sleep 30" 54} 55 56Job { 57 Name = "NightlySave2" 58 Type = Backup 59 Client=@hostname@-fd 60 FileSet="Full Set" 61 Storage = Dummy 62 Messages = Standard 63 Pool = Default 64 Write Bootstrap = "@working_dir@/NightlySave.bsr" 65 Maximum Concurrent Jobs = 4 66 SpoolData = yes 67# Prefer Mounted Volumes = no 68} 69 70Job { 71 Name = "VerifyTape" 72 Type = Verify 73 Level = VolumeToCatalog 74 Client=@hostname@-fd 75 FileSet="Verify Set" 76 Storage = Dummy 77 Messages = Standard 78 Pool = Default 79 Write Bootstrap = "@working_dir@/NightlySave.bsr" 80 Maximum Concurrent Jobs = 4 81 SpoolData = yes 82# Prefer Mounted Volumes = no 83} 84 85 86 87 88# Standard Restore template, to be changed by Console program 89Job { 90 Name = "RestoreFiles" 91 Type = Restore 92 Client=@hostname@-fd 93 FileSet="Full Set" 94 Storage = Dummy 95 Messages = Standard 96 Pool = Default 97 Where = @tmpdir@/bareos-restores 98} 99 100 101# List of files to be backed up 102FileSet { 103 Name = "Full Set" 104 Include { Options { signature=MD5 } 105 File = <@tmpdir@/file-list 106 } 107} 108 109FileSet { 110 Name = "Verify Set" 111 Include { 112 Options { 113 signature=MD5 114 verify=pins1 115 } 116 File = "<@tmpdir@/file-list" 117 } 118} 119 120 121 122# 123# When to do the backups, full backup on first sunday of the month, 124# differential (i.e. incremental since full) every other sunday, 125# and incremental backups other days 126Schedule { 127 Name = "WeeklyCycle" 128 Run = Full 1st sun at 1:05 129 Run = Differential 2nd-5th sun at 1:05 130 Run = Incremental mon-sat at 1:05 131} 132 133# Client (File Services) to backup 134Client { 135 Name = @hostname@-fd 136 Address = @hostname@ 137 FDPort = @fdport@ 138 Catalog = MyCatalog 139 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon 140 File Retention = 30d # 30 days 141 Job Retention = 180d # six months 142 AutoPrune = yes # Prune expired Jobs/Files 143 Maximum Concurrent Jobs = 4 144} 145 146# Definition of DDS tape storage device 147Storage { 148 Name = Dummy 149 Address = @hostname@ # N.B. Use a fully qualified name here 150 SDPort = @sdport@ 151 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" # password for Storage daemon 152 Device = Dummy # must be same as Device in Storage daemon 153 Media Type = Dummy # must be same as MediaType in Storage daemon 154 Maximum Concurrent Jobs = 4 155# Autochanger = yes 156} 157 158 159# Generic catalog service 160Catalog { 161 Name = MyCatalog 162 @libdbi@ 163 dbdriver = "@db_type@" 164 dbname = @db_name@ 165 user = @db_user@ 166 password = "@db_password@" 167} 168 169# Reasonable message delivery -- send most everything to email address 170# and to the console 171Messages { 172 Name = Standard 173 mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos Regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r" 174 operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos Regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r" 175# MailOnError = @job_email@ = all, !terminate 176# operator = @job_email@ = mount 177 console = all, !skipped, !terminate, !restored, !audit 178# 179# WARNING! the following will create a file that you must cycle from 180# time to time as it will grow indefinitely. However, it will 181# also keep all your messages if the scroll off the console. 182# 183 append = "@working_dir@/log" = all, !skipped, !audit 184 catalog = all, !skipped, !audit 185} 186 187# 188# Message delivery for daemon messages (no job). 189Messages { 190 Name = Daemon 191 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bareos regression\) %r\" -s \"Regression daemon message\" %r" 192# mail = @job_email@ = all, !skipped, !audit 193 console = all, !skipped, !saved, !audit 194 append = "@working_dir@/log" = all, !skipped, !audit 195 catalog = all, !skipped, !audit 196} 197 198 199# Default pool definition 200Pool { 201 Name = Default 202 Pool Type = Backup 203 Recycle = yes # Bareos can automatically recycle Volumes 204 AutoPrune = yes # Prune expired volumes 205 Volume Retention = 365d # one year 206} 207 208Pool { 209 Name = Full 210 Pool Type = Backup 211 Recycle = yes # Bareos can automatically recycle Volumes 212 AutoPrune = yes # Prune expired volumes 213 Volume Retention = 365d # one year 214} 215 216Pool { 217 Name = Inc 218 Pool Type = Backup 219 Recycle = yes # Bareos can automatically recycle Volumes 220 AutoPrune = yes # Prune expired volumes 221 Volume Retention = 365d # one year 222} 223 224Pool { 225 Name = Scratch 226 Pool Type = Backup 227 Recycle = yes # Bareos can automatically recycle Volumes 228 AutoPrune = yes # Prune expired volumes 229 Volume Retention = 365d # one year 230} 231