Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/76407-solved-webdav/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/76407-solved-webdav/#findComment-386911
Share on other sites

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

 

 

Link to comment
https://forums.phpfreaks.com/topic/76407-solved-webdav/#findComment-386928
Share on other sites

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?

 

Link to comment
https://forums.phpfreaks.com/topic/76407-solved-webdav/#findComment-386933
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/76407-solved-webdav/#findComment-386941
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.