Can't inherit TM backups due to image <my-mac>.sparsebundle can't be inherited because same image exists in same directory error
I'm using a QNAP NAS to store TimeMachine backups to. And for whatever reason, from time to time, either macOS or QNAP OS (or both) mix things up. When this happens, my Mac suddenly can't connect to the backup-share. And whenever I got it fixed (e.g. by deleting key-chain entries or changing PW on QNAP + mac users to a new one) TimeMachine often doesn't recognise the existing backups.
Until now I usually gave up after some trying-to-fix with tmutil command directly. Which means I've had to start a new backup - loosing the history, which I don't want to do.
PROBLEM DETAILS
- Mac: MacBook Air 2020 M1 - macOS 14.2.1
- QNAP: backup-share is accessible via SMB
- TM automatic backups are disabled (due to the issues at hand)
- Existing spars bundle: <qnap-nas>/<backup-share>/<mac-name>.sparsebundle
- Local mount point /Volumes/<backup-share>/<mac-name>.sparsebundle
After removing the destination (via TM settings UI) I've re-added it successfully with:
sudo tmutil setdestination smb://<user:password>@smb://<qnap-nas>/<backup-share>
Then I used inheritbackup, trying to make TM reconsider existing backups in the sparsebundle with:
sudo tmutil inheritbackup /Volumes/<backup-share>/<mac-name>.sparsebundle
Which returns the following error:
The image "<mac-name>.sparsebundle" can't be inherited because another image "<mac-name>.sparsebundle" belonging to this computer already exists in the same directory.
I couldn't find any article/thread which described how to solve this issue.
A lot discuss to additionally use tmutil associatedisk mount_point snapshot_volume. But in my case there is no .backupdb file/folder to be found anywhere (nor on backup destination nor in local snapshots/.timemachine folders). So I didn't try to "associate" anything.
Unfortunately, neither the tmutil man page nor Apples TM docu provides more details on the "can't inherit image" error or how to associatedisk in cases without .backupdb. Which leaves me at a dead-end. I could imagine I might only have to change one of the UUIDs found in the <mac-name>.sparsebundle/Info.plist files (or alike). But I'm not sure which are used where/how. So in case someone else does, here the UUIDs TM has (or had) in use:
- /Volumes/<backup-share>/<mac-name>.sparsebundle/Info.plist(CFBundleInfoDictionaryVersion): ee24b2ca-fd5c-4d8f-818e-cd3768df688d
- /Volumes/<backup-share>/<mac-name>.sparsebundle/com.apple.TimeMachine.MachineID.plist(com.apple.backupd.HostUUID): EA3AF7B7-0A25-56EE-84BD-4BF3A5455167
- tmutil's destinationinfo: A49FD3B2-4AB0-4028-B231-702E5EE0EA7F
- /Volumes/.timemachine/<qnap-host-name>/: 8D5C2095-4D0E-4DF9-B327-6A5DD53C0AD6
- /Volumes/.timemachine/<qnap-host-name>/8D5C2095-4D0E-4DF9-B327-6A5DD53C0AD6/<backup-share>/<mac-name>.sparsebundle/Info.plist(CFBundleInfoDictionaryVersion): ee24b2ca-fd5c-4d8f-818e-cd3768df688d
Thanks a lot in advance!
Cheers Gabriel
MacBook Air 13″, macOS 14.2