1# 2# TestA Bareos Director Configuration file 3# 4 5Director { # define myself 6 Name = @hostname@-dir 7 DIRPort = @dirport@ # where we listen for UA connections 8 QueryFile = "@scriptdir@/query.sql" 9 WorkingDirectory = "@working_dir@" 10 PidDirectory = "@piddir@" 11 Maximum Concurrent Jobs = 20 12 Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3" # Console password 13 Messages = Standard 14} 15 16 17Job { 18 Name = "MultiVol" 19 Type = Backup 20 Client=@hostname@-fd 21 Level = Full 22 FileSet="Full Set" 23 Storage = File 24 Messages = Standard 25 Write Bootstrap = "@working_dir@/SmallVols.bsr" 26 Pool = SmallVols 27 SpoolData = yes 28 Maximum Concurrent Jobs = 20 29} 30 31 32Job { 33 Name = "VerifyVolume" 34 Type = Verify 35 Level = VolumeToCatalog 36 Client=@hostname@-fd 37 FileSet="Full Set" 38 Storage = File 39 Messages = Standard 40 Pool = Default 41 Write Bootstrap = "@working_dir@/NightlySave.bsr" 42} 43 44 45 46# Standard Restore template, to be changed by Console program 47Job { 48 Name = "RestoreFiles" 49 Type = Restore 50 Client=@hostname@-fd 51 FileSet="Full Set" 52 Storage = File 53 Messages = Standard 54 Pool = Default 55 Where = @tmpdir@/bareos-restores 56} 57 58 59# List of files to be backed up 60FileSet { 61 Name = "Full Set" 62 Include { Options { signature=SHA1 } 63 File =<@tmpdir@/file-list 64 } 65} 66 67 68# Client (File Services) to backup 69Client { 70 Name = @hostname@-fd 71 Address = @hostname@ 72 FDPort = @fdport@ 73 Catalog = MyCatalog 74 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon 75 File Retention = 30d # 30 days 76 Job Retention = 180d # six months 77 AutoPrune = yes # Prune expired Jobs/Files 78 Maximum Concurrent Jobs = 20 79} 80 81# Definiton of file storage device 82Storage { 83 Name = File 84 Address = @hostname@ # N.B. Use a fully qualified name here 85 SDPort = @sdport@ 86 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" 87 Device = FileStorage 88 Media Type = File 89 Maximum Concurrent Jobs = 20 90} 91 92Storage { 93 Name = File1 94 Address = @hostname@ # N.B. Use a fully qualified name here 95 SDPort = @sdport@ 96 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" 97 Device = FileStorage1 98 Media Type = File1 99 Maximum Concurrent Jobs = 20 100} 101 102 103# Generic catalog service 104Catalog { 105 Name = MyCatalog 106 @libdbi@ 107 dbdriver = "@db_type@" 108 dbname = @db_name@; user = @db_user@; password = "@db_password@" 109} 110 111# Reasonable message delivery -- send most everything to email address 112# and to the console 113Messages { 114 Name = Standard 115 mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression\) %r\" -s \"Regression: %t %e of %c %l\" %r" 116# operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression\) %r\" -s \"Regression: Intervention needed for %j\" %r" 117# MailOnError = @job_email@ = all, !terminate 118# operator = @job_email@ = mount 119 console = all, !skipped, !terminate, !audit 120 121 append = "@working_dir@/log" = all, !skipped, !audit 122 catalog = all, !skipped, !audit 123} 124 125Messages { 126 Name = NoEmail 127 mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression\) %r\" -s \"Regression: %t %e of %c %l\" %r" 128 console = all, !skipped, !terminate, !restored, !audit 129 append = "@working_dir@/log" = all, !skipped, !audit 130 catalog = all, !skipped, !audit 131} 132 133 134# Default pool definition 135Pool { 136 Name = Default 137 Pool Type = Backup 138 Recycle = yes # Bareos can automatically recycle Volumes 139 AutoPrune = yes # Prune expired volumes 140 Volume Retention = 365d # one year 141} 142 143Pool { 144 Name = SmallVols 145 Pool Type = Backup 146 Recycle = yes # Bareos can automatically recycle Volumes 147 AutoPrune = yes # Prune expired volumes 148 Volume Retention = 365d # one year 149 Maximum Volumes = 100 150 MaximumVolumeBytes = 10M 151 LabelFormat = Small 152} 153