Skip to content
NAISS Logo
Allocations Support Training Software naiss.se

File transfer to/from Arrhenius using rsync

Prefer a video?

Watch the 'File transfer to/from Arrhenius using FileZilla' video to see how files are transferred to/from Arrhenius using rsync

There are multiple ways to transfer data to/from Arrhenius.

Here, we show how to transfer files and folders using a command-line tool called rsync, which is a secure file transfer tool that works under Linux, Mac and Windows.

Copy a file from local to Arrhenius

flowchart LR
  local_computer[Your local computer. Run rsync from here]
  arrhenius[Arrhenius]

  local_computer --> |rsync| arrhenius

Copy a file from a local computer to a Arrhenius home folder.

On your local computer, do:

rsync [file_name [user_name]@login.hpc.arrhenius.naiss.se:/home/[user_name]/

For example:

rsync my_file.txt svante@login.hpc.arrhenius.naiss.se:/home/svante/

Copy a file from Arrhenius to local

flowchart LR
  local_computer[Your local computer. Run rsync from here]
  arrhenius[Arrhenius]

  arrhenius --> |rsync| local_computer

Copy a file from Arrhenius to your local computer.

On your local computer, do:

rsync [user_name]@login.hpc.arrhenius.naiss.se:/home/[user_name]/[file_name] [local_folder_destination]

For example:

rsync svante@login.hpc.arrhenius.naiss.se:/home/svante/my_file.txt .

Where . means 'the folder where I am now'.

Copy a folder from local to Arrhenius

flowchart LR
  local_computer[Your local computer. Run rsync from here]
  arrhenius[Arrhenius]

  local_computer --> |rsync| arrhenius

Copy a folder from a local computer to a Arrhenius home folder.

On your local computer, do:

rsync --recursive [folder_name] [user_name]@login.hpc.arrhenius.naiss.se:/home/[user_name]/

For example:

rsync --recursive my_folder svante@login.hpc.arrhenius.naiss.se:/home/svante/

The --recursive flag is used to copy a folder and all of its subfolders.

Copy a folder from Arrhenius to local

flowchart LR
  local_computer[Your local computer. Run rsync from here]
  arrhenius[Arrhenius]

  arrhenius --> |rsync| local_computer

Copy a folder from Arrhenius to your local computer.

On your local computer, do:

rsync --recursive [user_name]@login.hpc.arrhenius.naiss.se:/home/[user_name]/[folder_name] [local_folder_destination]

For example:

rsync --recursive svante@login.hpc.arrhenius.naiss.se:/home/svante/my_folder .

Where . means 'the folder where I am now'.