Routine offsite backup of data is very important for mission critical servers.  This article will show you how to setup Bareos for linux server backups.

What you’ll need:

    • A primary Linux server: This article will describe the steps for CentOS based servers, but Bacula can automate linux server backups on Debian, SuSe, and Redhat based distributions.
    • A secondary Linux server: This server will store the server backup data.

See Also: Experience Our for Free VPS Hosting: Enjoy a 30-Day Trial with Risk-Free Servers

Installing Bareos

We will start by switching into our root user:

sudo su

Install wget:

yum install -y wget

Download the Bareos repository:

wget -O /etc/yum.repos.d/bareos.repo $URL/bareos.repo

Install the Bareos packages

yum install bareos bareos-database-$DATABASE
yum install postgresql-server postgresql-contrib

Initialize Postgres:

postgresql-setup initdb

Start Postgres and enable it on boot:

systemctl start postgresql
systemctl enable postgresql

Setup the Bareos database:

su postgres -c /usr/lib/bareos/scripts/create_bareos_database
su postgres -c /usr/lib/bareos/scripts/make_bareos_tables
su postgres -c /usr/lib/bareos/scripts/grant_bareos_privileges

Start the Bareos daemons:

service bareos-dir start
service bareos-sd start
service bareos-fd start

Install the webUI:

yum install bareos-webui

Configure SELinux to allow connections:

setsebool -P httpd_can_network_connect on

Restart apache and the Bareos director:

systemctl restart httpd
systemctl restart bareos-dir

Start the Bareos console:


Add an admin username, replace the word secret with a secure password:

configure add console name=admin password=secret profile=webui-admin

You can now navigate to http://your-server-ip//bareos-webui/ and login with your admin credentials.

Next Steps

Your server is now setup with Bareos for server backup and restoration. You can now review the Bareos documentation in order to setup automated server backup operations.

What are your feelings


Bare Metal Dedicated Servers

A single tenant, physical server allowing you full access to its resources

Read More

Cloud VPS

The cheapest way to get your own independent computing instance.
Read More

Cloud VDS

Virtualized server platform hosted on enterprise-grade physical servers
Read More

10 Gbps Unmetered Servers

Zumiv offers high bandwidth dedicated servers up to 20Gbps.
Read More
free vps hosting


Receive the latest news, updates and offers. You can unsubscribe at any time.


Receive the latest news, updates and offers. You can unsubscribe at any time.

zumiv logo white final 1 1

Cloud VPS and Bare Metal Servers for Less

Registered Office:
124 City Road, London
EC1V 2NX, United Kingdom.
Support Hours: 24x7x365
Sale Office Hours: M-F, 7AM-5PM EST

We accept the following:

payment option



© 2023 Webcom Ltd. (DBA Company,  CR: 14252964, ® All Rights Reserved



Receive the latest news, and offers. You can unsubscribe at any time.

CALL US 44.7.441.399.305

This is a staging enviroment

Please tell us more about yourself.

Complete the form below and one of our experts will contact you within 24 hours or less. For immediate assistance contact us.