Time machine freezes while copying files with no error message (on Catalina 10.15)
Solution 1:
Okay, my Time Machine backups work now, and I can post this answer to my own question.
To print out what files are currently being copied there is a nice command in the terminal:
sudo fs_usage -wf filesys backupd | grep HFS_update
Doing this I could see that my backup froze at certain files, and CPU was at 0.0 usage. However, even after it had frozen, intermittently it made small steps of progress before freezing again (as I could tell from the terminal printout). And even though CPU usage showed 0.0, the total number of CPU hours were very slowly creeping up. So there was some activity in backupd
, but so little it rounds to 0.0. Thus I left the computer on over night, and in the morning it had finished. It took 14 hours to finish, including several hour-long pauses when no files were written to the backup drive.
I was using Catalina 10.15.1, but using the newly released 10.15.2 for my second backup disk I can tell that the problem persists. I then reformatted the second disk to see if that would make it any faster. But no, it takes even longer to create a new backup (20.5 hours).
However, after one painfully slow backup has finished it seems to work normally, with much shorter backup times.
Read more here: https://eclecticlight.co/2019/11/11/time-machine-and-backing-up-in-catalina/comment-page-1/?unapproved=42377&moderation-hash=3183957ce67228fdfbd8a9b757b038dc#comment-42377
Solution 2:
I have experienced the same issue with a MacBook Pro 2016. After updating to Catalina 10.15 it succeeded with a couple of backups, but then it got stuck. I have several disks with Time Machine backups, e.g. one LaCie Portable 4TB and one 5TB. I reset both and made fresh backups. Both got stuck when 20 GB and 30 GB remained respectively. After stopping and restarting the backup operation, the (initial) backups succeeded on both disks.
However, now the backup gets stuck on "Preparing backup". I have stopped and attempted to delete the .inProgress file, but that does not succeed.
I have run the disk tool and checked both my computer's disk and the external disk drives, but no issues were found.
I also have a number of disks where I have cloned the disk using ChronoSync. No issues with that and I have verified that I can boot from the cloned disks and the systems seems to be running correctly.
Besides the TM issue, a couple of times the computer has get stuck before I try to enter the password. Only thing to do then is to force shutdown the computer (yes, I have waited a couple of hours first...)