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 = FileStorage 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 = FileStorage 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 5" 54} 55 56Job { 57 Name = "NightlySave2" 58 Type = Backup 59 Client=@hostname@-fd 60 FileSet="Full Set" 61 Storage = FileStorage 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 = FileStorage 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 = FileStorage 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 { 105 strippath = 3 106 compression = gzip 107 } 108 File = <@tmpdir@/file-list 109 } 110 Include { 111# File = /usr/include 112 } 113} 114 115FileSet { 116 Name = "Verify Set" 117 Include { 118 Options { 119 signature=MD5 120 verify=pins1 121 } 122 File = "<@tmpdir@/file-list" 123 } 124} 125 126 127 128# 129# When to do the backups, full backup on first sunday of the month, 130# differential (i.e. incremental since full) every other sunday, 131# and incremental backups other days 132Schedule { 133 Name = "WeeklyCycle" 134 Run = Full 1st sun at 1:05 135 Run = Differential 2nd-5th sun at 1:05 136 Run = Incremental mon-sat at 1:05 137} 138 139# Client (File Services) to backup 140Client { 141 Name = @hostname@-fd 142 Address = @hostname@ 143 FDPort = @fdport@ 144 Catalog = MyCatalog 145 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon 146 File Retention = 30d # 30 days 147 Job Retention = 180d # six months 148 AutoPrune = yes # Prune expired Jobs/Files 149 Maximum Concurrent Jobs = 4 150} 151 152# Definition of DDS tape storage device 153Storage { 154 Name = FileStorage 155 Address = @hostname@ # N.B. Use a fully qualified name here 156 SDPort = @sdport@ 157 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" # password for Storage daemon 158 Device = FileStorage # must be same as Device in Storage daemon 159 Media Type = File # must be same as MediaType in Storage daemon 160 Maximum Concurrent Jobs = 4 161# Autochanger = yes 162} 163 164 165# Generic catalog service 166Catalog { 167 Name = MyCatalog 168 @libdbi@ 169 dbdriver = "@db_type@" 170 dbname = @db_name@ 171 user = @db_user@ 172 password = "@db_password@" 173} 174 175# Reasonable message delivery -- send most everything to email address 176# and to the console 177Messages { 178 Name = Standard 179 mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos Regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r" 180 operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos Regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r" 181# MailOnError = @job_email@ = all, !terminate 182# operator = @job_email@ = mount 183 console = all, !skipped, !terminate, !restored, !audit 184# 185# WARNING! the following will create a file that you must cycle from 186# time to time as it will grow indefinitely. However, it will 187# also keep all your messages if the scroll off the console. 188# 189 append = "@working_dir@/log" = all, !skipped, !audit 190 catalog = all, !skipped, !audit 191} 192 193# 194# Message delivery for daemon messages (no job). 195Messages { 196 Name = Daemon 197 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bareos regression\) %r\" -s \"Regression daemon message\" %r" 198# mail = @job_email@ = all, !skipped, !audit 199 console = all, !skipped, !saved, !audit 200 append = "@working_dir@/log" = all, !skipped, !audit 201} 202 203 204# Default pool definition 205Pool { 206 Name = Default 207 Pool Type = Backup 208 Recycle = yes # Bareos can automatically recycle Volumes 209 AutoPrune = yes # Prune expired volumes 210 Volume Retention = 365d # one year 211} 212 213Pool { 214 Name = Full 215 Pool Type = Backup 216 Recycle = yes # Bareos can automatically recycle Volumes 217 AutoPrune = yes # Prune expired volumes 218 Volume Retention = 365d # one year 219} 220 221Pool { 222 Name = Inc 223 Pool Type = Backup 224 Recycle = yes # Bareos can automatically recycle Volumes 225 AutoPrune = yes # Prune expired volumes 226 Volume Retention = 365d # one year 227} 228 229Pool { 230 Name = Scratch 231 Pool Type = Backup 232 Recycle = yes # Bareos can automatically recycle Volumes 233 AutoPrune = yes # Prune expired volumes 234 Volume Retention = 365d # one year 235} 236