What were you trying to do that didn't work? Use Samba on RHEL as target for Time Machine Backups from MacOS machines
What is the impact of this issue to you? No backups possible
Please provide the package NVR for which the bug is seen:
How reproducible is this bug?: Always
Steps to reproduce
- Install RHEL 10.x with Samba
- Configure Samba share for Time Machine backups
- Initiate Time Machine backup form MacOS machine
Expected results Backup is created and incremental updates work
Actual results Backup creation fails with "The backup image could not be created"
This is a known issue in Samba 4.22, see https://bugzilla.samba.org/show_bug.cgi?id=15926 which also contains patches to restore the functionality for samba 4.22:
From the samba bug:
"As part of the backup TM tries to rename a directory while having an open file within the directory. Windows requires this to fail and this is what Samba also implements. There used to be a workaround for Macs by using fruit:posix_rename but that option was removed in 4.22 as it imposed an unreasonable development burden due to introducing hard to follow logic in very complex code. As part of implementing SMB3 UNIX Extensions in Samba, this part of the code has to be modified and this was only sensibly possible after removing the fruit:posix_rename code.
Created attachment 18755 [details]
Patch for 4.22 backported from master"
As Time Machine backups used to work with previous versions of Samba in RHEL9 and before, I see this as a regression.