[root@jsb~]# rsync -avH --progress '-e ssh -p 2222' root@192.168.1.3:/etc/passwd ./
receiving file list ...
1 file to consider
passwd
1846 100% 1.76MB/s 0:00:00 (xfer#1, to-check=0/1)
sent 42 bytes received 1945 bytes 794.80 bytes/sec
total size is 1846 speedup is 0.93
本文通过一个具体的示例,展示了如何使用rsync命令进行远程文件同步。包括命令参数的详细解释,如-avH等选项的作用,以及通过SSH进行端口转发的过程。实测结果显示了文件传输的速度和效率。

被折叠的 条评论
为什么被折叠?



