Skip to content

Instantly share code, notes, and snippets.

@kanguki
Forked from dwallraff/nc_tar_pipe.sh
Created March 3, 2022 02:51
Show Gist options
  • Save kanguki/5da60213dbb2dd045de4e2e68c304215 to your computer and use it in GitHub Desktop.
Save kanguki/5da60213dbb2dd045de4e2e68c304215 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