http://techwiki.co.uk/index.php?title=RClone_-_Dropbox&feed=atom&action=historyRClone - Dropbox - Revision history2024-03-28T18:20:35ZRevision history for this page on the wikiMediaWiki 1.34.0http://techwiki.co.uk/index.php?title=RClone_-_Dropbox&diff=131&oldid=prevAdam.birds: Created page with "=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..."2016-04-30T15:34:35Z<p>Created page with "=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..."</p>
<p><b>New page</b></p><div>=Dropbox=<br />
<br />
Paths are specified as '''remote:path'''<br />
<br />
Dropbox paths may be as deep as required, eg '''remote:directory/subdirectory'''.<br />
<br />
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.<br />
<br />
==Setup==<br />
<br />
Here is an example of how to make a remote called '''remote'''. First run:<br />
<br />
<pre><br />
rclone config<br />
</pre><br />
<br />
This will guide you through an interactive setup process:<br />
<br />
<pre><br />
n) New remote<br />
d) Delete remote<br />
q) Quit config<br />
e/n/d/q> n<br />
name> remote<br />
Type of storage to configure.<br />
Choose a number from below, or type in your own value<br />
1 / Amazon Cloud Drive<br />
\ "amazon cloud drive"<br />
2 / Amazon S3 (also Dreamhost, Ceph)<br />
\ "s3"<br />
3 / Backblaze B2<br />
\ "b2"<br />
4 / Dropbox<br />
\ "dropbox"<br />
5 / Google Cloud Storage (this is not Google Drive)<br />
\ "google cloud storage"<br />
6 / Google Drive<br />
\ "drive"<br />
7 / Hubic<br />
\ "hubic"<br />
8 / Local Disk<br />
\ "local"<br />
9 / Microsoft OneDrive<br />
\ "onedrive"<br />
10 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)<br />
\ "swift"<br />
11 / Yandex Disk<br />
\ "yandex"<br />
Storage> 4<br />
Dropbox App Key - leave blank normally.<br />
app_key> <br />
Dropbox App Secret - leave blank normally.<br />
app_secret> <br />
Remote config<br />
Please visit:<br />
https://www.dropbox.com/1/oauth2/authorize?client_id=XXXXXXXXXXXXXXX&response_type=code<br />
Enter the code: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXXXXXXXX<br />
--------------------<br />
[remote]<br />
app_key = <br />
app_secret = <br />
token = XXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXX_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br />
--------------------<br />
y) Yes this is OK<br />
e) Edit this remote<br />
d) Delete this remote<br />
y/e/d> y<br />
</pre><br />
<br />
==Usage==<br />
<br />
You can then use it like this:<br />
<br />
List directories in top level of your Dropbox:<br />
<br />
<pre><br />
rclone lsd remote:<br />
</pre><br />
<br />
List all the files in your dropbox<br />
<br />
<pre><br />
rclone ls remote:<br />
</pre><br />
<br />
To copy a local directory to a Dropbox directory called backup:<br />
<br />
<pre><br />
rclone copy /home/source remote:backup<br />
</pre><br />
<br />
==Modified time and MD5SUMs==<br />
<br />
Dropbox doesn’t provide the ability to set modification times in the V1 public API, so rclone can’t support modified time with Dropbox.<br />
<br />
This may change in the future - see these issues for details:<br />
<br />
*<span class="plainlinks">[https://github.com/ncw/rclone/issues/349 Dropbox V2 API]</span><br />
*<span class="plainlinks">[https://github.com/ncw/rclone/issues/348 Allow syncs for remotes that can’t set modtime on existing objects]</span><br />
<br />
Dropbox doesn’t return any sort of checksum (MD5 or SHA1).<br />
<br />
Together that means that syncs to dropbox will effectively have the '''--size-only''' flag set.<br />
<br />
==Specific Options==<br />
<br />
Here are the command line options specific to this cloud storage system.<br />
<br />
<pre><br />
–dropbox-chunk-size=SIZE<br />
</pre><br />
<br />
Upload chunk size. Max 150M. The default is 128MB. Note that this isn’t buffered into memory.<br />
<br />
==Limitations==<br />
<br />
Note that Dropbox is case insensitive so you can’t have a file called “Hello.doc” and one called “hello.doc”.<br />
<br />
There are some file names such as '''thumbs.db''' which Dropbox can’t store. There is a full list of them in the <span class="plainlinks">[https://www.dropbox.com/en/help/145 “Ignored Files” section of this document]</span>. Rclone will issue an error message '''File name disallowed - not uploading''' if it attempt to upload one of those file names, but the sync won’t fail.<br />
<br />
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 '''rclone delete dropbix:dir''' followed by an '''rclone rmdir dropbox:dir'''.<br />
<br />
[[Category:RClone]]<br />
[[Category:Linux]]<br />
[[Category:Contents]]</div>Adam.birds