For users that have large numbers of datasets to add to Medici we have provided a script to ease uploading these datasets to the Medici repository. The script takes two arguments the directory containing the datasets to be uploaded and the url of the medici repository to which you wish to upload the datasets to. The url must be of the form http://<username>:<password>@host. Use https if the Medici repository is configured for https. In addition the host must contain the path to the context of the webapp. For example if your Medici repository is set at a context /medici then the host must be host/medici.

 

Download the script here.

 

Upload Script with Relative Directory and Root Context Webapp
./uploadDirectory.sh Pictures http://example%40example.com:password@localhost
Upload Script with Absolute Path and Non-Root Context Webapp
./uploadDirectory.sh /home/user/Pictures http://example%40example.com:password@localhost/medici
  • No labels