我通常rsync -n在做一个实际的rsync. 问题是,我如何自动执行第二次运行以准确重用用 生成的列表--dry-run?
我的意思是,如果我运行rsync -n然后我会模拟rsync会做什么,我的想法是获取该输出,处理它然后以某种方式rsync仅生成--include-from该输出,因此完整列表只需要计算一次。
如果这甚至没有意义,请告诉我。
顺便说一句,我倾向于使用rsync -hva --progress --stats --delete --exclude-from "$EXCLUDEFILE". 如果您对使用哪些选项也有建议,请告诉我。我正在尝试将外部硬盘驱动器(仅包含图像、视频和文档)的内容复制到另一个外部硬盘驱动器。
我试图在 中搜索man find,我想知道发生了什么。
$ man find | grep Like
Like -lname, but the match is case insensitive. This is a GNU
Like -name, but the match is case insensitive.
Like -path, but the match is case insensitive.
Like -regex, but the match is case insensitive.
Like -name, but the contents of the symbolic link are matched
$ man find | grep "\-name"
find / \! -name "*.c" -print
find /usr/src -name CVS -prune -o -depth +6 -print
find …Run Code Online (Sandbox Code Playgroud)