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 = DiskChanger 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 41 42# Standard Restore template, to be changed by Console program 43Job { 44 Name = "RestoreFiles" 45 Type = Restore 46 Client=@hostname@-fd 47 FileSet="Full Set" 48 Storage = DiskChanger 49 Messages = Standard 50 Pool = Default 51 Where = @tmpdir@/bareos-restores 52} 53 54 55# List of files to be backed up 56FileSet { 57 Name = "Full Set" 58 Include { Options { signature=MD5 } 59 File = <@tmpdir@/file-list 60 } 61} 62 63 64# 65# When to do the backups, full backup on first sunday of the month, 66# differential (i.e. incremental since full) every other sunday, 67# and incremental backups other days 68Schedule { 69 Name = "WeeklyCycle" 70 Run = Full 1st sun at 1:05 71 Run = Differential 2nd-5th sun at 1:05 72 Run = Incremental mon-sat at 1:05 73} 74 75# Client (File Services) to backup 76Client { 77 Name = @hostname@-fd 78 Address = @hostname@ 79 FDPort = @fdport@ 80 Catalog = MyCatalog 81 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon 82 File Retention = 30d # 30 days 83 Job Retention = 180d # six months 84 AutoPrune = yes # Prune expired Jobs/Files 85 Maximum Concurrent Jobs = 4 86} 87 88# Definition of DDS Virtual tape disk storage device 89Storage { 90 Name = DiskChanger 91 Address = @hostname@ # N.B. Use a fully qualified name here 92 SDPort = @sdport@ 93 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" # password for Storage daemon 94 Device = DiskChanger # must be same as Device in Storage daemon 95 Media Type = DiskChangerMedia # must be same as MediaType in Storage daemon 96 Maximum Concurrent Jobs = 4 97 Autochanger = yes 98} 99 100# Definition of file storage device 101Storage { 102 Name = File 103 Address = @hostname@ 104 SDPort = @sdport@ 105 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" # password for Storage daemon 106 Device = FileStorage 107 Media Type = File 108 Maximum Concurrent Jobs = 5 109} 110 111 112# Generic catalog service 113Catalog { 114 Name = MyCatalog 115 @libdbi@ 116 dbdriver = "@db_type@" 117 dbname = @db_name@ 118 user = @db_user@ 119 password = "@db_password@" 120} 121 122# Reasonable message delivery -- send most everything to email address 123# and to the console 124Messages { 125 Name = Standard 126 mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r" 127 operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r" 128# MailOnError = @job_email@ = all, !terminate 129# operator = @job_email@ = mount 130 console = all, !skipped, !terminate, !restored, !audit 131# 132# WARNING! the following will create a file that you must cycle from 133# time to time as it will grow indefinitely. However, it will 134# also keep all your messages if the scroll off the console. 135# 136 append = "@working_dir@/log" = all, !skipped, !audit 137 catalog = all, !skipped, !audit 138} 139 140# 141# Message delivery for daemon messages (no job). 142Messages { 143 Name = Daemon 144 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bareos regression\) %r\" -s \"Regression daemon message\" %r" 145# mail = @job_email@ = all, !skipped, !audit 146 console = all, !skipped, !saved, !audit 147 append = "@working_dir@/log" = all, !skipped, !audit 148 catalog = all, !skipped, !audit 149} 150 151 152# Default pool definition 153Pool { 154 Name = Default 155 Pool Type = Backup 156 Recycle = yes # Bareos can automatically recycle Volumes 157 AutoPrune = yes # Prune expired volumes 158 Volume Retention = 365d # one year 159 NextPool = Full 160} 161 162Pool { 163 Name = Full 164 Pool Type = Backup 165 Recycle = yes # Bareos can automatically recycle Volumes 166 AutoPrune = yes # Prune expired volumes 167 Volume Retention = 365d # one year 168 Storage = DiskChanger 169} 170