Using Allas with rclone from your local computer¶
In this tutorial you will learn
- How to access Allas using local rclone
The graphical user interfaces of Allas can normally manage data transfers
between Allas and your local computing environment as long as the amount of
data and number of files is small. However, if you need to move large amounts
of data, then using command-line tools like
rclone or allas-cli-utils could
be a more efficient way to use Allas.
In this exercise, we'll study how you can use Allas from your own computer
using
rclone, which is available for all common operating systems including
Windows and macOS. Note that on macOS and Linux machines you can also install
the whole allas-cli-utils repository locally.
Danger
Unlike previous supercomputers, Roihu defaults to S3 instead of Swift. This exercise sets up an S3-based connection for rclone. S3 credentials are permanent and are stored in plaintext on your computer, so you should treat them with the same care as a password. Removing the keys from your own computer is not enough to deactivate the credentials.
Step 1. Installing rclone¶
If you already have
rclone command available, skip to
Step 2.
- Download the
rcloneexecutable to your own machine. Executables can be found at https://rclone.org/downloads/. - On Windows, if you donβt know which version to choose, try the Intel/AMD 64 bit version.
Step 2. Configuring rclone-S3 connection in local machine¶
-
Open a terminal connection to Roihu and load the Allas tools:
-
Check your access key and secret key with the following commands:
-
On your own machine, open a command shell and start the configuration process:
-
In the interactive configuration process, make the following selections:
- Select n to create a New remote
- Name the remote as:
s3allas - From the list of storage protocols, select the number corresponding to: Amazon S3 Compliant Storage Providers including AWS, ...
- Choose your S3 provider: select the option for Any other S3 compatible provider
- Select that you want to Enter AWS credentials in the next step.
- Give the AWS access key: the
access_keyvalue you looked up in step 2 - Give the AWS secret access key: the
secret_keyvalue you looked up in step 2 - Region: 1
- Endpoint:
a3s.fi - Location constraint: leave blank
- ACL: 1
- Object lock: leave the default
- Edit advanced config: n
- Remote config: y
- Finally, choose q to stop the configuration process
Step 3. Upload and download from local computer¶
Use
rclone to upload a small directory from your local computer to Allas.
For this test, choose some unimportant directory that contains only a small
amount of data (less than 1 GiB).
-
First check what would be copied by running
rclonecommand with option--dry-run. Prefix the target bucket name in Allas with your username to make it unique. So in the sample commands below you should replacelocal-directoryandusernamewith your own values. -
If the test command above works, then run the same command without
--dry-runto actually copy the data:Question
What was the speed of the transfer? How long would it take to copy 10 GiB of data at the same speed?
-
Check the results with the command:
-
Finally, copy the same data to a new directory on your local computer:
Question
What was the speed of the transfer? How long would it take to copy 10 GiB of data at the same speed?
More information¶
- Docs CSC: Local
rcloneconfiguration for Allas - Docs CSC: Allas in Roihu