Mac – “Time Machine must erase your existing backup history and start a new backup to correct this.” Why is that

time-machine

I seen this message for the past two days:

"Time Machine detected that your backups on “SynologyDS216.local” cannot be reliably restored."

"Time Machine must erase your existing backup history and start a new backup to correct this."

I can access the backup history just fine. The NAS (which have RAID 1) is fine as well.

When I look at the backups:

~ ᐅ tmutil listbackups | tail -n 5
2020-10-15-144522
2020-10-15-151447
2020-10-15-154125
2020-10-15-184439
2020-10-15-195406

We can see that it stopped doing backups exactly 2 days ago, so I decided to do a check:

tmutil verifychecksums /Volumes/Time\ Machine\ Backups/Backups.backupdb/Thomas-MBP

and an error that popped up is:

/Volumes/Time Machine Backups/Backups.backupdb/Thomas-MBP/2020-07-08-200220/Macintosh HD/System/Library/DirectoryServices/DefaultLocalDB/Default: error 257 enumerating path

The directory exists:

total 0
drwxr-xr-x@ 3 root  wheel   102B Aug 25  2019 .
drwxr-xr-x@ 5 root  wheel   170B Sep 29  2019 ..
drwx------+ 7 root  wheel   238B Aug 25  2019 Default

but the permissions are an issue. This file has extended attributes, so I look to see what's up:

/Volumes/Time Machine Backups/Backups.backupdb/Thomas-MBP/2020-07-08-200220/Macintosh HD/System/Library/DirectoryServices/DefaultLocalDB ᐅ sudo ls -le Default
total 0
drwx------@ 2 root  wheel   340 Aug 25  2019 aliases
 0: group:everyone deny add_file,delete,add_subdirectory,delete_child,writeattr,writeextattr,chown
drwx------@ 2 root  wheel   102 Aug 25  2019 computers
 0: group:everyone deny add_file,delete,add_subdirectory,delete_child,writeattr,writeextattr,chown
drwx------@ 2 root  wheel  4420 Aug 25  2019 groups
 0: group:everyone deny add_file,delete,add_subdirectory,delete_child,writeattr,writeextattr,chown
drwx------@ 2 root  wheel   102 Aug 25  2019 networks
 0: group:everyone deny add_file,delete,add_subdirectory,delete_child,writeattr,writeextattr,chown
drwx------@ 2 root  wheel  3468 Aug 25  2019 users
 0: group:everyone deny add_file,delete,add_subdirectory,delete_child,writeattr,writeextattr,chown

When looking on the host machine:

/System/Library/DirectoryServices/DefaultLocalDB ᐅ ls -l

    total 0
    drwxr-xr-x  3 root  wheel    96B Jan  1  2020 .
    drwxr-xr-x  5 root  wheel   160B Jan  1  2020 ..
    drwx------  7 root  wheel   224B Jan  1  2020 Default

the permissions are not the same and the data can be accessed.

It looks like TimeMachine claims it can't use the backup due to some permission issues…

I tried to ask about it on the Apple forums but my post got removed because I'm running a beta version of the OS…

Has anyone seen this problem before?

Best Answer

“Has anyone seen this problem before?”

I have, and from what I have heard from reading forums over the years, it sounds like a very common problem with Time Machine: every once in awhile, it says “I need to delete your backup and start over.”

Or it says “I can’t backup because your backup device is full” (even though Time Machine is supposed to prune itself as needed).

Or something else comes up that causes Time Machine to choke.¹

Howard Oakley has cataloged a long list of issues with Time Machine, and even has some free apps to help work with Time Machine archives (unfortunately, nothing that can “repair” a “damaged” Time Machine backup, as far as I know).

In response to this I have developed the following attitude towards Time Machine:

  1. Never rely on Time Machine as your only backup.

  2. Use Time Machine to multiple locations (e.g. a Time Capsule or other remote Mac plus a local Mac) with the expectation that if one gets corrupted, you will still have the other one. Note that Point #1 still stands, even with Point #2

  3. In addition to Time Machine, also use at least one (preferably two) of:


¹ This is usually where someone will chime in and state that they have used Time Machine since it was first released and never had a problem with it. I do not doubt that there are some people who have had that experience, but I tend to consider them sort of like people who win the lottery: I am happy for them, but I would never expect to be one of them, and have decided to assume I never will be. YMMV.