github.com/artpar/rclone@v1.67.3/docs/content/zoho.md (about)

     1  ---
     2  title: "Zoho"
     3  description: "Zoho WorkDrive"
     4  versionIntroduced: "v1.54"
     5  ---
     6  
     7  # {{< icon "fas fa-folder" >}} Zoho Workdrive
     8  
     9  [Zoho WorkDrive](https://www.zoho.com/workdrive/) is a cloud storage solution created by [Zoho](https://zoho.com).
    10  
    11  ## Configuration
    12  
    13  Here is an example of making a zoho configuration.  First run
    14  
    15      rclone config
    16  
    17  This will guide you through an interactive setup process:
    18  
    19  ```
    20  No remotes found, make a new one?
    21  n) New remote
    22  s) Set configuration password
    23  n/s> n
    24  name> remote
    25  Type of storage to configure.
    26  Enter a string value. Press Enter for the default ("").
    27  Choose a number from below, or type in your own value
    28  [snip]
    29  XX / Zoho
    30     \ "zoho"
    31  [snip]
    32  Storage> zoho
    33  ** See help for zoho backend at: https://rclone.org/zoho/ **
    34  
    35  OAuth Client Id
    36  Leave blank normally.
    37  Enter a string value. Press Enter for the default ("").
    38  client_id> 
    39  OAuth Client Secret
    40  Leave blank normally.
    41  Enter a string value. Press Enter for the default ("").
    42  client_secret> 
    43  Edit advanced config? (y/n)
    44  y) Yes
    45  n) No (default)
    46  y/n> n
    47  Remote config
    48  Use web browser to automatically authenticate rclone with remote?
    49   * Say Y if the machine running rclone has a web browser you can use
    50   * Say N if running rclone on a (remote) machine without web browser access
    51  If not sure try Y. If Y failed, try N.
    52  y) Yes (default)
    53  n) No
    54  y/n> 
    55  If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=LVn0IHzxej1ZkmQw31d0wQ
    56  Log in and authorize rclone for access
    57  Waiting for code...
    58  Got code
    59  Choose a number from below, or type in your own value
    60   1 / MyTeam
    61     \ "4u28602177065ff22426787a6745dba8954eb"
    62  Enter a Team ID> 1
    63  Choose a number from below, or type in your own value
    64   1 / General
    65     \ "4u2869d2aa6fca04f4f2f896b6539243b85b1"
    66  Enter a Workspace ID> 1
    67  --------------------
    68  [remote]
    69  type = zoho
    70  token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"Zoho-oauthtoken","refresh_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","expiry":"2020-10-12T00:54:52.370275223+02:00"}
    71  root_folder_id = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    72  --------------------
    73  y) Yes this is OK (default)
    74  e) Edit this remote
    75  d) Delete this remote
    76  y/e/d> 
    77  ```
    78  
    79  See the [remote setup docs](/remote_setup/) for how to set it up on a
    80  machine with no Internet browser available.
    81  
    82  Rclone runs a webserver on your local computer to collect the
    83  authorization token from Zoho Workdrive. This is only from the moment
    84  your browser is opened until the token is returned.
    85  The webserver runs on `http://127.0.0.1:53682/`.
    86  If local port `53682` is protected by a firewall you may need to temporarily
    87  unblock the firewall to complete authorization.
    88  
    89  Once configured you can then use `rclone` like this,
    90  
    91  See top level directories
    92  
    93      rclone lsd remote:
    94  
    95  Make a new directory
    96  
    97      rclone mkdir remote:directory
    98  
    99  List the contents of a directory
   100  
   101      rclone ls remote:directory
   102  
   103  Sync `/home/local/directory` to the remote path, deleting any
   104  excess files in the path.
   105  
   106      rclone sync --interactive /home/local/directory remote:directory
   107  
   108  Zoho paths may be as deep as required, eg `remote:directory/subdirectory`.
   109  
   110  ### Modification times and hashes
   111  
   112  Modified times are currently not supported for Zoho Workdrive
   113  
   114  No hash algorithms are supported.
   115  
   116  ### Usage information
   117  
   118  To view your current quota you can use the `rclone about remote:`
   119  command which will display your current usage.
   120  
   121  ### Restricted filename characters
   122  
   123  Only control characters and invalid UTF-8 are replaced. In addition most
   124  Unicode full-width characters are not supported at all and will be removed 
   125  from filenames during upload.
   126  
   127  {{< rem autogenerated options start" - DO NOT EDIT - instead edit fs.RegInfo in backend/zoho/zoho.go then run make backenddocs" >}}
   128  ### Standard options
   129  
   130  Here are the Standard options specific to zoho (Zoho).
   131  
   132  #### --zoho-client-id
   133  
   134  OAuth Client Id.
   135  
   136  Leave blank normally.
   137  
   138  Properties:
   139  
   140  - Config:      client_id
   141  - Env Var:     RCLONE_ZOHO_CLIENT_ID
   142  - Type:        string
   143  - Required:    false
   144  
   145  #### --zoho-client-secret
   146  
   147  OAuth Client Secret.
   148  
   149  Leave blank normally.
   150  
   151  Properties:
   152  
   153  - Config:      client_secret
   154  - Env Var:     RCLONE_ZOHO_CLIENT_SECRET
   155  - Type:        string
   156  - Required:    false
   157  
   158  #### --zoho-region
   159  
   160  Zoho region to connect to.
   161  
   162  You'll have to use the region your organization is registered in. If
   163  not sure use the same top level domain as you connect to in your
   164  browser.
   165  
   166  Properties:
   167  
   168  - Config:      region
   169  - Env Var:     RCLONE_ZOHO_REGION
   170  - Type:        string
   171  - Required:    false
   172  - Examples:
   173      - "com"
   174          - United states / Global
   175      - "eu"
   176          - Europe
   177      - "in"
   178          - India
   179      - "jp"
   180          - Japan
   181      - "com.cn"
   182          - China
   183      - "com.au"
   184          - Australia
   185  
   186  ### Advanced options
   187  
   188  Here are the Advanced options specific to zoho (Zoho).
   189  
   190  #### --zoho-token
   191  
   192  OAuth Access Token as a JSON blob.
   193  
   194  Properties:
   195  
   196  - Config:      token
   197  - Env Var:     RCLONE_ZOHO_TOKEN
   198  - Type:        string
   199  - Required:    false
   200  
   201  #### --zoho-auth-url
   202  
   203  Auth server URL.
   204  
   205  Leave blank to use the provider defaults.
   206  
   207  Properties:
   208  
   209  - Config:      auth_url
   210  - Env Var:     RCLONE_ZOHO_AUTH_URL
   211  - Type:        string
   212  - Required:    false
   213  
   214  #### --zoho-token-url
   215  
   216  Token server url.
   217  
   218  Leave blank to use the provider defaults.
   219  
   220  Properties:
   221  
   222  - Config:      token_url
   223  - Env Var:     RCLONE_ZOHO_TOKEN_URL
   224  - Type:        string
   225  - Required:    false
   226  
   227  #### --zoho-encoding
   228  
   229  The encoding for the backend.
   230  
   231  See the [encoding section in the overview](/overview/#encoding) for more info.
   232  
   233  Properties:
   234  
   235  - Config:      encoding
   236  - Env Var:     RCLONE_ZOHO_ENCODING
   237  - Type:        Encoding
   238  - Default:     Del,Ctl,InvalidUtf8
   239  
   240  #### --zoho-description
   241  
   242  Description of the remote
   243  
   244  Properties:
   245  
   246  - Config:      description
   247  - Env Var:     RCLONE_ZOHO_DESCRIPTION
   248  - Type:        string
   249  - Required:    false
   250  
   251  {{< rem autogenerated options stop >}}
   252  
   253  ## Setting up your own client_id
   254  
   255  For Zoho we advise you to set up your own client_id. To do so you have to complete the following steps.
   256  
   257  1. Log in to the [Zoho API Console](https://api-console.zoho.com)
   258  
   259  2. Create a new client of type "Server-based Application". The name and website don't matter, but you must add the redirect URL `http://localhost:53682/`.
   260  
   261  3. Once the client is created, you can go to the settings tab and enable it in other regions.
   262  
   263  The client id and client secret can now be used with rclone.