Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 26481  / 3 Years ago, mon, september 27, 2021, 12:42:04

When I attempt to copy a folder from a webdav server to a local disk using Nautilus, it copies what appeas to be a manifest file (xml with the directory listing etc..). With cadaver I get an empty file.



I would like to be able to recursively copy a whole directory tree. Does anyone know how I can do this?



ps: I'm using Ubuntu 11.04 with Nautilus 2.32.2.1 and Cadaver 0.23.3


More From » 11.04

 Answers
6

This answer summarises suggestions given in comments by @Ocaso and @Rinzwind.



I used this:



wget -r -nH -np --cut-dirs=1 --no-check-certificate -U Mozilla --user={uname} 
--password={pwd} https://my-host/my-webdav-dir/my-dir-in-webdav


Not perfect (downloaded lots of 'index.html?C=M;O=D' and the like) but otherwise worked ok.



The "-r" downloads recursively, following links.



The "-np" prevents ascending to parent directories (else you download the whole website!).



The "-nH" prevents creating a directory called "my-host" (which I didn't want).



The "--cut-dirs=1" prevents creating a directory called "my-webdav-dir".



The "--no-check-certificate" is because I'm using a self-signed certificate on the webdav server (I'm also forcing https).



The "-U Mozilla" sets the user agent in the http request to "Mozilla" - my webdav server didn't actually need this, but I've included it anyway.


[#40392] Tuesday, September 28, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
corsee

Total Points: 479
Total Questions: 122
Total Answers: 106

Location: Barbados
Member since Sat, May 9, 2020
4 Years ago
;