Photo of Torben Hansen

A TechBlog by Torben Hansen


Freelance Full Stack Web Developer located in Germany.
I create web applications mainly using TYPO3, PHP, Python and JavaScript.
Home Archive Tags

How to efficiently transfer a huge amount of files from one MacBook to another

As a web developer working on various projects, I often deal with project sources that include tens or even hundreds of thousands of files. This happens because modern development environments, especially those using Node.js or PHP, rely on extensive package ecosystems. These packages, installed from source, often contain a massive number of files—ranging from code libraries and dependencies to metadata and configuration files.

Managing and transferring such large file collections can become a timeconsuming task, especially when you get a new MacBook and have to move files from the old MacBook to the new one. In this article, I’ll share the most efficient method I’ve found to move these huge amounts of files between MacBooks without wasting hours or days for the transfer projess.

Traditional approaches are timeconsuming

Transferring files between MacBooks can be done using e.g. AirDrop, Migration Assistant, direct Thunderbolt connection, or network share. While these methods are convenient for smaller datasets, they become inefficient when handling millions of files. The sheer number of individual file operations leads to slow performance, making these options less practical for large-scale transfers.

A more effective approach involves creating an uncompressed tar archive (tarball) of the files, which can significantly expedite the transfer process.

Why Use an Uncompressed Tarball?

Creating an uncompressed tarball consolidates numerous files into a single archive without the overhead of compression. This method offers several advantages:

Steps to create and transfer an uncompressed Tarball

cd /path/to/parent_directory
tar -cvf archive_name.tar directory_name
tar -xvf archive_name.tar

Considerations

By following this method, you can achieve a more efficient and streamlined transfer of a large number of files between MacBooks, minimizing the time associated with traditional file transfer methods.