Skip to content

Data transfer to/from LUMI using rsync

Why is this page at UPPMAX?

It was the intention that this guide would be moved to the CSC documentation, or that the CSC documentation would be improved.

However, CSC refuses to update the documentation, hence this page is the only place where this is documented.

There are multiple ways to transfer files to or from LUMI. Here it is described how to do file transfer to/from LUMI using rsync.

Procedure

Prefer a video?

Watch the YouTube video Data transfer to/from LUMI using rsync.

1. Start a terminal on your local computer

Start a terminal on your local computer

2. Transfer files to LUMI

You can transfer files to LUMI by:

2a. Transfer individual files to LUMI

On local computer, do:

rsync -e "ssh -i [private_ssh_key_path]" [my_local_file] [username]@lumi.csc.fi:[target_folder]/.

where

  • [private_ssh_key_path] is the path to a LUMI SSH key
  • [my_local_file] is the path to your local file
  • [target_folder] is the path of the folder you want to copy your file to
  • [username] is your CSC username

for example:

rsync -e "ssh -i ~/.ssh/id_rsa_lumi" local_file.txt sven@lumi.csc.fi:/users/sven/.

2b. Transfer all files in a folder to LUMI

On local computer, do:

rsync -e "ssh -i [private_ssh_key_path]" --recursive [my_local_folder] [username]@lumi.csc.fi:[target_folder]/.

where

  • [private_ssh_key_path] is the path to a LUMI SSH key
  • [my_local_folder] is the path to your local folder
  • [target_folder] is the path of the folder you want to copy your folder into
  • [username] is your CSC username

for example:

rsync --recursive -e "ssh -i ~/.ssh/id_rsa_lumi" my_local_folder/ sven@lumi.csc.fi:/users/sven/.

If asked, give your CSC password.

Note that in rsync, a slash (/) matters:

Command Effect
rsync --recursive my_folder sven@lumi.csc.fi:/users/sven Will put the files in my_folder in the LUMI home folder
rsync --recursive my_folder sven@lumi.csc.fi:/users/sven/ Will put the folder my_folder in the LUMI home folder

3. Transfer files from LUMI to you local computer

You can transfer files from LUMI to your local computer by:

3a. Transfer individual files from LUMI to your local computer

On your local computer, do:

rsync -e "ssh -i [private_ssh_key_path]" [username]@lumi.csc.fi:[path_to_file] .

where

  • [private_ssh_key_path] is the path to a LUMI SSH key
  • [path_to_file] is the path to the file you want to download
  • [username] is your CSC username
  • . means 'in the current folder of my local computer' or 'here'

for example:

rsync -e "ssh -i ~/.ssh/id_rsa_lumi" sven@lumi.csc.fi:/users/sven/my_file.txt .

If asked, give your CSC password.

3b. Transfer all folders from LUMI to you local computer

On your local computer, do:

rsync --recursive -e "ssh -i [private_ssh_key_path]" [username]@lumi.csc.fi:/[source_folder] .

where

  • [private_ssh_key_path] is the path to a LUMI SSH key
  • [source_folder] is the path to the folder you want to download
  • [username] is your CSC username
  • . means 'in the current folder of my local computer' or 'here'

for example:

rsync --recursive -e "ssh -i ~/.ssh/id_rsa_lumi" sven@lumi.csc.fi:/users/sven/my_folder .

If asked, give your CSC password.