<?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>Backup Archiving Recovery Open Sourced - Spheron1</title>
	<atom:link href="https://www.spheron1.uk/tag/backup-archiving-recovery-open-sourced/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.spheron1.uk</link>
	<description></description>
	<lastBuildDate>Thu, 07 Mar 2024 12:12:28 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.3</generator>
	<item>
		<title>Building Bareos RPMs on Ubuntu 16.04</title>
		<link>https://www.spheron1.uk/2018/03/16/building-bareos-rpms-on-ubuntu-16-04/</link>
					<comments>https://www.spheron1.uk/2018/03/16/building-bareos-rpms-on-ubuntu-16-04/#respond</comments>
		
		<dc:creator><![CDATA[digitaldisaster]]></dc:creator>
		<pubDate>Fri, 16 Mar 2018 11:46:50 +0000</pubDate>
				<category><![CDATA[Bareos and Bacula]]></category>
		<category><![CDATA[Ubuntu and Debian]]></category>
		<category><![CDATA[.deb]]></category>
		<category><![CDATA[APT]]></category>
		<category><![CDATA[Backup Archiving Recovery Open Sourced]]></category>
		<category><![CDATA[Bacula]]></category>
		<category><![CDATA[Bareos]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 16.04]]></category>
		<guid isPermaLink="false">https://www.spheron1.uk/?p=927</guid>

					<description><![CDATA[<p>Following on from my previous post on how to build Bareos (Backup Archiving Recovery Open Sourced) RPM packages on CentOS 6 &#38; 7 (https://www.spheron1.uk/2018/03/14/building-bareos-rpms-on-centos-6-7/), the following instructions will show you how to build .deb versions of the packages on Ubuntu 16.04. Again, these instructions are based on Bareos version 17.2.5, so would need to be adjusted appropriately for other versions&#46;&#46;&#46;</p>
<p>The post <a href="https://www.spheron1.uk/2018/03/16/building-bareos-rpms-on-ubuntu-16-04/">Building Bareos RPMs on Ubuntu 16.04</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Following on from my previous post on how to build Bareos (Backup Archiving Recovery Open Sourced) RPM packages on CentOS 6 &amp; 7 (<a href="https://www.spheron1.uk/2018/03/14/building-bareos-rpms-on-centos-6-7/">https://www.spheron1.uk/2018/03/14/building-bareos-rpms-on-centos-6-7/</a>), the following instructions will show you how to build .deb versions of the packages on Ubuntu 16.04.</p>
<p>Again, these instructions are based on Bareos version 17.2.5, so would need to be adjusted appropriately for other versions and I&#8217;m working exclusively with 64-bit (amd64) versions.</p>
<p>Before we start, lets make sure that everything is up to date:</p>
<blockquote><p>apt-get update<br />
apt-get upgrade</p></blockquote>
<p>Before we start building anything, we&#8217;ll need to install all of the dependencies which are required in order to build the .deb packages. We&#8217;ll use the libfastlz and libfastlz-dev packages from the Bareos repositories:</p>
<blockquote><p>apt-get install build-essential acl-dev autotools-dev bc chrpath debhelper libacl1-dev libcap-dev libjansson-dev liblzo2-dev libqt4-dev libreadline-dev libssl-dev libwrap0-dev libx11-dev libsqlite3-dev libmysqlclient-dev libpq-dev mtx ncurses-dev pkg-config po-debconf python-dev zlib1g-dev glusterfs-common librados-dev libcephfs-dev apache2-dev apache2 autoconf automake python-all python-setuptools<br />
wget http://download.bareos.org/bareos/release/17.2/xUbuntu_16.04/amd64/libfastlz_0.1-7.2_amd64.deb<br />
wget http://download.bareos.org/bareos/release/17.2/xUbuntu_16.04/amd64/libfastlz-dev_0.1-7.2_amd64.deb<br />
dpkg -i libfastlz_0.1-7.2_amd64.deb libfastlz-dev_0.1-7.2_amd64.deb</p></blockquote>
<p>Now let&#8217;s download the Bareos source code the various repositories on GitHub and extract it ready for building:</p>
<blockquote><p>wget https://github.com/bareos/bareos/archive/Release/17.2.5.tar.gz -qO &#8211; | tar zx<br />
wget https://github.com/bareos/bareos-webui/archive/Release/17.2.5.tar.gz -qO &#8211; | tar zx<br />
wget https://github.com/bareos/python-bareos/archive/Release/17.2.5.tar.gz -qO &#8211; | tar zx</p></blockquote>
<p>Before starting the build, we need to create a changelog file which contains information used by the build process. Use your favourite text editor to put the below into ~/bareos-Release-17.2.5/debian/changelog:</p>
<blockquote><p>bareos (17.2.5-0) stable; urgency=low</p>
<p>* Bareos 17.2.5 release; https://www.bareos.org/en/news/bareos-17-2-5-maintenance-version-released.html</p>
<p>&#8212; Your Name &lt;your@email.address&gt; Thu, 16 Mar 2018 10:58:00 +0000</p></blockquote>
<p>Once that&#8217;s done, you can start the build process:</p>
<blockquote><p>cd ~/bareos-Release-17.2.5/<br />
fakeroot debian/rules binary</p></blockquote>
<p>Now we just need to repeat this process for the bareos-webui package. Use your favourite text editor to create the ~/bareos-webui-Release-17.2.5/debian/changelog file containing the below:</p>
<blockquote><p>bareos-webui (17.2.5-0) stable; urgency=low</p>
<p>* Bareos 17.2.5 release; https://www.bareos.org/en/news/bareos-17-2-5-maintenance-version-released.html</p>
<p>&#8212; Your Name &lt;your@email.address&gt; Thu, 16 Mar 2018 10:58:00 +0000</p></blockquote>
<p>Unlike the main bareos repository, the debian/rules file isn&#8217;t executable by default in the code from bareos-webui repository, so we need to set that before we can start the build process:</p>
<blockquote><p>cd ~/bareos-webui-Release-17.2.5/<br />
chmod +x debian/rules<br />
fakeroot debian/rules binary</p></blockquote>
<p>Finally we need to build the python-bareos package. Use your favourite text editor to create the ~/python-bareos-Release-17.2.5/debian/changelog file containing the below:</p>
<blockquote><p>python-bareos (17.2.5-0) stable; urgency=low</p>
<p>* Bareos 17.2.5 release; https://www.bareos.org/en/news/bareos-17-2-5-maintenance-version-released.html</p>
<p>&#8212; Your Name &lt;your@email.address&gt; Thu, 16 Mar 2018 10:58:00 +0000</p></blockquote>
<p>Then it&#8217;s just the usual commands to start the build process:</p>
<blockquote><p>cd ~/python-bareos-Release-17.2.5/<br />
fakeroot debian/rules binary</p></blockquote>
<p>You should now have all of the .deb package files in your home directory which you can install locally or host in your own APT repository.</p><p>The post <a href="https://www.spheron1.uk/2018/03/16/building-bareos-rpms-on-ubuntu-16-04/">Building Bareos RPMs on Ubuntu 16.04</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.spheron1.uk/2018/03/16/building-bareos-rpms-on-ubuntu-16-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Building Bareos RPMs on CentOS 6 &#038; 7</title>
		<link>https://www.spheron1.uk/2018/03/14/building-bareos-rpms-on-centos-6-7/</link>
					<comments>https://www.spheron1.uk/2018/03/14/building-bareos-rpms-on-centos-6-7/#comments</comments>
		
		<dc:creator><![CDATA[digitaldisaster]]></dc:creator>
		<pubDate>Wed, 14 Mar 2018 23:08:00 +0000</pubDate>
				<category><![CDATA[Bareos and Bacula]]></category>
		<category><![CDATA[Red Hat and CentOS]]></category>
		<category><![CDATA[Backup Archiving Recovery Open Sourced]]></category>
		<category><![CDATA[Bacula]]></category>
		<category><![CDATA[Bareos]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[CentOS 6]]></category>
		<category><![CDATA[CentOS 7]]></category>
		<category><![CDATA[RPM]]></category>
		<category><![CDATA[rpmbuild]]></category>
		<category><![CDATA[yum]]></category>
		<guid isPermaLink="false">https://www.spheron1.uk/?p=911</guid>

					<description><![CDATA[<p>Bareos (Backup Archiving Recovery Open Sourced) is a popular open source backup system originally forked from the Bacula project, but they only publicly publish packages for the first release of each major version; updates are reserved for paying customers. The source code is available on GitHub however, so you can pretty easily build your own packages, even if exactly how&#46;&#46;&#46;</p>
<p>The post <a href="https://www.spheron1.uk/2018/03/14/building-bareos-rpms-on-centos-6-7/">Building Bareos RPMs on CentOS 6 & 7</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Bareos (Backup Archiving Recovery Open Sourced) is a popular open source backup system originally forked from the Bacula project, but they only publicly publish packages for the first release of each major version; updates are reserved for paying customers. The source code is available on GitHub however, so you can pretty easily build your own packages, even if exactly how to do it doesn&#8217;t seem to be documented.</p>
<p>These instructions are based on Bareos version 17.2.5, so would need to be adjusted appropriately for other versions. I&#8217;m also working exclusively with 64-bit (x86_64) versions.</p>
<p>Before we start, lets make sure that everything is up to date:</p>
<blockquote><p>yum -y update</p></blockquote>
<p>If you don&#8217;t already have the EPEL repository installed, then install it as we&#8217;ll need it for the jansson-devel and libcmocka-devel build dependancies:</p>
<blockquote><p>yum -y install  epel-release</p></blockquote>
<p>Now install everything needed to build the RPMs. We&#8217;ll use the libdroplet, libdroplet-devel, libfastlz and libfastlz-devel packages from the Bareos repositories.</p>
<p>On CentOS 6:</p>
<blockquote><p>yum -y install rpm-build wget autoconf automake httpd httpd-devel glusterfs-devel glusterfs-api-devel git-core gcc gcc-c++ glibc-devel ncurses-devel readline-devel libstdc++-devel zlib-devel openssl-devel libacl-devel lzo-devel sqlite-devel mysql-devel postgresql-devel libcap-devel mtx qt-devel libcmocka-devel python-devel python-setuptools libtermcap-devel tcp_wrappers redhat-lsb jansson-devel tcp_wrappers-devel http://download.bareos.org/bareos/release/17.2/CentOS_6/x86_64/libdroplet-3.0.git.1510141874.bc2a9a0-41.1.el6.x86_64.rpm http://download.bareos.org/bareos/release/17.2/CentOS_6/x86_64/libdroplet-devel-3.0.git.1510141874.bc2a9a0-41.1.el6.x86_64.rpm http://download.bareos.org/bareos/release/17.2/CentOS_6/x86_64/libfastlz-0.1-7.3.el6.x86_64.rpm http://download.bareos.org/bareos/release/17.2/CentOS_6/x86_64/libfastlz-devel-0.1-7.3.el6.x86_64.rpm</p></blockquote>
<p>On CentOS 7:</p>
<blockquote><p>yum -y install rpm-build wget autoconf automake httpd httpd-devel glusterfs-devel glusterfs-api-devel git-core gcc gcc-c++ glibc-devel ncurses-devel readline-devel libstdc++-devel zlib-devel openssl-devel libacl-devel lzo-devel sqlite-devel mysql-devel postgresql-devel libcap-devel mtx qt-devel libcmocka-devel python-devel python-setuptools libtermcap-devel tcp_wrappers redhat-lsb jansson-devel tcp_wrappers-devel http://download.bareos.org/bareos/release/17.2/CentOS_6/x86_64/libdroplet-3.0.git.1510141874.bc2a9a0-41.1.el6.x86_64.rpm http://download.bareos.org/bareos/release/17.2/CentOS_7/x86_64/libdroplet-devel-3.0.git.1510141874.bc2a9a0-41.1.el7.x86_64.rpm http://download.bareos.org/bareos/release/17.2/CentOS_7/x86_64/libfastlz-0.1-7.3.el7.x86_64.rpm http://download.bareos.org/bareos/release/17.2/CentOS_7/x86_64/libfastlz-devel-0.1-7.3.el7.x86_64.rpm</p></blockquote>
<p>It&#8217;s a good idea to run the build under an unprivileged user. I&#8217;ve set up a dedicated user called &#8220;build&#8221; for this, but any normal user account will do.<br />
Let&#8217;s set up the build environment and download the Bareos source code from the various repositories on GitHub:</p>
<blockquote><p>useradd build<br />
su &#8211; build<br />
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}<br />
echo &#8216;%_topdir %(echo $HOME)/rpmbuild&#8217; &gt; ~/.rpmmacros<br />
wget https://github.com/bareos/bareos/archive/Release/17.2.5.tar.gz -O bareos-17.2.5.tar.gz<br />
tar xf bareos-17.2.5.tar.gz<br />
mv bareos-Release-17.2.5/ bareos-17.2.5<br />
tar zcf bareos-17.2.5.tar.gz bareos-17.2.5<br />
mv bareos-17.2.5/platforms/packaging/bareos.spec ~/rpmbuild/SPECS/<br />
rm -rf bareos-17.2.5<br />
mv bareos-17.2.5.tar.gz ~/rpmbuild/SOURCES/<br />
wget https://github.com/bareos/bareos-webui/archive/Release/17.2.5.tar.gz -O bareos-webui-17.2.5.tar.gz<br />
mv 17.2.5.tar.gz bareos-webui-17.2.5.tar.gz<br />
tar xf bareos-webui-17.2.5.tar.gz<br />
mv bareos-webui-Release-17.2.5/ bareos-webui-17.2.5<br />
tar zcf bareos-webui-17.2.5.tar.gz bareos-webui-17.2.5<br />
mv bareos-webui-17.2.5/packaging/obs/bareos-webui.spec ~/rpmbuild/SPECS/<br />
rm -rf bareos-webui-17.2.5<br />
mv bareos-webui-17.2.5.tar.gz ~/rpmbuild/SOURCES/<br />
wget https://github.com/bareos/python-bareos/archive/Release/17.2.5.tar.gz -O python-bareos-17.2.5.tar.gz<br />
tar xf python-bareos-17.2.5.tar.gz<br />
mv python-bareos-Release-17.2.5/ python-bareos-17.2.5<br />
tar zcf python-bareos-17.2.5.tar.gz python-bareos-17.2.5<br />
mv python-bareos-17.2.5/packaging/python-bareos.spec ~/rpmbuild/SPECS/<br />
rm -rf python-bareos-17.2.5<br />
mv python-bareos-17.2.5.tar.gz ~/rpmbuild/SOURCES/</p></blockquote>
<p>Edit the ~/rpmbuild/SPECS/bareos.spec file in your favourite text editor and set &#8220;Version&#8221; (line 8) to &#8220;17.2.5&#8221; as well as &#8220;Release&#8221; (line 9) to &#8220;0%{?dist}&#8221;.<br />
You also need to search for &#8220;BuildRequires: libqt4-devel&#8221; (line 186) and replace it with &#8220;BuildRequires: qt-devel&#8221;.</p>
<p>By default, GlusterFS and Droplet support isn&#8217;t built on CentOS 6 for some reason, so if you want them then you need to edit &#8220;%define glusterfs 0&#8221; and &#8220;%define objectstorage 0&#8221; (lines 45 and 46) and set them to 1.</p>
<p>Now you&#8217;d ready to run the build itself. On CentOS 6:</p>
<blockquote><p>rpmbuild -ba ~/rpmbuild/SPECS/bareos.spec &#8211;define &#8220;centos_version 600&#8221;</p></blockquote>
<p>And on CentOS 7:</p>
<blockquote><p>rpmbuild -ba ~/rpmbuild/SPECS/bareos.spec &#8211;define &#8220;centos_version 700&#8221;</p></blockquote>
<p>Once this finishes, you should find a collection of several Bareos RPMs in ~/rpmbuild/RPMS/x86_64/. We need the bareos-common package installed for build the Web UI, so become root and install it.</p>
<p>On CentOS 6:</p>
<blockquote><p>yum -y install /home/build/rpmbuild/RPMS/x86_64/bareos-common-17.2.5-0.el6.x86_64.rpm</p></blockquote>
<p>On CentOS 7:</p>
<blockquote><p>yum -y install /home/build/rpmbuild/RPMS/x86_64/bareos-common-17.2.5-0.el7.centos.x86_64.rpm</p></blockquote>
<p>Next, edit the ~/rpmbuild/SPECS/bareos-webui.spec file in your favourite text editor and set &#8220;Version&#8221; (line 4) to &#8220;17.2.5&#8221;.</p>
<p>Now you&#8217;d ready to build the Web UI package:</p>
<blockquote><p>rpmbuild -ba ~/rpmbuild/SPECS/bareos-webui.spec</p></blockquote>
<p>Finally, edit ~/rpmbuild/SPECS/python-bareos.spec in your favourite text editor and set &#8220;Version&#8221; (line 21) to &#8220;17.2.5&#8221; as well as &#8220;Release&#8221; (line 22) to &#8220;0%{?dist}&#8221; and build the final package:</p>
<blockquote><p>rpmbuild -ba ~/rpmbuild/SPECS/python-bareos.spec</p></blockquote>
<p>You should now have the full compliment of RPMs in ~/rpmbuild/RPMS/x86_64/ and ~/rpmbuild/RPMS/noarch/.</p>
<p>If you need to rebuild the RPMs for the same version of Bareos for any reason, then you should increment the value of Release in the relevant .spec file by 1 each time (e.g. &#8220;1%{?dist}&#8221;, &#8220;2%{?dist}&#8221; etc.).</p>
<p>You can now GPG sign your RPMs if you want and then add them to your own central yum repository with createrepo or just directly install them locally with rpm.</p><p>The post <a href="https://www.spheron1.uk/2018/03/14/building-bareos-rpms-on-centos-6-7/">Building Bareos RPMs on CentOS 6 & 7</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.spheron1.uk/2018/03/14/building-bareos-rpms-on-centos-6-7/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Object Caching 0/76 objects using Redis
Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Database Caching using Redis

Served from: spheron1.uk @ 2026-08-06 22:26:17 by W3 Total Cache
-->