在同步2个netware服务器时,什么可能导致rsync错误没有这样的文件或目录(2)?

时间:2014-05-26 10:33:06

标签: rsync

我有这个同步2个netware FS卷的rsync命令。我通过novell客户端登录到netware,在源服务器和目标服务器中都具有读/写/执行/文件扫描/访问控制权限。

命令是

   rsync -r -L -H -g -o -p -t -a --stats --human-readable --itemize-changes --verbose --log-format="[%t] [%i] (Last Modified: %M) (bytes: %-10l) %-100n" --log-file=/var/log/ram_sys1/$FILENAME /root/Desktop/H/ /root/Desktop/T/

并且输出有这些类型的错误,但文件夹实际上存在于源中(可浏览)

2014/05/26 18:11:29 [14987] file has vanished: "/root/Desktop/H/USERS/Compliance/Common/Audit/SC audit/2012/Others/IML/2011"
2014/05/26 18:11:29 [14987] file has vanished: "/root/Desktop/H/USERS/Compliance/Common/Audit/SC audit/2012/Others/IML/2012"
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Audit/SC audit/2012/Others/IML/2010" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Audit/SC audit/2012/Preliminary Examination Findings" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Audit/SC audit/2012/Response to SC Report" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Audit/SC audit/2014" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Breach Record" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Briefing" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Capricorn" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Compliance Plan & Programs" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Compliance Review" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Compliance Test" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Conflict of Interest" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Disaster Recovery Test" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/New folder" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Nomination of Directors and Rating Committee Members" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Personal Investment" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Policies & Guidelines" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Rating Committee" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Registration" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Reports" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Risk Management" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Scanned letters" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/Survey" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Common/TOR" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Elyse" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/Sharon" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Compliance/ZAABA" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Data&Analytics" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Insurance" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/RAs" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: opendir "/root/Desktop/H/USERS/Research" failed: No such file or directory (2)
2014/05/26 18:11:29 [14987] rsync: failed to set times on "/root/Desktop/T/.": Permission denied (13)

这可能是由网络问题引起的吗?

感谢任何反馈。

编辑:如果我对这些文件夹运行自定义作业,它会给我相同的错误,除非我在源和目标路径周围放置单引号。

如果我在原始脚本中使用-R选项并且只定义没有空格的父文件夹,那么我是否还需要使用单引号来保证父文件下的子文件夹能够正确找到?

1 个答案:

答案 0 :(得分:0)

  

这可能是由网络问题引起的吗?

极不可能。

(如果)错误是可重现的,并遵循您所描述的网络独立模式。

  

失败:没有这样的文件或目录(2)

当您告诉rsync同步未指向目标的符号链接并使用" -L"时会发生这种情况。

同一错误消息可能还有其他原因。我只是提到"链接"除了"报价"以及指向另一个方向的案例情况下。

此外,示例输出中的某些文件名称中没有空格但产生相同的错误。