Ubuntu 20.04 上的 Bacula

Ubuntu 20.04 上的 Bacula

我设置了一个新的 Ubuntu 桌面系统,我称之为 BACULA,安装 Bacula 来备份其他 3 个系统(TRISTRAM:Ubuntu、NANCY:Windows/10、MILLY:Windows/10)。

一切似乎都很好,但我遇到了一些问题:

  1. 虽然 BACULA 上的托盘监视器可以访问存储守护进程,但它无法访问文件守护进程。
  2. Director Daemon 也无法访问 File Daemon。我甚至尝试删除所有 Windows 的防火墙 (。
  3. 客户端上的控制台无法访问 Director。如果我查找开放端口(nmap bacula),我会看到端口 9102 和 9103 已开放,但 9101 未开放!

这是 bacula-dir 中的控制台对象:

Director {                            # define myself
  Name = Bacula-dir
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/etc/bacula/scripts/query.sql"
  WorkingDirectory = "/var/lib/bacula"
  PidDirectory = "/var/run/bacula"
  Maximum Concurrent Jobs = 1
  Password = "Console password"
  Messages = Daemon
  DirAddress = localhost
}

.....

#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
  Name = bacula-mon
  Password = "password for monitor"
  CommandACL = status, .status
}

完整的bacula-fd:

# Default  Bacula File Daemon Configuration file
#
#  For Bacula release 9.4.2 (04 February 2019) -- ubuntu 20.04
#
# There is not much to change here except perhaps the
# File daemon Name to
#
#
# Copyright (C) 2000-2015 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS

# List Directors who are permitted to contact this File daemon
#
Director {
  Name = Bacula-dir
  Password = "Console password"
}
#
# Restricted Director, used by tray-monitor to get the
#   status of the file daemon
#
Director {
  Name = Bacula-mon
  Password = "password for monitor"
  Monitor = yes
}
#
# "Global" File daemon configuration specifications
#
FileDaemon {                          # this is me
  Name = Bacula-fd
  FDport = 9102                  # where we listen for the director
  WorkingDirectory = /var/lib/bacula
  Plugin Directory = /usr/lib/bacula
  Pid Directory = /run/bacula
}
#
# Send all messages except skipped files back to Director
#
Messages {
  Name = Standard
  director = Bacula-dir = all, !skipped, !restored
}

和 bacula-tray-monitor-dir:

#
# Bacula Tray Monitor Configuration File
#
# Copyright (C) 2000-2017 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
#
Monitor {
  Name = bacula-mon
  RefreshInterval = 30 seconds
}
#
Client {
  Name = bacula-fd
  Address = localhost
  Port = 9102
  Password = "password for monitor"          # password for FileDaemon
  Connect Timeout = 30
  Monitor = yes
}
#
Storage {
  Name = bacula-sd
  Address = localhost
  Port = 9103
  Password = "password for monitor"          # password for StorageDaemon
}
#
Director {
  Name = bacula-dir
  Address = localhost
  Port = 9101
  Password = "password for monitor"          # password for the Directors   
}

相关内容