Created
March 21, 2014 03:22
-
-
Save nad2000/9678890 to your computer and use it in GitHub Desktop.
Fast file copy using NC #nc #netcat #transfer #copy
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
# 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