以Centos7和Ubuntu18举例,1. 安装客户 2.更改配置文件

如果需要加密备份,请参考数据加密的操作手册

Windows

直接下载安装客户端就可以,下载完以后更改配置文件
我电脑的配置文件目录在 C:\Program Files\Bacula\bacula-fd.conf
客户端下载地址:
https://www.bacula.org/download/10453/

Centos 7

导入证书

  1. cd /tmp
  2. wget https://www.bacula.org/downloads/Bacula-4096-Distribution-Verification-key.asc
  3. rpm --import Bacula-4096-Distribution-Verification-key.asc
  4. rm Bacula-4096-Distribution-Verification-key.asc

编辑yum源文件

  1. vim /etc/yum.repos.d/Bacula.repo
  2. # 写入内容
  3. [Bacula-Community]
  4. name=CentOS - Bacula - Community
  5. baseurl=http://www.bacula.org/packages/5f7b5af97551e/rpms/9.6.6/el7/x86_64/
  6. enabled=1
  7. protect=0
  8. gpgcheck=1

安装Bacula客户端

  1. sudo yum install bacula-client

Ubuntu 18.04

导入证书

  1. cd /tmp
  2. wget https://www.bacula.org/downloads/Bacula-4096-Distribution-Verification-key.asc
  3. sudo apt-key add Bacula-4096-Distribution-Verification-key.asc
  4. rm Bacula-4096-Distribution-Verification-key.asc

编辑apt源文件

  1. vim /etc/apt/sources.list.d/Bacula-Community.list
  2. # 写入内容
  3. deb http://www.bacula.org/packages/5f7b5af97551e/debs/9.6.6/bionic/amd64/ bionic main

安装Bacula客户端

  1. sudo apt update
  2. sudo apt install bacula-client

配置客户端

  1. sudo vim /opt/bacula/etc/bacula-fd.conf

编辑

  1. # List Directors who are permitted to contact this File daemon
  2. #
  3. Director {
  4. Name = Bacula-dir # 需要修改为这个Name
  5. Password = "pk11bthu3pHD4rESx28JhzBT_3-G5VSG3" # 记录下这个密码,提供给周世聪
  6. }
  7. #
  8. # Restricted Director, used by tray-monitor to get the
  9. # status of the file daemon
  10. #
  11. Director {
  12. Name = Bacula-mon
  13. Password = "s40p4b8hDt1uN7enB8rXPn6bb6qlexrdZ"
  14. Monitor = yes
  15. }
  16. #
  17. # "Global" File daemon configuration specifications
  18. #
  19. FileDaemon { # this is me
  20. Name = Zabbix-fd # 修改一下服务器名,方便识别
  21. FDport = 9102 # where we listen for the director
  22. WorkingDirectory = /opt/bacula/working
  23. Pid Directory = /opt/bacula/working
  24. Maximum Concurrent Jobs = 20
  25. Plugin Directory = /opt/bacula/plugins
  26. FDAddress = 10.0.110.17 # 需要增加这一行,填写自己服务器的IP
  27. }
  28. # Send all messages except skipped files back to Director
  29. Messages {
  30. Name = Standard
  31. director = Bacula-dir = all, !skipped, !restored # 需要修改为这个director name
  32. }

设置备份服务启动

  1. sudo systemctl enable bacula-fd
  2. sudo systemctl restart bacula-fd