【发布时间】:2014-11-13 08:53:51
【问题描述】:
我尝试将我 PC 上本地文件夹的 pdf 文件同步到 webdav 文件夹(box 帐户)上。我使用: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出现-rl