我试图在 webdav 文件夹(box 帐户)上同步我 PC 上本地文件夹的 pdf 文件。我安装了那个文件夹:davs://dav.box.com/dav
。我在 ubuntu 14.04
rsync -avu --include="*/" --include="*.pdf" --exclude="*" L2/ /run/user/1000/gvfs/dav:host=dav.box.com,ssl=true/dav/Cours/
上面的 rsync 命令在 webdav 文件夹上创建了目录树,但它没有复制任何文件。
我有很多:
rsync: failed to set times on "/run/user/1000/gvfs/dav:host=dav.box.com,ssl=true/dav/Cours/SymCristalline": Operation not supported (95)
rsync: failed to set times on "/run/user/1000/gvfs/dav:host=dav.box.com,ssl=true/dav/Cours/SymCristalline/Cours": Operation not supported (95)
...
然后我得到了我想要同步的文件列表。
SymCristalline/
SymCristalline/TD_2013.pdf
SymCristalline/blanche.pdf
SymCristalline/inter_tables_of_crist__vol_a.pdf
SymCristalline/inter_tables_of_crist__vol_d.pdf
....
然后我得到了很多
rsync: mkstemp "/run/user/1000/gvfs/dav:host=dav.box.com,ssl=true/dav/Cours/SymCristalline/.TD_2013.pdf.tgEY8n" failed: Operation not supported (95)
rsync: mkstemp "/run/user/1000/gvfs/dav:host=dav.box.com,ssl=true/dav/Cours/SymCristalline/.blanche.pdf.tZ2XyK" failed: Operation not supported (95)
....
最后:
sent 93,577,889 bytes received 38,505 bytes 20,577.29 bytes/sec
total size is 93,541,542 speedup is 1.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.0]
最后,在webdav文件夹中,有所有目录,但没有任何文件。
最佳答案
这可能是由于存档模式 (-a
) 造成的,因为 WebDAV 协议(protocol)不支持更新文件权限。
关于webdav 文件夹上的 rsync 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25922436/