Here is a detailed explanation of the issue you are facing:
Title: Unattended Upgrades Restarting and Killing Running Backup Jobs on Ubuntu 24.04
Introduction:
Since upgrading servers to Ubuntu 24.04, the Unattended Upgrades service has started to restart, which in turn restarts the backup storage daemons (Bacula or Bareos). This unexpected restart kills any running backup jobs, causing data loss or inconsistency.
Detailed Context:
-
Unattended Upgrades Service Restart:
The Unattended Upgrades service is responsible for automatically installing security updates and other important system updates on Ubuntu servers. However, after upgrading to Ubuntu 24.04, this service has started to restart unpredictably.
-
Backup Storage Daemons Restart:
When the Unattended Upgrades service restarts, it also restarts the backup storage daemons (Bacula or Bareos). These daemons are responsible for managing and executing backup jobs.
-
Running Backup Jobs Interrupted:
The unexpected restart of the backup storage daemons interrupts any running backup jobs. This interruption can lead to data loss or inconsistency, as the backup job may not have completed successfully.
Code Block:
Assuming you are using Bareos as your backup solution, here is an example of a Bareos job configuration file (dir.d/client.d/<client>.conf):
# Example Bareos job configuration file
Job {
Name = <client>-full
Type = Backup
Level = Full
Client = <client>
Storage = <storage>
Priority = 10
Messages = Standard
Incremental Forever
Schedule = Full Daily at 2:00
}
References:
Summary:
The issue you are facing is related to the Unattended Upgrades service restarting on Ubuntu 24.04, which in turn restarts the backup storage daemons (Bacula or Bareos), interrupting running backup jobs and potentially causing data loss or inconsistency. To resolve this issue, you may need to investigate the cause of the Unattended Upgrades service restart or consider alternative solutions for automatic updates.