In a previous team where we dealt with shipping around lots of ZFS snapshots (where both the performance of reading from disk can vary based on the ARC and filesystem metadata) and occasionally using VPN tunnels on public internet links, pv to get even larger pipe buffers than standard was often a huge performance equalizer. Readers read as fast as they can, writers write as fast as they can, and the buffer massages any variability in the middle.
(Those extra mechanisms are usually beneficial in WAN scenarios as well, except when you have high speed links, in which case blasting the full files may be faster than doing the IO to figure out comparisons and skip transfer.)
Edited: adjusted confused punctuation.
dd if=filename | ssh hostname dd of=remote_filename
Quite a bitSomehow this worked:
dd if=foo | adb shell dd of=/storage/.../fooA example the C standard could stand to learn from, then.
cat file | ssh user@host 'cat >file'
ssh user@host cat file | cat >file
?PS.
I use mc to copy: F5, Enter.