Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a mounted WebDAV store, which I am playing around with to try and put together my own pseudo-DropBox set up. However, it seems very slow to upload larger files (my bandwidth graph goes ok for a little bit, then just stops dead for long periods of time).

Has anyone tried this? I'm wondering if the way it gets mounted makes rsync think it's a local drive or something and so may be chattier than it would be if it knew it was a mounted network drive ?

I'm syncing using the following command:

rsync -rv /source/directory/ /mounted/webdav/directory/

This is running using MacOS 10.6, and WebDAV is mounted using the native mounting mechanism.

share|improve this question

Check the man page for

  • --size-only because most webdav implementation do not accept setting modification time

  • --no-whole-file to tell rsync its handling a remote filesystem

  • --inplace having rsync replacing files directly, instead of uploading an then replacing

Btw, I am using another encfs layer to encrypt files on the webdav, and I am quite happy with the performance.

share|improve this answer
How --inplace help? In manual: This option is useful for transferring large files with block-based changes or appended data, and also on systems that are disk bound, not network bound. It can also help keep a copy-on-write filesystem snapshot from diverging the entire contents of a file that only has minor changes. – msa7 Nov 11 '15 at 14:22
My command is sudo mount -t davfs ~/mnt/yd; rsync -avrc --size-only --no-whole-file /home/msa/xranitel/webdav /home/msa/mnt/webdav – msa7 Nov 11 '15 at 14:24

I have tried this on a server for which I have both rsync and WebDAV access to just to see the difference and the rsync over WebDAV method was much slower. Must just be a protocol thing. I don't think that rsync is locally chattier than over a network.

share|improve this answer

I'm pretty sure this is because rsync calculates the checksum for comparing and after transmission. Since the file is stored remotely it means for this it's transferred several times.

You could run rsync as daemon or through ssh to do the calculation on the server. Or just disable the checksum.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .