Using SCP

This document describes how to use SCP to transfer data between your computer and the Berkeley Savio and Vector clusters.

This video walks through the process of using SCP:

The following examples show how to transfer files using SCP via the scp command in a shell/terminal window, on your own computer running Mac OS X, Linux, or Unix. Keep in mind that when transferring data using file transfer software such as SCP, you should connect only to the cluster's Data Transfer Node, dtn.brc.berkeley.edu.

To transfer a single file called myfile.txt from your computer to your home directory on the BRC supercluster, enter the following command in the directory on your computer where myfile.txt is located (substitute your actual username for myusername in the two places it appears below, and substitute your acutal file name for myfile.txt where it appears below):

scp myfile.txt myusername@dtn.brc.berkeley.edu:/global/home/users/myusername

To transfer a single file called myfile.txt from your home directory on the BRC supercluster to your home directory on your computer (substitute your actual username for myusername and your acutal file name for myfile.txt where it appears below):

scp myusername@dtn.brc.berkeley.edu:/myfile.txt ~/.

To transfer a folder called myfolder and its contents from your computer to your home directory on the BRC supercluster, enter the following command in the directory on your computer where myfolder is located (substitute your actual username for myusername in the two places it appears below, and substitute the actual directory name for myfolder where it appears below):

scp -r myfolder myusername@dtn.brc.berkeley.edu:/global/home/users/myusername

To transfer that same folder on your computer to the shared Scratch filesystem on Savio, enter the following command in the directory on your computer where myfolder is located (substitute your actual username for myusername in the two places it appears below):

scp -r myfolder myusername@dtn.brc.berkeley.edu:/global/scratch/users/myusername
To transfer a folder called myfolder and its contents from your home directory on the BRC supercluster to your home directory on your computer (substitute your actual username for myusername and your acutal directory name for myfolder where it appears below):

scp -r myusername@dtn.brc.berkeley.edu:~/myfolder ~/.

To transfer that same folder on your computer to the shared Scratch filesystem on Savio, enter the following command in the directory on your computer where myfolder is located (substitute your actual username for myusername in the two places it appears below):

scp -r myfolder myusername@dtn.brc.berkeley.edu:/global/scratch/users/myusername