# Bacula Backups

<span class="TextRun SCXO41186676 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO41186676 BCX0">====================================================================================</span></span>

### Backup Server Setup (via automation)  


<span class="TextRun SCXO256753378 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO256753378 BCX0">USEFUL LINKS:</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO256753378 BCX0"><span class="SCXO256753378 BCX0"> </span>  
</span>[<span class="TextRun SCXO256753378 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO256753378 BCX0">https://kb.ukfast.net/Backup\_Server\_Install</span></span>](https://kb.ukfast.net/Backup_Server_Install)<span class="EOP SCXO256753378 BCX0"> </span>

<span class="EOP SCXO256753378 BCX0"> </span>[<span class="TextRun SCXO256753378 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO256753378 BCX0">https://linuxinstaller-man4.devops.ukfast.co.uk/dashboard/</span></span>](https://linuxinstaller-man4.devops.ukfast.co.uk/dashboard/)<span class="EOP SCXO256753378 BCX0"> </span>

[<span class="TextRun SCXO256753378 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO256753378 BCX0">https://linuxinstaller-man5.devops.ukfast.co.uk/dashboard/</span></span>](https://linuxinstaller-man5.devops.ukfast.co.uk/dashboard/)<span class="EOP SCXO256753378 BCX0"> </span>

<span class="EOP SCXO256753378 BCX0"> </span>[<span class="TextRun SCXO256753378 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO256753378 BCX0">https://awx.devops.ukfast.co.uk/#/home</span></span>](https://awx.devops.ukfast.co.uk/#/home)<span class="EOP SCXO256753378 BCX0"> </span>

All steps here are done within TechDB - specifically on the SID page for the backup server, unless otherwise specified.

If this is a reinstall then you first need to schedule maintenance and task DC to replace the disks

```
server type: "backup server" 
server subtype: "Bacula v9 Server" 
Status: Awaiting Installation 
Role: "Backup Server" 
OS type: Ubuntu 20.04 x86_64 
```

Add the OS &gt; Software Installed &gt; Select Ubuntu 20.04 x86\_64 and Right Click &gt; Add

Also remove any OS that is already present (Only for reinstalls)

 get networks to assign you an IP Address and fill in the Hostname (not needed for reinstall)

 Hardware &gt; Configuration &gt; Model &gt; This needs to be set to the chassis (Most will be R320 - won't need changing for a reinstall unless chassis has been swapped)

The server must have a rack switch AND a backup switch connection (backup switch MUST be Gigabit)

 Set the vlan to the installer vlan for the relevant datacentre: \[MAN4: 516, MAN5: 316\]

Click Save Edits   
Click Configure Switch   
Click Reset Server OS   
deselect firewall information - this is for shared backup servers, these are not Firewalled

Select Save Edits

Open the virtual console in DRAC

 Click Install/Re-install OS to start automation, you can watch the steps in automation history and use DRAC too   
 Reboot server

When server is booting hit f2 to go to system setup then System BIOS &gt; Boot Settings &gt; Change from BIOS to UEFI, can then exit this menu and server will reboot   
 While its booting hit f11 to go into the Boot Manager &gt; UEFI Boot menu &gt; NIC 1   
 After that then automation will do the rest for you (hopefully)

<span class="TextRun SCXO41186676 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO41186676 BCX0">====================================================================================</span></span>

### Bacula Client Setup

<span class="TextRun SCXO41186676 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO41186676 BCX0">====================================================================================</span></span>

### Troubleshooting Bacula

<span class="TextRun SCXO103445307 BCX0" data-contrast="auto" lang="EN-GB" xml:lang="EN-GB"><span class="NormalTextRun SCXO103445307 BCX0">---------------------------------------------------------------------------------------------------------------------------------------</span></span><span class="EOP SCXO103445307 BCX0"> </span>

#### <span class="TextRun Underlined SCXO103445307 BCX0" data-contrast="auto" lang="EN-GB" xml:lang="EN-GB"><span class="NormalTextRun SCXO103445307 BCX0">Bacula Networking</span></span>

<span class="TextRun SCXO103445307 BCX0" data-contrast="auto" lang="EN-GB" xml:lang="EN-GB"><span class="NormalTextRun SCXO103445307 BCX0">---------------------------------------------------------------------------------------------------------------------------------------</span></span><span class="EOP SCXO103445307 BCX0"> </span>

##### <span class="TextRun SCXO103445307 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO103445307 BCX0">BAC Address</span></span>

<span class="TextRun SCXO103445307 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO103445307 BCX0">Firstly, check the client server has a </span><span class="SpellingError SCXO103445307 BCX0">bacula</span><span class="NormalTextRun SCXO103445307 BCX0"> IPv6 address.</span></span><span class="EOP SCXO103445307 BCX0"> </span>

```
ip a  
```

<span class="TextRun SCXO103445307 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO103445307 BCX0">Will look something like the following (note the 'BAC' present around the middle of this address)</span></span>

`<span class="TextRun SCXO103445307 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO103445307 BCX0">2a02:22d0:bac:0:3617:ebff:fef1:1f8</span></span><span class="EOP SCXO103445307 BCX0"> </span>`

<span class="EOP SCXO103445307 BCX0"> </span><span class="TextRun SCXO103445307 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO103445307 BCX0">If the server does not have a v6 address, we need to check the backup NIC config and then try to restart the backup NIC. </span></span>

##### <span class="TextRun SCXO103445307 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO103445307 BCX0">IPv6 Network Restrictions</span></span>

<span class="TextRun SCXO103445307 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO103445307 BCX0">Ensure that the ip6tables service isn't running:</span></span>

```
Systemctl status ip6tables 
```

<span class="TextRun SCXO103445307 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO103445307 BCX0"><span class="EOP SCXO6020463 BCX0">Check the ruleset:</span></span></span>

```
ip6tables –S
```

<span class="TextRun SCXO103445307 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO103445307 BCX0"><span class="EOP SCXO6020463 BCX0"><span class="TextRun Highlight SCXO25048834 BCX0" data-contrast="auto" lang="EN-GB" xml:lang="EN-GB">Add required rules for Bacula IPv6 networking over ports 9102 and 9103:</span></span></span></span>

```
ip6tables -I INPUT -i eth1/em2 -j ACCEPT 
ip6tables -I OUTPUT -p tcp --dport 9102 -j ACCEPT 
ip6tables -I OUTPUT -p tcp --dport 9103 -j ACCEPT 
service ip6tables save && service ip6tables restart 
```

<span class="TextRun SCXO103445307 BCX0" data-contrast="auto" lang="EN-GB" xml:lang="EN-GB"><span class="NormalTextRun SCXO103445307 BCX0">---------------------------------------------------------------------------------------------------------------------------------------</span></span><span class="EOP SCXO103445307 BCX0"> </span>

#### <span class="EOP SCXO103445307 BCX0">Bacula-fd Configuration</span>