rrc2software Blog Proyectos
rrc2software Blog Proyectos

Bacula | Open Source Backup, Enterprise ready, Network Backup Tool for Linux, Unix, Mac, and Windows

Instalación desde el código fuente

Servidor

[root@server]# yum install ncurses ncurses-devel python-devel python lzo lzo-devel mysql-devel gcc gcc-c++

[root@server]# cd /path/to/src/bacula

[root@server]# CFLAGS="-g -Wall" ./configure \
--disable-ipv6 \
--enable-batch-insert \
--enable-conio \
--enable-largefile \
--enable-smartalloc \
--sbindir=/usr/sbin \
--sysconfdir=/etc/bacula \
--with-mysql \
--with-openssl \
--with-pid-dir=/var/run \
--with-python \
--with-scriptdir=/etc/bacula \
--with-working-dir=/var/bacula

[root@server]# make
[root@server]# make install
[root@server]# make install-autostart

[root@server]# /etc/bacule/grant_mysql_privileges -u root -p
[root@server]# /etc/bacule/create_mysql_database -u root -p
[root@server]# /etc/bacule/make_mysql_tables -u root -p
[root@server]# /etc/bacule/grant_bacula_privileges -u root -p

[root@server]# mysql -u root -p
mysql> UPDATE mysql.user SET password=PASSWORD ('thisisthenewpassword') WHERE user='bacula';
mysql> FLUSH PRIVILEGES;
mysql> quit

[root@server]# nano /etc/bacula/bacula-dir.conf
[root@server]# nano /etc/bacula/bconsole.conf
[root@server]# nano /etc/bacula/bacula-sd.conf
[root@server]# nano /etc/bacula/bacula-fd.conf

[root@server]# service bacula-dir start
[root@server]# service bacula-fd start
[root@server]# service bacula-sd start
[root@server]# chkconfig bacula-dir on
[root@server]# chkconfig bacula-fd on
[root@server]# chkconfig bacula-sd on

[root@server]# cp /path/to/src/bacula/scripts/logrotate /etc/logrotate.d/bacula
[root@server]# cd /path/to/src/bacula/scripts/logwatch/logrotate /etc/logrotate.d/bacula
[root@server]# cd /path/to/src/bacula/scripts/logwatch/
[root@server]# make install

Cliente

[root@server]# yum install ncurses ncurses-devel python-devel python lzo lzo-devel mysql-devel gcc gcc-c++

[root@server]# cd /path/to/src/bacula

[root@server]# CFLAGS="-g -Wall" ./configure \
--disable-ipv6 \
--enable-batch-insert \
--enable-conio \
--enable-largefile \
--enable-smartalloc \
--sbindir=/usr/sbin \
--sysconfdir=/etc/bacula \
--enable-client-only \
--with-openssl \
--with-pid-dir=/var/run \
--with-python \
--with-scriptdir=/etc/bacula \
--with-working-dir=/var/bacula

[root@server]# make
[root@server]# make install
[root@server]# make install-autostart-fd

[root@server]# nano /etc/bacula/bacula-fd.conf

[root@server]# service bacula-fd start
[root@server]# chkconfig bacula-fd on
Tweet Share Share Pin Share Email

Última modificación: May 13, 2020

Volver al inicio