I have an "interesting" problem related to disks with local copies of web app I'm developing. Have been using MAMP on my Mac for development, transferring files to a leased server with sftp as I go for the past 5 years. The entire site consists of almost 142 million individual files (~2.8tb) on an APFS-formatted 4tb Samsung T7 (with a CCC backup on another T7).
So far, so good, everything works really well. But now I want to get away from MAMP and have setup a home linux server. Got another 4tb T7, formatted as exFAT and am cloning one of the APFS disks to it. But this really isn't cutting it; after 46 hours, it's only copied 23 million files (530gb). More concerning, the Finder only reports about 800 gb of free space on the target exFAT disk. I did an earlier test trying to clone a 1tb disk with a subset of my site to a 2tb disk with CCC and it stopped with a "disk full" error after awhile. How do you run out of space cloning a 1tb disk to a 2tb disk? Looks like I'm headed for the same problem with the 4tb disk.
So, what's the best way to copy 142 million files from an APFS disk to an exFAT disk? This CCC clone is so slow, seems like I could sftp the files to the linux box just as quickly. Would rsync be a solution? Could do that with the terminal on the Mac, either directly to the exFAT disk or over the LAN to the linux machine (using gigabit ethernet). Don't really have any experience with that, but it seems like nothing could be any slower than what I'm doing now!
[edit]I stopped the CCC copy, since that was clearly not going to work. But I would like to preserve the files I've already copied before switching to a different method. But the way things stand, there's just not going to be enough space on the disk. Here's the output from df in the terminal. /dev/disk3s1 is the source APFS-formatted 4tb T7, /dev/disk4s2 is the destination exFAT-formatted 4tb T7. Any idea what's going on here? I checked, and there are no snapshots
So far, so good, everything works really well. But now I want to get away from MAMP and have setup a home linux server. Got another 4tb T7, formatted as exFAT and am cloning one of the APFS disks to it. But this really isn't cutting it; after 46 hours, it's only copied 23 million files (530gb). More concerning, the Finder only reports about 800 gb of free space on the target exFAT disk. I did an earlier test trying to clone a 1tb disk with a subset of my site to a 2tb disk with CCC and it stopped with a "disk full" error after awhile. How do you run out of space cloning a 1tb disk to a 2tb disk? Looks like I'm headed for the same problem with the 4tb disk.
So, what's the best way to copy 142 million files from an APFS disk to an exFAT disk? This CCC clone is so slow, seems like I could sftp the files to the linux box just as quickly. Would rsync be a solution? Could do that with the terminal on the Mac, either directly to the exFAT disk or over the LAN to the linux machine (using gigabit ethernet). Don't really have any experience with that, but it seems like nothing could be any slower than what I'm doing now!
[edit]I stopped the CCC copy, since that was clearly not going to work. But I would like to preserve the files I've already copied before switching to a different method. But the way things stand, there's just not going to be enough space on the disk. Here's the output from df in the terminal. /dev/disk3s1 is the source APFS-formatted 4tb T7, /dev/disk4s2 is the destination exFAT-formatted 4tb T7. Any idea what's going on here? I checked, and there are no snapshots
Last edited: