News for hackers. Stuff that matters.
Re:Useful things you can make SSH do by daten on Wednesday July 21, 2010 @06:14PM (#1536734)
You can also just transfer it with:

$ scp -r user@host:/path /path

Re:Useful things you can make SSH do by mjschultz on Wednesday July 21, 2010 @06:22PM (#1536755)
I usually do use scp, but it becomes problematic when there are symlinks hanging around. scp just follows them and ends up copying the same file many times.

This is especially bad if you have a directory structure that references a higher-level directory.

Re:Useful things you can make SSH do by pornel on Wednesday July 21, 2010 @07:10PM (#1536841)
Use rsync then. It can copy symlinks and even recreate hardlinks.
Re:Useful things you can make SSH do by jerf on Thursday July 22, 2010 @11:42AM (#1538447)
In my experience, using rsync to do just a raw copy is not faster than the ssh+tar approach. rsync wants to poke around and optimize, and that's incredibly awesome, except when there is absolutely no chance of optimizing at all, in which case it's just dead weight. I don't know of anything that can beat ssh+tar (possibly with the encryption tuned cheaper, as mentioned above); it especially blows raw scp out of the water for lots of small files.
Re:Useful things you can make SSH do by biafra on Sunday August 22, 2010 @05:38PM (#1625329)
scp is a lot slower than the tar-pipe with many small files.