How large a disk for time machine?

I have 620 GB of files to be backed up by Time Machine. I have allocated a 2 TB external disk to handle this. This should be more than enough for the 'double the source' that I have seen recommended. But I get messages to say that Time Machine has run out of space: "The backup disk needs 864.88 GB for the backup but only 633.03 GB are available. Select a larger backup disk or make the backup smaller by excluding files."

But the backup process already has taken up 1.3 TB for backups. How come it cannot delete some of the older versions of the live files?

I have been advised to enlarge the backup space to 4TB. This is over six times the size of the current set of files being backed up. Something seems to have gone wrong with the Time machine algorithm.


macOS10.14.6 on MP2013

Mac Pro

Posted on Dec 13, 2019 10:13 AM

Reply

Similar questions

4 replies

Dec 14, 2019 4:25 PM in response to Tim Powys-Lybbe

dwb's comments are 100% correct, but your subsequent capacity / free space requirements appear to conflict with what you're expecting.


First TimeMachine backup Nov 9 2018 (since I last deleted the backup file as it was too big)


I understand you perceived a need to create more space on the backup volume, but you may have complicated matters with that. If you manually delete TM backup files from the backup volume you run the risk of corrupting the entire backup, making it useless. You might need to completely erase the backup volume to fix it, but hold off on that for now until extracting some TM log excerpts which I'll explain presently.


I have seen the same thing happening on a portable Mac where the Time Machine file just goes on growing and growing on the backup server. But this has not been such a problem as not much is stored on the portable.


That should never happen either. Time Machine will create Local Snapshots only to the extent there's room for them, after which it ceases to create them. They're also purgeable, meaning if you want TM to work you should never manually delete them. If you need to download large files that begin to encroach upon a startup disk's capacity, they're on the chopping block—along with many other files macOS will delete (log files, cache files, etc) in increasingly desperate attempts to ensure a startup volume never becomes hamstrung due to lack of space.


  • Apple says Local Snapshots are used only if the source volume has "plenty of free space". My empirical data concluded it will use them until the source reaches 80% capacity, but to my knowledge they don't document that value anywhere.


Although I see manual deletion of local snapshots commonly recommended, I have repeatedly tried and failed to make Time Machine malfunction by deliberately filling a source volume to capacity by manually filling it with random data. That experience, and the fact TM requires Local Snaphots for it to work makes me reluctant to recommend interfering with them.


I have never, ever seen Time Machine fixed by messing with it. I have only seen Time Machine work by leaving it alone. Nevertheless altering or otherwise interfering with TM's normal activity seems to a popular pastime, which only results in breaking it. Hence my recommendation to erase the backup drive and start over.


Extracting Time Machine log activity may or may not yield useful data, but if you are interested those instructions follow below.


---


To extract potentially relevant Time Machine activity from log consider using the following shell script:


clear; printf '\e[3J' && log show --predicate 'subsystem == "com.apple.TimeMachine"' --info --last 8h | grep -F 'eMac' | grep -Fv 'etat' | awk -F']' '{print substr($0,1,19), $NF}'


Copy (triple-click to select the entire line) and Paste that line in a Terminal window. The Terminal app is in your Mac's Utilities folder.


It extracts Time Machine activity logged during the previous 8 hours. To change that time period change that value. If Time Machine is running there is no need to interrupt TM to use it. Be advised that log is fairly resource-intensive, and if you are using a portable Mac it will consume a lot of battery power as it runs.


log will need a few moments to extract the Time Machine log data. Wait for it to finish. It is normal for its results to include various "errors" and "failures" and none of them are necessarily an indication of anything wrong.


Copy (Edit > Select All and then Copy) and Paste that Terminal window's contents in a reply to this Discussion. macOS's Unified Logging System is privacy-conscious but if you see anything you consider personal, please omit or obscure it yourself before posting.


Quit the Terminal app when you're finished with it.

Dec 14, 2019 12:04 PM in response to Tim Powys-Lybbe

The normal behavior of TimeMachine is to remove the oldest backup snapshots when not enough room to create a current backup remains on the current volume that Time Machine is using for backups. There is some sort of error happening that is preventing TM from behaving normally I'm guessing. You can manually remove the oldest snapshot using the "tmutil" Terminal command (do a "man tmutil" in a Terminal window for complete info). You can list all the current snapshots with:


tmutil listbackups


You can remove a single snapshot with the next command (you will be prompted for your password because of the "sudo" command and it will not be echoed to the Terminal window so type it carefully):


sudo tmutil delete snapshot-name


change "snapshot-name" to the fully qualified path of the snapshot -- something like /Volumes/TimeMachine-name/Backups.backupdb/MacintoshHD-name/YYYY-MM-DD-HHMMSS/


See the article at https://macpaw.com/how-to/delete-time-machine-backups for more details.


Good luck...


Dec 13, 2019 11:18 AM in response to Tim Powys-Lybbe

TimeMachine does delete old backups to free up space with one major exception. The TimeMachine backup must keep every file that is on your computer right now. But it cannot pick and choose files to delete, it can only delete an entire backup session. If TimeMachine is unable to delete enough incremental backups and keep everything that is currently on the computer, it will not delete anything. This could be the issue.

Dec 13, 2019 4:27 PM in response to dwb

I can understand what you say but the figures make it difficult to follow. Let's list them:


Capacity of backup disk 2 TB

Raw size of all files being backed up 562.65 GB

Total space occupied by all backups 1.37 TB

First TimeMachine backup Nov 9 2018 (since I last deleted the backup file as it was too big)

Free space on disk 633.03 GB

Space stated needed for next backup 864.88 GB


So there are all the backup sessions from 9 Nov to yesterday that can be deleted. It is quite likely that during the day every backup session has at least one file that has been updated. So does this mean that none of those daytime backups can be deleted? And could this account for the (1.37 - 0.562) = 0.808 TB of disk space that is surplus to the core "Estimated size of full backup: 562.65 GB" that is the mandatory and non-deletable amount?


I have seen the same thing happening on a portable Mac where the Time Machine file just goes on growing and growing on the backup server. But this has not been such a problem as not much is stored on the portable.


I begin to get the feeling that the Time Machine file is just going to go on growing and growing. As long as I update one file every hour that backup session cannot be deleted. Of have I misunderstood it?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How large a disk for time machine?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.