5.2 KiB
title | description | versionIntroduced |
---|---|---|
Terabox | Rclone docs for Terabox | v1.70 |
{{< icon "fa fa-inbox" >}} Terabox
This is a Backend for Terabox Cloud storage (alpha).
Notice This integrations is not official, because official integration required special client id
and client secret
which only can be provided by Terabox. I made a request for this, but did not got a responce, yet. If Terabox will provide the keys for official integration, will update the integration.
Paths are specified as remote:path
or remote:/path
Paths may be as deep as required, e.g. remote:directory/subdirectory
.
Limitations
For now max upload filesize is 4GB.
Download in multithread mode and single thread mode has the same speed result. Got about 1.7 - 1.9 MB/s for standart multithread download and the same result for one thread (with key--multi-thread-streams 1
)
Looks like cookie live period is 1 year, I start develop three weeks ago, then two weeks I was busy, after a two weeks delay, all still works.
Configuration
To configure an Terabox backend you need provide cookie from your logined account. Three variables need to be provided TSID
, ndus
, ndut_fmt
separated by semicolon.
How to obtain the cookie:
-
Chrome extension:
- Install extension
Cookie viewer
: https://chromewebstore.google.com/detail/dedhcncdjkmjpebfohadfeeaopiponca?utm_source=item-share-cb - Go to your storage: https://www.terabox.com/main
- On search panel exrtensions click to Cookie viewer and copy this three values:
TSID
,ndus
,ndut_fmt
insert it one by one to some text document and separate by semicolon, then copy result string for configuration, you should got something likeTSID=xxx; ndus=xxx; ndut_fmt=xxx
- Remove extension
Cookie viewer
- Install extension
-
Chrome dev:
- Go to your storage https://www.terabox.com/main
- Right top corner
three dots
>More tools
>Developer tools
(Note The page will be automaticaly redirected toabout:blank
, no worries, it's ok.) - Select
Network
tab and checkPreserve log
- Push to
Go Back
button on address panel - Select any request and scroll
Headers
tab to down underRequest headers
and copy cookie value. - Close dev tools
Here is an example of how to make a remote called remote
with the default setup.
First run:
rclone config
This will guide you through an interactive setup process:
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> 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
[...]
52 / Terabox
\ "terabox"
[...]
Storage> terabox
Option cookie.
Set cookie (should contains TSID; ndus; ndut_fmt)
Enter a value.
cookie> TSID=xxx; ndus=xxx; ndut_fmt=xxx
Edit advanced config? (y/n)
y) Yes
n) No (default)
y/n> n
Configuration complete.
--------------------
[terabox]
type = terabox
cookie = "TSID=xxx; ndus=xxx; ndut_fmt=xxx"
--------------------
Keep this "remote" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d>
Once configured you can then use remote
like this,
List directories in top level of your Terabox
rclone lsd remote:
List all the files in your Terabox
rclone ls remote:
To copy a local directory to a Terabox directory called backup
rclone copy /home/source remote:backup
{{< rem autogenerated options start" - DO NOT EDIT - instead edit fs.RegInfo in backend/terabox/terabox.go then run make backenddocs" >}}
Standard options
Here are the Standard options specific to Terabox.
--terabox-cookie
Your cookie.
Properties:
- Config: cookie
- Env Var: RCLONE_TERABOX_COOKIE
- Type: string
- Required: true
Advanced options
Here are the Advanced options specific to Terabox.
--terabox-delete-permanently
Set if you want to clean Trash bin after file deleted.
Properties:
- Config: delete_permanently
- Env Var: RCLONE_TERABOX_DELETE_PERMANENTLY
- Type: bool
- Default: false
--terabox-user-agent
Set if you want to to change default user agent.
Properties:
- Config: user_agent
- Env Var: RCLONE_TERABOX_USER_AGENT
- Type: string
- Default: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",
--terabox-debug-level
Set extra verbose level from 0 to 3. 0 - none 1 - Caled functions and params 2 - response from terabox (params and body) 3 - request to terabox (params)
Properties:
- Config: debug_level
- Env Var: RCLONE_TERABOX_DEBUG_LEVEL
- Type: uint8
- Default: 0,
--terabox-encoding
The encoding for the backend.
See the encoding section in the overview for more info.
Properties:
- Config: encoding
- Env Var: RCLONE_TERABOX_ENCODING
- Type: Encoding
- Default: Slash,LtGt,DoubleQuote,BackQuote,Del,Ctl,LeftSpace,InvalidUtf8,Dot
--terabox-description
Description of the remote.
Properties:
- Config: description
- Env Var: RCLONE_TERABOX_DESCRIPTION
- Type: string
- Required: false
{{< rem autogenerated options stop >}}