Re

Get WebDAV-Sync at SourceForge.net. Fast, secure and Free Open Source software downloads

Manual

WebDAV-Sync only works with WebDAV servers that implement infinity for the Depth header in the PROPFIND method.

Run the binary as follows:

  java -jar webdav_sync.jar [-i seconds] (-c config_file | \
    (-down|-up|-bi) -u URL -d directory)
-i
An interval in seconds. When set the tool loops for ever and executes the synchronization every interval.
-c
A configuration file with the following form:
    <?xml version="1.0"?>
    <config>
      <sync>
        <directory>dir</directory>
        <url>https://...</url>
        <direction>down</direction>
        <!-- Optional ACL for upload. -->
        <acl xmlns="DAV:">
          <ace>
            <principal><authenticated/></principal>
            <grant>
              <privilege><read/></privilege>
            </grant>
          </ace>
        </acl>
      </sync>
      ...
    </config>

See RFC 3744 for the ACL syntax.

-down|-up|-bi
The synchronization direction.
-u
The URL.
-d
The local directory.

Use it as an Ant task through the taskdef element:

  <taskdef
    name="webdav-sync"
    classname="be.re.webdav.cmd.SyncAntTask"
    classpath="<directory>/webdav_sync.jar" />

The Ant task has three parameters: directory, url and direction, which can be down, up or bi.

The URL might require a username and a password. You can specify it in the URL like this: https://username:password@hostname/.... A safer method is to configure it with UIVI. On the Settings tab go to the subtab URL Authentications and append a row with the pop-up menu. In the URL you can then set only the username or nothing at all if you have only one username/password combination for the URL.