A feature, security and reliability release. Recommended for everyone. Update the console first, then the agents (the console offers 0.59.0 on the Agents page). Most changes are in the agent.
New
- macOS agent for Macs with Apple silicon (preview) (#60, contributed by cedric-marcoux). A Mac with macOS 13 or newer is enrolled, backed up, restored, updated and uninstalled from the console like a Windows or Linux computer:
- files and folders backups read from an APFS local snapshot; restores to a folder or the original location keep owner, permissions, extended attributes, hard links, file flags and creation times;
- a
.pkginstaller, with the enrollment code from an MDM file or from abackupzit-enroll.txtnext to the package, and self-updates from the console; - a menu bar app with an assistant for the permissions only the user can grant (Full Disk Access). This is a preview: it was written and tested on Macs by its contributor, our own tests of it run on macOS in the build pipeline. Please report what does not work. The package is not signed with an Apple Developer ID yet: macOS asks for confirmation when it is opened (right-click → Open), and Full Disk Access has to be granted again after each update. Intel Macs are not supported.
- A damaged index file no longer stops backups, restores and checks (#53, contributed by gtawelt). The packs it listed are read from their own headers; new backups do not reuse their data, and retention, freeing space and removing an agent's backups wait until Repair has rebuilt the index. The rebuild verifies every pack it relies on (three tries), checks that every block a backup uses is in the new index or in a pack proven damaged, refuses when the storage lists nothing, lists differently or loses packs during the repair, and keeps the damaged file (sealed) under
index-damaged/. Backups that use data no pack holds are named; with Also remove the backups that need the lost data they are removed.
Safer
- Proxmox VE: a restore over an existing guest deletes it only after all disks are written. Before, the guest and its disks were deleted first, so a storage that ran full or a repository error left no guest at all. Now the new disks are written while the guest keeps running, and it is stopped and replaced only then; any failure before leaves it as it was (started again if it was stopped). The restore first checks that the storage has room for the new disks next to the old ones (keeping 5 %, at least 1 GiB, free, so a thin pool does not run full). For storage without room for both, the new option Delete it before the disks are written (CLI
--remove-first) works as before; agents before 0.59 always do so. - Freeing space never deletes a pack the index lacks if backups still need its data (an index file lost or deleted by hand): the pack is verified and put back into the index.
- A data check that finds most packs gone when it reads them (a data volume unmounted during the check) judges nothing, as it already did for an incomplete listing.
Security
- Hyper-V: a VM restore writes its disks only where it checked. New-VHD and Hyper-V take paths, and the default folders are often writable by users (a data volume's root gives Authenticated Users "Modify", client Hyper-V uses Public Documents): a planted junction or a renamed folder could send a restored disk elsewhere, or a swapped file make the restore write onto another disk. Every folder on the way is now held so it cannot be renamed or replaced until the VM is set up, links are followed only if they belong to the system (Cluster Shared Volumes and mount points keep working), and the disks go into a folder that only the system, administrators and Hyper-V Administrators may change.
- Local and mounted storage folders: the agent reads and writes nothing outside the repository folder through links put into it (a link to a file elsewhere, a link to a folder, a junction, a named pipe or a device below it is ignored).
- Restores to the original location: a link with a second name (a hard link of it) is no longer followed (on Linux this mattered only with
fs.protected_hardlinksoff).
Fixed
- VMware hot-add with backups running at the same time: a backup starting detached the disk another backup of the same agent was reading.
- One corrupt download of an index file is read again before the file counts as damaged.
- A backup whose retention waits for a repair of the index ends with a warning, not a success.
Other
- Third-party license notices are complete (NOTICE files of Apache-licensed modules, licenses of code that modules carry inside them, the WebView2 loader in the tray app), and the Linux recovery ISO ships the license files.
- Dependencies: go-mssqldb 1.12.0, go-xfs-filesystem (stricter checks of disk images), our ext4 reader moved onto the current upstream version, klauspost/compress 1.20.5.
Thanks to cedric-marcoux for the macOS agent, tested on real Macs, and the very quick rounds of fixes, and to gtawelt for the damaged-index recovery and three careful rounds of rework.
Releases are signed with the BackupZit release key; consoles verify them before installing, and agents verify their updates.