rsync同步,和上传
同步到本地 /home/www2/(本地路径) xx.xx.xx.xx(ip) www(rsyncd的配置文件里的模块)
rsync -aP --delete hening@xxx.xx.xx.xx::www /home/www2/ --password-file=/etc/rsync.pas
上传文件 /home/www (本地路径) root(用户名) /tmp(复制到远程主机的路径) 需要对方主机的root密码
rsync -aP --delete /home/www root@xx.xx.xx.xx:/tmp