以Centos7和Ubuntu18举例,1. 安装客户 2.更改配置文件
如果需要加密备份,请参考数据加密的操作手册
Windows
直接下载安装客户端就可以,下载完以后更改配置文件
我电脑的配置文件目录在 C:\Program Files\Bacula\bacula-fd.conf
客户端下载地址:
https://www.bacula.org/download/10453/
Centos 7
导入证书
cd /tmp
wget https://www.bacula.org/downloads/Bacula-4096-Distribution-Verification-key.asc
rpm --import Bacula-4096-Distribution-Verification-key.asc
rm Bacula-4096-Distribution-Verification-key.asc
编辑yum源文件
vim /etc/yum.repos.d/Bacula.repo
# 写入内容
[Bacula-Community]
name=CentOS - Bacula - Community
baseurl=http://www.bacula.org/packages/5f7b5af97551e/rpms/9.6.6/el7/x86_64/
enabled=1
protect=0
gpgcheck=1
安装Bacula客户端
sudo yum install bacula-client
Ubuntu 18.04
导入证书
cd /tmp
wget https://www.bacula.org/downloads/Bacula-4096-Distribution-Verification-key.asc
sudo apt-key add Bacula-4096-Distribution-Verification-key.asc
rm Bacula-4096-Distribution-Verification-key.asc
编辑apt源文件
vim /etc/apt/sources.list.d/Bacula-Community.list
# 写入内容
deb http://www.bacula.org/packages/5f7b5af97551e/debs/9.6.6/bionic/amd64/ bionic main
安装Bacula客户端
sudo apt update
sudo apt install bacula-client
配置客户端
sudo vim /opt/bacula/etc/bacula-fd.conf
编辑
# List Directors who are permitted to contact this File daemon
#
Director {
Name = Bacula-dir # 需要修改为这个Name
Password = "pk11bthu3pHD4rESx28JhzBT_3-G5VSG3" # 记录下这个密码,提供给周世聪
}
#
# Restricted Director, used by tray-monitor to get the
# status of the file daemon
#
Director {
Name = Bacula-mon
Password = "s40p4b8hDt1uN7enB8rXPn6bb6qlexrdZ"
Monitor = yes
}
#
# "Global" File daemon configuration specifications
#
FileDaemon { # this is me
Name = Zabbix-fd # 修改一下服务器名,方便识别
FDport = 9102 # where we listen for the director
WorkingDirectory = /opt/bacula/working
Pid Directory = /opt/bacula/working
Maximum Concurrent Jobs = 20
Plugin Directory = /opt/bacula/plugins
FDAddress = 10.0.110.17 # 需要增加这一行,填写自己服务器的IP
}
# Send all messages except skipped files back to Director
Messages {
Name = Standard
director = Bacula-dir = all, !skipped, !restored # 需要修改为这个director name
}
设置备份服务启动
sudo systemctl enable bacula-fd
sudo systemctl restart bacula-fd