Skip to content

Instantly share code, notes, and snippets.

@kelnos
Created November 5, 2012 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kelnos/4020031 to your computer and use it in GitHub Desktop.
Save kelnos/4020031 to your computer and use it in GitHub Desktop.
remote file copy w/o scp
# from memory; could have errors
remote-host $ tar czf - * | ssh local-host "mkdir destdir && cd destdir && tar xzf -"
# or if you can't make connections remote-host to local-host:
local-host $ mkdir destdir && cd destdir && ssh remote-host "cd srcdir && tar czf - *" | tar xzf -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment