Copying files directly between object storages¶
Examples with rclone¶
To copy content directly between two object storage endpoints (e.g. between two LUMI-O project storages, or LUMI-O and other object storages like Amazon S3, Google cloud, CREODIAS, Allas), the credentials for both object storages need to be set in the rclone.conf
file (in the users home directory .config/rclone/rclone.conf
).
General example¶
[lumi-46XXXXXXX-private]
type = s3
acl = private
env_auth = false
provider = Ceph
endpoint = https://lumidata.eu
access_key_id = xxxxxxxxxxxxxxxxxxxx
secret_access_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
max_upload_parts = 1000
[otherobjectstorage]
type = s3
acl = private
env_auth = false
provider = Other
endpoint = yourotherendpoint.com
access_key_id = yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
secret_access_key = yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
After setting these information to the rclone.conf file, rclone can be used to interact with both of these object storage endpoints.
You can e.g. list objects in either of these object storage endpoints by using the respective name:
and to copy objects from one object storage endpoint to the other. E.g. to copy the object object-y
from the other object storage endpoint to LUMI-O (with naming it as object-a
):
Between LUMI-O and LUMI-O¶
Two copy/move data between two LUMI-O endpoints, you need to have user rights to access both of the LUMI-O projects, and your LUMI-O access keys for both projects need to be valid.
If you need to move a very large amount of data between two of your LUMI-O project storages, you can also contact the LUMI user support team for this.
An example for how to set the rclone.conf
file:
[lumi-46XXXXXXX-private]
type = s3
acl = private
env_auth = false
provider = Ceph
endpoint = https://lumidata.eu
access_key_id = xxxxxxxxxxxxxxxxxxxx
secret_access_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
max_upload_parts = 1000
[lumi-46YYYYYYY-private]
type = s3
acl = private
env_auth = false
provider = Ceph
endpoint = https://lumidata.eu
access_key_id = yyyyyyyyyyyyyyyyyyyy
secret_access_key = yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
max_upload_parts = 1000
Between LUMI-O and Allas¶
Allas is an object storage (in many ways similar to LUMI-O) that is used with the supercomputing clusters in Finland.
An example for how to set the rclone.conf
file:
[lumi-46XXXXXXX-private]
type = s3
acl = private
env_auth = false
provider = Ceph
endpoint = https://lumidata.eu
access_key_id = xxxxxxxxxxxxxxxxxxxx
secret_access_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
max_upload_parts = 1000
[s3allas]
type = s3
acl = private
env_auth = false
provider = Other
endpoint = a3s.fi
access_key_id = yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
secret_access_key = yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
After creating/updating this file, rclone can be used e.g. to copy files from Allas to LUMI-O:
or e.g. to list objects in either Allas or LUMI-O by using the respective name of the endpoint:
You can also use Allas directly from LUMI with the same tools that work in the environments of CSC national clusters. See also the CSC documentation about Allas on LUMI.