首先在/backup中生成一个128M的大文件
dd if=/dev/zero of=test1 bs=1M count=128
然后限速传输
rsync -avz --bwlimit=10 /backup/ rsync_backup@172.16.1.41::backup/ --password-file=/etc/rsync.password
[root@nfs01 backup]# rsync -avz --bwlimit=10 /backup/ rsync_backup@172.16.1.41::backup/ --password-file=/etc/rsync.password
sending incremental file list
./
test1
sent 130609 bytes received 30 bytes 9009.59 bytes/sec
total size is 134217728 speedup is 1027.39
可以看到传输速度为9009.59byte/sec
--bwlimit=10
参数值的默认单位是KBPS,也就是每秒多少KB
网友评论