Skip to content

Instantly share code, notes, and snippets.

@jpf
Created October 28, 2012 00:09
Show Gist options
  • Save jpf/3966971 to your computer and use it in GitHub Desktop.
Save jpf/3966971 to your computer and use it in GitHub Desktop.
Copy files between hosts using only copy and paste
# 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