| 20 | === Tulane Box Accounts === |
| 21 | You may transfer files between your [https://tulane.box.com Tulane Box account] and Cypress on the command line using the ''rclone'' command. On Cypress, you can make the rclone command available for execution via the command {{{module load rclone}}} (see [[cypress/ModuleCommand|Module command]]). |
| 22 | |
| 23 | In order to use rclone on Cypress, you must first create the config file ''~/.config/rclone/rclone.conf'' on your Cypress account, which you can do most easily by first creating a reusable copy of it on your local machine and then copying the resulting local file to your Cypress account via the following. |
| 24 | |
| 25 | ==== Configuring rclone on Cypress ==== |
| 26 | 1. Download, install, and configure rclone on your local machine by following the instructions for Windows, Mac, or Linux as appropriate starting from the [https://rclone.org/install/ rclone installation site.] |
| 27 | a. During the above configuration, you will be prompted for a ''name'' for the Box remote system, e.g. ''!BoxRemote''. |
| 28 | b. Make note of your response for the name of the Box remote system for future reference to be used in your invocations of the rclone command. |
| 29 | 2. Once you've configured rclone on your local machine, locate the resulting file rclone.conf on your local machine. |
| 30 | a. On Mac and Linux, e.g., look for the file ~/.config/rclone/rclone.conf |
| 31 | b. On Windows 8 (or under) , e.g., look for the file %userprofile%\.config\rclone\rclone.conf |
| 32 | 3. Create as needed the directory ~/.config/rclone on your Cypress account. |
| 33 | 4. Copy the resulting local file rclone.conf to your Cypress directory ~/.config/rclone. See [[cypress/FileTransfer|File Transfer]]. |
| 34 | 5. For security purposes, be sure to confirm that only you have ''exclusive'' read/write privileges to the resulting file ~/.config/rclone/rclone.conf on Cypress. See the ''ls'' and ''chmod'' commands under [[cypress/BasicLinuxComands|Linux Commands]] |
| 35 | |
| 36 | Once you have created the config file ''~/.config/rclone/rclone.conf'' on Cypress, you can run rclone via the following. |
| 37 | |
| 38 | ==== Running rclone on Cypress ==== |
| 39 | 1. The following command will list the contents of a top-level folder in your Box account with configured Box remote name !BoxRemote. |
| 40 | {{{ |
| 41 | rclone ls BoxRemote:<top-level-folder> |
| 42 | }}} |
| 43 | 2. The following command will copy the contents of a top-level folder in your Box account with configured Box remote name !BoxRemote to your current Cypress working directory. |
| 44 | {{{ |
| 45 | rclone copy BoxRemote:<top-level-folder> . |
| 46 | }}} |
| 47 | 3. The following command will copy the file test.txt in your current Cypress working directory to a top-level folder in your Box account with configured Box remote name !BoxRemote. |
| 48 | {{{ |
| 49 | rclone copy test.txt BoxRemote:<top-level-folder> |
| 50 | }}} |
| 51 | 4. The following command will simply list the available subcommands under rclone. |
| 52 | {{{ |
| 53 | rclone --help |
| 54 | }}} |
| 55 | |