This brief tutorial shows students and new users how to install Bareos backup platform on Ubuntu 18.04 | 16.04.
Bareos is a true open source backup platform forked from Bacula.org. It is an advanced free enterprise-ready open source backup solution for businesses and individuals looking for a simpler way to manage their enterprise backups.
For student or new user looking for a Linux system to learn on, the easiest place to start is Ubuntu Linux OS. It’s a great Linux operating system for beginners.
Ubuntu is an open source Linux operating systems that runs on desktops, laptops, server and other device.
While learning Ubuntu, you will find that Linux isn’t so different than Windows and other operating systems in so many ways, especially when it comes to using the system to get work done.
For more about Bareos, please check its homepage.
To get started with install Bareos, follow the steps below:
Step 1: Update Ubuntu
Before installing software packages on Ubuntu, you must first update Ubuntu.
To do that run the commands below:
sudo apt update sudo apt dist-upgrade sudo apt autoremove
That should update Ubuntu and remove obsolete packages from your systems. It will also be a good idea to reboot the machine when you’re done updating.
Step 2: Add Bareos Repository
Now that you have updated Ubuntu, the next steps is to add Bareos repository and key file to your machine. When its repository is added, newer packages will automatically be made available to your machine.
To add the repository with the latest packages and key, run the commands below:
For Ubuntu 18.04:
sudo sh -c 'echo "deb http://download.bareos.org/bareos/release/latest//xUbuntu_18.04 /" >> /etc/apt/sources.list.d/bareos.list'
For Ubuntu 16.04:
sudo sh -c 'echo "deb http://download.bareos.org/bareos/release/latest//xUbuntu_16.04 /" >> /etc/apt/sources.list.d/bareos.list'
After adding the repository, import the repository GPG key by running the commands below:
wget -q -O- | sudo apt-key add -
After adding the repository and key above, run the commands below to update Ubuntu package list index and install Bareos with MariaDB database server.
sudo apt update sudo apt install mariadb-server bareos bareos-database-mysql
When prompted to configure Postfix, you can choose the “Internet site“
┌───────────────────────────┤ Postfix Configuration ├───────────────────────────┐ │ Please select the mail server configuration type that best meets your needs. │ │ │ │ No configuration: │ │ Should be chosen to leave the current configuration unchanged. │ │ Internet site: │ │ Mail is sent and received directly using SMTP. │ │ Internet with smarthost: │ │ Mail is received directly using SMTP or by running a utility such │ │ as fetchmail. Outgoing mail is sent using a smarthost. │ │ Satellite system: │ │ All mail is sent to another machine, called a 'smarthost', for delivery. │ │ Local only: │ │ The only delivered mail is the mail for local users. There is no network. │ │ │ │ General type of mail configuration: │ │ │ │ No configuration │ │ Internet Site │ │ Internet with smarthost │ │ Satellite system │ │ Local only │ │ │ │ │ │ <Ok> <Cancel> │ │ └───────────────────────────────────────────────────────────────────────────────┘
Select the server name for system mail.
┌───────────────────────────────────────┤ Postfix Configuration ├───────────────────────────────────────┐ │ The "mail name" is the domain name used to "qualify" _ALL_ mail addresses without a domain name. │ │ This includes mail to and from : please do not make your machine send out mail from │ │ [email protected] unless [email protected] has told you to. │ │ │ │ This name will also be used by other programs. It should be the single, fully qualified domain name │ │ (FQDN). │ │ │ │ Thus, if a mail address on the local host is [email protected], the correct value for this option │ │ would be example.org. │ │ │ │ System mail name: │ │ │ │ mail.example.com_____________________________________________________________________________________ │ │ │ │ │ │ │ └───────────────────────────────────────────────────────────────────────────────────────────────────────┘
Choose to install a database component for Bareos.
┌────────────────────────────────┤ Configuring bareos-database-common ├────────────────────────────────┐
│ │
│ The bareos-database-common package must have a database installed and configured before it can be │
│ used. This can be optionally handled with dbconfig-common. │
│ │
│ If you are an advanced database administrator and know that you want to perform this configuration │
│ manually, or if your database has already been installed and configured, you should refuse this │
│ option. Details on what needs to be done should most likely be provided in │
│ /usr/share/doc/bareos-database-common. │
│ │
│ Otherwise, you should probably choose this option. │
│ │
│ Configure database for bareos-database-common with dbconfig-common? │
│ │
│ <Ok> <Cancel> │
│ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────┘
Next, create and confirm a new password for the database root user.
┌────────────────────────────────┤ Configuring bareos-database-common ├────────────────────────────────┐
│ Please provide a password for bareos-database-common to register with the database server. If left │
│ blank, a random password will be generated. │
│ │
│ MySQL application password for bareos-database-common: │
│ │
│ ********____________________________________________________________________________________________ │
│ │
│ <Ok> <Cancel> │
│ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────┘
After setting up, you can start Bareos daemon services by running the commands below:
sudo service bareos-dir start sudo service bareos-sd start sudo service bareos-fd start
Step 2: Install Bareos Web UI
Bareos WebUI is part of the Bareos project and available for a number of platforms. It is a PHP-Front-end to monitor and manage Bareos jobs and resources.
To install the Web UI, run the commands below:
sudo apt-get install bareos-webui
The dependencies installed include Apache web server, PHP and a number of extensions.
Restart the Apache web server to activate the new configuration.
sudo systemctl restart apache2
Run the commands below to start other Bareos services.
sudo systemctl start bareos-dir bareos-sd bareos-fd
Step 3: Create console user
If you’re going to be connecting to Bareos web portal, you’ll want to create a user to access it. To create a new user, run the commands below to open Bareos console.
sudo bconsole
After signing in, run the commands below to create a new user.
*relaod *configure add console name=admin password=admin_user_password_here profile=webui-admin tlsenable=false
After that, you should get an output similar to the one below:
Created resource config file "/etc/bareos/bareos-dir.d/console/admin.conf": Console { Name = admin Password = admin_user_password Profile = webui-admin TlsEnable = false }
Exit and restart Bareos services with Apache2.
sudo systemctl restart apache2 bareos-dir bareos-sd bareos-fd
When you’re done, open your web browser and browse to the server hostname or IP address followed by /bareos-webui.
Login and begin setting up your environment.
That’s it!
Conclusion:
This post showed you how to install Bareos backup platform on Ubuntu 18.04 | 16.04. If you find any error above, please use the comment form below to report.
Thanks,
You may also like the post below: