webdav文件夹上的rsync不起作用

时间:2014-09-18 21:11:54

标签: rsync webdav

我尝试在PC上的webdav文件夹(盒子帐户)上同步本地文件夹的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文件夹中,有所有目录,但没有任何文件。

1 个答案:

答案 0 :(得分:2)

这很可能是由于归档模式(-a),因为WebDAV协议不支持更新文件权限。