| 22 | |
| 23 | ==== rsync command ==== |
| 24 | You may transfer files between your workstation and Cypress on the command line using the '''rsync''' command. The syntax is as follows: |
| 25 | {{{ |
| 26 | rsync source_file destination_file |
| 27 | }}} |
| 28 | |
| 29 | The following command will copy the file testfile from the ''/home/tulaneID/'' directory on the remote server ''cypress1.tulane.edu'' to your workstation's local directory "." (a period represents the current working directory). |
| 30 | {{{ |
| 31 | user@localhost> rsync tulaneID@cypress1.tulane.edu:/home/tulaneID/testfile . |
| 32 | }}} |
| 33 | |
| 34 | To copy a directory along with all its contents you will need to add the '''-r''' recursive flag. The following command will copy the ''simdata directory'' and all its contents to your local machine. |
| 35 | {{{ |
| 36 | user@localhost> rsync -r tulaneID@cypress1.tulane.edu:/home/tulaneID/simdata . |
| 37 | }}} |
| 38 | |
| 39 | ===== Advanced Options ===== |
| 40 | {{{ |
| 41 | -a | copy files recursively |
| 42 | -h | produce a readable output |
| 43 | –progress | displays the process while the command is being run |
| 44 | -q | processes running in the background will not be shown |
| 45 | -u | skip files newer on destination |
| 46 | -v | processes that are run will be written out for the user to read |
| 47 | -z | compress the data |
| 48 | }}} |
| 49 | |