6. Transferring Files - bregord/emcee-on-calcul-quebec GitHub Wiki

Using the provided scripts

###Transferring to the server The following script can be used, assuming ssh authentication has been setup:

$ python donut.py [CLUSTER NAME] --transfer-to directory: file1 file2 file3

The default behaviour of the donut script is to initialize a workspace directory, which will contain all the programs and the program output, a data directory for all data, and a jobs directory for the build script and job output.

###Transferring files from the server

$ python donut.py [CLUSTER NAME] --transfer-from directory: folder/filename

This script transfers files, with all paths relative to the workspace directory. If the initiazation script was used, all folders within the workspace directory are named "data", "programs", or "jobs"

##Using SCP The above scripts are basically just a wrapper for SCP, with a few added constraints to make things slightly easier. SCP Could just as easily be used to transfer files, and ensure a finer grain of control.

To transfer files from your computer to the server:

  $ scp example.txt username@server_hostname:/some/remote/directory 

To transfer files from the server to your computer:

 $ $ scp username@server_hostname:example.txt /some/local/directory      

An overview of how to use tools like winSCP or PuTTY can be found on the calcul quebec wiki here