Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
abstract:darwin:transfer:rclone [2021-03-29 17:43] – [Configuration Steps] anita | abstract:darwin:transfer:rclone [2021-03-29 19:26] (current) – [Configuration Steps] anita | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Rclone on DARWIN ====== | ||
+ | |||
+ | This document describes how to manually configure (set up) Rclone using University of Delaware email account for Google Drive on DARWIN. | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | ===== Rclone manual configuration of Google Drive ===== | ||
+ | |||
+ | ==== Loading Rclone ==== | ||
+ | First use VALET to load '' | ||
+ | |||
+ | <code bash> | ||
+ | [traine@login00.darwin ~]$ vpkg_require rclone | ||
+ | Adding package `rclone/ | ||
+ | [traine@login00.darwin ~]$ | ||
+ | </ | ||
+ | |||
+ | ==== Configuration Steps ==== | ||
+ | Create a new Rclone remote configuration by typing ' | ||
+ | |||
+ | <code bash> | ||
+ | [traine@login00.darwin ~]$ rclone config | ||
+ | 2021/03/22 13:19:43 NOTICE: Config file "/ | ||
+ | |||
+ | No remotes found - make a new one | ||
+ | n) New remote | ||
+ | s) Set configuration password | ||
+ | q) Quit config | ||
+ | n/s/q> n | ||
+ | name> darwinGoogleDrive | ||
+ | </ | ||
+ | Next find the " | ||
+ | |||
+ | <code bash> | ||
+ | Type of storage to configure. | ||
+ | Enter a string value. Press Enter for the default ("" | ||
+ | Choose a number from below, or type in your own value | ||
+ | 1 / Fichier | ||
+ | \ " | ||
+ | 2 / Alias for an existing remote | ||
+ | \ " | ||
+ | 3 / Amazon Drive | ||
+ | \ " | ||
+ | |||
+ | ... Skipping lines... | ||
+ | |||
+ | 14 / Google Cloud Storage (this is not Google Drive) | ||
+ | \ " | ||
+ | 15 / Google Drive | ||
+ | \ " | ||
+ | 16 / Google Photos | ||
+ | \ " | ||
+ | 17 / Hadoop distributed file system | ||
+ | \ " | ||
+ | |||
+ | ... Skipping more lines ... | ||
+ | |||
+ | 41 / premiumize.me | ||
+ | \ " | ||
+ | 42 / seafile | ||
+ | \ " | ||
+ | Storage> drive | ||
+ | </ | ||
+ | |||
+ | The next couple of steps will ask about adding a '' | ||
+ | |||
+ | <code bash> | ||
+ | ** See help for drive backend at: https:// | ||
+ | |||
+ | Google Application Client Id | ||
+ | Setting your own is recommended. | ||
+ | See https:// | ||
+ | If you leave this blank, it will use an internal key which is low performance. | ||
+ | Enter a string value. Press Enter for the default ("" | ||
+ | client_id> | ||
+ | OAuth Client Secret | ||
+ | Leave blank normally. | ||
+ | Enter a string value. Press Enter for the default ("" | ||
+ | client_secret> | ||
+ | </ | ||
+ | The next step will give you options to grant Rclone permission to access your files and directories in your Google Drive. We are going to use the default value of '' | ||
+ | |||
+ | <code bash> | ||
+ | Scope that rclone should use when requesting access from drive. | ||
+ | Enter a string value. Press Enter for the default ("" | ||
+ | Choose a number from below, or type in your own value | ||
+ | 1 / Full access all files, excluding Application Data Folder. | ||
+ | \ " | ||
+ | 2 / Read-only access to file metadata and file contents. | ||
+ | \ " | ||
+ | / Access to files created by rclone only. | ||
+ | 3 | These are visible in the drive website. | ||
+ | | File authorization is revoked when the user deauthorizes the app. | ||
+ | \ " | ||
+ | / Allows read and write access to the Application Data folder. | ||
+ | 4 | This is not visible in the drive website. | ||
+ | \ " | ||
+ | / Allows read-only access to file metadata but | ||
+ | 5 | does not allow any access to read or download file content. | ||
+ | \ " | ||
+ | scope> 1 | ||
+ | </ | ||
+ | |||
+ | For the next two steps, we select the default option ("" | ||
+ | |||
+ | <code bash> | ||
+ | ID of the root folder | ||
+ | Leave blank normally. | ||
+ | |||
+ | Fill in to access " | ||
+ | a non root folder as its starting point. | ||
+ | |||
+ | Enter a string value. Press Enter for the default ("" | ||
+ | root_folder_id> | ||
+ | Service Account Credentials JSON file path | ||
+ | Leave blank normally. | ||
+ | Needed only if you want use SA instead of interactive login. | ||
+ | |||
+ | Leading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}`. | ||
+ | |||
+ | Enter a string value. Press Enter for the default ("" | ||
+ | service_account_file> | ||
+ | </ | ||
+ | |||
+ | For the next question about '' | ||
+ | |||
+ | <code bash> | ||
+ | Edit advanced config? (y/n) | ||
+ | y) Yes | ||
+ | n) No (default) | ||
+ | y/n> n | ||
+ | </ | ||
+ | |||
+ | So far we have been answering the configuration questions mostly with the default options. However the next question is where we will differ from the typical set up process due to firewall permissions restricting '' | ||
+ | |||
+ | < | ||
+ | Remote config | ||
+ | Use auto config? | ||
+ | * Say Y if not sure | ||
+ | * Say N if you are working on a remote or headless machine | ||
+ | y) Yes (default) | ||
+ | n) No | ||
+ | y/n> n | ||
+ | </ | ||
+ | |||
+ | After typing '' | ||
+ | |||
+ | <code bash> | ||
+ | Please go to the following link: https:// | ||
+ | Log in and authorize rclone for access | ||
+ | Enter verification code> *** ENTER YOU UNIQUE VERIFICATION CODE HERE *** | ||
+ | </ | ||
+ | The last stop will ask you if you want to configure this as a " | ||
+ | <code bash> | ||
+ | Configure this as a Shared Drive (Team Drive)? | ||
+ | y) Yes | ||
+ | n) No (default) | ||
+ | y/n> n | ||
+ | </ | ||
+ | |||
+ | Now you can review your configuration and make edits if needed. If everything is okay type '' | ||
+ | |||
+ | <code bash> | ||
+ | -------------------- | ||
+ | [darwinGoogleDrive] | ||
+ | type = drive | ||
+ | scope = drive | ||
+ | token = {" | ||
+ | -------------------- | ||
+ | y) Yes this is OK (default) | ||
+ | e) Edit this remote | ||
+ | d) Delete this remote | ||
+ | y/e/d> y | ||
+ | </ | ||
+ | |||
+ | Once everything is configured correctly, Rclone will show you a list of your remote configurations, | ||
+ | |||
+ | <code bash> | ||
+ | Name Type | ||
+ | ==== ==== | ||
+ | darwinGoogleDrive | ||
+ | |||
+ | e) Edit existing remote | ||
+ | n) New remote | ||
+ | d) Delete remote | ||
+ | r) Rename remote | ||
+ | c) Copy remote | ||
+ | s) Set configuration password | ||
+ | q) Quit config | ||
+ | e/ | ||
+ | </ | ||
+ | |||
+ | ==== Testing new Rclone remote configuration ==== | ||
+ | |||
+ | To make sure the new remote configuration is working correctly, we will use the Rclone '' | ||
+ | |||
+ | <code bash> | ||
+ | [traine@login00.darwin ~]$ rclone lsd darwinGoogleDrive: | ||
+ | -1 2020-11-16 15: | ||
+ | -1 2020-05-05 16: | ||
+ | </ | ||
+ | |||
+ | For additional information on Rclone and more options, please visit [[https:// | ||
+ | |||
+ | |||