Bacula. Updating agents on clients

In some systems (tested on Centos 7), in basic repositories only old versions of Bacula are included. In one of my client I have Bacula 5.2.13

So I need to update this client to 9.0.x version. Step by step:

  1. Make a backup of configuration file. Copy it to another location
  2. Update your system — yum update, yum upgrade
  3. Find all packages related to old version — rpm -ql, rpm -qa
  4. Plan your downtime and maintenance window for this client
  5. Stop all backup jobs for this client
  6. Stop service on client (for Centos) — systemctl stop bacula-fd.service
  7. If you want/need to check config — bacula-fd -tc /etc/bacula/bacula-fd.conf
  8. Listing of all installed rpm

[root@nb-linux-agent ~]# yum list installed | grep bacu*
bacula-client.x86_64 9.0.6-1.el7 installed
bacula-libs.x86_64 9.0.6-1.el7 installed
gnome-backgrounds.noarch 3.28.0-1.el7 @base
libacl.x86_64 2.2.51-15.el7 @base
python-backports.x86_64 1.0-8.el7 @anaconda
sane-backends.x86_64 1.0.24-12.el7 @base
sane-backends-drivers-scanners.x86_64 1.0.24-12.el7 @base
sane-backends-libs.x86_64 1.0.24-12.el7 @base

[root@nb-linux-agent ~]# rpm -qa | grep bacula

9. Put packages on client and install it —

10. Install yum install bacula-client-9.0.6-1.el7.x86_64.rpm bacula-libs-9.0.6-1.el7.x86_64.rpm

11. Directory — cd /opt/bacula/

12. Restore you configuration (bacula-fd) to /etc/bacula and /opt/bacula/etc. This files must be equal.

Oct 26 20:01:31 nb-linux-agent bacula-fd: Shutting down Bacula service: nb-linux-agent-fd …
Oct 26 20:01:31 nb-linux-agent systemd: bacula-fd.service: main process exited, code=exited, status=15/n/a
Oct 26 20:01:31 nb-linux-agent systemd: Unit bacula-fd.service entered failed state.
Oct 26 20:16:11 nb-linux-agent yum[14710]: Erased: bacula-libs-9.0.6-1.el7.x86_64
Oct 26 20:18:12 nb-linux-agent yum[14713]: Erased: bacula-client-5.2.13-23.1.el7.x86_64
Oct 26 20:18:13 nb-linux-agent yum[14713]: Erased: bacula-common-5.2.13-23.1.el7.x86_64
Oct 26 20:18:13 nb-linux-agent yum[14713]: Erased: bacula-libs-5.2.13-23.1.el7.x86_64

[root@bacula-lin-client /]# cat /etc/redhat-release
Rocky Linux release 8.6 (Green Obsidian)
[root@bacula-lin-client /]# rpm -ql bacula-common

Start service bacula-fd on client

Restart service bacula-dir on Director and check your web concole, In my case with Baculum — old version was displayed until the first backup jobs on this client. Then job is finish — all clients and version looks fine

To check client connectivity you need to you bconsole in cli or go to the Client Tab on web console and click Status Client.

ps -aux | grep bacula

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *