rsync快速简便:
rsync -av --progress sourcefolder /destinationfolder --exclude thefoldertoexclude
您可以使用
--exclude多次。
rsync -av --progress sourcefolder /destinationfolder --exclude thefoldertoexclude --exclude anotherfoldertoexclude
请注意, option thefoldertoexclude
之后的dir--exclude
相对于sourcefolder
,即sourcefolder/thefoldertoexclude
。
您也可以添加
-n空运行以查看执行实际操作之前要复制的内容,如果一切正常,请
-n从命令行中删除。



