Guides and tutorials

Hundreds of tutorials and step by step guides carefully written by our support team.

How to install the bacula client on my cloud without SWPanel

In this manual we will teach you step by step how to install the backup agent 'Bacula'. It is an application that allows communication between your server and our Backups server in order to make and schedule backup copies for you.

Attention: This manual assumes that you have the technical knowledge necessary to establish an SSH or RDP connection with your server and use Debian, Ubuntu or Windows commands.

If you don't have the necessary knowledge, our engineering team can perform these tasks for you. Contact us via support wall to find out how.

Installation on Linux

1. Establish an SSH connection to your server
Throughout this manual we will assume that you are logged in as root user.

2. Installing the package
To install the necessary package run the following command:

apt-get install bacula-fd

3. Change the configuration file
The configuration file is located in /etc/bacula/bacula-fd.conf
We recommend editing the document with the 'nano' editor:

nano /etc/bacula/bacula-fd.conf

Below we explain the changes you have to make in this document. To make it easier for you, we have separated it into blocks.

First block "Director":

Here we will define the names of the copy servers and an access password. You will have to inform our engineers of this password so that they can configure the "Bacula" daemon on the backup server. At the end of the manual, we will explain how you can do it.

Attention: Copy the following block as shown in the example. You only have to modify the word $PWD_BACULA by your own alphanumeric password of 15 to 30 characters


Director {
    Name = bacula.dnssw.net-dir
    Password = "$PWD_BACULA"
}
Director {
    Name = bacula2.dnssw.net-dir
    Password = "$PWD_BACULA"
}
Director {
    Name = bacula3.dnssw.net-dir
    Password = "$PWD_BACULA"
}
Director {
    Name = bacula4.dnssw.net-dir
	Password = "$PWD_BACULA"
}
Director {
    Name = bacula5.dnssw.net-dir
	Password = "$PWD_BACULA"
}
Director {
    Name = baculaMadrid.dnssw.net-dir
	Password = "$PWD_BACULA"
}
Director {
    Name = baculam1.dnssw.net-dir
	Password = "$PWD_BACULA"
}
Director {
    Name = baculam2.dnssw.net-dir
	Password = "$PWD_BACULA"
}
Director {
    Name = baculam3.dnssw.net-dir
	Password = "$PWD_BACULA"
}
Director {
    Name = baculam4.dnssw.net-dir
	Password = "$PWD_BACULA"
}
Director {
    Name = baculam5.dnssw.net-dir
	Password = "$PWD_BACULA"
}

Second block "Director":

This block is not necessary, you can comment it by adding a # in front of each of the lines. It has to be as follows:

# 
# Restricted Director, used by tray-monitor to get the 
# status of the file daemon 
# 
# Director {
#  Name = bacula3.dnssw.net-mon 
#  Password = "GexFhZYo843rTweXJq0RJLQtpyd" 
#  Monitor = yes 
# }

Third block "File Deamon":

In this block we have to define the name and IP of the director.

You just have to replace the word $SERVER_NAME with the hostname of your server and make sure that at the end you have concatenated "-fd".

You can get the server name with the command: hostname --fwdn

Additionally you have to replace the IP address of the FDAddress field with the IP address of your server.

Attention: Copy the following block as shown in the example.

FileDaemon {
    Name = $SERVER_NAME-fd
    FDport = 9102
    WorkingDirectory = /var/lib/bacula
    Pid Directory = /var/run/bacula
    Maximum Concurrent Jobs = 20
    FDAddress = 0.0.0.0
}                           

Attention: The configuration file may already show the $SERVER_NAME field substituted. It is not necessarily correct. Please check the real name with the provided command.


Fourth block "Messages":

Finally, you have to define the server to which all the "logs" of the copy process will be sent. You just have to leave the line "Name = Standard". You can comment on the other, adding a # at the beginning of the line. It has to be as follows:

Messages {
    Name = Standard
    # director = cl2018123456-dir = all, !skipped, !restored
} 

4. Check that the service is listening on the assigned port

Run the following command:

netstat -pant | grep 9102

In case the "bacula-fd" service is running, it will show you with the status "LISTEN"

5. Communicate the password to SW

Write a new comment on your support wall indicating that you want to communicate the Bacula password to us. For more convenience, we have attached a sample message that you can use as a template:

Hello,
 Following your manual I have already configured the bacula software for backups
 that I have hired. I would appreciate if you can review the configuration so that they can be
 make the copies starting tonight. I pass you the data:

Servidor: cl20YYMMDDHHNNN.dnssw.net 
IP: 81.25.1XX.YYY
Password del bacula: 12345678901234567890

Thank you very much,
 Regards

Attention: Modify the Server, IP and Bacula Password fields for those corresponding to your server. The Bacula Password is the one we defined in the first block

That's it! Once these steps have been carried out and having communicated the password to our engineering team, the backup copies will begin without you having to worry about anything else. You can track from your SWPanel.

Installation on Windows

1. Establish an RDP connection to your server
Throughout this manual we will assume that you are logged in as an Administrator user.

2. Download the installation package
In a browser, type the URL:

https://sourceforge.net/projects/bacula/files/Win32_64/

In the list that appears, download the latest version according to the architecture of the system itself (32 or 64 bits)

Once downloaded, run the installer.

3. Installing the downloaded package
We select "Automatic" in "Installation Type"

enter image description here

We leave everything selected, by default and install:

enter image description here

enter image description here

We make sure to UNMARK the option "Save Client template in"

enter image description here

4. We edit the necessary configuration files

The configuration file is located at:

C:\Program Files\Bacula\bacula-fd.conf

First block "File Daemon"

In this block you must define the name of the director.

Replace the word $FQDN_SERVIDOR with the hostname of your server and make sure at the end that you have concatenated "-fd"

** Attention:** The configuration file may already show that field by default. It is not necessarily correct. Please check explicitly by running the command "ipconfig /all" in a cmd. Take the values "Hostname" and "Primary DNS Suffix" that will be shown to you

A valid example for this configuration line would be: CL2020123456.dnssw.net-fd

FileDaemon {    
    Name = $FQDN_SERVIDOR-fd # this is me   
    FDport = 9102 # where we listen for the director   
    WorkingDirectory = “C:\\Program Files\\Bacula\\working”   
    Pid Directory = “C:\\Program Files\\Bacula\\working”   
    #Plugin Directory = "C:\\Program Files\\Bacula\\plugins"   
    Maximum Concurrent Jobs = 10
}

**Attention: ** It is important to allow connections to ports 9102 and 9103 in the local firewall for the correct performance of backups


Second block "File Daemon"

Here we will define the names of the copy servers and an access password. You will have to inform our engineers of this password so that they can configure the "Bacula" daemon on the backup server. At the end of the manual, we will explain how you can do it.

Please specify the server names as shown in the example and replace the word "$PWD_BACULA" with your own alphanumeric password of 15 to 20 characters

# 
# List Directors who are permitted to contact this File daemon 
# 
Director {
    Name = bacula.dnssw.net-dir
    Password = "$PWD_BACULA"
}
Director {
    Name = bacula2.dnssw.net-dir
    Password = "$PWD_BACULA" 
} 
Director {
    Name = bacula3.dnssw.net-dir   
    Password = "$PWD_BACULA" 
}
Director {
    Name = bacula4.dnssw.net-dir   
    Password = "$PWD_BACULA"  
}
Director {
    Name = bacula5.dnssw.net-dir   
    Password = "$PWD_BACULA"  
}
Director {
    Name = baculaMadrid.dnssw.net-dir   
    Password = "$PWD_BACULA" 
}
Director {
    Name = baculam1.dnssw.net-dir   
    Password = "$PWD_BACULA" 
}
Director {
    Name = baculam2.dnssw.net-dir   
    Password = "$PWD_BACULA" 
}
Director {
    Name = baculam3.dnssw.net-dir   
    Password = "$PWD_BACULA" 
}
Director {
    Name = baculam4.dnssw.net-dir   
    Password = "$PWD_BACULA" 
}
Director {
    Name = baculam5.dnssw.net-dir   
    Password = "$PWD_BACULA" 
}

Third block "Director"

This third block is not necessary in our infrastructure. So it can be deleted or commented

# 
# Restricted Director, used by tray-monitor to get the 
#   status of the file daemon 
# 
#Director { 
#  Name = bacula3.dnssw.net-mon 
#  Password = "GexFhZYo843rTweXJq0RJLQtpyd" 
#  Monitor = yes 
#} 

Fourth block "Messages"

Finally, you have to define the server to which the "logs" of the copy process will be sent.

By default, it will send the logs to the server that started the "backup" process. To do this we will comment on the line "director = @director_name@ = all, !skipped, !restored " adding a # at the beginning of the line, leaving the following form:

# Send all messages except skipped files back to Director 
Messages {    
    Name = Standard  
    # director = @director_name@ = all, !skipped, !restored 
} 

5. Reboot and check that the service is listening on the assigned port

You will then need to restart the server to allow the "bacula-fd" service to start automatically.

Once restarted, you can verify that the service is running by checking that the bacula client is listening on the port we configure.

To do this, run the following command from the Command Prompt (CMD):

netstat -a | find "9102"

In case the "bacula-fd" service is running, it will show you with the status "LISTENING"


6. Communicate the password to SW

Write a new comment on your support wall indicating that you want to communicate the Bacula password to us. For more convenience, we have attached a sample message that you can use as a template:

 Hello,
 Following your manual I have already configured the bacula software for backups
 that I have hired. I would appreciate if you can review the configuration so that they can be
 make the copies starting tonight. I pass you the data:

Servidor: cl20YYMMDDHHNNN.dnssw.net 
IP: 81.25.1XX.YYY
Password del bacula: 12345678901234567890

Thank you very much, Regards

Attention: Modify the Servidor, IP and Password del bacula fields for those corresponding to your server. The Password del bacula is the one we have defined in the second block


That's it! Once these steps have been carried out and having communicated the password to our engineering team, the backup copies will begin without you having to worry about anything else. You can track from your SWPanel.

More than 2000 m² of own facilities and Data Centers in Spain
Your privacy is important for us
We use our own cookies for the proper functioning of the site. In addition, third-party cookies are used for analytical purposes only. This information is not associated with any person so that personal identifying data is not stored, but is only information that is collected to identify the session, with the aim of facilitating the analysis of the website. You can change your preferences at any time by entering this website again. For more information about our cookie policy you can visit our Cookies. You can press the "Accept and close" button to give us your consent or you can access more detailed information and manage cookies.
More than 2000 m² of own facilities and Data Centers in Spain
Your privacy is important for us
We use our own cookies for the proper functioning of the site. In addition, third-party cookies are used for analytical purposes only. This information is not associated with any person so that personal identifying data is not stored, but is only information that is collected to identify the session, with the aim of facilitating the analysis of the website. You can change your preferences at any time by entering this website again. For more information about our cookie policy you can visit our Cookies. You can press the "Accept and close" button to give us your consent or you can access more detailed information and manage cookies.