ssh-xfer: Quickly grabbing files over an existing SSH connection
Posted by: Anonymous
on August 09, 2008 06:11 PM
What really bothers me is that utilities like scp are horribly slow when transfering multiple small files over the network.
Yes I know, the accepted workaround for this is to tar the files before copying them or the more sophisticated way:
$ tar -czf - /some/file | ssh host.name tar -xzf - -C /destination
Now I wonder, is it *that* hard to add a flag to scp that does the above line automatically? I enjoy working with command lines, and I appreciate the flexibility demonstrated by this command, but that doesn't have to come at the cost of ease of use. a simple --use-tar flag in scp would kill no one.