Skip to content

Instantly share code, notes, and snippets.

@dwallraff
Last active March 3, 2022 02:51
Show Gist options
  • Save dwallraff/ee0593f5a44097b3299776b31a447046 to your computer and use it in GitHub Desktop.
Save dwallraff/ee0593f5a44097b3299776b31a447046 to your computer and use it in GitHub Desktop.
Netcat Tar Pipe
## -z is optional. Traffic sent will be less, but CPU overhead will be higher.
# On the receiving end do:
nc -vl 12345 | tar xzv
# And on the sending end do:
tar czvf - * | nc -v <remote_host> 12345
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment