Here’s How to Keep Time Machine’s Backup Under Control

Creating a separate partition on your backup drive is the best way to control the amount of storage Time Machine will use.
Creating a separate partition on your backup drive is the best way to control the amount of storage Time Machine will use.

Time Machine is an excellent backup tool for any Mac. However, by default, it keeps all backup versions until the backup destination, be it an external drive or a storage server, is full.

This practice can be wasteful, and eventually, you’ll have no space for other uses, like storing files. It’s especially problematic when you use a backup server. Since one Mac can hog all the storage space, you have no space left for other computers and services. That said, it’s a good idea to put a limit on the amount of storage Time Machine can use.

Determine the OS version and suitable backup limit

Before you can fix Time Machine’s storage, you first need to find out what version of macOS you’re running. If you don’t know how, check out this post, which also gives you some other handy and useful Mac skills, including how to run Terminal which you’ll need to use in this post.

After that, find out the amount of storage you need for the backups. Generally, you want to use 150% or more the capacity of your Mac’s internal drive.

So for example, if your MacBook has 128GB of internal storage, 300GB of backup space is generous. But pick a number that suits your needs. The more storage space, the more versions of backups you’ll get, which means the further you can go back in time.

Limit Time Machine backup size in macOS 10.12 and earlier

This trick is easy to implement and for sure works on macOS 10.12 (Sierra) and older versions. Here are the steps:

  1. Convert the storage limited you want into megabytes. So if you’re going to use 300GB, then the number you have is 307200 since 1GB = 1,024MB.
  2. Run Terminal (you can search for it using Spotlight at the top right corner). Type in this command, then press Enter:

sudo defaults write /Library/Preferences/com.apple.TimeMachine MaxSize 307200

You’ll be likely prompted to enter your account’s password, so do that and press Enter again. And that’s it! Going forward, Time Machine on that Mac will automatically delete old backups to make sure it uses no more than 300GB.

If you want to revert to the default value (no limit), run this command:

sudo defaults delete /Library/Preferences/com.apple.TimeMachine MaxSize

Limit Time Machine backup size in all versions of macOS

If you run the latest macOS (10.13 Mojave or newer), the command above won’t take effect. Instead, you’ll need to limit the storage space at the destination side, be it the external drive you plug directly into your Mac, or a Time Machine-supported NAS server.

By the way, since you make changes to the backup destination, this method will work on all macOS versions. But it does take a bit more work.

Limit Time Machine backup size of an external drive

The idea here is to create a separate partition on the external drive and use that partition exclusively for Time Machine backup. For that, you turn a single hardware drive into two different volumes (or logical disks), and use one for Time Machine.

READ NOW:  How to Turn your USB-enabled Wi-Fi Router into a Time Capsule

Note: Doing this will erase all content of the drive, so make sure you’re OK with that.

Here are the steps:

Run Disk Utility and choose Partition.
[media-credit id=”2″ align=”aligncenter” width=”1752″][/media-credit] Run Disk Utility and choose Partition.

1. Connect the external drive you want to use for Time Machine to your Mac and call up Disk Utility (you can find it using Spotlight). In Disk Utility, select the drive, then click on Partition.


Select Name, Format, and Size for the new Partition.
Select Name, Format, and Size for the new Partition.

2. Click on the Plus (+) to add another partition to the drive, then pick the Name, Format, and Size for the new partition. (For this example, I named the new partition Time Machine, used Mac OS Extended (Journaled) as the format and 300GB as its size.) Then click on Apply.

By the way, if you’re curious as to what file format to use. Here’s the breakdown:

  • APFS only works with Sierra (10.12) or later.
  • Case sensitive means files of the same name but different letter cases (i.e., MyFile.txt vs. myfile.txt) exist as two separate files.
  • Encrypted means data stored on the drive can be encrypted, use this if you intend to store sensitive data on the drive. The catch is if you forget the password, you’ll lose the data.
  • MacOS Extended Journaled (a.k.a HFS+) works with all Mac OS versions and will not work with Windows.
  • exFAT works with both Windows and Mac but does not support Time Machine backup.
  • MS-DOS (FAT) is an ancient file system, and generally, you shouldn’t use it.

Confirm the partitioning.
[media-credit id=”2″ align=”aligncenter” width=”1762″][/media-credit] Confirm the partitioning.

3. Confirm the action by click on Partition, the drive will then have two partitions, one of them is 300GB, the other has the rest of the drive’s storage space.


Select the newly created partition as the backup destination.
Select the newly created partition as the backup destination.

4. Run Time Machine (again, you can use Spotlight to call it up) and use the newly created partition as the backup destination.

And that’s it! You now can use the other partition for file storage; Time Machine will never touch it. By the way, if you use a Time Machine-supported router, such as the Asus RT-AC86U, this method works, too.

Limit Time Machine backup size on a NAS server

This part depends on the NAS you use. Similarly, you can create a separate volume and use it exclusively for Time Machine. Some servers also allow for setting a storage limit (quota) for an existing shared folder.

You can easily set a quote for a share folder in a Synology NAS server.
You can easily set a quote for a shared folder in a Synology NAS server.

If you happen to use a Synology NAS server, like the DS1618+ or the DS1019+, which I would recommend above servers from any other vendors, you can easily do this by editing a shared folder within the Control Panel. Keep in mind, though, that folder share quota is only available when you use the NAS with the btrfs file system.

Dong’s note: This post was originally published on Mar 21, 2018, and has been updated.

9 thoughts on “Here’s How to Keep Time Machine’s Backup Under Control”

  1. USB external hard drives are now huge and cheap. Just get yourself a 4TB external hard drive and let Timemachine do its thing.

    Reply
    • Jonny, I think it depends on what you intend to use the TM backup for. For me, I want the backup mostly just to restore my computer from in case of failure, or to install onto a brand new computer. And I’ve also started noticing my backups slowing to a crawl as the backup size increases (“Cleaning Up” takes forever). So I’ve decided to start limiting the TM backup size just to keep it streamlined.

      Then, with a NAS or even a cloud-based service (perhaps NAS-to-NAS?) I plan on doing more long-term backups of the more critical files using something like Synology’s Cloud Station Backup.

      Reply
  2. Yes, very informative. I had a RAID server 9T drives and well when I hired movers apparently it got lost. I should have kept it in the carl..I will never get over it. Anyway, Im using time machine with a 2T drive. My question is, when you limit time machine I am assuming it starts overwriting or does it remove the oldest files or does it stop? Im assuming the partition for Time machine when its limit is reached it will back up the most recent and remove the oldest files.

    Is that true?????????

    Reply
  3. Thanks for the response. FYI … I’m backup up to a NAS (Synology DS216+) and use TimeMachineEditor to limit the number of backups taken by Time Machine.

    Reply
    • On a Synology NAS, you can just limit the share folder size, Erik. Just “Enable Share folder quota” for the share you use for Time Machine. Or you can create a separate volume. For the former, though, make sure you use btrfs file system (which you should anyway.)

      Reply

Leave a comment below. (Subject to approval. No spam or profanity, please!)