I'm copying the Xcode.app from one computer to another using scp and it seems to have copied more than the file size and it's still copying. It 4.94GB (I didn't compress it), but nettop on the destination machine says 7430MB have been copied so far and it hasn't stopped yet. nettop on the source machine doesn't have any activity that corresponds to the copy.
The command I used
scp -rp email@example.com:/Applications/Xcode.app /Applications/
nettop on the destination machine:
ssh.636 7662 MiB 21 MiB 178 KiB 2029 KiB 1044 B tcp4 192.168.16.108:50145<->192.168.16.178:22 en1 Established 7662 MiB 21 MiB 178 KiB 2029 KiB 1044 B 13.53 ms 512 KiB 128 KiB BE
Any ideas why it has copied over 7GB when the file is only 4.94GB? Source and destination machines are iMac and Mac mini, copying over a wifi local network.
Update: Copy finished and when I check Xcode's size on the destination machine it's a whopping 10.07GB. I don't understand how Xcode should have doubled in size during the copy. My only theory is that .app directories are already compressed and that scp uncompresses them.
du -Lto get file size with links followed results in
du: Too many symlinks at.