Site icon ChrisWrites.com

Running out of space on your Time Machine drive? How to exclude folders, files & apps

Is your Mac complaining about the lack of space on your Time Machine drive?

While you could solve the problem by investing in a bigger, better hard drive, you can often save some money by taking a critical look at exactly what you’re including in your Time Machine backups.

Most of the time, you can re-download a significant portion of your Mac’s content from places like the App Store, or third party storage services like DropBox or Google Drive, so if you’re running low on space, then you should prioritize the content that can’t be recovered so easily.

In this article, I’m going to show you how to exclude specific files, folders and apps from your Time Machine backups, so you won’t need to splash out on a new drive. Plus, by reducing the size of your backups, you’ll be able to create them faster and retain them for longer, as Time Machine will be able to squeeze more backups onto your external drive.

What should I exclude?

While it varies from users to user, a good place to start is by excluding some, or all of the following:

You can easily re-download this content, or copy it back to your Mac in the event of data loss or hard drive failure, so ask yourself: what’s the benefit to including all of this in my Time Machine backups?

You may also want to exclude the contents of your ‘Downloads’ folder, as for most of us this folder is a dumping ground for files we vow to sort through later, only to wind up deleting the next time we need to recover some space on our hard drive.

If you’ve created any virtual machines using a program such as VirtualBox, then you may want to exclude these from your backups, as emulated operating systems tend to be on the hefty side!

Finally, if your Mac includes particularly sensitive content, then this may also be a candidate for exclusion. A Time Machine backup is essentially a copy of your content that exists outside of your Mac’s hard drive, which can be a privacy and security concern for some users.

Check what Time Machine is excluding by default

Even though you can pick and choose specific items to exclude from your backups, Time Machine excludes a list files and folders by default, for example the contents of your ‘Trash’ folder and caches typically aren’t included in Time Machine backups.

Since you don’t want to waste time manually editing your Time Machine settings to exclude content that’s already excluded by default, you should review exactly what macOS is already leaving out of your Time Machine backups.

Helpfully, macOS generates a text file that lists all the files, folders and apps that Time Machine is already ignoring:

/System/Library/CoreServices/backupd.bundle/Contents/Resources/

This file lists all the items that Time Machine is currently excluding, in the following format:

<array>
<string>/.MobileBackups</string>
<string>/MobileBackups.trash</string>
<string>/.MobileBackups.trash</string>
<string>/.Spotlight-V100</string>
<string>/.TemporaryItems</string>

While this might look complicated, ‘String’ is essentially just a technical term for a piece of text, and an ‘array’ is a list of related strings.

This file also contains comments that provide context for each array, for example: “paths where we need to capture top level folder to restore disk structure, but don’t want to backup any contents.”

Even if Time Machine is including an item in its backups, it may not be including every single piece of content that’s related to this item. For example, iTunes’ cache and your Google Chrome whitelist and blacklist tend to be excluded by default, as all this information can be easily re-downloaded the next time you connect to the Internet.

You can review the list of files that individual programs are excluding from your Time Machine backups:

sudo mdfind “com_apple_backup_excludeItem = ‘com.apple.backupd'”

The Terminal will now display a list of all your excluded files.

Exclude any folder from your backups

Once you know what apps, folders and files Time Machine is already excluding from your backups, you can start adding to this list:

Resume backing up items

If you change your mind and want to resume including an app, folder or folder in your Time Machine backups:

Monitor the size of your backups

If you’re concerned that the size of your backups might spiral out of control again, then Time Machine can notify you whenever an old backup is deleted. Since old backups get deleted to make room for newer ones, this notification provides an indication about just how quickly your external drive is filling up. If the time inbetween these notifications is shrinking, then this usually means the size of your backups is on the rise.

To enable this feature:

Exit mobile version