I have a disk that is attached as a NAS storage to Time Machine. It's just a hard drive connected to my router.
I started doing Time Machine backups to this disk rather recently and until several days ago backups were done without any problems. But now Time Machine complains about incorrect credentials (based on what it tells me) and for some reason no backups are found on this disk anymore.
I tried to add and remove the storage many times and run a few commands with
tmutil but without a deep understanding how it works it's hard to fix anything or even find out the cause of the problem...
This is what it looks like:
I start with a pristine and uninitialized Time Machine screen and there I select the NAS storage.
It asks me to provide credentials for the NAS storage.
After I click on Use Existing Backup button it asks me to provide a password for my existing backup, and that's where things become interesting... I know the correct password but whatever I enter the result is the same.
But the credentials are ok. Whenever I try to open the
.sparsebundle file on that disk (even when it is connected directly to my MacBook) it is mounted successfully and I can browse all snapshots without even typing the encryption password (which I find particularly weird because KeyChain on my MacBook does not contain any keys which are related to the backups - I removed everything intentionally to check if that will work).
And this is what happens when I try to run most of the commands with
~ % tmutil machinedirectory No machine directory found for host. ~ % tmutil latestbackup Unable to locate machine directory for host.
I figured out why my Time Machine sparsebundle didn't require password. It was saved in KeyChain but under some strange GUID with the suffix/extension ".sparsebundle". I found it by searching "disk". And then after I removed these items completely I need to enter the password every time I access the
And... After playing around with
tmutil associatedisk I managed to change the behavior of Time Machine. Now, instead of accepting any password and then displaying that there are no backups found, it rejects any password and says that "Password is invalid" although the password is obviously correct assuming that I can access the
sparsebundle contents directly through Finder.