I want to mirror a webdav directory to have local backups of it. Currently, I use

rm *
lftp <<__END__
open -u USER,PW https://example.com/remote.php/caldav/calendars/USER/kalender
mget /remote.php/caldav/calendars/USER/kalender/*.ics .

but re-downloading everything repeatedly is annoying.

What would be a suitable tool that mirrors a remote WebDAV directory to a local directory, including deleting removed files and adding new ones? (Should run on Linux and be Free Software.)


What you can do is mount the webdav directory using something like davfs and than use rsync to regularly sync your mirror directory.

  • Looked at davfs2, but I dislike that mounts have to be present in /etc/fstab or done by root. – Joachim Breitner May 7 '15 at 9:22
  • Try one of the alternatives? fusedav or wdfs – wpoely86 May 7 '15 at 13:14
  • fusedav fails here (PROPFIND failed: 404 Not Found); wdfs seems to be not packages; I think I’ll look at it another time. – Joachim Breitner May 7 '15 at 19:33

lftp supports "mirror", have you tried that?

Otherwise there is a tool for this: http://www.re.be/webdav_sync/index.xhtml

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.