Uppmax IO

Downloading and uploading files from Uppmax

Note

In code blocks, the dollar sign ($) is not to be printed. The dollar sign is usually an indicator that the text following it should be typed in a terminal window.

1 Local workspace

Start by creating a folder on your laptop where the files that you will download should end up. You need to have write permission in this folder. This folder will be referred to as your local workspace throughout these instructions.

Open a terminal window on your laptop and move into your local workspace.

2 Download a file from UPPMAX

Lets assume that you have a file “results.txt” in the following folder on UPPMAX:

/proj/naiss2023-22-862/nobackup/username/somefolder/
Note

username and somefolder should be replaced with your real username and a real folder name.

To download the file to your local workspace type:

Local Terminal
scp username@rackham.uppmax.uu.se:/proj/naiss2023-22-862/nobackup/username/somefolder/results.txt .

Note that the last . means that the file will keep the original name.

3 Upload a file to UPPMAX

Now lets imagine that you have developed a script on your laptop and want to upload it to UPPMAX. The script is stored in your local workspace and is called “script.sh”. Type this in your local workspace to upload the file to UPPMAX:

Note

username and somefolder should be replaced with your real username and a real folder name.

Local Terminal
scp script.sh username@rackham.uppmax.uu.se:/proj/naiss2023-22-862/nobackup/username/somefolder/.