Mac – Truncated transfer of Time Machine backup contents to new flash drive

time-machine

I'm trying to transfer a 60GB folder from a Time Machine backup of a dead MBP to my 128GB USB-C flash drive (ExFAT). Unfortunately, whenever the transfer is almost complete, an alert informs me that my flash drive is 'full' and then truncates the transfer. This is weird, because my flash drive is newly formatted (no .trashes), and the size of the folder to be transferred is clearly much smaller than the maximum capacity of the flash drive. The folder ends up being only partially transferred. Furthermore, I start having trouble mounting the flash drive after the truncated transfer; the drive only mounts after I kill fsck.

All of the sub-folders of my 60GB folder can be transferred out individually – quickly and without any problems – except for one folder (projects). This folder contains ~400,000 items, primarily in node_modules folders. I believe that the large number of items might be causing the transfer to fail, but I can't figure out why.


My questions:

  1. What am I doing wrong and how should I go about transferring my folders?
  2. Why does my newly formatted 128GB flash drive show that it is full when it only contains a 60GB folder? Does this have anything to do with the large number of files?

Best Answer

Time Machine uses hard links to link to multiple copies of the exact same data. Hard links are one of many features that exFAT does not support.

If you were to copy multiple files that link to the same data to an exFAT drive, it would be duplicated for each hard link, potentially making the resulting copy much larger than the original.

To avoid these problems, you should probably only ever copy Time Machine backups to an HFS+ or APFS drive. If reformatting the external drive is not an option, you might consider creating a disk image of the backup directory and save it to the external drive (via Disk Utility or the command line).