Bacula-client installation (CentOS 7 and Debian 9)
- siwy
- sty, 13, 2019
- Bacula, CentOS, Debian
- No Comments
1. Installation dependence:
CentOS 7
sudo yum install gcc gcc-c++ libacl-devel lzo-devel mt-st mtx openssl-devel readline-devel zlib-devel
Debian 9
sudo apt install build-essential
2. Installation bacula-client:
Download bacula tar from sourceforge.net:
bacula-9.4.1.tar.gz
and sent tar to server
CentOS 7 and Debian 9
tar -xvzf bacula-gui-9.4.1.tar.gz
cd bacula-9.4.1/
sudo ./configure --prefix=/usr/local/bacula \
--disable-build-dird \
--disable-build-stored \
--enable-client-only \
--with-scriptdir=/usr/local/bacula/scripts
sudo make
sudo make install
3. Configuration bacula-client and system:
CentOS 7
sudo firewall-cmd --permanent --zone=public --add-port=9102/tcp
sudo firewall-cmd --reload
sudo make install-autostart
Debian 9
sudo iptables -A INPUT -p tcp --dport 9102 --jump ACCEPT
sudo apt-get install iptables-persistent
sudo make install-autostart
4. Add your domein to search in nmtui:
CentOS 7
sudo nmtui
sudo systemctl restart network.service
Debian 9
sudo nano -c /etc/resolv.conf
sudo service networking restart
5.Edit config file:
CentOS 7 and Debian 9
sudo nano -c /usr/local/bacula/etc/bacula-fd.conf
# bacula serwer
Director {
Name = vm-l-bacula-1-dir
Password = "dir-password"
}
# bacula serwer
Director {
Name = vm-l-bacula-1-mon
Password = "mon-password"
Monitor = yes
}
# client serwer
FileDaemon {
Name = vm-l-server-1-fd
FDport = 9102
WorkingDirectory = /opt/bacula/working
Pid Directory = /var/run
Maximum Concurrent Jobs = 2
Plugin Directory = /usr/local/bacula/lib
}
# bacula serwer
# Send all messages except skipped files back to Director
Messages {
Name = Standard
director = vm-l-bacula-1-dir = all, !skipped, !restored
}
6. Start bacula-client:
CentOS 7 and Debian 9
sudo systemctl start bacula-fd.service
7. Add new client in Bacula Web Interface:
http://127.0.0.1:9095/