2020-10-08 06:17:50 +08:00
---
title: "Zoho"
description: "Zoho WorkDrive"
2022-12-21 04:05:05 +08:00
versionIntroduced: "v1.54"
2020-10-08 06:17:50 +08:00
---
2022-11-19 19:50:20 +08:00
# {{< icon "fas fa-folder" >}} Zoho Workdrive
2020-10-08 06:17:50 +08:00
[Zoho WorkDrive ](https://www.zoho.com/workdrive/ ) is a cloud storage solution created by [Zoho ](https://zoho.com ).
2021-10-14 21:40:18 +08:00
## Configuration
2020-10-08 06:17:50 +08:00
Here is an example of making a zoho configuration. First run
rclone config
This will guide you through an interactive setup process:
```
2021-11-02 04:34:46 +08:00
No remotes found, make a new one?
2020-10-08 06:17:50 +08:00
n) New remote
s) Set configuration password
n/s> n
name> remote
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
[snip]
XX / Zoho
\ "zoho"
[snip]
Storage> zoho
** See help for zoho backend at: https://rclone.org/zoho/ **
OAuth Client Id
Leave blank normally.
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>
Edit advanced config? (y/n)
y) Yes
n) No (default)
y/n> n
Remote config
2022-12-08 03:44:28 +08:00
Use web browser to automatically authenticate rclone with remote?
* Say Y if the machine running rclone has a web browser you can use
* Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.
2020-10-08 06:17:50 +08:00
y) Yes (default)
n) No
y/n>
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=LVn0IHzxej1ZkmQw31d0wQ
Log in and authorize rclone for access
Waiting for code...
Got code
Choose a number from below, or type in your own value
1 / MyTeam
\ "4u28602177065ff22426787a6745dba8954eb"
Enter a Team ID> 1
Choose a number from below, or type in your own value
1 / General
\ "4u2869d2aa6fca04f4f2f896b6539243b85b1"
Enter a Workspace ID> 1
--------------------
[remote]
type = zoho
token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"Zoho-oauthtoken","refresh_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","expiry":"2020-10-12T00:54:52.370275223+02:00"}
root_folder_id = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
--------------------
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d>
```
See the [remote setup docs ](/remote_setup/ ) for how to set it up on a
machine with no Internet browser available.
2021-02-15 07:44:52 +08:00
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.
2020-10-08 06:17:50 +08:00
Once configured you can then use `rclone` like this,
See top level directories
rclone lsd remote:
Make a new directory
rclone mkdir remote:directory
List the contents of a directory
rclone ls remote:directory
Sync `/home/local/directory` to the remote path, deleting any
excess files in the path.
2023-01-21 04:47:36 +08:00
rclone sync --interactive /home/local/directory remote:directory
2020-10-08 06:17:50 +08:00
Zoho paths may be as deep as required, eg `remote:directory/subdirectory` .
2023-11-18 20:36:46 +08:00
### Modification times and hashes
2020-10-08 06:17:50 +08:00
Modified times are currently not supported for Zoho Workdrive
2023-11-18 20:36:46 +08:00
No hash algorithms are supported.
2020-10-08 06:17:50 +08:00
2021-10-14 21:40:18 +08:00
### Usage information
2020-10-08 06:17:50 +08:00
To view your current quota you can use the `rclone about remote:`
command which will display your current usage.
2021-10-14 21:40:18 +08:00
### Restricted filename characters
2020-10-08 06:17:50 +08:00
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.
{{< rem autogenerated options start " - DO NOT EDIT - instead edit fs . RegInfo in backend / zoho / zoho . go then run make backenddocs " > }}
2021-11-01 23:42:05 +08:00
### Standard options
2020-10-08 06:17:50 +08:00
2022-07-10 01:08:20 +08:00
Here are the Standard options specific to zoho (Zoho).
2020-10-08 06:17:50 +08:00
2021-04-01 02:12:08 +08:00
#### --zoho-client-id
2021-11-01 23:42:05 +08:00
OAuth Client Id.
2021-04-01 02:12:08 +08:00
Leave blank normally.
2022-03-18 20:29:54 +08:00
Properties:
2021-04-01 02:12:08 +08:00
- Config: client_id
- Env Var: RCLONE_ZOHO_CLIENT_ID
- Type: string
2022-03-18 20:29:54 +08:00
- Required: false
2021-04-01 02:12:08 +08:00
#### --zoho-client-secret
2021-11-01 23:42:05 +08:00
OAuth Client Secret.
2021-04-01 02:12:08 +08:00
Leave blank normally.
2022-03-18 20:29:54 +08:00
Properties:
2021-04-01 02:12:08 +08:00
- Config: client_secret
- Env Var: RCLONE_ZOHO_CLIENT_SECRET
- Type: string
2022-03-18 20:29:54 +08:00
- Required: false
2021-04-01 02:12:08 +08:00
2021-02-02 21:42:35 +08:00
#### --zoho-region
2020-10-08 06:17:50 +08:00
2021-07-21 02:45:41 +08:00
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.
2020-10-08 06:17:50 +08:00
2022-03-18 20:29:54 +08:00
Properties:
2021-02-02 21:42:35 +08:00
- Config: region
- Env Var: RCLONE_ZOHO_REGION
2020-10-08 06:17:50 +08:00
- Type: string
2022-03-18 20:29:54 +08:00
- Required: false
2021-02-02 21:42:35 +08:00
- Examples:
- "com"
- United states / Global
- "eu"
- Europe
- "in"
- India
2022-07-10 01:08:20 +08:00
- "jp"
- Japan
- "com.cn"
- China
2021-02-02 21:42:35 +08:00
- "com.au"
- Australia
2020-10-08 06:17:50 +08:00
2021-11-01 23:42:05 +08:00
### Advanced options
2020-10-08 06:17:50 +08:00
2022-07-10 01:08:20 +08:00
Here are the Advanced options specific to zoho (Zoho).
2020-10-08 06:17:50 +08:00
2021-04-01 02:12:08 +08:00
#### --zoho-token
OAuth Access Token as a JSON blob.
2022-03-18 20:29:54 +08:00
Properties:
2021-04-01 02:12:08 +08:00
- Config: token
- Env Var: RCLONE_ZOHO_TOKEN
- Type: string
2022-03-18 20:29:54 +08:00
- Required: false
2021-04-01 02:12:08 +08:00
#### --zoho-auth-url
Auth server URL.
2021-11-01 23:42:05 +08:00
2021-04-01 02:12:08 +08:00
Leave blank to use the provider defaults.
2022-03-18 20:29:54 +08:00
Properties:
2021-04-01 02:12:08 +08:00
- Config: auth_url
- Env Var: RCLONE_ZOHO_AUTH_URL
- Type: string
2022-03-18 20:29:54 +08:00
- Required: false
2021-04-01 02:12:08 +08:00
#### --zoho-token-url
Token server url.
2021-11-01 23:42:05 +08:00
2021-04-01 02:12:08 +08:00
Leave blank to use the provider defaults.
2022-03-18 20:29:54 +08:00
Properties:
2021-04-01 02:12:08 +08:00
- Config: token_url
- Env Var: RCLONE_ZOHO_TOKEN_URL
- Type: string
2022-03-18 20:29:54 +08:00
- Required: false
2021-04-01 02:12:08 +08:00
2020-10-08 06:17:50 +08:00
#### --zoho-encoding
2022-03-18 20:29:54 +08:00
The encoding for the backend.
2020-10-08 06:17:50 +08:00
2021-11-01 23:42:05 +08:00
See the [encoding section in the overview ](/overview/#encoding ) for more info.
2020-10-08 06:17:50 +08:00
2022-03-18 20:29:54 +08:00
Properties:
2020-10-08 06:17:50 +08:00
- Config: encoding
- Env Var: RCLONE_ZOHO_ENCODING
2023-11-26 23:59:12 +08:00
- Type: Encoding
2020-10-08 06:17:50 +08:00
- Default: Del,Ctl,InvalidUtf8
{{< rem autogenerated options stop > }}
2022-06-12 21:28:36 +08:00
## 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 ](https://api-console.zoho.com )
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.