Linux 在rsync中使用include exclude时删除符号链接
我需要使用rsync将一些文件从一个目录同步到另一个目录Linux 在rsync中使用include exclude时删除符号链接,linux,rsync,Linux,Rsync,我需要使用rsync将一些文件从一个目录同步到另一个目录 rsync -rvl --include "*/" --include='file.qcow2' --include='file.qcow2' --exclude='*' --exclude='lost+found' /dir/ /dir/ || echo "error: rsync of images failed on $svr" 包含的文件位于一个文件夹下,该文件夹中有一个指向该文件的符号链
rsync -rvl --include "*/" --include='file.qcow2' --include='file.qcow2' --exclude='*' --exclude='lost+found' /dir/ /dir/ || echo "error: rsync of images failed on $svr"
包含的文件位于一个文件夹下,该文件夹中有一个指向该文件的符号链接。包含文件夹和文件,但不包含符号链接。
如果删除“排除”,则会复制符号链接,但也会复制我不想复制的所有其他文件。
是否有任何方法可以复制文件和符号链接,同时排除所有其他文件?
多谢各位