Created
November 28, 2024 12:55
-
-
Save romiras/9a2c2c6e177178851a83b66ca89c0b37 to your computer and use it in GitHub Desktop.
send/receive directory over network as TAR via SSH
This file contains hidden or 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
# send | |
tar czf - source_directory/ | ssh [email protected] tar xzf - -C ~/ | |
# receive | |
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