v1.54

Zoho Workdrive

Zoho WorkDrive is a cloud storage solution created by Zoho.

Configuration

Here is an example of making a zoho configuration. First run

  1. rclone config

This will guide you through an interactive setup process:

  1. No remotes found, make a new one?
  2. n) New remote
  3. s) Set configuration password
  4. n/s> n
  5. name> remote
  6. Type of storage to configure.
  7. Enter a string value. Press Enter for the default ("").
  8. Choose a number from below, or type in your own value
  9. [snip]
  10. XX / Zoho
  11. \ "zoho"
  12. [snip]
  13. Storage> zoho
  14. ** See help for zoho backend at: https://rclone.org/zoho/ **
  15. OAuth Client Id
  16. Leave blank normally.
  17. Enter a string value. Press Enter for the default ("").
  18. client_id>
  19. OAuth Client Secret
  20. Leave blank normally.
  21. Enter a string value. Press Enter for the default ("").
  22. client_secret>
  23. Edit advanced config? (y/n)
  24. y) Yes
  25. n) No (default)
  26. y/n> n
  27. Remote config
  28. Use web browser to automatically authenticate rclone with remote?
  29. * Say Y if the machine running rclone has a web browser you can use
  30. * Say N if running rclone on a (remote) machine without web browser access
  31. If not sure try Y. If Y failed, try N.
  32. y) Yes (default)
  33. n) No
  34. y/n>
  35. If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=LVn0IHzxej1ZkmQw31d0wQ
  36. Log in and authorize rclone for access
  37. Waiting for code...
  38. Got code
  39. Choose a number from below, or type in your own value
  40. 1 / MyTeam
  41. \ "4u28602177065ff22426787a6745dba8954eb"
  42. Enter a Team ID> 1
  43. Choose a number from below, or type in your own value
  44. 1 / General
  45. \ "4u2869d2aa6fca04f4f2f896b6539243b85b1"
  46. Enter a Workspace ID> 1
  47. Configuration complete.
  48. Options:
  49. - type: zoho
  50. - token: {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"Zoho-oauthtoken","refresh_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","expiry":"2020-10-12T00:54:52.370275223+02:00"}
  51. - root_folder_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  52. Keep this "remote" remote?
  53. y) Yes this is OK (default)
  54. e) Edit this remote
  55. d) Delete this remote
  56. y/e/d>

See the remote setup docs for how to set it up on a machine with no Internet browser available.

Rclone runs a webserver on your local computer to collect the authorization token from Zoho Workdrive. This is only from the moment your browser is opened until the token is returned. The webserver runs on http://127.0.0.1:53682/. If local port 53682 is protected by a firewall you may need to temporarily unblock the firewall to complete authorization.

Once configured you can then use rclone like this,

See top level directories

  1. rclone lsd remote:

Make a new directory

  1. rclone mkdir remote:directory

List the contents of a directory

  1. rclone ls remote:directory

Sync /home/local/directory to the remote path, deleting any excess files in the path.

  1. rclone sync --interactive /home/local/directory remote:directory

Zoho paths may be as deep as required, eg remote:directory/subdirectory.

Modification times and hashes

Modified times are currently not supported for Zoho Workdrive

No hash algorithms are supported.

Usage information

To view your current quota you can use the rclone about remote: command which will display your current usage.

Restricted filename characters

Only control characters and invalid UTF-8 are replaced. In addition most Unicode full-width characters are not supported at all and will be removed from filenames during upload.

Standard options

Here are the Standard options specific to zoho (Zoho).

--zoho-client-id

OAuth Client Id.

Leave blank normally.

Properties:

  • Config: client_id
  • Env Var: RCLONE_ZOHO_CLIENT_ID
  • Type: string
  • Required: false

--zoho-client-secret

OAuth Client Secret.

Leave blank normally.

Properties:

  • Config: client_secret
  • Env Var: RCLONE_ZOHO_CLIENT_SECRET
  • Type: string
  • Required: false

--zoho-region

Zoho region to connect to.

You’ll have to use the region your organization is registered in. If not sure use the same top level domain as you connect to in your browser.

Properties:

  • Config: region
  • Env Var: RCLONE_ZOHO_REGION
  • Type: string
  • Required: false
  • Examples:
    • “com”
      • United states / Global
    • “eu”
      • Europe
    • “in”
      • India
    • “jp”
      • Japan
    • “com.cn”
      • China
    • “com.au”
      • Australia

Advanced options

Here are the Advanced options specific to zoho (Zoho).

--zoho-token

OAuth Access Token as a JSON blob.

Properties:

  • Config: token
  • Env Var: RCLONE_ZOHO_TOKEN
  • Type: string
  • Required: false

--zoho-auth-url

Auth server URL.

Leave blank to use the provider defaults.

Properties:

  • Config: auth_url
  • Env Var: RCLONE_ZOHO_AUTH_URL
  • Type: string
  • Required: false

--zoho-token-url

Token server url.

Leave blank to use the provider defaults.

Properties:

  • Config: token_url
  • Env Var: RCLONE_ZOHO_TOKEN_URL
  • Type: string
  • Required: false

--zoho-client-credentials

Use client credentials OAuth flow.

This will use the OAUTH2 client Credentials Flow as described in RFC 6749.

Properties:

  • Config: client_credentials
  • Env Var: RCLONE_ZOHO_CLIENT_CREDENTIALS
  • Type: bool
  • Default: false

--zoho-upload-cutoff

Cutoff for switching to large file upload api (>= 10 MiB).

Properties:

  • Config: upload_cutoff
  • Env Var: RCLONE_ZOHO_UPLOAD_CUTOFF
  • Type: SizeSuffix
  • Default: 10Mi

--zoho-encoding

The encoding for the backend.

See the encoding section in the overview for more info.

Properties:

  • Config: encoding
  • Env Var: RCLONE_ZOHO_ENCODING
  • Type: Encoding
  • Default: Del,Ctl,InvalidUtf8

--zoho-description

Description of the remote.

Properties:

  • Config: description
  • Env Var: RCLONE_ZOHO_DESCRIPTION
  • Type: string
  • Required: false

Setting up your own client_id

For Zoho we advise you to set up your own client_id. To do so you have to complete the following steps.

  1. Log in to the Zoho API Console

  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/.

  3. Once the client is created, you can go to the settings tab and enable it in other regions.

The client id and client secret can now be used with rclone.