AV1611 Posted November 7, 2007 Share Posted November 7, 2007 I set up a folder with webdav on my F7 LAMP Server. I can log in and manipulate files with cadaver no problem. Authentication was a snap. How/Is there a way to copy files form client to webdav share directly? I can do dav:/webdav/> cp file1 file2 and it works, but how can I copy from client filesystem to webdav share? Thanks. Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted November 7, 2007 Share Posted November 7, 2007 Did you check the man page? It's in there. It's also on Google searching for "cp copy directory" Here you go: http://www.unet.univie.ac.at/aix/cmds/aixcmds1/cp.htm To Copy a Directory to a Directory { cp | copy } [ -f ] [ -h ] [ -i ] [ -p ] [ -- ] { -r | -R } SourceDirectory ... TargetDirectory Quote Link to comment Share on other sites More sharing options...
AV1611 Posted November 7, 2007 Author Share Posted November 7, 2007 That article doesn't discuss what I asked. How do you copy a file from a client machine to a remote webdav share? as I stated before, cp file1 file2 doesn't work, as both files are relative to the remote server I want to copy /home/file.txt from the client machine to file.txt on the webdav server. if I do cp /home/file.txt file.txt it tried to do cp {remoteserveraddress}/home/file.txt {remoteserveraddress}/file.txt Quote Link to comment Share on other sites More sharing options...
AV1611 Posted November 7, 2007 Author Share Posted November 7, 2007 I did find this, and think I should be able to find my answer. http://linux.die.net/man/1/cadaver The answer to my question is: put /path/to/localfile/file.txt file.txt cp is for remote to remote. It's basically just HTTP Cadaver is command line, which is fine, but Does anyone know of a GUI (KDE or Gnome) webdav util? Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted November 7, 2007 Share Posted November 7, 2007 I'm retarded; I thought you were just trying to recursively copy a directory from one location to another. Here's what I found: http://rep.oio.dk/oio%20services/WebDAV%20User%20guide_0.6__1.0_.pdf Linux using KDE (2.2 or higher) As of KDE 2.2 it is possible to access WebDAV using the Konqueror. Replace “http” with “WebDAV” in the URL. Thus use the URL “webdav://rep.oio.dk/” and enter a valid user name and password when prompted. This should give you access to the Repository WebDAV. When connected to the Repository WebDAV uploading and downloading files is no different from usual file management. Refer to www.webdav.org for more details and use of other clients using Linux. Maybe that will work in other browsers as well, or maybe you have konqueror already installed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.