| 175 | == Configure Storage Daemon == |
| 176 | Our Bacula server is almost set up, but we still need to configure the Storage Daemon, so Bacula knows where to store backups. |
| 177 | |
| 178 | Open the SD configuration in your favorite text editor. We’ll use vi: |
| 179 | {{{ |
| 180 | sudo vi /etc/bacula/bacula-sd.conf |
| 181 | }}} |
| 182 | '''Configure Storage Resource''' |
| 183 | |
| 184 | Find the Storage resource. This defines where the SD process will listen for connections. Add the SDAddress parameter, and assign it to the private FQDN (or private IP address) of your backup server: |
| 185 | {{{ |
| 186 | Storage { # definition of myself |
| 187 | Name = BackupServer-sd |
| 188 | SDPort = 9103 # Director's port |
| 189 | WorkingDirectory = "/var/lib/bacula" |
| 190 | Pid Directory = "/var/run/bacula" |
| 191 | Maximum Concurrent Jobs = 20 |
| 192 | SDAddress = backup_server_private_FQDN / Private IP |
| 193 | } |
| 194 | }}} |
| 195 | '''Configure Storage Device ''' |
| 196 | |
| 197 | Next, find the Device resource named “FileStorage” (search for “FileStorage”), and update the value of Archive Device to match your backups directory: |
| 198 | {{{ |
| 199 | Device { |
| 200 | Name = FileStorage |
| 201 | Media Type = File |
| 202 | Archive Device = /bacula/backup |
| 203 | LabelMedia = yes; # lets Bacula label unlabeled media |
| 204 | Random Access = Yes; |
| 205 | AutomaticMount = yes; # when device opened, read it |
| 206 | RemovableMedia = no; |
| 207 | AlwaysOpen = no; |
| 208 | } |
| 209 | }}} |
| 210 | |
| 211 | |