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:

URL=http://download.bareos.org/bareos/release/latest/$DIST
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:

bconsole

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

COMPLETE DIGITAL SERVER SOLUTIONS FOR ALL

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 qca50satdzdvwwiktdobzdsj43rc5tgslgo4e8d8lg

ZOMIV NEWSLETTER

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

ZOMIV NEWSLETTER

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

zomiv footer logo

HOSTING REDEFINED

44-7-441-399-305
Support Hours: 24x7x365
Sale Office Hours: M-F, 7AM-5PM EST

We accept the following:

visa
mastercard
paypal
download (6)

PRODUCTS

SERVICES

© Copyright 2024, All Rights Reserved by DataCamp Int Limited.

zomiv is a trading name of DataCamp Int Limited. Registered Office: 71-75 Shelton Street, Covent Garden,
London, United Kingdom, WC2H 9JQ. Registered Number 15527709. Registered in England and Wales.
certifications

ZOMIV NEWSLETTER

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

  • PRODUCTS
  • LOCATIONS
  • SOLUTIONS
  • COMPANY