src=/root/testdir/d
dest=/tmp/
destIp=localhost
#destIp=root@localhost
/usr/bin/rsync --delay-updates -F --compress --archive --rsh="/usr/bin/ssh -S none -o Port=22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --chmod=Fu+r,g+r,o+r --out-format="<<CHANGED>>%i %n%L" $src $destIp:$dest
网友评论