| 307 | |
| 308 | '''Verify Director Configuration''' |
| 309 | |
| 310 | Let’s verify that there are no syntax errors in your Director configuration file: |
| 311 | {{{ |
| 312 | sudo bacula-dir -tc /etc/bacula/bacula-dir.conf |
| 313 | }}} |
| 314 | If you are returned to the shell prompt, there are no syntax errors in your Bacula Director’s configuration files. |
| 315 | |
| 316 | '''Restart Bacula Director''' |
| 317 | |
| 318 | To put the configuration changes that you made into effect, restart Bacula Director: |
| 319 | {{{ |
| 320 | sudo service bacula-director restart |
| 321 | }}} |
| 322 | Now your Client, or remote host, is configured to be backed up by your Bacula Server. |
| 323 | |
| 324 | == Test Client Connection == |
| 325 | We should verify that the Bacula Director can connect to the Bacula Client. |
| 326 | |
| 327 | On your Bacula Server, enter the Bacula Console: |
| 328 | {{{ |
| 329 | sudo bconsole |
| 330 | *status client |
| 331 | }}} |
| 332 | |
| 333 | {{{ |
| 334 | Select Client resource: ClientHost-fd |
| 335 | The defined Client resources are: |
| 336 | 1: BackupServer-fd |
| 337 | 2: ClientHost-fd |
| 338 | Select Client (File daemon) resource (1-2): 2 |
| 339 | }}} |
| 340 | |
| 341 | The Client’s File Daemon status should return immediately. If it doesn’t, and there is a connection error, there is something wrong with the configuration of the Bacula Server or of the Client’s File Daemon. |
| 342 | |
| 343 | == Test Backup Job == |
| 344 | Let’s run the backup job to make sure it works. |
| 345 | On the '''Bacula Server''', while still in the Console, use this command: |
| 346 | {{{ |
| 347 | *run |
| 348 | }}} |
| 349 | You will be prompted to select which Job to run. Select the one we created earlier, |
| 350 | '''e.g. “4. !BackupClientHost”:''' |
| 351 | {{{ |
| 352 | Select Job resource: BackupClientHost |
| 353 | The defined Job resources are: |
| 354 | 1: BackupLocalFiles |
| 355 | 2: BackupCatalog |
| 356 | 3: RestoreLocalFiles |
| 357 | 4: BackupClientHost |
| 358 | Select Job resource (1-4): 4 |
| 359 | }}} |
| 360 | At the confirmation prompt, enter “yes”: |
| 361 | {{{ |
| 362 | Confirmation prompt: |
| 363 | OK to run? (yes/mod/no): yes |
| 364 | }}} |
| 365 | '''Check Messages and Status''' |
| 366 | After running a job, Bacula will tell you that you have messages. The messages are output generated by running jobs. |
| 367 | |
| 368 | Check the messages by typing: |
| 369 | {{{ |
| 370 | *messages |
| 371 | }}} |
| 372 | The messages should say “No prior Full backup Job record found”, and that the backup job started. If there are any errors, something is wrong, and they should give you a hint as to why the job did not run. |
| 373 | |
| 374 | Another way to see the status of the job is to check the status of the Director. To do this, enter this command at the bconsole prompt: |
| 375 | {{{ |
| 376 | *status director |
| 377 | }}} |
| 378 | If everything is working properly, you should see that your job is running or terminated with an “OK” status. |