目標機(172.16.1.125):
nc -l 12345 | tar zxvf -
源機(172.16.1.124):
tar cfz - * | nc 172.16.1.125 12345
rsync --hard-links -ropgt --bwlimit=100000 -v --progress -e "ssh" -o "GSSAPIAuthentication=no" * [email protected]:/data/18252/
說明:
--hard-links:保留硬鏈接
-ropgt:遞歸、保留屬主、權限、組、時間
--bwlimit:限速100M/S
--progress:顯示進度