Time Machine Backup Hang - Locating Corrupted File

I'm running into an issue with my TimeMachine back ups. When I begin a backup, the progress bar shows movement (i.e. xx.xx GB / yy.yy GB) and an estimated completion time. However, as of last month it gets to a certain point, say around .3 GB left to be backed up, and just stays there with the estimated completion time disappearing. After waiting for the backup to "finish" or just stop, I find in the settings that TimeMachine didn't backup successfully since the "Last Backup Date" had not been updated.


I tried reading other forum posts similar to this and followed suggestions of checking the health of my drives, deleting the backup.inProgress file found in TimeMachine, and restarting my computer. After reading other people's stories, I am convinced that my issue is a corrupted or un-backup-able file. I tried using the TimeMachine Buddy widget to log the backups to show where the hangup is during the backup process, however the widget does not seem compatible with Mojave as it reads "No Time Machine information found" whenever I try. Is there another method to figure out which files are causing the hangup?


TLDR: A certain file / group of files causes my TimeMachine backups to hang, halting the backup process from progressing at the same spot. How do I identify those files after without using the TimeMachine Buddy widget?

MacBook Air 13", macOS 10.14

Posted on Mar 10, 2019 8:34 AM

Reply

Similar questions

2 replies

Mar 10, 2019 1:50 PM in response to MarkG94

I am convinced that my issue is a corrupted or un-backup-able file.


Yes that is rare, but it is possible. By "rare" I have seen it occur exactly once. It happened to be a corrupted game file which TM simply refused to back up, causing it to become stuck. Once I deleted it TM began working again. The drive itself was and remains perfectly OK.


However, drive corruption can also cause TM to "hang" in the same manner, which can be difficult to correlate because the only way to definitively rule out that possibility is to replace the drive. Erasing and restoring might offer an interim solution, but it is not likely to be permanent fix. You'll know when the same problem reoccurs with increasing frequency. Given your MBA uses flash memory I think a corrupted file is more likely—as you suspect.


Using a different backup drive will also be beneficial in isolating the cause to either the source or backup volume. One and only one Time Machine backup isn't a sufficiently robust backup strategy anyway, so if you haven't done so already buy another one at your earliest convenience and add it to TM's rotation. If it also "hangs" you have effectively isolated the cause to the source.


---


To extract potentially relevant Time Machine activity from log consider using the following shell script:

clear; printf '\e[3J' && log show --predicate 'subsystem == "com.apple.TimeMachine"' --info --last 24h | grep -F 'eMac' | grep -Fv 'etat' | awk -F']' '{print substr($0,1,19), $NF}'


Copy (triple-click to select the entire line) and Paste that line in a Terminal window.


The Terminal app is in your Mac's Utilities folder.


It extracts Time Machine activity logged during the previous 24 hours. To change that time period change that value. If Time Machine is running there is no need to interrupt TM to use it. Be advised that log is fairly resource-intensive, and if you are using a portable Mac it will consume a lot of battery power as it runs.


log will need a few moments to extract the Time Machine log data. Wait for it to finish. It is normal for its results to include various "errors" and "failures" and none of them are necessarily an indication of anything wrong.


Copy (Edit > Select All and then Copy) and Paste that Terminal window's contents in a reply to this Discussion. Please omit or obscure any information that you may consider personal.


Quit the Terminal app when you're finished with it.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Time Machine Backup Hang - Locating Corrupted File

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.