Skip to content

Instantly share code, notes, and snippets.

@romiras
Created November 28, 2024 12:55
Show Gist options
  • Save romiras/9a2c2c6e177178851a83b66ca89c0b37 to your computer and use it in GitHub Desktop.
Save romiras/9a2c2c6e177178851a83b66ca89c0b37 to your computer and use it in GitHub Desktop.
send/receive directory over network as TAR via SSH
# 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