Created
October 28, 2012 00:09
-
-
Save jpf/3966971 to your computer and use it in GitHub Desktop.
Copy files between hosts using only copy and paste
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# clear your terminal scroll buffer (Cmd-K on Mac OS X) | |
remote-host$ tar czf - * | uuencode file.tgz | |
# copy all the output | |
local-host$ cat > uu | |
# paste | |
# Ctrl+D | |
## On Mac OSX you can use "pbpaste > uu" | |
local-host$ uudecode uu | |
local-host$ tar xzf file.tgz | |
## I've actually used this in production. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment