2014-07-17 21:03:11 +02:00
|
|
|
---
|
|
|
|
title: "Dropbox"
|
|
|
|
description: "Rclone docs for Dropbox"
|
2016-02-21 14:52:00 +01:00
|
|
|
date: "2016-02-21"
|
2014-07-17 21:03:11 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
<i class="fa fa-dropbox"></i> Dropbox
|
|
|
|
---------------------------------
|
|
|
|
|
|
|
|
Paths are specified as `remote:path`
|
|
|
|
|
|
|
|
Dropbox paths may be as deep as required, eg
|
|
|
|
`remote:directory/subdirectory`.
|
|
|
|
|
|
|
|
The initial setup for dropbox involves getting a token from Dropbox
|
|
|
|
which you need to do in your browser. `rclone config` walks you
|
|
|
|
through it.
|
|
|
|
|
|
|
|
Here is an example of how to make a remote called `remote`. First run:
|
|
|
|
|
|
|
|
rclone config
|
|
|
|
|
|
|
|
This will guide you through an interactive setup process:
|
|
|
|
|
|
|
|
```
|
|
|
|
n) New remote
|
|
|
|
d) Delete remote
|
|
|
|
q) Quit config
|
|
|
|
e/n/d/q> n
|
|
|
|
name> remote
|
2016-02-21 14:39:04 +01:00
|
|
|
Type of storage to configure.
|
|
|
|
Choose a number from below, or type in your own value
|
2016-07-11 13:42:44 +02:00
|
|
|
1 / Amazon Drive
|
2016-02-21 14:39:04 +01:00
|
|
|
\ "amazon cloud drive"
|
2017-01-09 06:09:19 +01:00
|
|
|
2 / Amazon S3 (also Dreamhost, Ceph, Minio)
|
2016-02-21 14:39:04 +01:00
|
|
|
\ "s3"
|
|
|
|
3 / Backblaze B2
|
|
|
|
\ "b2"
|
|
|
|
4 / Dropbox
|
|
|
|
\ "dropbox"
|
2017-01-09 06:09:19 +01:00
|
|
|
5 / Encrypt/Decrypt a remote
|
|
|
|
\ "crypt"
|
|
|
|
6 / Google Cloud Storage (this is not Google Drive)
|
2016-02-21 14:39:04 +01:00
|
|
|
\ "google cloud storage"
|
2017-01-09 06:09:19 +01:00
|
|
|
7 / Google Drive
|
2016-02-21 14:39:04 +01:00
|
|
|
\ "drive"
|
2017-01-09 06:09:19 +01:00
|
|
|
8 / Hubic
|
2016-02-21 14:39:04 +01:00
|
|
|
\ "hubic"
|
2017-01-09 06:09:19 +01:00
|
|
|
9 / Local Disk
|
2016-02-21 14:39:04 +01:00
|
|
|
\ "local"
|
2017-01-09 06:09:19 +01:00
|
|
|
10 / Microsoft OneDrive
|
2016-02-21 14:39:04 +01:00
|
|
|
\ "onedrive"
|
2017-01-09 06:09:19 +01:00
|
|
|
11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
|
2016-02-21 14:39:04 +01:00
|
|
|
\ "swift"
|
2017-03-05 11:14:57 +01:00
|
|
|
12 / SSH/SFTP Connection
|
|
|
|
\ "sftp"
|
|
|
|
13 / Yandex Disk
|
2016-02-21 14:39:04 +01:00
|
|
|
\ "yandex"
|
|
|
|
Storage> 4
|
2015-10-03 15:23:12 +02:00
|
|
|
Dropbox App Key - leave blank normally.
|
2017-01-09 06:09:19 +01:00
|
|
|
app_key>
|
2015-10-03 15:23:12 +02:00
|
|
|
Dropbox App Secret - leave blank normally.
|
2017-01-09 06:09:19 +01:00
|
|
|
app_secret>
|
2014-07-17 21:03:11 +02:00
|
|
|
Remote config
|
|
|
|
Please visit:
|
|
|
|
https://www.dropbox.com/1/oauth2/authorize?client_id=XXXXXXXXXXXXXXX&response_type=code
|
|
|
|
Enter the code: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXXXXXXXX
|
|
|
|
--------------------
|
|
|
|
[remote]
|
2017-01-09 06:09:19 +01:00
|
|
|
app_key =
|
|
|
|
app_secret =
|
2014-07-17 21:03:11 +02:00
|
|
|
token = XXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXX_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
|
|
|
--------------------
|
|
|
|
y) Yes this is OK
|
|
|
|
e) Edit this remote
|
|
|
|
d) Delete this remote
|
|
|
|
y/e/d> y
|
|
|
|
```
|
|
|
|
|
|
|
|
You can then use it like this,
|
|
|
|
|
|
|
|
List directories in top level of your dropbox
|
|
|
|
|
|
|
|
rclone lsd remote:
|
|
|
|
|
|
|
|
List all the files in your dropbox
|
|
|
|
|
|
|
|
rclone ls remote:
|
|
|
|
|
|
|
|
To copy a local directory to a dropbox directory called backup
|
|
|
|
|
|
|
|
rclone copy /home/source remote:backup
|
|
|
|
|
2017-05-26 16:09:31 +02:00
|
|
|
### Modified time and Hashes ###
|
2014-07-17 21:03:11 +02:00
|
|
|
|
2017-05-21 22:35:33 +02:00
|
|
|
Dropbox supports modified times, but the only way to set a
|
|
|
|
modification time is to re-upload the file.
|
|
|
|
|
|
|
|
This means that if you uploaded your data with an older version of
|
|
|
|
rclone which didn't support the v2 API and modified times, rclone will
|
|
|
|
decide to upload all your old data to fix the modification times. If
|
|
|
|
you don't want this to happen use `--size-only` or `--checksum` flag
|
|
|
|
to stop it.
|
2015-05-18 21:07:49 +02:00
|
|
|
|
2017-05-26 16:09:31 +02:00
|
|
|
Dropbox supports [its own hash
|
|
|
|
type](https://www.dropbox.com/developers/reference/content-hash) which
|
|
|
|
is checked for all transfers.
|
|
|
|
|
2015-11-14 12:38:35 +01:00
|
|
|
### Specific options ###
|
|
|
|
|
|
|
|
Here are the command line options specific to this cloud storage
|
|
|
|
system.
|
|
|
|
|
|
|
|
#### --dropbox-chunk-size=SIZE ####
|
|
|
|
|
2017-11-21 18:30:50 +01:00
|
|
|
Any files larger than this will be uploaded in chunks of this
|
|
|
|
size. The default is 48MB. The maximum is 150MB.
|
|
|
|
|
|
|
|
Note that chunks are buffered in memory (one at a time) so rclone can
|
|
|
|
deal with retries. Setting this larger will increase the speed
|
|
|
|
slightly (at most 10% for 128MB in tests) at the cost of using more
|
|
|
|
memory. It can be set smaller if you are tight on memory.
|
2015-11-14 12:38:35 +01:00
|
|
|
|
2015-06-06 11:05:21 +02:00
|
|
|
### Limitations ###
|
2015-05-18 21:07:49 +02:00
|
|
|
|
2015-11-14 12:20:04 +01:00
|
|
|
Note that Dropbox is case insensitive so you can't have a file called
|
2015-07-30 21:26:29 +02:00
|
|
|
"Hello.doc" and one called "hello.doc".
|
2015-08-20 19:36:06 +02:00
|
|
|
|
|
|
|
There are some file names such as `thumbs.db` which Dropbox can't
|
|
|
|
store. There is a full list of them in the ["Ignored Files" section
|
|
|
|
of this document](https://www.dropbox.com/en/help/145). Rclone will
|
|
|
|
issue an error message `File name disallowed - not uploading` if it
|
2018-04-13 14:24:58 +02:00
|
|
|
attempts to upload one of those file names, but the sync won't fail.
|
2016-03-22 15:46:43 +01:00
|
|
|
|
|
|
|
If you have more than 10,000 files in a directory then `rclone purge
|
|
|
|
dropbox:dir` will return the error `Failed to purge: There are too
|
|
|
|
many files involved in this operation`. As a work-around do an
|
2017-04-24 17:38:49 +02:00
|
|
|
`rclone delete dropbox:dir` followed by an `rclone rmdir dropbox:dir`.
|