I am trying to copy files from my primary data storage server into an OwnCloud instance. The data storage server has successfully mounted the user's directory on the OwnCLoud server, via webdav. I can copy files from the data server to the OwnCloud server; I can mkdir on OwnCLoud from the data server. However, I cannot recursively copy a directory from the data server. I get, for each directory I am trying to copy:
cannot create directory '/path/to/dir\ with\ spaces\ in\ name': Invalid argument
Here is the command I am using:
cp -R /dir/* /mnt/point/
Both servers are Linux. However, there are windows file and directory names (with spaces) in the directory I am trying to copy. I think that the issue is with the directory name having spaces in it.