Created
November 5, 2012 20:05
-
-
Save kelnos/4020031 to your computer and use it in GitHub Desktop.
remote file copy w/o scp
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
# 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