常用参数
rsync -avz --bwlimit=xxx (同步数据是限制带宽)
rsync基本格式
rsync [OPTION]… SRC DEST
rsync [OPTION]… SRC [USER@]HOST:DEST
rsync [OPTION]… [USER@]HOST:SRC DEST
rsync [OPTION]… [USER@]HOST::SRC DEST
rsync [OPTION]… SRC [USER@]HOST::DEST
1 本地rsync
将/etc/passwd 文件同步到 /tmp下 并改命为passwd.txt
rsync -avz /etc/passwd /tmp/passwd.txt
sending incremental file list
passwd
sent 430 bytes received 31 bytes 922.00 bytes/sec
total size is 856 speedup is 1.86