Skip to content

Instantly share code, notes, and snippets.

@jasonekratz
Created February 15, 2025 02:05
Show Gist options
  • Save jasonekratz/ccdf3663f0c5a51901b30f0e8b7a3207 to your computer and use it in GitHub Desktop.
Save jasonekratz/ccdf3663f0c5a51901b30f0e8b7a3207 to your computer and use it in GitHub Desktop.
Find errors causing Time Machine backup errors on Mac

Once in awhile I'll get an error when Time Machine is trying to run backups while my Mac is locked (problem goes away when it's not). Trying to find out why that happens has always been a bit of a pain but this command will help:

log show --predicate 'subsystem == "com.apple.TimeMachine"' --info | grep "Operation not permitted"

or more generally

log show --predicate 'subsystem == "com.apple.TimeMachine"' --info | grep error

The first command will show the files causing the Time Machine error.

Oddly giving full disk access to Time Machine doesn't fix this problem.

Also of note the couple of times I've recevied that error I had installed Goodnotes and it goes away if I uninstall it.

After finding out what file/folder is causing the problems it simply needs to be adding to the exclusion list in the Time Machine settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment