Changes between Version 19 and Version 20 of Csle2022/Agenda/bacula


Ignore:
Timestamp:
Nov 12, 2022, 12:58:57 AM (2 years ago)
Author:
geethike
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Csle2022/Agenda/bacula

    v19 v20  
    305305
    306306Save and exit when you are done.
     307
     308'''Verify Director Configuration'''
     309
     310Let’s verify that there are no syntax errors in your Director configuration file:
     311{{{
     312sudo bacula-dir -tc /etc/bacula/bacula-dir.conf
     313}}}
     314If 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
     318To put the configuration changes that you made into effect, restart Bacula Director:
     319{{{
     320sudo service bacula-director restart
     321}}}
     322Now your Client, or remote host, is configured to be backed up by your Bacula Server.
     323
     324== Test Client Connection ==
     325We should verify that the Bacula Director can connect to the Bacula Client.
     326
     327On your Bacula Server, enter the Bacula Console:
     328{{{
     329sudo bconsole
     330*status client
     331}}}
     332
     333{{{
     334Select Client resource: ClientHost-fd
     335The defined Client resources are:
     336     1: BackupServer-fd
     337     2: ClientHost-fd
     338Select Client (File daemon) resource (1-2): 2
     339}}}
     340
     341The 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 ==
     344Let’s run the backup job to make sure it works.
     345On the '''Bacula Server''', while still in the Console, use this command:
     346{{{
     347*run
     348}}}
     349You will be prompted to select which Job to run. Select the one we created earlier,
     350 '''e.g. “4. !BackupClientHost”:'''
     351{{{
     352Select Job resource: BackupClientHost
     353The defined Job resources are:
     354     1: BackupLocalFiles
     355     2: BackupCatalog
     356     3: RestoreLocalFiles
     357     4: BackupClientHost
     358Select Job resource (1-4): 4
     359}}}
     360At the confirmation prompt, enter “yes”:
     361{{{
     362Confirmation prompt:
     363OK to run? (yes/mod/no): yes
     364}}}
     365'''Check Messages and Status'''
     366After running a job, Bacula will tell you that you have messages. The messages are output generated by running jobs.
     367
     368Check the messages by typing:
     369{{{
     370*messages
     371}}}
     372The 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
     374Another 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}}}
     378If everything is working properly, you should see that your job is running or terminated with an “OK” status.