Scenario 5: Backup a Windows client using BWeb Management Suite
In this scenario we will add a Windows client and then back it up using BWeb Management Suite. The steps we will go through are: installing a File Daemon, configuring a Windows system for backup jobs, and running a backup job. This scenario delivers step-by-step instructions on how to install and configure a file deamon on a single Windows system. Most customers will have multiple Windows systems, for which automation tools are available. If you experience any connection issues with the client in this scenario, please jump to "Testing Client Connectivity" to fix the issue.
- On the Windows machine, open the Firefox web browser, In the URL field, enter the IP address and port of BWeb running on the Trial VM: https://x.x.x.x:9180/ Login: admin/admin
Enter Bweb's configuration mode: Main -> Configuration -> Configure Bacula
In the top right corner on the Main menu, enable the "Autocommit" feature.
- In the left column, click the "Add a New Client Resource" button.
- Fill in a client name and the optional description. Click Next.
- Leave the default "Standard encrypted communications" checked. Click Next.
- In the OS Type drop-down, select 'Windows'. Leave the password as-is. In the Address field, type the Windows machine's IP address or FQDN. Leave the Port as-is (9102). Then click 'Next'.
- Click the word 'deploy'.
If you are presented with a "Push Configuration to xxxx" page, just click Next.
- In the "Push Method" drop-down, select "QR Code / Registration Wizard" Set the "Token validity period" to 30 minutes to give yourself enough time to complete the rest of the steps without rushing.
- Click the "Copy to clipboard" link at the top.
- Open a new tab in the Firefox browser. You will return to the BWeb tab later. In the URL, enter the IP address of the Trial VM and the path to the Windows client: http://x.x.x.x/clients/windows/
Download the Bacula Trial client installation executable by clicking on "bacula-enterprise-demo-win64-12.8.3.exe".
- Run the downloaded installer as Administrator.
- On the License Agreement dialog, click the "I Agree" button.
- Leave the "Installation Type" set to the default, "Automatic"
- On the "Choose Components" dialog, expand the "Consoles" item and make sure "Registration Wizard" is checked.
Then click "Install".
- Leave the Director information fields blank as the configuration will be completed by "Registration Wizard".
- On the "Completing Bacula Systems Enterprise 64 bit Setup" dialog, click "Launch Registration Wizard"
- When the Registration Wizard starts, select the "Register to BWeb with link / QR code" tab.
- Either manually paste in the link or click the "Paste link from Clipboard" button to paste the link obtained from BWeb in Step 8 above, then click "Register"
- When presented with the self-signed certificate warning, click Ignore.
- You should see the "Registration has completed successfully" dialog.
Just click "OK", and you will be asked if you want to restart the bacula-fd service. Click Yes, and then just close the Registration Wizard.
- Back in the BWeb tab, at the QR code page, just click "OK" to close the wizard and go back to the Main configuration page.
- Exit configuration mode by clicking on the "Bacula Enterprise" at the top left corner, then click Clients -> Clients
- On the Clients page, your newly added Windows Bacula client machine should be in the list. Click the check box next to your new Windows client and then click the Status icon (the one with the graph, not the one with the magnifying glass)
You should see the status of your new Windows client similar to the following image:
Note: If you do not see a similar page showing information about your new Windows client, please see the "Testing Client Connectivity" section at the bottom of this document to find a solution. Typically, you will need to create a firewall rule to allow the Bacula Director on the Trial VM to contact the Bacula client service running on your Windows machine.
Create Backup Job For New Windows Client
- On the Main Menu, click Configuration -> Configure Bacula -> Jobs. On the Jobs page, click the "+ Jobs" in the Job listing header
- Give the new Job a name and an optional description. In the JobDefs drop-down select "BackupsToDedup". In the Client drop-down, choose your new Windows Client. Then, in the Fileset drop-down, choose "Windows-C-Users". Leave everything else as-is, then click the "+ Add" in the top right corner to add this new Job to the list.
Exit configuration mode by clicking on the "Bacula Enterprise" at the top left corner.
- From the Main menu, select Jobs -> Defined jobs.
- In Step 1, in the Job name drop-down, choose your new Job.
- In Step 2, just review the settings and click "Run Job"
- After clicking "Run Job" you will be sent to the status page for this newly started job.
When the job finishes you will be presented with the full job log at the bottom of the page and a summary a the top.
Testing Client Connectivity:
- Check the IP addresses or fully qualified domain names in both the client definition in BWeb Management Suite and on the Windows client in C:\Program Files\Bacula\bacula-fd.conf
- Check that the passwords, name of the director (with -dir) or file daemon (with -fd) in the new Windows "bacua-fd.conf" file match what is in the Director's configuration for this Client
- Check that your Workset is applied and reload the Director (Main -> Configuration -> Configure Bacula)
- Finally, on the new Windows client, check that the firewall is disabled, or that inbound connections to port 9102/TCP are allowed from the Trial VM's IP address. Microsoft has a short document on creating such a rule here: https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-firewall/create-an-inbound-port-rule . You may also contact the Bacula Systems’ support team if you cannot determine the cause of the connectivity problem. To submit a helpdesk ticket, just click the “Contact Support” icon on the Bacula Enterprise Trial’s Landing page in your browser.