1、sudo rsync -zavP --exclude=/.git/ --exclude=.env --exclude=web/index.php --password-file=/usr/local/rsync/rsync.scrt /test/ apache@192.168.10.96::apache/data/www/vhosts/wos-hrs.wondershare.cn/httpdocs/
rsync会把/test/的权限赋给/httpdocs/
1、sudo rsync -zavP --exclude=/.git/ --exclude=.env --exclude=web/index.php --password-file=/usr/local/rsync/rsync.scrt /test/ apache@192.168.10.96::apache/data/www/vhosts/wos-hrs.wondershare.cn/httpdocs/
rsync会把/test/的权限赋给/httpdocs/
转载于:https://www.cnblogs.com/ai594ai/p/7194855.html