0% found this document useful (0 votes)
66 views2 pages

Bacula e Interface

This document outlines the steps to install and configure the Bacula backup software and Baculum web interface on a Linux system. It downloads Bacula from source, compiles it, and configures it to use MySQL. It also installs the Baculum web interface, configures permissions for the interface to access Bacula, and enables the Apache web server modules.

Uploaded by

KhalilJanab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views2 pages

Bacula e Interface

This document outlines the steps to install and configure the Bacula backup software and Baculum web interface on a Linux system. It downloads Bacula from source, compiles it, and configures it to use MySQL. It also installs the Baculum web interface, configures permissions for the interface to access Bacula, and enables the Apache web server modules.

Uploaded by

KhalilJanab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

wget -qO- http://www.bacula.com.

br/atual | tar -xzvf - -C /usr/src

apt-get install -y build-essential libreadline6-dev zlib1g-dev liblzo2-dev mt-st


mtx postfix libacl1-dev libssl-dev libmysql++-dev mysql-server

cd /usr/src/bacula*
./configure --with-readline=/usr/include/readline --disable-conio --bindir=/usr/bin
--sbindir=/usr/sbin --with-scriptdir=/etc/bacula/scripts --with-working-
dir=/var/lib/bacula --with-logdir=/var/log --enable-smartalloc --with-mysql --with-
archivedir=/mnt/backup [email protected] --with-
hostname=192.168.13.129

make -j8 && make install && make install-autostart

chmod o+rx /etc/bacula/scripts/*


/etc/bacula/scripts/create_mysql_database -u root -p && \
/etc/bacula/scripts/make_mysql_tables -u root -p && \
/etc/bacula/scripts/grant_mysql_privileges -u root -p

service bacula-fd start && service bacula-sd start && service bacula-dir start

wget -qO - http://bacula.org/downloads/baculum/baculum.pub | apt-key add -

echo "
deb [ arch=amd64 ] http://bacula.org/downloads/baculum/stable/ubuntu xenial main
deb-src http://bacula.org/downloads/baculum/stable/ubuntu xenial main
" > /etc/apt/sources.list.d/baculum.list

apt-get update && apt-get install php-bcmath php7.2-mbstring baculum-api baculum-


api-apache2 baculum-common bacula-console baculum-web baculum-web-apache2

echo "Defaults:apache "'!'"requiretty


www-data ALL=NOPASSWD: /usr/sbin/bconsole
www-data ALL=NOPASSWD: /usr/sbin/bdirjson
www-data ALL=NOPASSWD: /usr/sbin/bsdjson
www-data ALL=NOPASSWD: /usr/sbin/bfdjson
www-data ALL=NOPASSWD: /usr/sbin/bbconsjson
" > /etc/sudoers.d/baculum

chown www-data /etc/bacula/


a2enmod rewrite
a2ensite baculum-web baculum-api
service apache2 restart

nano /e tc/apt/source.list
deb http://br.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://br.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://br.archive.ubuntu.com/ubuntu/ bionic universe
deb http://br.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://br.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://br.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://br.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe
multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse

You might also like