The Hippo Dav2Disk Tool synchronises the content of part of a webdav repository (including metadata) with a filesystem representation of that content and metadata.
Building
To build you need the hippo maven javadist plugin:
maven -Dversion=1.01.00 -DartifactId=hippo-javadist-plugin -DgroupId=hippo-javadist-plugin plugin:download -Dmaven.repo.remote=http://repository.hippocms.org/maven,http://repo1.maven.org/maven
If this fails, you may have to add http://repository.hippocms.org/maven to your maven.repo.remote settings
Then just type:
maven
Config
Go to target\Dav2Disk-<version>
edit config\dav2disk.properties
repository.host=127.0.0.1 repository.port=60000 repository.username=root repository.password=password repository.namespace=default repository.path=/files/default.preview filesystem.path=data
The repository.* describe the location of the webdav repository, and filesystem.path is the location on the filesystem that it will be synchronised with.
Run
|
Make sure that in the repositories definition.xml the isolation is set to /READ_COMMITTED/, not /SERIALIZABLE/ |
On windows type:
run
On linux type:
./run.sh
If you only want to download the repository to the filesystem without changing the repository (for example, to make a dump of a part of the repository), type:
run download
If you want to upload this dump to a new repository location, change the dav2disk.properties appropriately, and type:
run upload