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

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay