Fix release for storage that loses or shortens data, from the report in #38: uploads to S3 are verified, the data check is faster on cloud storage, and damaged data can now be repaired so that new backups are complete again. Update the console and the agents.
Fixed
- S3: every upload is verified. Each upload now carries a Content-MD5 checksum that the provider checks (before, only with Object Lock), and after each upload the agent checks the size of the stored object. An object that arrived short is uploaded again instead of leaving a damaged pack behind. Found on Hetzner Object Storage in #38.
- Damaged data no longer spreads to new backups. When a data check found a damaged pack, the pack stayed in the index, so every new backup kept reusing its lost data and was damaged as well. Repair on the run page of the failed check (or
backupzit-agent repair --repo …,--dry-runonly lists) reads the storage again under an exclusive lock and takes the damaged packs out of the index. It also lists the backups that need the lost data. The next backups store that data again: file backups read the files again, and VM and disk backups read the lost blocks again. Backups of data that has not changed since are then complete again too. Optionally, Repair also removes the backups that still need the lost data, so that later data checks and freeing space after retention work again. Removing them is protected like other deletions of backups. It asks for your password or two-factor code. With four-eyes approval on, a second user must approve it. It keeps backups a VM runs from (instant recovery), and it is refused while retention is paused after a suspicious backup. See Troubleshooting → "Data check found damaged data packs". - A backup whose previous backup is damaged no longer fails. File and Microsoft 365 backups whose previous backup cannot be read run as full backups. VM backups whose previous block map is gone read the whole disk once. Before, every later backup of the job failed.
Improved
- Faster data check on cloud storage. On S3, Azure and hardened repositories the data check reads several packs at once, as uploads have done since 0.52. Before, it read one pack after another: in [#38], 37 GB took more than three hours at about 3 MB/s.
The upload, check and repair changes are in the agent: update the agents to 0.54.2 as well (the console offers it on the Agents page). Repair needs agents 0.54.2 or newer.
Thanks to cedric-marcoux for the detailed report in [#38] and the logs that showed where the data went missing.
Releases are signed with the BackupZit release key; consoles verify them before installing.