Need a transfer speed which is 100+ better than scp or rsync, just follow this
dd bs=16M if=/root/netcattest/file.txt |bzip2 -c| pv -b | nc 185.46.120.66 19000
nc -l 19000|bzip2 -d|dd bs=16M of=/home/mhtmi1ky1gpgg9py/netcattest/file.txt
-------------------------------------
Server(sender)
$tar -cvf - dir_name | nc -l 1567
Client (Receiver)
$nc -n 172.31.100.7 1567 | tar -xvf -
-------------------------------
sender
tar -cvf - netcattest | bzip2 -z | nc -l 1567
receiver
nc -n 72.34.47.10 1567 | bzip2 -d | tar -xvf -
dd bs=16M if=/root/netcattest/file.txt |bzip2 -c| pv -b | nc 185.46.120.66 19000
nc -l 19000|bzip2 -d|dd bs=16M of=/home/mhtmi1ky1gpgg9py/netcattest/file.txt
-------------------------------------
Server(sender)
$tar -cvf - dir_name | nc -l 1567
Client (Receiver)
$nc -n 172.31.100.7 1567 | tar -xvf -
-------------------------------
sender
tar -cvf - netcattest | bzip2 -z | nc -l 1567
receiver
nc -n 72.34.47.10 1567 | bzip2 -d | tar -xvf -
Comments
Post a Comment