How to Install and Use Bareos Backup Solution on Debian 11

Install and use Bareos backup solution on Debian 11 with no hassle whatsoever. With Bareos installed on your system, you can manage everything from backup to recovery in a manner you always have wanted to. 

In the following article, you’ll learn how to install and use Bareos Backup Solution on Debian 11.

Pre Requisites

Before you install and use Bareos Backup Solution on Debian 11, it is crucial that you’ve got your system and the corresponding server both ready for the configuration we’re going to make. The best way of doing that is to update the entire setup.

Launch the Terminal using the “Ctrl+Alt+T” key combination.

Run the following command:

$ sudo apt-get update 
bareos backup on debian

How to Install and Use Bareos Backup Solution on Debian 11

Now that you’ve got your system ready, it is time to learn how to install and use Bareos Backup Solution. To ensure you an easy-to-digest guide, I’ve sectioned the tutorial into various sections. Read this article all the way through, and you’ll understand what I’m talking about.

Step 1: Adding the Bareos Repository

First things first, get the Bareos repository added to your Debian 11. Doing this will help you install the utility and seamlessly move along with the process.

Export the Distribution

To export the distribution on Debian 11, here is what you’ll need to do:

bareos backup on debian

Adding the Repository

While you have the distribution exported, add the following repository to it:


$ sudo wget -0  /etc/apt/sources.list.d/bareos.list $URL/bareos.list

Import GPG Signing Key

After you’ve added the repository, import the GPG signing key by invoking the wget command in the following manner:

$ wget -q $URL/Release.key -0- | sudo apt-key add-
bareos backup on debian

Get the Apt Package Updated

Finally, update the apt package, and you’re ready to begin the installation process.

$ sudo apt update

Step 2: Install Bareos Solution on Debian 11

With the required repository added, the installation process of Bareos Solution is going to become very straightforward. Use the apt-install command in the following manner:

bareos backup on debian

Finalizing the Installation

After invoking the apt-install command, you’ll come across a screen with the database-config common file. Employ the same to configure the entire Bareos database. Click on it and choose the PostgreSQL option.

Once done, set the desired PostgreSQL Bareos database password, confirm, and proceed. The installation should conclude by now. Remember, all the configurations will get stored in the /etc/bareos/directory

Viewing the Configuration

To view the Bareos configuration, use the ls command in the following manner:

$ ls /etc/bareos/
viewing the configuration

Step 3: Installing the Bareos Web Interface

The next step is installing the Bareos web interface on your Debian 11 system. Written on Zend (PHP powered) framework, the Bareos web interface brings a super flexible way to manage all the Bareos related operations. 

To install the Bareos web interface, invoke the following command:

$ sudo apt install bareos-webui
installing bareos web interface

The command, as mentioned above, not only installs the Bareos web interface but also gets the Apache web server, PHP, alongside its extensions ready on your system. To make sure the changes to your system are successfully applied, reload the Apache daemon real quick.


$ sudo systemctl reload apache 2
reload apache

Step 4: Starting the Bareos Services

You’re now ready to start the Bareos services. To get the job done, you’ll need to invoke the following three commands:

$ sudo systemctl start bareos-dir
$ sudo systemctl bareos-fd
$ sudo systemctl start bareos-sd

Verifying the Status

Make sure you run the status command to check if all the services are running properly.


$ systemctl status bareos-dir bareos-fd bareos-sd
verifying the running status of bareos

Step 5: Creating the Bareos Admin User

Creating a dedicated admin user is crucial to accessing the web user interface. The process is simple. Launch the Terminal and run the bconsole command.


$ sudo bconsole

After that, run the configure add console command and create the admin user by assigning the dedicated profile.


$ configure add console name=[desired name] password =[desired password] profile=webui-admin
Install and use bareos backup

Pass the exit command and head your way out of the Bareos console.

Step 6: Disable TLS

To disable TLS, you’ll need to edit the created file. For this part, you need to use an editor (like vim) to configure the concerned file. Once you finally have access to it, look for the ‘TLS Enable’ option and set the corresponding value to ‘No’.

disable tls

Save the file, then perform a quick service restart before heading to the next step by invoking the following commands:

$ sudo systemctl restart bareos-dr
$ sudo systemctl restart bareos-fd
$ sudo systemctl restart bareos-sd

Step 7: Accessing the Bareos Web Interface

Now that you’ve reached this point, you should now be familiar with the steps on how to install and configure Bareos on Debian 11. Moving forward, I’ll guide you on how to access the Bareos web interface and use it for concluding various tasks.

Access the Web Interface

To access the web interface, use either of the following two URLs:



Setting Up the Interface

As soon as you browse either URLs, you’ll come across the dedicated interface. From there, head over to the offered fields and input all the admin user credentials. Once you’re done, click on the login button.

Step 8: Using the Backup Feature

To take a backup, the first thing that you’ll need to do is navigate to the Jobs option. After that, head over to the Run and set the client. Once done, deal with the required settings and submit the job. 

And that’s basically how you can install and use Bareos Backup Solution on Debian 11. The process is pretty simple and definitely won’t take much of your time and effort. Considering you’ve reached this part of the write-up, you already know what I’m talking about.

If this guide helped you, please share it.

Leave a Reply
Related Posts