Return to Snippet

Revision: 49551
at July 25, 2011 02:01 by 4fthawaiian


Initial Code
ssh SERVER_FOO "tar czf - DIR_FOO 2> /dev/null" | ssh SERVER_BAR "cat > /tmp/FILES_FROM_FOO-data.tgz"

Initial URL


Initial Description
rsync doesn't like to copy files from host to host. This is sort of the "old school" unix way - tar everything to a pipe, then pipe everything out. It's how we used to copy directories remotely before we had tools like rsync. I'm definitely open to suggestions on how to improve this (even a fix for rsync, if I'm wrong)

Initial Title
relay files via tar+ssh+cat

Initial Tags
ssh

Initial Language
Bash