<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>bareos. centos Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/bareos-centos/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 12 Feb 2019 12:18:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Install Bareos on CentOS 7</title>
		<link>https://www.osradar.com/install-bareos-on-centos-7/</link>
					<comments>https://www.osradar.com/install-bareos-on-centos-7/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 12 Feb 2019 12:18:42 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bareos. centos]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=10640</guid>

					<description><![CDATA[<p>Data backup is essential for a sysadmin and any real user of a system. Doing so will bring many advantages to our company because, in case of failures, you will have your data well protected. Recently, I was talking about preventing the accidental deletion of certain files in Linux, but today I&#8217;ll show you how [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-bareos-on-centos-7/">Install Bareos on CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Data backup is essential for a sysadmin and any real user of a system. Doing so will bring many advantages to our company because, in case of failures, you will have your data well protected. Recently, I was talking about preventing the accidental deletion of certain files in Linux, but today I&#8217;ll show you how to install Bareos a tool to back up CentOS 7.</p>
<p><a href="https://www.bareos.org">Bareos</a> is a fairly reliable, robust and secure tool for backing up and protecting data on our operating system. In addition, it is a 100% open source fork of the backup project from Bacula. The code is released under the <a href="https://www.gnu.org/licenses/agpl-3.0.en.html">aGPL</a> license which guarantees flexibility for working with the code. Code that is available in <a href="https://github.com/bareos">GitHub</a>.</p>
<p>So, let us start.</p>
<h2>1. Upgrade the system</h2>
<p>First, you need to upgrade the whole system. Just run these commands on the terminal:</p>
<pre class="">:~$ su
:~# yum update</pre>
<figure id="attachment_10697" aria-describedby="caption-attachment-10697" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10697" src="https://www.osradar.com/wp-content/uploads/2019/02/1-8.png" alt="1.- Upgrade the system" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/02/1-8.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/1-8-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/1-8-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/1-8-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/1-8-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/1-8-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/1-8-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10697" class="wp-caption-text">1.- Upgrade the system</figcaption></figure>
<p>After that, you will have a more secure system thanks to the new security patches newly installed.</p>
<h2>2. Install MariaDB</h2>
<p>Bareos for its operation requires a database manager like <a href="https://www.osradar.com/reset-the-mysql-mariadb-root-password/">MariaDB</a>. So the next step is to install MariaDB.</p>
<pre class="">:~# yum install mariadb-server</pre>
<figure id="attachment_10698" aria-describedby="caption-attachment-10698" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10698" src="https://www.osradar.com/wp-content/uploads/2019/02/2-8.png" alt="2.- install MariaDB" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/02/2-8.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/2-8-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/2-8-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/2-8-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/2-8-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/2-8-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/2-8-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10698" class="wp-caption-text">2.- install MariaDB</figcaption></figure>
<p>After that, enable and start the MariaDB service.</p>
<pre class="">:~# systemctl enable mariadb
:~# systemctl start mariadb</pre>
<figure id="attachment_10699" aria-describedby="caption-attachment-10699" style="width: 1025px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10699" src="https://www.osradar.com/wp-content/uploads/2019/02/3-8.png" alt="3.- Enable the mariadb service" width="1025" height="176" srcset="https://www.osradar.com/wp-content/uploads/2019/02/3-8.png 1025w, https://www.osradar.com/wp-content/uploads/2019/02/3-8-300x52.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/3-8-768x132.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/3-8-1024x176.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/3-8-696x120.png 696w" sizes="(max-width: 1025px) 100vw, 1025px" /><figcaption id="caption-attachment-10699" class="wp-caption-text">3.- Enable the mariadb service</figcaption></figure>
<p>So, that&#8217;s it for now.</p>
<h2>3. Install Bareos on CentOS 7</h2>
<p>Now it is your turn to install Bareos. For this, we will use the dedicated Bareos repository for CentOS. This is the safest and easiest way to install Bareos. Since we can always count on the latest stable version of the program. It also simplifies installation times.</p>
<pre class="">:~# yum install wget
:~# wget -O /etc/yum.repos.d/bareos.repo http://download.bareos.org/bareos/release/latest/CentOS_7/bareos.repo</pre>
<figure id="attachment_10701" aria-describedby="caption-attachment-10701" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10701" src="https://www.osradar.com/wp-content/uploads/2019/02/5-8.png" alt="5.- Adding the repository" width="1365" height="277" srcset="https://www.osradar.com/wp-content/uploads/2019/02/5-8.png 1365w, https://www.osradar.com/wp-content/uploads/2019/02/5-8-300x61.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/5-8-768x156.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/5-8-1024x208.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/5-8-696x141.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/5-8-1068x217.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-10701" class="wp-caption-text">5.- Adding the repository</figcaption></figure>
<p>After that, install it. You also need to install the MariaDB / MySQL connector. On the other hand, you can choose between MariaDB or PostgreSQL.</p>
<pre class="">:~# yum install bareos bareos-database-mysql</pre>
<figure id="attachment_10702" aria-describedby="caption-attachment-10702" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10702" src="https://www.osradar.com/wp-content/uploads/2019/02/6-7.png" alt="6.- Install Bareos" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/02/6-7.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/6-7-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/6-7-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/6-7-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/6-7-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/6-7-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/6-7-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10702" class="wp-caption-text">6.- Install Bareos</figcaption></figure>
<h2>4. Prepare Bareos database</h2>
<p>The next step is to set up the Bareos database. In the installation files, Bareos has a series of databases ready for use. Let&#8217;s go for it.</p>
<pre class="">:~# /usr/lib/bareos/scripts/create_bareos_database
:~# /usr/lib/bareos/scripts/make_bareos_tables
:~# /usr/lib/bareos/scripts/grant_bareos_privileges</pre>
<figure id="attachment_10703" aria-describedby="caption-attachment-10703" style="width: 848px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10703" src="https://www.osradar.com/wp-content/uploads/2019/02/7-7.png" alt="7.- Preparing the dataases" width="848" height="224" srcset="https://www.osradar.com/wp-content/uploads/2019/02/7-7.png 848w, https://www.osradar.com/wp-content/uploads/2019/02/7-7-300x79.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/7-7-768x203.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/7-7-696x184.png 696w" sizes="(max-width: 848px) 100vw, 848px" /><figcaption id="caption-attachment-10703" class="wp-caption-text">7.- Preparing the dataases</figcaption></figure>
<p>Bareos uses the ports 9101 and 9103. So, you have to open the ports.</p>
<pre class="">:~# firewall-cmd --add-port=9101/tcp --permanent
:~# firewall-cmd --add-port=9103/tcp --permanent
:~# firewall-cmd --reload</pre>
<figure id="attachment_10705" aria-describedby="caption-attachment-10705" style="width: 838px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10705" src="https://www.osradar.com/wp-content/uploads/2019/02/9-8.png" alt="9.- Creating the firewall rules" width="838" height="249" srcset="https://www.osradar.com/wp-content/uploads/2019/02/9-8.png 838w, https://www.osradar.com/wp-content/uploads/2019/02/9-8-300x89.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/9-8-768x228.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/9-8-696x207.png 696w" sizes="(max-width: 838px) 100vw, 838px" /><figcaption id="caption-attachment-10705" class="wp-caption-text">9.- Creating the firewall rules</figcaption></figure>
<p>Next, start Bareos services.</p>
<pre class="">:~# systemctl start bareos-dir
:~# systemctl start bareos-sd
:~# systemctl start bareos-fd</pre>
<figure id="attachment_10704" aria-describedby="caption-attachment-10704" style="width: 848px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10704" src="https://www.osradar.com/wp-content/uploads/2019/02/8-8.png" alt="8.- start the bareos services" width="848" height="150" srcset="https://www.osradar.com/wp-content/uploads/2019/02/8-8.png 848w, https://www.osradar.com/wp-content/uploads/2019/02/8-8-300x53.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/8-8-768x136.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/8-8-696x123.png 696w" sizes="(max-width: 848px) 100vw, 848px" /><figcaption id="caption-attachment-10704" class="wp-caption-text">8.- start the bareos services</figcaption></figure>
<p>Next, start it with bconsole:</p>
<pre class="">:~# bconsole</pre>
<figure id="attachment_10710" aria-describedby="caption-attachment-10710" style="width: 925px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10710" src="https://www.osradar.com/wp-content/uploads/2019/02/14-5.png" alt="9.- bconsole" width="925" height="227" srcset="https://www.osradar.com/wp-content/uploads/2019/02/14-5.png 925w, https://www.osradar.com/wp-content/uploads/2019/02/14-5-300x74.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/14-5-768x188.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/14-5-696x171.png 696w" sizes="(max-width: 925px) 100vw, 925px" /><figcaption id="caption-attachment-10710" class="wp-caption-text">9.- bconsole</figcaption></figure>
<h2>5. Install Bareos WebUI</h2>
<p>In order to make the use of Bareos simpler, you need to install your web interface. To do this you need to install apache web server and PHP. So, let&#8217;s do it.</p>
<pre class="">:~# yum install httpd php php-cli php-common</pre>
<figure id="attachment_10706" aria-describedby="caption-attachment-10706" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10706" src="https://www.osradar.com/wp-content/uploads/2019/02/10-7.png" alt="10.- Install apache and php" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/02/10-7.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/10-7-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/10-7-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/10-7-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/10-7-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/10-7-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/10-7-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10706" class="wp-caption-text">10.- Install apache and php</figcaption></figure>
<p>Remember to create a rule for apache in the firewall.</p>
<pre class="">:~# firewall-cmd --add-service=http --permanent
:~# firewall-cmd --reload</pre>
<p>Finally, enable the services:</p>
<pre class="">:~# systemctl enable httpd
:~# systemctl start httpd</pre>
<figure id="attachment_10707" aria-describedby="caption-attachment-10707" style="width: 970px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10707" src="https://www.osradar.com/wp-content/uploads/2019/02/11-4.png" alt="11.- Starting httpd service" width="970" height="217" srcset="https://www.osradar.com/wp-content/uploads/2019/02/11-4.png 970w, https://www.osradar.com/wp-content/uploads/2019/02/11-4-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/11-4-768x172.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/11-4-696x156.png 696w" sizes="(max-width: 970px) 100vw, 970px" /><figcaption id="caption-attachment-10707" class="wp-caption-text">11.- Starting httpd service</figcaption></figure>
<p>After that, install bareos web ui.</p>
<pre class="">:~# yum install bareos-webui</pre>
<figure id="attachment_10709" aria-describedby="caption-attachment-10709" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10709" src="https://www.osradar.com/wp-content/uploads/2019/02/13-4.png" alt="12.- Install bareos web ui" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/02/13-4.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/13-4-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/13-4-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/13-4-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/13-4-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/13-4-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/13-4-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10709" class="wp-caption-text">12.- Install bareos web ui</figcaption></figure>
<p>Then, create a new file to access web UI.</p>
<pre class="">:~# nano /etc/bareos/bareos-dir.d/console/admin.conf</pre>
<p>And add the following:</p>
<p>&nbsp;</p>
<pre class=""># Restricted console used by bareos-webui
Console {
Name = admin
Password = “admin”
Profile = “webui-admin”
}</pre>
<div class="mceTemp"></div>
<figure id="attachment_10708" aria-describedby="caption-attachment-10708" style="width: 825px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10708" src="https://www.osradar.com/wp-content/uploads/2019/02/12-4.png" alt="13.- Creating the user" width="825" height="234" srcset="https://www.osradar.com/wp-content/uploads/2019/02/12-4.png 825w, https://www.osradar.com/wp-content/uploads/2019/02/12-4-300x85.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/12-4-768x218.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/12-4-696x197.png 696w" sizes="(max-width: 825px) 100vw, 825px" /><figcaption id="caption-attachment-10708" class="wp-caption-text">13.- Creating the user</figcaption></figure>
<p>You can set the name and password you want.</p>
<p>Next, restart the service.</p>
<pre class="">:~# systemctl restart bareos-dir
:~# systemctl restart bareos-sd
:~# systemctl restart bareos-fd</pre>
<p>Finally, open the web browser and go to http://SERVER_IP/bareos-webui.</p>
<figure id="attachment_10711" aria-describedby="caption-attachment-10711" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10711" src="https://www.osradar.com/wp-content/uploads/2019/02/15-5.png" alt="Bareos log in" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/02/15-5.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/15-5-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/15-5-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/15-5-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/15-5-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/02/15-5-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/15-5-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/15-5-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10711" class="wp-caption-text">Bareos log in</figcaption></figure>
<p>Log in and start to use it.</p>
<h2>Conclusion</h2>
<p>Bareos is a great application to backup data on a CentOS 7 server. For this, only a little time and some application commands are required.</p>
<p>Please share this article with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-bareos-on-centos-7/">Install Bareos on CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-bareos-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
	</channel>
</rss>
