rsync -av --include="*/" --include="*.php" --exclude="*" /www/web/ /www/test/
本文介绍了一个具体的rsync命令实例,展示了如何使用rsync同步特定类型的文件(如PHP文件),并排除其他文件。通过该示例,读者可以了解到rsync命令中包含与排除模式的具体用法。
rsync -av --include="*/" --include="*.php" --exclude="*" /www/web/ /www/test/
3052

被折叠的 条评论
为什么被折叠?