Created
April 22, 2013 10:55
-
-
Save gka/5433916 to your computer and use it in GitHub Desktop.
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
# This will send the entire www.example.com folder over to the home folder on | |
# your target server in compressed form over and encrypted connection. | |
tar czf - www.example.com/ | ssh joebloggs@otherserver.com tar xzf - -C ~/ | |
# If you need to get a directory from a server (you must to have an account on it) do such way: | |
ssh username@from_server "tar czf - directory_to_get" | tar xzvf - -C path_where_to_put |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment