Secure copy (scp) is one protocol that can be used to transfer files to user’s home directories on the cluster or to copy data from the cluster to the local machine. Following are some examples of using thescp command.
- Transfer a file from the local machine to the cluster:
- scp local_filename testuser@bsbc2.uncg.edu:\home\testuser\cluster_filename
- Copy a file from the cluster to the local machine (use of the -p option preserves modification and access times and modes from the original file):
- scp -p testuser@bsbc2.uncg.edu:\home\testuser\cluster_filename local_filename
- Copy an entire directory from the local machine to the cluster (use the -r option):
- scp -r local_directory_name testuser@bsbc2.uncg.edu:\home\testuser\cluster_directory_name
For detailed information on the scp command, see the Linux manual page: man scp