| 200 | |
| 201 | == Add Client and Backup Job to Bacula Server == |
| 202 | Now we’re ready to add our Client to the Bacula Server. To do this, we must configure the Bacula Director with new Client and Job resources. |
| 203 | {{{ |
| 204 | sudo vi /etc/bacula/bacula-dir.conf |
| 205 | }}} |
| 206 | '''Add Client Resource''' |
| 207 | A Client resource configures the Director with the information it needs to connect to the Client Host. This includes the name, address, and password of the Client’s File Daemon. |
| 208 | |
| 209 | Paste this Client resource definition into the file. Be sure to substitute in your Client hostname, private FQDN, and password '''(from the Client’s bacula-fd.conf).''' |
| 210 | {{{ |
| 211 | Client { |
| 212 | Name = ClientHost-fd |
| 213 | Address = client_private_FQDN / Private IP |
| 214 | FDPort = 9102 |
| 215 | Catalog = MyCatalog |
| 216 | Password = "IrIK4BHRA2o5JUvw2C_YNmBX_70oqfaUi" # password for Remote FileDaemon |
| 217 | File Retention = 30 days # 30 days |
| 218 | Job Retention = 6 months # six months |
| 219 | AutoPrune = yes # Prune expired Jobs/Files |
| 220 | } |
| 221 | }}} |