Note: The following steps are only applicable while connected to the university network. If working off-campus, you must connect first to a SSL VPN. Click here for more details
Table of Contents
SCP
Single File Transfer to/from Spiedie Cluster
SCP (secure copy) is a command-line utility that allows you to securely copy files and directories between two locations.
scp source.ext <username>@spiedie.binghamton.edu:path/to/destination
Lets look at the components of the scp command:
source.ext
is the file you wish to transfer to the remote server.<username>
is the username of your spiedie cluster account.path/to/destination
is the path to the directory you want to transfer to.
To transfer a file from spiedie onto your local computer, simply swap the source and destination.
scp <username>@spiedie.binghamton.edu:your/desired/directory/file.txt .
The .
at the end is a shortcut for you current working directory.
Transferring a Directory to Spiedie Cluster
This is similar to transferring a single file except instead of specifying a file, we specify a directory, local-directory
, and we add the -r
flag which tells scp that we are trying to transfer a directory.
scp -r local-directory <username>@spiedie.binghamton.edu:your/desired/destination
More informion on SCP can be found here.
2.2.2 Rsync
Similar to SCP, Rsync can also be used to transfer files and folders using the terminal. Rsync differs in that only the portions of the files that have been changed are transferred, minimizing the total amount of data transferred.
Use Rsync when:
- You are transferring large files.
- In case of network connection failure mid transfer.
- The entire file does not need to be transferred, only the parts that changed.
- When keeping remote and local directories synced.
- Using the rsync command to sync the directories will only transfer the changed files.
rsync file.ext <username>@spiedie.binghamton.edu:your/desired/directory
A good resource for using Rsync can be found here.
2.2.3 Mapping Home Directory
You can map your Spiedie home directory to your file explorer if you wish to use a graphical interface for file transfer
Windows Explorer
- Open a new windows explorer to PC.
- Click on the computer option on the taskbar and select Map network drive.
- Select folder letter and paste
\\spiediefiles.binghamton.edu\username
to the folder text field. - Make sure to select ‘Use different credentials’ and click finish.
- Use Spiedie user name and password for your credentials.
Linux File System Viewer (Ubuntu)
- Open a new system files window.
- Click on other locations.
- Enter
smb://spiediefiles.binghamton.edu/username
for the server address, replacing your user name for username and click connect. - Click on registered users and use your user name and password to mount the network drive.
Mac Directory Mapping
- From the Mac OS X Finder, press Comand+K to bring up the ‘Connect to Server’ window.
- Follow the instructions for Linux starting at item 3.