MacOS – How to wipe huge .MobileBackups folder

backupmacostime-machine

I found my .MobileBackups folder quite large, it weighs 160 GiB. Shouldn't the .MobileBackups folder be wiped after the Time Machine 'backup session'?

Since I have backup done on my external drive how can I get back my 160GiB of HDD space? Can I simply remove this folder or maybe set some limit of mobile backups?

Best Answer

To disable local backups issue this command in terminal:

sudo tmutil disablelocal

This almost never is necessary as the system will automatically prune and disable local backups as your drive fills. You can search for backupd using the console app to see if and when the storage cleanup happens due to low space.


There is a lot of confusion as to the purpose of local snapshots. It's not to take snapshots that then get dumped to your actual Time Machine drive when you run a backup, it's a separate set of snapshots that let you restore files you've accidentally changed or deleted, when you're away from your Time Machine drive. It's not a true backup -- it won't help you if your laptop's drive fails -- but it will help out if you're on the go and you accidentally lose something while on the go. As such, they don't get cleared out after TM backups.

On my computer (a Macbook Air with flash memory), it deletes old mobile snapshots after a week. The behavior may be different on devices with hard drives, as they don't experience longevity issues with full disks. According to Apple's documentation, they aren't deleted after a week. Note that the available space shown in Finder does not take into account the local snapshots, because they will automatically be deleted if you need the space, and it will automatically keep at least 20% of your disk space free -- so you generally shouldn't worry about space taken up by local snapshots. However, if you don't want them around, you can disable them with the command sudo tmutil disablelocal. This will free up the space taken by your local snapshots, and if you reenable it with sudo tmutil enablelocal, it'll start again with an empty set of local snapshots. So, a quick way of clearing out what's on there is to disable and re-enable local snapshots.

You can see how many old backups are being stored by activating Time Machine. White tick marks indicate local snapshots, and purple ones indicate real backups.

There's more information from apple and here.