Skip to content

Instantly share code, notes, and snippets.

@nad2000
Created March 21, 2014 03:22
Show Gist options
  • Save nad2000/9678890 to your computer and use it in GitHub Desktop.
Save nad2000/9678890 to your computer and use it in GitHub Desktop.
Fast file copy using NC #nc #netcat #transfer #copy
# on the source (appbuild-vm4):
nc -l 7879 < /data/Traces/telstra_nexus.erf
# on the target
nc appbuild-vm4 7879 > /data/telstra_nexus.erf
## I have tried with compression, but with fast network it performed poorer (in my case with 11GB file 15 min vs. 1.5 min):
# on the source:
time pbzip2 -c telstra_nexus.erf | nc -l 7879
# on the target:
time nc 192.168.132.113 7879 | bzip2 -d -c > /data/telstra_nexus.erf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment