加delete是把对面的目录删除和主目录保持一致
rsync -avu --progress --delete /opt/atlassian/confluence/ root@10.100.5.49:/opt/atlassian/confluence/
rsync -avu --progress --delete /data/atlassian/application-data/ root@10.100.5.49:/data/atlassian/application-data/
增量不要加delete
rsync -avuz --progress /opt/atlassian/confluence/ root@10.100.5.49:/opt/atlassian/confluence/
rsync -avuz --progress /data/atlassian/application-data/ root@10.100.5.49:/data/atlassian/application-data/
网友评论