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# For Bareos release 1.39.27 (24 October 2006) -- debian testing/unstable 9# 10# You might also want to change the default email address 11# from root to your address. See the "mail" and "operator" 12# directives in the Messages resource. 13# 14 15Director { # define myself 16 Name = @hostname@-dir 17 DIRPort = @dirport@ # where we listen for UA connections 18 QueryFile = "@scriptdir@/query.sql" 19 WorkingDirectory = "@working_dir@" 20 PidDirectory = "@piddir@" 21 Maximum Concurrent Jobs = 4 22 Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3" # Console password 23 Messages = Standard 24 fdconnecttimeout = 20 25 sdconnecttimeout = 20 26} 27 28JobDefs { 29 Name = "DefaultJob" 30 Type = Backup 31 Level = Incremental 32 client=@hostname@-fd 33 Storage = File 34 Messages = Standard 35 Pool = Default 36 Priority = 10 37 Maximum Concurrent Jobs = 16 38} 39 40Job { 41 Name = "LOCAL_INC_ERR" 42 JobDefs = DefaultJob 43 FileSet = FS_LOCAL_INC_ERR 44 RunBeforeJob = "/bin/echo RunBeforeJob" 45 ClientRunBeforeJob = "/bin/echo ClientRunBeforeJob" 46 Run After Job = "/bin/echo RunAfterJob" 47 ClientRunAfterJob = "/bin/echo ClientRunAfterJob" 48} 49 50FileSet { 51 Name = FS_TEST 52 Include { 53 File=<@tmpdir@/file-list 54 } 55} 56 57FileSet { 58 Name = FS_REMOTE_INC_ERR 59 Include { 60 File="\<@tmpdir@/path/to/nowhere" 61 } 62} 63 64Job { 65 Name = "REMOTE_INC_ERR" 66 JobDefs = DefaultJob 67 FileSet = FS_REMOTE_INC_ERR 68 RunBeforeJob = "/bin/echo RunBeforeJob" 69 ClientRunBeforeJob = "/bin/echo ClientRunBeforeJob" 70 Run After Job = "/bin/echo RunAfterJob" 71 ClientRunAfterJob = "/bin/echo ClientRunAfterJob" 72} 73 74FileSet { 75 Name = FS_LOCAL_INC_ERR 76 Include { File=<@tmpdir@/path/to/nowhere } 77} 78 79FileSet { 80 Name = FS_LOCAL_EXCL_ERR 81 Include { File=<@tmpdir@/file-list } 82 Exclude { 83 File=<@tmpdir@/path/to/nowhere 84 } 85} 86 87Job { 88 Name = "LOCAL_EXCL_ERR" 89 JobDefs = DefaultJob 90 FileSet = FS_LOCAL_EXCL_ERR 91 RunBeforeJob = "/bin/echo RunBeforeJob" 92 ClientRunBeforeJob = "/bin/echo ClientRunBeforeJob" 93 Run After Job = "/bin/echo RunAfterJob" 94 ClientRunAfterJob = "/bin/echo ClientRunAfterJob" 95} 96 97 98FileSet { 99 Name = FS_REMOTE_EXCL_ERR 100 Include { File=<@tmpdir@/file-list } 101 Exclude { 102 File="\<@tmpdir@/path/to/nowhere" 103 } 104} 105 106Job { 107 Name = "REMOTE_EXCL_ERR" 108 JobDefs = DefaultJob 109 FileSet = FS_REMOTE_EXCL_ERR 110 RunBeforeJob = "/bin/echo RunBeforeJob" 111 ClientRunBeforeJob = "/bin/echo ClientRunBeforeJob" 112 Run After Job = "/bin/echo RunAfterJob" 113 ClientRunAfterJob = "/bin/echo ClientRunAfterJob" 114} 115Job { 116 Name = "REMOTE_RUNSCRIPT_ERR" 117 JobDefs = DefaultJob 118 FileSet = FS_TEST 119 RunBeforeJob = "/bin/echo RunBeforeJob" 120 ClientRunBeforeJob = "/bin/false" 121 Run After Job = "/bin/echo RunAfterJob" 122 ClientRunAfterJob = "/bin/echo ClientRunAfterJob" 123} 124Job { 125 Name = "LOCAL_RUNSCRIPT_ERR" 126 JobDefs = DefaultJob 127 FileSet = FS_TEST 128 RunBeforeJob = "/bin/false" 129 ClientRunBeforeJob = "/bin/echo ClientRunBeforeJob" 130 Run After Job = "/bin/echo RunAfterJob" 131 ClientRunAfterJob = "/bin/echo ClientRunAfterJob" 132} 133Job { 134 Name = "CLIENT_CONNECT_TIMEOUT" 135 JobDefs = DefaultJob 136 Client = @hostname@2-fd 137 FileSet = FS_TEST 138 RunBeforeJob = "/bin/echo RunBeforeJob" 139 ClientRunBeforeJob = "/bin/echo ClientRunBeforeJob" 140 Run After Job = "/bin/echo RunAfterJob" 141 ClientRunAfterJob = "/bin/echo ClientRunAfterJob" 142} 143Job { 144 Name = "SD_CONNECT_TIMEOUT" 145 JobDefs = DefaultJob 146 Client = @hostname@-fd 147 FileSet = FS_TEST 148 Storage = File2 149 RunBeforeJob = "/bin/echo RunBeforeJob" 150 ClientRunBeforeJob = "/bin/echo ClientRunBeforeJob" 151 Run After Job = "/bin/echo RunAfterJob" 152 ClientRunAfterJob = "/bin/echo ClientRunAfterJob" 153} 154 155# Client (File Services) to backup 156Client { 157 Name = @hostname@-fd 158 Address = @hostname@ 159 FDPort = @fdport@ 160 Catalog = MyCatalog 161 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon 162 File Retention = 30d # 30 days 163 Job Retention = 180d # six months 164 AutoPrune = yes # Prune expired Jobs/Files 165 Maximum Concurrent Jobs = 4 166} 167 168# Client (File Services) to backup 169Client { 170 Name = @hostname@2-fd 171 Address = @hostname@ 172 FDPort = 7102 173 Catalog = MyCatalog 174 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon 175 File Retention = 30d # 30 days 176 Job Retention = 180d # six months 177 AutoPrune = yes # Prune expired Jobs/Files 178 Maximum Concurrent Jobs = 4 179} 180 181# Definiton of file storage device 182Storage { 183 Name = File 184 Address = @hostname@ # N.B. Use a fully qualified name here 185 SDPort = @sdport@ 186 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" 187 Device = FileStorage 188 Media Type = File 189 Maximum Concurrent Jobs = 4 190} 191 192# Definiton of file storage device not responding 193Storage { 194 Name = File2 195 Address = @hostname@ # N.B. Use a fully qualified name here 196 SDPort = 7103 197 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" 198 Device = FileStorage 199 Media Type = File2 200 Maximum Concurrent Jobs = 4 201} 202 203# Generic catalog service 204Catalog { 205 Name = MyCatalog 206 @libdbi@ 207 dbdriver = "@db_type@" 208 dbname = @db_name@ 209 user = @db_user@ 210 password = "@db_password@" 211} 212 213 214Messages { 215 Name = Standard 216 console = all, !skipped, !saved, !audit 217 catalog = all, !skipped, !audit 218} 219 220# Default pool definition 221Pool { 222 Name = Default 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