DEV Community

Pulkit
Pulkit

Posted on

Solution for time machine backup stuck on Big Sur

Backups are important, but should they take infinite amount of time?

No

My last backup was in 2018, and since then I didn't backup my Macbook as it didn't complete at all. I have a patience of 0 it seems.

Googling all possible solutions, I found this interesting article https://medium.com/macoclock/time-machine-backups-too-slow-5ed1e5e347a4

Following the article we can do
sudo sysctl debug.lowpri_throttle_enabled=0 to speed up the backup, by removing limits on background jobs such as timemachine backups.
And after backup we have to revert the settings to sudo sysctl debug.lowpri_throttle_enabled=1

Now, I followed the command sudo sysctl debug.lowpri_throttle_enabled=0 to increase the speed of background job done on the backup, but I am still stuck, so let's investigate the source. But according to article, I have to run this sudo fs_usage -w |grep -i backupd |grep -i fsctl to find the source of problem, but it doesn't print anything on the terminal. Maybe sudo fs_usage -w | grep -i backupd works?

Yes, it works. I see, now that timemachine is trying to figure out .cocopods directory, which has bazillion files. I don't need them, so I excluded them from the backup, and voila, I can now backup my whole machine in an hour

Sentry growth stunted Image

If you are wasting time trying to track down the cause of a crash, it’s time for a better solution. Get your crash rates to zero (or close to zero as possible) with less time and effort.

Try Sentry for more visibility into crashes, better workflow tools, and customizable alerts and reporting.

Switch Tools

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay