Download content
LABDRIVE allows users to download content from the platform using several methods:
Using the Management Interface
1. Locate the data container from which you want to download using the Containers menu section or by searching.
2. Select Check-in in case you are not checked in the container and you have the check-in/out enabled for the data container.
3. In the data container page, choose Explore content:

4. Select the file you want to download, right click on it and select "Download". You can select multiple files or folders, and LABDRIVE will create a ZIP file (named in the same way the first selected file) with them and start downloading it.

Note that certain limitations exist when downloading content using the browser:
Unless you use one of the methods described in the Data Integrity section, no strong integrity is provided.
For high volume uploads/downloads (by file number, size or both), the browser may be slower or not able to download your content. An S3 client is recommended.
Using the API
1. Sign in to the LABDRIVE Management Interface
2. Obtain your LABDRIVE API key selecting your name and then Access Methods:

and then, use the following method:
curl --request GET \
--url "$your_platform_url/api/file/{your file ID}/download" \
--header "Content-Type: application/json" \
--header "authorization: Bearer $your_platform_api_key" \
--data '{}' -L --output your_downloaded_file.txt
Using an S3-compatible tool
1. Sign in to the LABDRIVE Management Interface
2. Click on your name and select Access Methods
3. In the S3 compatible protocol section, click Regenerate
4. Copy your Access Keys and Secret Keys and store them in a safe location

5. Configure your preferred S3 CLI tool. The following example uses s3cmd:
$ s3cmd --configure
Access Key: AKIAR*********IDUP
Secret Key: OGtPO**************UT09
Default Region [US]:
S3 Endpoint [s3.amazonaws.com]:
DNS-style bucket+hostname:port template for
accessing a bucket [%(bucket)s.s3.amazonaws.com]:
New settings:
Access Key: AKIAR*********IDUP
Secret Key: OGtPO**************UT09
Default Region: US
S3 Endpoint: s3.amazonaws.com
Encryption password:
Path to GPG program: /usr/bin/gpg
Use HTTPS protocol: True
HTTP Proxy server name:
HTTP Proxy server port: 0
Test access with supplied credentials? [Y/n] n
Save settings? [y/N] y
Configuration saved to '/home/libnova/.s3cfg'
6. Depending on the region and other settings, LABDRIVE keeps your data container inside a particular S3 Bucket. All data containers in your instance may use the same S3 bucket or not. To obtain the Bucket Name associated to the data container you want to use to begin uploading any file see Getting your S3 bucket name.
And then use:
$ s3cmd get s3://acme-labdrive/6352/somefile.xml some-file.xml
s3://acme-labdrive/6352/somefile.xml -> some-file.xml [1 of 1]
123456 of 123456 100% in 2s 51.75 kB/s done
Using XrootD
The XROOTD project aims at giving high performance, scalable fault tolerant access to data repositories. You can access your LABDRIVE content using XROOTD and you can make it available to unauthenticated/anonymous users.
Because a XROOTD protocol limitation, white spaces (blank space char) is not allowed in the file names. Files with white spaces (blank space) or other XROOTD non-supported characters, are not available when using this transfer method.
1. Sign in to the LABDRIVE Management Interface
2. Click on your user name and select Access Methods (1)

3. Locate the XROOTD section and get your XROOTD server name, username and password. If the Password is not shown, select Regenerate to create a new one.
4. Use the xrootdfs
client to perform desired actions such as ls:

cat:

See xrdfs --help
for available commands. Not all of them are supported in LABDRIVE.
5. You can also download files using xrdcp

Last updated
Was this helpful?