<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://dfwlpiki.dfwlp.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://dfwlpiki.dfwlp.com/index.php?action=history&amp;feed=atom&amp;title=Bacula_5.2.13_and_PostgreSQL_9.3</id>
		<title>Bacula 5.2.13 and PostgreSQL 9.3 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://dfwlpiki.dfwlp.com/index.php?action=history&amp;feed=atom&amp;title=Bacula_5.2.13_and_PostgreSQL_9.3"/>
		<link rel="alternate" type="text/html" href="https://dfwlpiki.dfwlp.com/index.php?title=Bacula_5.2.13_and_PostgreSQL_9.3&amp;action=history"/>
		<updated>2026-04-06T15:30:36Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.15</generator>

	<entry>
		<id>https://dfwlpiki.dfwlp.com/index.php?title=Bacula_5.2.13_and_PostgreSQL_9.3&amp;diff=61&amp;oldid=prev</id>
		<title>Jhorne: Created page with &quot;Category:Backups and Data Recovery  EDIT: Updated to reflect usage of PostgreSQL 9.3  This articles covers doing a new installation of bacula 5.2.13 with PostgreSQL 9.3, o...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dfwlpiki.dfwlp.com/index.php?title=Bacula_5.2.13_and_PostgreSQL_9.3&amp;diff=61&amp;oldid=prev"/>
				<updated>2016-12-29T20:01:11Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Category:Backups_and_Data_Recovery&quot; title=&quot;Category:Backups and Data Recovery&quot;&gt;Category:Backups and Data Recovery&lt;/a&gt;  EDIT: Updated to reflect usage of PostgreSQL 9.3  This articles covers doing a new installation of bacula 5.2.13 with PostgreSQL 9.3, o...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Backups and Data Recovery]]&lt;br /&gt;
&lt;br /&gt;
EDIT: Updated to reflect usage of PostgreSQL 9.3&lt;br /&gt;
&lt;br /&gt;
This articles covers doing a new installation of bacula 5.2.13 with PostgreSQL 9.3, on CentOS 6.x (i was actually using 6.3 for this writing).&lt;br /&gt;
&lt;br /&gt;
First, we need 2 repos not included with CentOS  Postgres93, and EPEL's Bacula repo.&lt;br /&gt;
 yum install -y http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3-1.noarch.rpm&lt;br /&gt;
&lt;br /&gt;
And now add this repo file for current bacula from epel:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[root@d0lphb040 ~]# cat /etc/yum.repos.d/epel-bacula.repo &lt;br /&gt;
# Place this file in your /etc/yum.repos.d/ directory&lt;br /&gt;
&lt;br /&gt;
[epel-bacula]&lt;br /&gt;
name=Bacula backports from rawhide&lt;br /&gt;
baseurl=http://repos.fedorapeople.org/repos/slaanesh/bacula/epel-$releasever/$basearch/&lt;br /&gt;
enabled=1&lt;br /&gt;
skip_if_unavailable=1&lt;br /&gt;
gpgkey=http://repos.fedorapeople.org/repos/slaanesh/bacula/RPM-GPG-KEY-slaanesh&lt;br /&gt;
gpgcheck=1&lt;br /&gt;
&lt;br /&gt;
[epel-bacula-source]&lt;br /&gt;
name=Bacula backports from rawhide - Source&lt;br /&gt;
baseurl=http://repos.fedorapeople.org/repos/slaanesh/bacula/epel-$releasever/SRPMS&lt;br /&gt;
enabled=0&lt;br /&gt;
skip_if_unavailable=1&lt;br /&gt;
gpgkey=http://repos.fedorapeople.org/repos/slaanesh/bacula/RPM-GPG-KEY-slaanesh&lt;br /&gt;
gpgcheck=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Start with installing PostgreSQL93&lt;br /&gt;
 yum install -y postgresql93-{contrib,devel,libs,server}&lt;br /&gt;
&lt;br /&gt;
I keep my pgsql folder on a different partition from default, i use /opt/postgres (i dont want it contending for space on my /var paritition)&lt;br /&gt;
 mv /var/lib/pgsql /opt/postgres/&lt;br /&gt;
 ln -s /opt/postgres/pgsql /var/lib/&lt;br /&gt;
&lt;br /&gt;
Now lets pull in our bacula packages that we need.&lt;br /&gt;
 yum install -y bacula-{client,common,console,director,libs,libs-sql,storage}&lt;br /&gt;
&lt;br /&gt;
Intialize the postgresql database for the first time.&lt;br /&gt;
 /etc/init.d/postgresql-9.3 initdb&lt;br /&gt;
 /etc/init.d/postgresql-9.3 start&lt;br /&gt;
&lt;br /&gt;
Add md5 password hash to file /var/lib/pgsql/data/pg_hba.conf.  Add it directly under #TYPE DATABASE...&lt;br /&gt;
 # TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD&lt;br /&gt;
 local bacula bacula md5&lt;br /&gt;
&lt;br /&gt;
Change to postgres user, and create bacula database.&lt;br /&gt;
&lt;br /&gt;
 su - postgres&lt;br /&gt;
 cd /usr/libexec/bacula/&lt;br /&gt;
 createuser bacula (answer with superuser no, create db yes, create roles no)&lt;br /&gt;
 ./create_bacula_database&lt;br /&gt;
 ./make_bacula_tables&lt;br /&gt;
 ./grant_bacula_privileges&lt;br /&gt;
&lt;br /&gt;
While still user postgres, add password to the bacula user in postgresql, and then log out of user postgres:&lt;br /&gt;
&lt;br /&gt;
 psql bacula&lt;br /&gt;
 alter user bacula with password 'password';&lt;br /&gt;
 \q&lt;br /&gt;
 logout&lt;br /&gt;
&lt;br /&gt;
Set the deamons to start automatically:&lt;br /&gt;
&lt;br /&gt;
 chkconfig postgresql-9.3 on&lt;br /&gt;
 chkconfig bacula-dir on&lt;br /&gt;
 chkconfig bacula-fd on&lt;br /&gt;
 chkconfig bacula-sd on&lt;br /&gt;
&lt;br /&gt;
Restart Postgres:&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/postgresql-9.3 restart&lt;br /&gt;
&lt;br /&gt;
At this point, we need to edit the config files located in /etc/bacula/.  All the default passwords should be changed to something appropriate.&lt;br /&gt;
&lt;br /&gt;
Start all Bacula daemons:&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/bacula-fd start&lt;br /&gt;
 /etc/init.d/bacula-sd start&lt;br /&gt;
 /etc/init.d/bacula-dir start&lt;br /&gt;
&lt;br /&gt;
For tape drive usage/troubleshooting, check:&lt;br /&gt;
&lt;br /&gt;
    /var/log/bacula for read:write permission for bacula user&lt;br /&gt;
    /var/spool/bacula for read:write permissions on mtx.log&lt;br /&gt;
    add bacula user to tape and disk in/etc/group&lt;/div&gt;</summary>
		<author><name>Jhorne</name></author>	</entry>

	</feed>