Managing Data#

This section describes how to manage data in the HTMDEC DMS including

Collections#

Data in the HTMDEC DMS is organized into per-seedling collections. Collections are access controlled, so team members must be granted access to manage data in each collection.

After signing in to your account, select the “Collections” link to view any collections that you have access to. Select the collection that you want to access.

../../_images/htmdec-select-collection.png

Creating Folders#

To create a new folder, select the dropdown on the right and “Create folder here”:

../../_images/htmdec-create-folder.png

Uploading folders and files#

To upload a file or folder, select the green upload icon:

../../_images/htmdec-folder-upload-metadata.png

Using the “Upload files” window, browse or drag-and-drop the files you want to upload. Select “Start Upload” to initiate the upload process:

../../_images/htmdec-upload-files-folders.png

When uploading folders, you may be prompted to allow your browser to upload multiple files:

../../_images/htmdec-upload-allow.png

Upload files and folder using girder-client#

It is also possible to upload files and folders from the command line using the Python-based girder-client application. This requires that you configure an API Key in the HTMDEC DMS system.

Install girder-client:

pip install girder-client

To configure an API key for use with the girder-client, select the “My account” option from the user menu:

../../_images/htmdec-my-account.png

Select the “API keys” tab and then “Create new key”:

../../_images/htmdec-api-keys.png

Name your API key and keep the default options then select “Create”:

../../_images/htmdec-api-key-create.png

Click the “show” link to view and copy your key:

../../_images/htmdec-api-key-show.png

Now use the girder-client command line tool to upload:

girder-client --api-url https://data.htmdec.org/api/v1 --api-key API_KEY upload REMOTE_PATH_OR_ID LOCAL_PATH

For example, to upload the local folder “test” to the remote “demo_folder” in the “Demo Collection”:

girder-client --api-url https://data.htmdec.org/api/v1 --api-key API_KEY upload "/collection/Demo Collection/demo_folder" ./test
Creating Folder from test
[####################################]  9.00/9.00  100%  file.txt
Creating Folder from test/subfolder
[####################################]  5.00/5.00  100%  file.txt

Transferring data#

When data needs to be transferred automatically or continuously, the DMS supports several options: