Troubleshooting Time Machine Backup Issues on a Locked Mac

Time Machine backups on macOS can fail when the Mac is locked. In this post, I walk through how I diagnosed the issue using the log command and resolved it by rewriting the affected files.