如果我有以下目录结构:
foo/ foo.txt bar/ foo/ hum.txt
如何在不排除bar/foo情况下排除顶层foo目录? 当我运行:
bar/foo
foo
rsync --exclude-from exclude-file ...
exclude-file的内容仅仅是:
exclude-file
两个目录都被排除。
好的,答案是非常明显的。 exclude-file应该写为:
/foo