有没有办法 rsync 只比较文件名(而不是文件大小、修改日期或任何其他标准)的两个目录?
我正在使用 rsynccrypto 备份一些用户目录。我想从加密中排除一些子目录。我读到,执行此操作的最佳方法是将 find 的输出通过管道传输到 rsynccrypto。
这是一个排除名为 tmp 的目录的 find 命令:
find ~/Documents -type d -not \( -name tmp -prune \)
Run Code Online (Sandbox Code Playgroud)
我有六七个这样的目录需要排除。有没有一种简单的方法可以让我在 find 命令中枚举所有这些?