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:
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:
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:
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
- 3b. Transfer all folders from LUMI to you local computer
3a. Transfer individual files from LUMI to your local computer¶
On your local computer, do:
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:
If asked, give your CSC password.
3b. Transfer all folders from LUMI to you local computer¶
On your local computer, do:
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:
If asked, give your CSC password.