On the destination server:
nc -l 1234 > ubuntu-12.04.1-server-i386.iso
On the source server:
time cat ubuntu-12.04.1-server-i386.iso | nc $DESTINATION_IP 1234
On the source server:
cat >rsyncd.conf <<EOF
#rsyncd.conf
[temp]
path=/var/lib/libvirt/images/
read only = yes
list = yes
use chroot = no
EOF
rsync --config=rsyncd.conf --daemon --no-detach --port=1234#rsyncd.conf
[temp]
path=/var/lib/libvirt/images/
read only = yes
list = yes
use chroot = no
EOF
On the destination server:
time rsync -av --inplace --progress rsync://apollo@192.168.7.167:1234/temp/ubuntu-12.04.1-server-i386.iso ubuntu-12.04.1-server-i386.iso
Update#1:
time cat ubuntu-12.04.1-server-i386.iso | nc 192.168.7.198 1234
real 0m58.130s
user 0m0.072s
sys 0m2.016s
ubuntu-12.04.1-server-i386.iso is 646MB in size which gives a transfer rate of 11.13MB/s which is NOT what I expected from a gigabit connection.
I hope you found the post useful. You can subscribe via email or subscribe via a feed reader to get relevant updates from this blog. Have a nice day.