Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

Version v1.38

Nick Craig-Woodd96e45ba5b06
diff --git a/MANUAL.html b/MANUAL.html
index fd1b9026e..f5e77b908 100644
--- a/MANUAL.html
+++ b/MANUAL.html
@@ -12,25 +12,36 @@
<div id="header">
<h1 class="title">rclone(1) User Manual</h1>
<h2 class="author">Nick Craig-Wood</h2>
-<h3 class="date">Jul 22, 2017</h3>
+<h3 class="date">Sep 30, 2017</h3>
</div>
<h1 id="rclone">Rclone</h1>
<p><a href="https://rclone.org/"><img src="https://rclone.org/img/rclone-120x120.png" alt="Logo" /></a></p>
-<p>Rclone is a command line program to sync files and directories to and from</p>
+<p>Rclone is a command line program to sync files and directories to and from:</p>
<ul>
-<li>Google Drive</li>
+<li>Amazon Drive</li>
<li>Amazon S3</li>
-<li>Openstack Swift / Rackspace cloud files / Memset Memstore</li>
+<li>Backblaze B2</li>
+<li>Box</li>
+<li>Ceph</li>
+<li>Dreamhost</li>
<li>Dropbox</li>
+<li>FTP</li>
<li>Google Cloud Storage</li>
-<li>Amazon Drive</li>
-<li>Microsoft OneDrive</li>
+<li>Google Drive</li>
+<li>HTTP</li>
<li>Hubic</li>
-<li>Backblaze B2</li>
-<li>Yandex Disk</li>
+<li>Memset Memstore</li>
+<li>Microsoft Azure Blob Storage</li>
+<li>Microsoft OneDrive</li>
+<li>Minio</li>
+<li>OVH</li>
+<li>Openstack Swift</li>
+<li>Oracle Cloud Storage</li>
+<li>QingStor</li>
+<li>Rackspace Cloud Files</li>
<li>SFTP</li>
-<li>FTP</li>
-<li>HTTP</li>
+<li>Wasabi</li>
+<li>Yandex Disk</li>
<li>The local filesystem</li>
</ul>
<p>Features</p>
@@ -84,7 +95,9 @@ sudo mandb </code></pre>
<p>Unzip the download and cd to the extracted folder.</p>
<pre><code>unzip -a rclone-current-osx-amd64.zip &amp;&amp; cd rclone-*-osx-amd64</code></pre>
<p>Move rclone to your $PATH. You will be prompted for your password.</p>
-<pre><code>sudo mv rclone /usr/local/bin/</code></pre>
+<pre><code>sudo mkdir -p /usr/local/bin
+sudo mv rclone /usr/local/bin/</code></pre>
+<p>(the <code>mkdir</code> command is safe to run, even if the directory already exists).</p>
<p>Remove the leftover files.</p>
<pre><code>cd .. &amp;&amp; rm -rf rclone-*-osx-amd64 rclone-current-osx-amd64.zip</code></pre>
<p>Run <code>rclone config</code> to setup. See <a href="https://rclone.org/docs/">rclone config docs</a> for more details.</p>
@@ -104,58 +117,30 @@ sudo mandb </code></pre>
<pre><code> - hosts: rclone-hosts
roles:
- rclone</code></pre>
-<h2 id="installation-with-snap">Installation with snap</h2>
-<h3 id="quickstart-1">Quickstart</h3>
-<ul>
-<li>install Snapd on your distro using the instructions below</li>
-<li>sudo snap install rclone --classic</li>
-<li>Run <code>rclone config</code> to setup. See <a href="https://rclone.org/docs/">rclone config docs</a> for more details.</li>
-</ul>
-<p>See below for how to install snapd if it isn't already installed</p>
-<h4 id="arch">Arch</h4>
-<pre><code>sudo pacman -S snapd</code></pre>
-<p>enable the snapd systemd service:</p>
-<pre><code>sudo systemctl enable --now snapd.socket</code></pre>
-<h4 id="debian-ubuntu">Debian / Ubuntu</h4>
-<pre><code>sudo apt install snapd</code></pre>
-<h4 id="fedora">Fedora</h4>
-<pre><code>sudo dnf copr enable zyga/snapcore
-sudo dnf install snapd</code></pre>
-<p>enable the snapd systemd service:</p>
-<pre><code>sudo systemctl enable --now snapd.service</code></pre>
-<p>SELinux support is in beta, so currently:</p>
-<pre><code>sudo setenforce 0</code></pre>
-<p>to persist, edit <code>/etc/selinux/config</code> to set <code>SELINUX=permissive</code> and reboot.</p>
-<h4 id="gentoo">Gentoo</h4>
-<p>Install the <a href="https://github.com/zyga/gentoo-snappy">gentoo-snappy overlay</a>.</p>
-<h4 id="openembeddedyocto">OpenEmbedded/Yocto</h4>
-<p>Install the <a href="https://github.com/morphis/meta-snappy/blob/master/README.md">snap meta layer</a>.</p>
-<h4 id="opensuse">openSUSE</h4>
-<pre><code>sudo zypper addrepo https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_42.2/ snappy
-sudo zypper install snapd</code></pre>
-<h4 id="openwrt">OpenWrt</h4>
-<p>Enable the snap-openwrt feed.</p>
<h2 id="configure">Configure</h2>
<p>First, you'll need to configure rclone. As the object storage systems have quite complicated authentication these are kept in a config file. (See the <code>--config</code> entry for how to find the config file and choose its location.)</p>
<p>The easiest way to make the config is to run rclone with the config option:</p>
<pre><code>rclone config</code></pre>
<p>See the following for detailed instructions for</p>
<ul>
-<li><a href="https://rclone.org/drive/">Google Drive</a></li>
+<li><a href="https://rclone.org/amazonclouddrive/">Amazon Drive</a></li>
<li><a href="https://rclone.org/s3/">Amazon S3</a></li>
-<li><a href="https://rclone.org/swift/">Swift / Rackspace Cloudfiles / Memset Memstore</a></li>
+<li><a href="https://rclone.org/b2/">Backblaze B2</a></li>
+<li><a href="https://rclone.org/box/">Box</a></li>
+<li><a href="https://rclone.org/crypt/">Crypt</a> - to encrypt other remotes</li>
<li><a href="https://rclone.org/dropbox/">Dropbox</a></li>
+<li><a href="https://rclone.org/ftp/">FTP</a></li>
<li><a href="https://rclone.org/googlecloudstorage/">Google Cloud Storage</a></li>
-<li><a href="https://rclone.org/local/">Local filesystem</a></li>
-<li><a href="https://rclone.org/amazonclouddrive/">Amazon Drive</a></li>
-<li><a href="https://rclone.org/b2/">Backblaze B2</a></li>
+<li><a href="https://rclone.org/drive/">Google Drive</a></li>
+<li><a href="https://rclone.org/http/">HTTP</a></li>
<li><a href="https://rclone.org/hubic/">Hubic</a></li>
+<li><a href="https://rclone.org/azureblob/">Microsoft Azure Blob Storage</a></li>
<li><a href="https://rclone.org/onedrive/">Microsoft OneDrive</a></li>
-<li><a href="https://rclone.org/yandex/">Yandex Disk</a></li>
+<li><a href="https://rclone.org/swift/">Openstack Swift / Rackspace Cloudfiles / Memset Memstore</a></li>
+<li><a href="https://rclone.org/qingstor/">QingStor</a></li>
<li><a href="https://rclone.org/sftp/">SFTP</a></li>
-<li><a href="https://rclone.org/ftp/">FTP</a></li>
-<li><a href="https://rclone.org/http/">HTTP</a></li>
-<li><a href="https://rclone.org/crypt/">Crypt</a> - to encrypt other remotes</li>
+<li><a href="https://rclone.org/yandex/">Yandex Disk</a></li>
+<li><a href="https://rclone.org/local/">The local filesystem</a></li>
</ul>
<h2 id="usage">Usage</h2>
<p>Rclone syncs a directory tree from one storage system to another.</p>
@@ -171,8 +156,16 @@ rclone sync /local/path remote:path # syncs /local/path to the remote</code></pr
<h2 id="rclone-config">rclone config</h2>
<p>Enter an interactive configuration session.</p>
<h3 id="synopsis">Synopsis</h3>
-<p>Enter an interactive configuration session.</p>
-<pre><code>rclone config</code></pre>
+<p><code>rclone config</code> enters an interactive configuration sessions where you can setup new remotes and manage existing ones. You may also set or remove a password to protect your configuration.</p>
+<p>Additional functions:</p>
+<ul>
+<li><code>rclone config edit</code> – same as above</li>
+<li><code>rclone config file</code> – show path of configuration file in use</li>
+<li><code>rclone config show</code> – print (decrypted) config file</li>
+</ul>
+<pre><code>rclone config [function] [flags]</code></pre>
+<h3 id="options">Options</h3>
+<pre><code> -h, --help help for config</code></pre>
<h2 id="rclone-copy">rclone copy</h2>
<p>Copy files from source to dest, skipping already copied</p>
<h3 id="synopsis-1">Synopsis</h3>
@@ -192,7 +185,9 @@ destpath/two.txt</code></pre>
destpath/sourcepath/two.txt</code></pre>
<p>If you are familiar with <code>rsync</code>, rclone always works as if you had written a trailing / - meaning &quot;copy the contents of this directory&quot;. This applies to all commands and whether you are talking about the source or destination.</p>
<p>See the <code>--no-traverse</code> option for controlling whether rclone lists the destination directory or not.</p>
-<pre><code>rclone copy source:path dest:path</code></pre>
+<pre><code>rclone copy source:path dest:path [flags]</code></pre>
+<h3 id="options-1">Options</h3>
+<pre><code> -h, --help help for copy</code></pre>
<h2 id="rclone-sync">rclone sync</h2>
<p>Make source and dest identical, modifying destination only.</p>
<h3 id="synopsis-2">Synopsis</h3>
@@ -201,7 +196,9 @@ destpath/sourcepath/two.txt</code></pre>
<p>Note that files in the destination won't be deleted if there were any errors at any point.</p>
<p>It is always the contents of the directory that is synced, not the directory so when source:path is a directory, it's the contents of source:path that are copied, not the directory name and contents. See extended explanation in the <code>copy</code> command above if unsure.</p>
<p>If dest:path doesn't exist, it is created and the source:path contents go there.</p>
-<pre><code>rclone sync source:path dest:path</code></pre>
+<pre><code>rclone sync source:path dest:path [flags]</code></pre>
+<h3 id="options-2">Options</h3>
+<pre><code> -h, --help help for sync</code></pre>
<h2 id="rclone-move">rclone move</h2>
<p>Move files from source to dest.</p>
<h3 id="synopsis-3">Synopsis</h3>
@@ -209,7 +206,9 @@ destpath/sourcepath/two.txt</code></pre>
<p>If no filters are in use and if possible this will server side move <code>source:path</code> into <code>dest:path</code>. After this <code>source:path</code> will no longer longer exist.</p>
<p>Otherwise for each file in <code>source:path</code> selected by the filters (if any) this will move it into <code>dest:path</code>. If possible a server side move will be used, otherwise it will copy it (server side if possible) into <code>dest:path</code> then delete the original (if no errors on copy) in <code>source:path</code>.</p>
<p><strong>Important</strong>: Since this can cause data loss, test first with the --dry-run flag.</p>
-<pre><code>rclone move source:path dest:path</code></pre>
+<pre><code>rclone move source:path dest:path [flags]</code></pre>
+<h3 id="options-3">Options</h3>
+<pre><code> -h, --help help for move</code></pre>
<h2 id="rclone-delete">rclone delete</h2>
<p>Remove the contents of path.</p>
<h3 id="synopsis-4">Synopsis</h3>
@@ -221,22 +220,30 @@ rclone --dry-run --min-size 100M delete remote:path</code></pre>
<p>Then delete</p>
<pre><code>rclone --min-size 100M delete remote:path</code></pre>
<p>That reads &quot;delete everything with a minimum size of 100 MB&quot;, hence delete all files bigger than 100MBytes.</p>
-<pre><code>rclone delete remote:path</code></pre>
+<pre><code>rclone delete remote:path [flags]</code></pre>
+<h3 id="options-4">Options</h3>
+<pre><code> -h, --help help for delete</code></pre>
<h2 id="rclone-purge">rclone purge</h2>
<p>Remove the path and all of its contents.</p>
<h3 id="synopsis-5">Synopsis</h3>
<p>Remove the path and all of its contents. Note that this does not obey include/exclude filters - everything will be removed. Use <code>delete</code> if you want to selectively delete files.</p>
-<pre><code>rclone purge remote:path</code></pre>
+<pre><code>rclone purge remote:path [flags]</code></pre>
+<h3 id="options-5">Options</h3>
+<pre><code> -h, --help help for purge</code></pre>
<h2 id="rclone-mkdir">rclone mkdir</h2>
<p>Make the path if it doesn't already exist.</p>
<h3 id="synopsis-6">Synopsis</h3>
<p>Make the path if it doesn't already exist.</p>
-<pre><code>rclone mkdir remote:path</code></pre>
+<pre><code>rclone mkdir remote:path [flags]</code></pre>
+<h3 id="options-6">Options</h3>
+<pre><code> -h, --help help for mkdir</code></pre>
<h2 id="rclone-rmdir">rclone rmdir</h2>
<p>Remove the path if empty.</p>
<h3 id="synopsis-7">Synopsis</h3>
<p>Remove the path. Note that you can't remove a path with objects in it, use purge for that.</p>
-<pre><code>rclone rmdir remote:path</code></pre>
+<pre><code>rclone rmdir remote:path [flags]</code></pre>
+<h3 id="options-7">Options</h3>
+<pre><code> -h, --help help for rmdir</code></pre>
<h2 id="rclone-check">rclone check</h2>
<p>Checks the files in the source and destination match.</p>
<h3 id="synopsis-8">Synopsis</h3>
@@ -244,52 +251,70 @@ rclone --dry-run --min-size 100M delete remote:path</code></pre>
<p>If you supply the --size-only flag, it will only compare the sizes not the hashes as well. Use this for a quick check.</p>
<p>If you supply the --download flag, it will download the data from both remotes and check them against each other on the fly. This can be useful for remotes that don't support hashes or if you really want to check all the data.</p>
<pre><code>rclone check source:path dest:path [flags]</code></pre>
-<h3 id="options">Options</h3>
-<pre><code> --download Check by downloading rather than with hash.</code></pre>
+<h3 id="options-8">Options</h3>
+<pre><code> --download Check by downloading rather than with hash.
+ -h, --help help for check</code></pre>
<h2 id="rclone-ls">rclone ls</h2>
<p>List all the objects in the path with size and path.</p>
<h3 id="synopsis-9">Synopsis</h3>
<p>List all the objects in the path with size and path.</p>
-<pre><code>rclone ls remote:path</code></pre>
+<pre><code>rclone ls remote:path [flags]</code></pre>
+<h3 id="options-9">Options</h3>
+<pre><code> -h, --help help for ls</code></pre>
<h2 id="rclone-lsd">rclone lsd</h2>
<p>List all directories/containers/buckets in the path.</p>
<h3 id="synopsis-10">Synopsis</h3>
<p>List all directories/containers/buckets in the path.</p>
-<pre><code>rclone lsd remote:path</code></pre>
+<pre><code>rclone lsd remote:path [flags]</code></pre>
+<h3 id="options-10">Options</h3>
+<pre><code> -h, --help help for lsd</code></pre>
<h2 id="rclone-lsl">rclone lsl</h2>
<p>List all the objects path with modification time, size and path.</p>
<h3 id="synopsis-11">Synopsis</h3>
<p>List all the objects path with modification time, size and path.</p>
-<pre><code>rclone lsl remote:path</code></pre>
+<pre><code>rclone lsl remote:path [flags]</code></pre>
+<h3 id="options-11">Options</h3>
+<pre><code> -h, --help help for lsl</code></pre>
<h2 id="rclone-md5sum">rclone md5sum</h2>
<p>Produces an md5sum file for all the objects in the path.</p>
<h3 id="synopsis-12">Synopsis</h3>
<p>Produces an md5sum file for all the objects in the path. This is in the same format as the standard md5sum tool produces.</p>
-<pre><code>rclone md5sum remote:path</code></pre>
+<pre><code>rclone md5sum remote:path [flags]</code></pre>
+<h3 id="options-12">Options</h3>
+<pre><code> -h, --help help for md5sum</code></pre>
<h2 id="rclone-sha1sum">rclone sha1sum</h2>
<p>Produces an sha1sum file for all the objects in the path.</p>
<h3 id="synopsis-13">Synopsis</h3>
<p>Produces an sha1sum file for all the objects in the path. This is in the same format as the standard sha1sum tool produces.</p>
-<pre><code>rclone sha1sum remote:path</code></pre>
+<pre><code>rclone sha1sum remote:path [flags]</code></pre>
+<h3 id="options-13">Options</h3>
+<pre><code> -h, --help help for sha1sum</code></pre>
<h2 id="rclone-size">rclone size</h2>
<p>Prints the total size and number of objects in remote:path.</p>
<h3 id="synopsis-14">Synopsis</h3>
<p>Prints the total size and number of objects in remote:path.</p>
-<pre><code>rclone size remote:path</code></pre>
+<pre><code>rclone size remote:path [flags]</code></pre>
+<h3 id="options-14">Options</h3>
+<pre><code> -h, --help help for size</code></pre>
<h2 id="rclone-version">rclone version</h2>
<p>Show the version number.</p>
<h3 id="synopsis-15">Synopsis</h3>
<p>Show the version number.</p>
-<pre><code>rclone version</code></pre>
+<pre><code>rclone version [flags]</code></pre>
+<h3 id="options-15">Options</h3>
+<pre><code> -h, --help help for version</code></pre>
<h2 id="rclone-cleanup">rclone cleanup</h2>
<p>Clean up the remote if possible</p>
<h3 id="synopsis-16">Synopsis</h3>
<p>Clean up the remote if possible. Empty the trash or delete old file versions. Not supported by all remotes.</p>
-<pre><code>rclone cleanup remote:path</code></pre>
+<pre><code>rclone cleanup remote:path [flags]</code></pre>
+<h3 id="options-16">Options</h3>
+<pre><code> -h, --help help for cleanup</code></pre>
<h2 id="rclone-dedupe">rclone dedupe</h2>
<p>Interactively find duplicate files delete/rename them.</p>
<h3 id="synopsis-17">Synopsis</h3>
-<p>By default <code>dedup</code> interactively finds duplicate files and offers to delete all but one or rename them to be different. Only useful with Google Drive which can have duplicate file names.</p>
+<p>By default <code>dedupe</code> interactively finds duplicate files and offers to delete all but one or rename them to be different. Only useful with Google Drive which can have duplicate file names.</p>
+<p>In the first pass it will merge directories with the same name. It will do this iteratively until all the identical directories have been merged.</p>
<p>The <code>dedupe</code> command will delete all but one of any identical (same md5sum) files it finds without confirmation. This means that for most duplicated files the <code>dedupe</code> command will not be interactive. You can use <code>--dry-run</code> to see what would happen without doing anything.</p>
<p>Here is an example run.</p>
<p>Before - with duplicates</p>
@@ -347,13 +372,16 @@ two-3.txt: renamed from: two.txt</code></pre>
<p>Or</p>
<pre><code>rclone dedupe rename &quot;drive:Google Photos&quot;</code></pre>
<pre><code>rclone dedupe [mode] remote:path [flags]</code></pre>
-<h3 id="options-1">Options</h3>
-<pre><code> --dedupe-mode string Dedupe mode interactive|skip|first|newest|oldest|rename. (default &quot;interactive&quot;)</code></pre>
+<h3 id="options-17">Options</h3>
+<pre><code> --dedupe-mode string Dedupe mode interactive|skip|first|newest|oldest|rename. (default &quot;interactive&quot;)
+ -h, --help help for dedupe</code></pre>
<h2 id="rclone-authorize">rclone authorize</h2>
<p>Remote authorization.</p>
<h3 id="synopsis-18">Synopsis</h3>
<p>Remote authorization. Used to authorize a remote or headless rclone from a machine with a browser - use as instructed by rclone config.</p>
-<pre><code>rclone authorize</code></pre>
+<pre><code>rclone authorize [flags]</code></pre>
+<h3 id="options-18">Options</h3>
+<pre><code> -h, --help help for authorize</code></pre>
<h2 id="rclone-cat">rclone cat</h2>
<p>Concatenates any files and sends them to stdout.</p>
<h3 id="synopsis-19">Synopsis</h3>
@@ -366,10 +394,11 @@ two-3.txt: renamed from: two.txt</code></pre>
<pre><code>rclone --include &quot;*.txt&quot; cat remote:path/to/dir</code></pre>
<p>Use the --head flag to print characters only at the start, --tail for the end and --offset and --count to print a section in the middle. Note that if offset is negative it will count from the end, so --offset -1 --count 1 is equivalent to --tail 1.</p>
<pre><code>rclone cat remote:path [flags]</code></pre>
-<h3 id="options-2">Options</h3>
+<h3 id="options-19">Options</h3>
<pre><code> --count int Only print N characters. (default -1)
--discard Discard the output instead of printing.
--head int Only print the first N characters.
+ -h, --help help for cat
--offset int Start printing at offset N (or from end if -ve).
--tail int Only print the last N characters.</code></pre>
<h2 id="rclone-copyto">rclone copyto</h2>
@@ -387,7 +416,9 @@ if src is directory
copy it to dst, overwriting existing files if they exist
see copy command for full details</code></pre>
<p>This doesn't transfer unchanged files, testing by size and modification time or MD5SUM. It doesn't delete files from the destination.</p>
-<pre><code>rclone copyto source:path dest:path</code></pre>
+<pre><code>rclone copyto source:path dest:path [flags]</code></pre>
+<h3 id="options-20">Options</h3>
+<pre><code> -h, --help help for copyto</code></pre>
<h2 id="rclone-cryptcheck">rclone cryptcheck</h2>
<p>Cryptcheck checks the integrity of a crypted remote.</p>
<h3 id="synopsis-21">Synopsis</h3>
@@ -399,40 +430,74 @@ if src is directory
<p>You can use it like this also, but that will involve downloading all the files in remote:path.</p>
<pre><code>rclone cryptcheck remote:path encryptedremote:path</code></pre>
<p>After it has run it will log the status of the encryptedremote:.</p>
-<pre><code>rclone cryptcheck remote:path cryptedremote:path</code></pre>
+<pre><code>rclone cryptcheck remote:path cryptedremote:path [flags]</code></pre>
+<h3 id="options-21">Options</h3>
+<pre><code> -h, --help help for cryptcheck</code></pre>
+<h2 id="rclone-cryptdecode">rclone cryptdecode</h2>
+<p>Cryptdecode returns unencrypted file names.</p>
+<h3 id="synopsis-22">Synopsis</h3>
+<p>rclone cryptdecode returns unencrypted file names when provided with a list of encrypted file names. List limit is 10 items.</p>
+<p>use it like this</p>
+<pre><code>rclone cryptdecode encryptedremote: encryptedfilename1 encryptedfilename2</code></pre>
+<pre><code>rclone cryptdecode encryptedremote: encryptedfilename [flags]</code></pre>
+<h3 id="options-22">Options</h3>
+<pre><code> -h, --help help for cryptdecode</code></pre>
<h2 id="rclone-dbhashsum">rclone dbhashsum</h2>
<p>Produces a Dropbbox hash file for all the objects in the path.</p>
-<h3 id="synopsis-22">Synopsis</h3>
+<h3 id="synopsis-23">Synopsis</h3>
<p>Produces a Dropbox hash file for all the objects in the path. The hashes are calculated according to <a href="https://www.dropbox.com/developers/reference/content-hash">Dropbox content hash rules</a>. The output is in the same format as md5sum and sha1sum.</p>
-<pre><code>rclone dbhashsum remote:path</code></pre>
+<pre><code>rclone dbhashsum remote:path [flags]</code></pre>
+<h3 id="options-23">Options</h3>
+<pre><code> -h, --help help for dbhashsum</code></pre>
<h2 id="rclone-genautocomplete">rclone genautocomplete</h2>
+<p>Output completion script for a given shell.</p>
+<h3 id="synopsis-24">Synopsis</h3>
+<p>Generates a shell completion script for rclone. Run with --help to list the supported shells.</p>
+<h3 id="options-24">Options</h3>
+<pre><code> -h, --help help for genautocomplete</code></pre>
+<h2 id="rclone-genautocomplete-bash">rclone genautocomplete bash</h2>
<p>Output bash completion script for rclone.</p>
-<h3 id="synopsis-23">Synopsis</h3>
+<h3 id="synopsis-25">Synopsis</h3>
<p>Generates a bash shell autocompletion script for rclone.</p>
<p>This writes to /etc/bash_completion.d/rclone by default so will probably need to be run with sudo or as root, eg</p>
-<pre><code>sudo rclone genautocomplete</code></pre>
+<pre><code>sudo rclone genautocomplete bash</code></pre>
<p>Logout and login again to use the autocompletion scripts, or source them directly</p>
<pre><code>. /etc/bash_completion</code></pre>
<p>If you supply a command line argument the script will be written there.</p>
-<pre><code>rclone genautocomplete [output_file]</code></pre>
+<pre><code>rclone genautocomplete bash [output_file] [flags]</code></pre>
+<h3 id="options-25">Options</h3>
+<pre><code> -h, --help help for bash</code></pre>
+<h2 id="rclone-genautocomplete-zsh">rclone genautocomplete zsh</h2>
+<p>Output zsh completion script for rclone.</p>
+<h3 id="synopsis-26">Synopsis</h3>
+<p>Generates a zsh autocompletion script for rclone.</p>
+<p>This writes to /usr/share/zsh/vendor-completions/_rclone by default so will probably need to be run with sudo or as root, eg</p>
+<pre><code>sudo rclone genautocomplete zsh</code></pre>
+<p>Logout and login again to use the autocompletion scripts, or source them directly</p>
+<pre><code>autoload -U compinit &amp;&amp; compinit</code></pre>
+<p>If you supply a command line argument the script will be written there.</p>
+<pre><code>rclone genautocomplete zsh [output_file] [flags]</code></pre>
+<h3 id="options-26">Options</h3>
+<pre><code> -h, --help help for zsh</code></pre>
<h2 id="rclone-gendocs">rclone gendocs</h2>
<p>Output markdown docs for rclone to the directory supplied.</p>
-<h3 id="synopsis-24">Synopsis</h3>
+<h3 id="synopsis-27">Synopsis</h3>
<p>This produces markdown docs for the rclone commands to the directory supplied. These are in a format suitable for hugo to render into the rclone.org website.</p>
<pre><code>rclone gendocs output_directory [flags]</code></pre>
-<h3 id="options-3">Options</h3>
+<h3 id="options-27">Options</h3>
<pre><code> -h, --help help for gendocs</code></pre>
<h2 id="rclone-listremotes">rclone listremotes</h2>
<p>List all the remotes in the config file.</p>
-<h3 id="synopsis-25">Synopsis</h3>
+<h3 id="synopsis-28">Synopsis</h3>
<p>rclone listremotes lists all the available remotes from the config file.</p>
<p>When uses with the -l flag it lists the types too.</p>
<pre><code>rclone listremotes [flags]</code></pre>
-<h3 id="options-4">Options</h3>
-<pre><code> -l, --long Show the type as well as names.</code></pre>
+<h3 id="options-28">Options</h3>
+<pre><code> -h, --help help for listremotes
+ -l, --long Show the type as well as names.</code></pre>
<h2 id="rclone-lsjson">rclone lsjson</h2>
<p>List directories and objects in the path in JSON format.</p>
-<h3 id="synopsis-26">Synopsis</h3>
+<h3 id="synopsis-29">Synopsis</h3>
<p>List directories and objects in the path in JSON format.</p>
<p>The output is an array of Items, where each Item looks like this</p>
<p>{ &quot;Hashes&quot; : { &quot;SHA-1&quot; : &quot;f572d396fae9206628714fb2ce00f72e94f2258f&quot;, &quot;MD5&quot; : &quot;b1946ac92492d2347c6235b4d2611184&quot;, &quot;DropboxHash&quot; : &quot;ecb65bb98f9d905b70458986c39fcbad7715e5f2fcc3b1f07767d7c83e2438cc&quot; }, &quot;IsDir&quot; : false, &quot;ModTime&quot; : &quot;2017-05-31T16:15:57.034468261+01:00&quot;, &quot;Name&quot; : &quot;file.txt&quot;, &quot;Path&quot; : &quot;full/path/goes/here/file.txt&quot;, &quot;Size&quot; : 6 }</p>
@@ -441,13 +506,14 @@ if src is directory
<p>The time is in RFC3339 format with nanosecond precision.</p>
<p>The whole output can be processed as a JSON blob, or alternatively it can be processed line by line as each item is written one to a line.</p>
<pre><code>rclone lsjson remote:path [flags]</code></pre>
-<h3 id="options-5">Options</h3>
+<h3 id="options-29">Options</h3>
<pre><code> --hash Include hashes in the output (may take longer).
+ -h, --help help for lsjson
--no-modtime Don&#39;t read the modification time (can speed things up).
-R, --recursive Recurse into the listing.</code></pre>
<h2 id="rclone-mount">rclone mount</h2>
<p>Mount the remote as a mountpoint. <strong>EXPERIMENTAL</strong></p>
-<h3 id="synopsis-27">Synopsis</h3>
+<h3 id="synopsis-30">Synopsis</h3>
<p>rclone mount allows Linux, FreeBSD, macOS and Windows to mount any of Rclone's cloud storage systems as a file system with FUSE.</p>
<p>This is <strong>EXPERIMENTAL</strong> - use with care.</p>
<p>First set up your remote using <code>rclone config</code>. Check it works with <code>rclone ls</code> etc.</p>
@@ -461,6 +527,12 @@ if src is directory
fusermount -u /path/to/local/mount
# OS X
umount /path/to/local/mount</code></pre>
+<h3 id="installing-on-windows">Installing on Windows</h3>
+<p>To run rclone mount on Windows, you will need to download and install <a href="http://www.secfs.net/winfsp/">WinFsp</a>.</p>
+<p>WinFsp is an <a href="https://github.com/billziss-gh/winfsp">open source</a> Windows File System Proxy which makes it easy to write user space file systems for Windows. It provides a FUSE emulation layer which rclone uses combination with <a href="https://github.com/billziss-gh/cgofuse">cgofuse</a>. Both of these packages are by Bill Zissimopoulos who was very helpful during the implementation of rclone mount for Windows.</p>
+<h4 id="windows-caveats">Windows caveats</h4>
+<p>Note that drives created as Administrator are not visible by other accounts (including the account that was elevated as Administrator). So if you start a Windows drive from an Administrative Command Prompt and then try to access the same drive from Explorer (which does not run as Administrator), you will not be able to see the new drive.</p>
+<p>The easiest way around this is to start the drive from a normal command prompt. It is also possible to start a drive from the SYSTEM account (using <a href="https://github.com/billziss-gh/winfsp/wiki/WinFsp-Service-Architecture">the WinFsp.Launcher infrastructure</a>) which creates drives accessible for everyone on the system.</p>
<h3 id="limitations">Limitations</h3>
<p>This can only write files seqentially, it can only seek when reading. This means that many applications won't work with their files on an rclone mount.</p>
<p>The bucket based remotes (eg Swift, S3, Google Compute Storage, B2, Hubic) won't work from the root - you will need to specify a bucket, or a path within the bucket. So <code>swift:</code> won't work whereas <code>swift:bucket</code> will as will <code>swift:bucket/path</code>. None of these support the concept of directories, so empty directories will have a tendency to disappear once they fall out of the directory cache.</p>
@@ -473,17 +545,8 @@ umount /path/to/local/mount</code></pre>
<p>Using the <code>--dir-cache-time</code> flag, you can set how long a directory should be considered up to date and not refreshed from the backend. Changes made locally in the mount may appear immediately or invalidate the cache. However, changes done on the remote will only be picked up once the cache expires.</p>
<p>Alternatively, you can send a <code>SIGHUP</code> signal to rclone for it to flush all directory caches, regardless of how old they are. Assuming only one rclone instance is running, you can reset the cache like this:</p>
<pre><code>kill -SIGHUP $(pidof rclone)</code></pre>
-<h3 id="bugs">Bugs</h3>
-<ul>
-<li>All the remotes should work for read, but some may not for write
-<ul>
-<li>those which need to know the size in advance won't - eg B2</li>
-<li>maybe should pass in size as -1 to mean work it out</li>
-<li>Or put in an an upload cache to cache the files on disk first</li>
-</ul></li>
-</ul>
<pre><code>rclone mount remote:path /path/to/mountpoint [flags]</code></pre>
-<h3 id="options-6">Options</h3>
+<h3 id="options-30">Options</h3>
<pre><code> --allow-non-empty Allow mounting over a non-empty directory.
--allow-other Allow access to other users.
--allow-root Allow access to root user.
@@ -492,6 +555,7 @@ umount /path/to/local/mount</code></pre>
--dir-cache-time duration Time to cache directory entries for. (default 5m0s)
--fuse-flag stringArray Flags or arguments to be passed direct to libfuse/WinFsp. Repeat if required.
--gid uint32 Override the gid field set by the filesystem. (default 502)
+ -h, --help help for mount
--max-read-ahead int The number of bytes that can be prefetched for sequential reads. (default 128k)
--no-checksum Don&#39;t compare checksums on up/download.
--no-modtime Don&#39;t read/write the modification time (can speed things up).
@@ -504,7 +568,7 @@ umount /path/to/local/mount</code></pre>
--write-back-cache Makes kernel buffer writes before sending them to rclone. Without this, writethrough caching is used.</code></pre>
<h2 id="rclone-moveto">rclone moveto</h2>
<p>Move file or directory from source to dest.</p>
-<h3 id="synopsis-28">Synopsis</h3>
+<h3 id="synopsis-31">Synopsis</h3>
<p>If source:path is a file or directory then it moves it to a file or directory named dest:path.</p>
<p>This can be used to rename files or upload single files to other than their existing name. If the source is a directory then it acts exacty like the move command.</p>
<p>So</p>
@@ -518,10 +582,12 @@ if src is directory
see move command for full details</code></pre>
<p>This doesn't transfer unchanged files, testing by size and modification time or MD5SUM. src will be deleted on successful transfer.</p>
<p><strong>Important</strong>: Since this can cause data loss, test first with the --dry-run flag.</p>
-<pre><code>rclone moveto source:path dest:path</code></pre>
+<pre><code>rclone moveto source:path dest:path [flags]</code></pre>
+<h3 id="options-31">Options</h3>
+<pre><code> -h, --help help for moveto</code></pre>
<h2 id="rclone-ncdu">rclone ncdu</h2>
<p>Explore a remote with a text based user interface.</p>
-<h3 id="synopsis-29">Synopsis</h3>
+<h3 id="synopsis-32">Synopsis</h3>
<p>This displays a text based user interface allowing the navigation of a remote. It is most useful for answering the question - &quot;What is using all my disk space?&quot;.</p>
<p>To make the user interface it first scans the entire remote given and builds an in memory representation. rclone ncdu can be used during this scanning phase and you will see it building up the directory structure as it goes along.</p>
<p>Here are the keys - press '?' to toggle the help on and off</p>
@@ -534,18 +600,76 @@ if src is directory
? to toggle help on and off
q/ESC/c-C to quit</code></pre>
<p>This an homage to the <a href="https://dev.yorhel.nl/ncdu">ncdu tool</a> but for rclone remotes. It is missing lots of features at the moment, most importantly deleting files, but is useful as it stands.</p>
-<pre><code>rclone ncdu remote:path</code></pre>
+<pre><code>rclone ncdu remote:path [flags]</code></pre>
+<h3 id="options-32">Options</h3>
+<pre><code> -h, --help help for ncdu</code></pre>
<h2 id="rclone-obscure">rclone obscure</h2>
<p>Obscure password for use in the rclone.conf</p>
-<h3 id="synopsis-30">Synopsis</h3>
+<h3 id="synopsis-33">Synopsis</h3>
<p>Obscure password for use in the rclone.conf</p>
-<pre><code>rclone obscure password</code></pre>
+<pre><code>rclone obscure password [flags]</code></pre>
+<h3 id="options-33">Options</h3>
+<pre><code> -h, --help help for obscure</code></pre>
+<h2 id="rclone-rcat">rclone rcat</h2>
+<p>Copies standard input to file on remote.</p>
+<h3 id="synopsis-34">Synopsis</h3>
+<p>rclone rcat reads from standard input (stdin) and copies it to a single remote file.</p>
+<pre><code>echo &quot;hello world&quot; | rclone rcat remote:path/to/file
+ffmpeg - | rclone rcat --checksum remote:path/to/file</code></pre>
+<p>If the remote file already exists, it will be overwritten.</p>
+<p>rcat will try to upload small files in a single request, which is usually more efficient than the streaming/chunked upload endpoints, which use multiple requests. Exact behaviour depends on the remote. What is considered a small file may be set through <code>--streaming-upload-cutoff</code>. Uploading only starts after the cutoff is reached or if the file ends before that. The data must fit into RAM. The cutoff needs to be small enough to adhere the limits of your remote, please see there. Generally speaking, setting this cutoff too high will decrease your performance.</p>
+<p>Note that the upload can also not be retried because the data is not kept around until the upload succeeds. If you need to transfer a lot of data, you're better off caching locally and then <code>rclone move</code> it to the destination.</p>
+<pre><code>rclone rcat remote:path [flags]</code></pre>
+<h3 id="options-34">Options</h3>
+<pre><code> -h, --help help for rcat</code></pre>
<h2 id="rclone-rmdirs">rclone rmdirs</h2>
<p>Remove empty directories under the path.</p>
-<h3 id="synopsis-31">Synopsis</h3>
+<h3 id="synopsis-35">Synopsis</h3>
<p>This removes any empty directories (or directories that only contain empty directories) under the path that it finds, including the path if it has nothing in.</p>
<p>This is useful for tidying up remotes that rclone has left a lot of empty directories in.</p>
-<pre><code>rclone rmdirs remote:path</code></pre>
+<pre><code>rclone rmdirs remote:path [flags]</code></pre>
+<h3 id="options-35">Options</h3>
+<pre><code> -h, --help help for rmdirs</code></pre>
+<h2 id="rclone-tree">rclone tree</h2>
+<p>List the contents of the remote in a tree like fashion.</p>
+<h3 id="synopsis-36">Synopsis</h3>
+<p>rclone tree lists the contents of a remote in a similar way to the unix tree command.</p>
+<p>For example</p>
+<pre><code>$ rclone tree remote:path
+/
+├── file1
+├── file2
+├── file3
+└── subdir
+ ├── file4
+ └── file5
+
+1 directories, 5 files</code></pre>
+<p>You can use any of the filtering options with the tree command (eg --include and --exclude). You can also use --fast-list.</p>
+<p>The tree command has many options for controlling the listing which are compatible with the tree command. Note that not all of them have short options as they conflict with rclone's short options.</p>
+<pre><code>rclone tree remote:path [flags]</code></pre>
+<h3 id="options-36">Options</h3>
+<pre><code> -a, --all All files are listed (list . files too).
+ -C, --color Turn colorization on always.
+ -d, --dirs-only List directories only.
+ --dirsfirst List directories before files (-U disables).
+ --full-path Print the full path prefix for each file.
+ -h, --help help for tree
+ --human Print the size in a more human readable way.
+ --level int Descend only level directories deep.
+ -D, --modtime Print the date of last modification.
+ -i, --noindent Don&#39;t print indentation lines.
+ --noreport Turn off file/directory count at end of tree listing.
+ -o, --output string Output to file instead of stdout.
+ -p, --protections Print the protections for each file.
+ -Q, --quote Quote filenames with double quotes.
+ -s, --size Print the size in bytes of each file.
+ --sort string Select sort: name,version,size,mtime,ctime.
+ --sort-ctime Sort files by last status change time.
+ -t, --sort-modtime Sort files by last modification time.
+ -r, --sort-reverse Reverse the order of the sort.
+ -U, --unsorted Leave files unsorted.
+ --version Sort files alphanumerically by version.</code></pre>
<h2 id="copying-single-files">Copying single files</h2>
<p>rclone normally syncs or copies directories. However, if the source remote points to a file, rclone will just copy that file. The destination remote must point to a directory - rclone will give the error <code>Failed to create file system for &quot;remote:file&quot;: is a file not a directory</code> if it isn't.</p>
<p>For example, suppose you have a remote with a file in called <code>test.jpg</code>, then you could copy just that file like this</p>
@@ -588,7 +712,7 @@ if src is directory
<p>This can be used when scripting to make aged backups efficiently, eg</p>
<pre><code>rclone sync remote:current-backup remote:previous-backup
rclone sync /path/to/files remote:current-backup</code></pre>
-<h2 id="options-7">Options</h2>
+<h2 id="options-37">Options</h2>
<p>Rclone has a number of options to control its behaviour.</p>
<p>Options which use TIME use the go time parser. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as &quot;300ms&quot;, &quot;-1.5h&quot; or &quot;2h45m&quot;. Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;.</p>
<p>Options which use SIZE use kByte by default. However, a suffix of <code>b</code> for bytes, <code>k</code> for kBytes, <code>M</code> for MBytes and <code>G</code> for GBytes may be used. These are the binary units, eg 1, 2**10, 2**20, 2**30 respectively.</p>
@@ -600,6 +724,8 @@ rclone sync /path/to/files remote:current-backup</code></pre>
<pre><code>rclone sync /path/to/local remote:current --backup-dir remote:old</code></pre>
<p>will sync <code>/path/to/local</code> to <code>remote:current</code>, but for any files which would have been updated or deleted will be stored in <code>remote:old</code>.</p>
<p>If running rclone from a script you might want to use today's date as the directory name passed to <code>--backup-dir</code> to store the old files, or you might want to pass <code>--suffix</code> with today's date.</p>
+<h3 id="bind-string">--bind string</h3>
+<p>Local address to bind to for outgoing connections. This can be an IPv4 address (1.2.3.4), an IPv6 address (1234::789A) or host name. If the host name doesn't resolve or resoves to more than one IP address it will give an error.</p>
<h3 id="bwlimitbandwidth_spec">--bwlimit=BANDWIDTH_SPEC</h3>
<p>This option controls the bandwidth limit. Limits can be specified in two ways: As a single limit, or as a timetable.</p>
<p>Single limits last for the duration of the session. To use a single limit, specify the desired bandwidth in kBytes/s, or use a suffix b|k|M|G. The default is <code>0</code> which means to not limit bandwidth.</p>
@@ -634,6 +760,14 @@ rclone sync /path/to/files remote:current-backup</code></pre>
<p>The connection timeout is the amount of time rclone will wait for a connection to go through to a remote object storage system. It is <code>1m</code> by default.</p>
<h3 id="dedupe-mode-mode">--dedupe-mode MODE</h3>
<p>Mode to run dedupe command in. One of <code>interactive</code>, <code>skip</code>, <code>first</code>, <code>newest</code>, <code>oldest</code>, <code>rename</code>. The default is <code>interactive</code>. See the dedupe command for more information as to what these options mean.</p>
+<h3 id="disable-featurefeature...">--disable FEATURE,FEATURE,...</h3>
+<p>This disables a comma separated list of optional features. For example to disable server side move and server side copy use:</p>
+<pre><code>--disable move,copy</code></pre>
+<p>The features can be put in in any case.</p>
+<p>To see a list of which features can be disabled use:</p>
+<pre><code>--disable help</code></pre>
+<p>See the overview <a href="/overview/#features">features</a> and <a href="/overview/#optional-features">optional features</a> to get an idea of which feature does what.</p>
+<p>This flag can be useful for debugging and in exceptional circumstances (eg Google Drive limiting the total volume of Server Side Copies to 100GB/day).</p>
<h3 id="n---dry-run">-n, --dry-run</h3>
<p>Do a trial run with no permanent changes. Use this to see what rclone would do without actually doing it. Useful when setting up the <code>sync</code> command which deletes files in the destination.</p>
<h3 id="ignore-checksum">--ignore-checksum</h3>
@@ -649,6 +783,11 @@ rclone sync /path/to/files remote:current-backup</code></pre>
<h3 id="i---ignore-times">-I, --ignore-times</h3>
<p>Using this option will cause rclone to unconditionally upload all files regardless of the state of files on the destination.</p>
<p>Normally rclone would skip any files that have the same modification time and are the same size (or have the same checksum if using <code>--checksum</code>).</p>
+<h3 id="immutable">--immutable</h3>
+<p>Treat source and destination files as immutable and disallow modification.</p>
+<p>With this option set, files will be created and deleted as requested, but existing files will never be updated. If an existing file does not match between the source and destination, rclone will give the error <code>Source and destination exist but do not match: immutable file modified</code>.</p>
+<p>Note that only commands which transfer files (e.g. <code>sync</code>, <code>copy</code>, <code>move</code>) are affected by this behavior, and only modification is disallowed. Files may still be deleted explicitly (e.g. <code>delete</code>, <code>purge</code>) or implicitly (e.g. <code>sync</code>, <code>move</code>). Use <code>copy --immutable</code> if it is desired to avoid deletion as well as modification.</p>
+<p>This can be useful as an additional layer of protection for immutable or append-only data sets (notably backup archives), where modification implies corruption and should not be propagated.</p>
<h3 id="log-filefile">--log-file=FILE</h3>
<p>Log all of rclone's output to FILE. This is not active by default. This can be useful for tracking down problems with syncs in combination with the <code>-v</code> flag. See the <a href="#logging">Logging section</a> for more info.</p>
<h3 id="log-level-level">--log-level LEVEL</h3>
@@ -811,6 +950,7 @@ export RCLONE_CONFIG_PASS</code></pre>
<p>Dump HTTP headers - will contain sensitive info such as <code>Authorization:</code> headers - use <code>--dump-headers</code> to dump without <code>Authorization:</code> headers. Can be very verbose. Useful for debugging only.</p>
<h3 id="dump-bodies">--dump-bodies</h3>
<p>Dump HTTP headers and bodies - may contain sensitive info. Can be very verbose. Useful for debugging only.</p>
+<p>Note that the bodies are buffered in memory so don't use this for enormous files.</p>
<h3 id="dump-filters">--dump-filters</h3>
<p>Dump the filters to the output. Useful to see exactly what include and exclude options are filtering on.</p>
<h3 id="dump-headers">--dump-headers</h3>
@@ -862,7 +1002,7 @@ export RCLONE_CONFIG_PASS</code></pre>
<p>When rclone is running it will accumulate errors as it goes along, and only exit with a non-zero exit code if (after retries) there were still failed transfers. For every error counted there will be a high priority log message (visible with <code>-q</code>) showing the message and which file caused the problem. A high priority message is also shown when starting a retry so the user can see that any previous error messages may not be valid after the retry. If rclone has done a retry it will log a high priority message if the retry was successful.</p>
<h2 id="environment-variables">Environment Variables</h2>
<p>Rclone can be configured entirely using environment variables. These can be used to set defaults for options or config file entries.</p>
-<h3 id="options-8">Options</h3>
+<h3 id="options-38">Options</h3>
<p>Every option in rclone can have its default set by environment variable.</p>
<p>To find the name of the environment variable, first, take the long option name, strip the leading <code>--</code>, change <code>-</code> to <code>_</code>, make upper case and prepend <code>RCLONE_</code>.</p>
<p>For example, to always set <code>--stats 5s</code>, set the environment variable <code>RCLONE_STATS=5s</code>. If you set stats on the command line this will override the environment variable setting.</p>
@@ -1066,15 +1206,17 @@ file2.avi</code></pre>
<p>Add include/exclude rules from a file.</p>
<p>This flag can be repeated. See above for the order the flags are processed in.</p>
<p>Prepare a file like this <code>filter-file.txt</code></p>
-<pre><code># a sample exclude rule file
+<pre><code># a sample filter rule file
- secret*.jpg
+ *.jpg
+ *.png
+ file2.avi
+- /dir/Trash/**
++ /dir/**
# exclude everything else
- *</code></pre>
<p>Then use as <code>--filter-from filter-file.txt</code>. The rules are processed in the order that they are defined.</p>
-<p>This example will include all <code>jpg</code> and <code>png</code> files, exclude any files matching <code>secret*.jpg</code> and include <code>file2.avi</code>. Everything else will be excluded from the sync.</p>
+<p>This example will include all <code>jpg</code> and <code>png</code> files, exclude any files matching <code>secret*.jpg</code> and include <code>file2.avi</code>. It will also include everything in the directory <code>dir</code> at the root of the sync, except <code>dir/Trash</code> which it will exclude. Everything else will be excluded from the sync.</p>
<h3 id="files-from---read-list-of-source-file-names"><code>--files-from</code> - Read list of source-file names</h3>
<p>This reads a list of file names from the file passed in and <strong>only</strong> these files are transferred. The filtering rules are ignored completely if you use this option.</p>
<p>This option can be repeated to read from more than one file. These are read in the order that they are placed on the command line.</p>
@@ -1164,12 +1306,12 @@ user2/stuff</code></pre>
</thead>
<tbody>
<tr class="odd">
-<td>Google Drive</td>
+<td>Amazon Drive</td>
<td align="center">MD5</td>
-<td align="center">Yes</td>
<td align="center">No</td>
<td align="center">Yes</td>
-<td align="center">R/W</td>
+<td align="center">No</td>
+<td align="center">R</td>
</tr>
<tr class="even">
<td>Amazon S3</td>
@@ -1180,14 +1322,22 @@ user2/stuff</code></pre>
<td align="center">R/W</td>
</tr>
<tr class="odd">
-<td>Openstack Swift</td>
-<td align="center">MD5</td>
+<td>Backblaze B2</td>
+<td align="center">SHA1</td>
<td align="center">Yes</td>
<td align="center">No</td>
<td align="center">No</td>
<td align="center">R/W</td>
</tr>
<tr class="even">
+<td>Box</td>
+<td align="center">SHA1</td>
+<td align="center">Yes</td>
+<td align="center">Yes</td>
+<td align="center">No</td>
+<td align="center">-</td>
+</tr>
+<tr class="odd">
<td>Dropbox</td>
<td align="center">DBHASH †</td>
<td align="center">Yes</td>
@@ -1195,6 +1345,14 @@ user2/stuff</code></pre>
<td align="center">No</td>
<td align="center">-</td>
</tr>
+<tr class="even">
+<td>FTP</td>
+<td align="center">-</td>
+<td align="center">No</td>
+<td align="center">No</td>
+<td align="center">No</td>
+<td align="center">-</td>
+</tr>
<tr class="odd">
<td>Google Cloud Storage</td>
<td align="center">MD5</td>
@@ -1204,18 +1362,18 @@ user2/stuff</code></pre>
<td align="center">R/W</td>
</tr>
<tr class="even">
-<td>Amazon Drive</td>
+<td>Google Drive</td>
<td align="center">MD5</td>
-<td align="center">No</td>
<td align="center">Yes</td>
<td align="center">No</td>
-<td align="center">R</td>
+<td align="center">Yes</td>
+<td align="center">R/W</td>
</tr>
<tr class="odd">
-<td>Microsoft OneDrive</td>
-<td align="center">SHA1</td>
-<td align="center">Yes</td>
-<td align="center">Yes</td>
+<td>HTTP</td>
+<td align="center">-</td>
+<td align="center">No</td>
+<td align="center">No</td>
<td align="center">No</td>
<td align="center">R</td>
</tr>
@@ -1228,46 +1386,54 @@ user2/stuff</code></pre>
<td align="center">R/W</td>
</tr>
<tr class="odd">
-<td>Backblaze B2</td>
-<td align="center">SHA1</td>
+<td>Microsoft Azure Blob Storage</td>
+<td align="center">MD5</td>
<td align="center">Yes</td>
<td align="center">No</td>
<td align="center">No</td>
<td align="center">R/W</td>
</tr>
<tr class="even">
-<td>Yandex Disk</td>
+<td>Microsoft OneDrive</td>
+<td align="center">SHA1</td>
+<td align="center">Yes</td>
+<td align="center">Yes</td>
+<td align="center">No</td>
+<td align="center">R</td>
+</tr>
+<tr class="odd">
+<td>Openstack Swift</td>
<td align="center">MD5</td>
<td align="center">Yes</td>
<td align="center">No</td>
<td align="center">No</td>
<td align="center">R/W</td>
</tr>
+<tr class="even">
+<td>QingStor</td>
+<td align="center">MD5</td>
+<td align="center">No</td>
+<td align="center">No</td>
+<td align="center">No</td>
+<td align="center">R/W</td>
+</tr>
<tr class="odd">
<td>SFTP</td>
-<td align="center">-</td>
+<td align="center">MD5, SHA1 ‡</td>
<td align="center">Yes</td>
<td align="center">Depends</td>
<td align="center">No</td>
<td align="center">-</td>
</tr>
<tr class="even">
-<td>FTP</td>
-<td align="center">-</td>
-<td align="center">No</td>
+<td>Yandex Disk</td>
+<td align="center">MD5</td>
<td align="center">Yes</td>
<td align="center">No</td>
-<td align="center">-</td>
-</tr>
-<tr class="odd">
-<td>HTTP</td>
-<td align="center">-</td>
-<td align="center">No</td>
-<td align="center">Yes</td>
<td align="center">No</td>
-<td align="center">R</td>
+<td align="center">R/W</td>
</tr>
-<tr class="even">
+<tr class="odd">
<td>The local filesystem</td>
<td align="center">All</td>
<td align="center">Yes</td>
@@ -1278,10 +1444,10 @@ user2/stuff</code></pre>
</tbody>
</table>
<h3 id="hash">Hash</h3>
-<p>The cloud storage system supports various hash types of the objects.<br />
-The hashes are used when transferring data as an integrity check and can be specifically used with the <code>--checksum</code> flag in syncs and in the <code>check</code> command.</p>
-<p>To use the checksum checks between filesystems they must support a common hash type.</p>
+<p>The cloud storage system supports various hash types of the objects. The hashes are used when transferring data as an integrity check and can be specifically used with the <code>--checksum</code> flag in syncs and in the <code>check</code> command.</p>
+<p>To use the verify checksums when transferring between cloud storage systems they must support a common hash type.</p>
<p>† Note that Dropbox supports <a href="https://www.dropbox.com/developers/reference/content-hash">its own custom hash</a>. This is an SHA256 sum of all the 4MB block SHA256s.</p>
+<p>‡ SFTP supports checksums if the same login has shell access and <code>md5sum</code> or <code>sha1sum</code> as well as <code>echo</code> are in the remote's PATH.</p>
<h3 id="modtime">ModTime</h3>
<p>The cloud storage system supports setting modification times on objects. If it does then this enables a using the modification times as part of the sync. If not then only the size will be checked by default, though the MD5SUM can be checked with the <code>--checksum</code> flag.</p>
<p>All cloud storage systems support some kind of date on the object and these will be set when transferring from the cloud storage system.</p>
@@ -1315,17 +1481,19 @@ The hashes are used when transferring data as an integrity check and can be spec
<th align="center">DirMove</th>
<th align="center">CleanUp</th>
<th align="center">ListR</th>
+<th align="center">StreamUpload</th>
</tr>
</thead>
<tbody>
<tr class="odd">
-<td>Google Drive</td>
-<td align="center">Yes</td>
+<td>Amazon Drive</td>
<td align="center">Yes</td>
+<td align="center">No</td>
<td align="center">Yes</td>
<td align="center">Yes</td>
<td align="center">No <a href="https://github.com/ncw/rclone/issues/575">#575</a></td>
<td align="center">No</td>
+<td align="center">No</td>
</tr>
<tr class="even">
<td>Amazon S3</td>
@@ -1335,17 +1503,29 @@ The hashes are used when transferring data as an integrity check and can be spec
<td align="center">No</td>
<td align="center">No</td>
<td align="center">Yes</td>
+<td align="center">Yes</td>
</tr>
<tr class="odd">
-<td>Openstack Swift</td>
-<td align="center">Yes †</td>
-<td align="center">Yes</td>
+<td>Backblaze B2</td>
+<td align="center">No</td>
<td align="center">No</td>
<td align="center">No</td>
<td align="center">No</td>
<td align="center">Yes</td>
+<td align="center">Yes</td>
+<td align="center">Yes</td>
</tr>
<tr class="even">
+<td>Box</td>
+<td align="center">Yes</td>
+<td align="center">Yes</td>
+<td align="center">Yes</td>
+<td align="center">Yes</td>
+<td align="center">No <a href="https://github.com/ncw/rclone/issues/575">#575</a></td>
+<td align="center">No</td>
+<td align="center">Yes</td>
+</tr>
+<tr class="odd">
<td>Dropbox</td>
<td align="center">Yes</td>
<td align="center">Yes</td>
@@ -1353,6 +1533,17 @@ The hashes are used when transferring data as an integrity check and can be spec
<td align="center">Yes</td>
<td align="center">No <a href="https://github.com/ncw/rclone/issues/575">#575</a></td>
<td align="center">No</td>
+<td align="center">Yes</td>
+</tr>
+<tr class="even">
+<td>FTP</td>
+<td align="center">No</td>
+<td align="center">No</td>
+<td align="center">Yes</td>
+<td align="center">Yes</td>
+<td align="center">No</td>
+<td align="center">No</td>
+<td align="center">Yes</td>
</tr>
<tr class="odd">
<td>Google Cloud Storage</td>
@@ -1362,23 +1553,26 @@ The hashes are used when transferring data as an integrity check and can be spec
<td align="center">No</td>
<td align="center">No</td>
<td align="center">Yes</td>
+<td align="center">Yes</td>
</tr>
<tr class="even">
-<td>Amazon Drive</td>
+<td>Google Drive</td>
<td align="center">Yes</td>
-<td align="center">No</td>
<td align="center">Yes</td>
<td align="center">Yes</td>
-<td align="center">No <a href="https://github.com/ncw/rclone/issues/575">#575</a></td>
-<td align="center">No</td>
-</tr>
-<tr class="odd">
-<td>Microsoft OneDrive</td>
<td align="center">Yes</td>
<td align="center">Yes</td>
+<td align="center">No</td>
<td align="center">Yes</td>
-<td align="center">No <a href="https://github.com/ncw/rclone/issues/197">#197</a></td>
-<td align="center">No <a href="https://github.com/ncw/rclone/issues/575">#575</a></td>
+</tr>
+<tr class="odd">
+<td>HTTP</td>
+<td align="center">No</td>
+<td align="center">No</td>
+<td align="center">No</td>
+<td align="center">No</td>
+<td align="center">No</td>
+<td align="center">No</td>
<td align="center">No</td>
</tr>
<tr class="even">
@@ -1389,53 +1583,69 @@ The hashes are used when transferring data as an integrity check and can be spec
<td align="center">No</td>
<td align="center">No</td>
<td align="center">Yes</td>
+<td align="center">Yes</td>
</tr>
<tr class="odd">
-<td>Backblaze B2</td>
-<td align="center">No</td>
+<td>Microsoft Azure Blob Storage</td>
+<td align="center">Yes</td>
+<td align="center">Yes</td>
<td align="center">No</td>
<td align="center">No</td>
<td align="center">No</td>
<td align="center">Yes</td>
-<td align="center">Yes</td>
+<td align="center">No</td>
</tr>
<tr class="even">
-<td>Yandex Disk</td>
+<td>Microsoft OneDrive</td>
<td align="center">Yes</td>
+<td align="center">Yes</td>
+<td align="center">Yes</td>
+<td align="center">No <a href="https://github.com/ncw/rclone/issues/197">#197</a></td>
+<td align="center">No <a href="https://github.com/ncw/rclone/issues/575">#575</a></td>
<td align="center">No</td>
<td align="center">No</td>
-<td align="center">No</td>
-<td align="center">No <a href="https://github.com/ncw/rclone/issues/575">#575</a></td>
-<td align="center">Yes</td>
</tr>
<tr class="odd">
-<td>SFTP</td>
+<td>Openstack Swift</td>
+<td align="center">Yes †</td>
+<td align="center">Yes</td>
+<td align="center">No</td>
<td align="center">No</td>
<td align="center">No</td>
<td align="center">Yes</td>
<td align="center">Yes</td>
-<td align="center">No</td>
-<td align="center">No</td>
</tr>
<tr class="even">
-<td>FTP</td>
-<td align="center">No</td>
+<td>QingStor</td>
<td align="center">No</td>
<td align="center">Yes</td>
-<td align="center">Yes</td>
<td align="center">No</td>
<td align="center">No</td>
+<td align="center">No</td>
+<td align="center">Yes</td>
+<td align="center">No</td>
</tr>
<tr class="odd">
-<td>HTTP</td>
+<td>SFTP</td>
<td align="center">No</td>
<td align="center">No</td>
+<td align="center">Yes</td>
+<td align="center">Yes</td>
+<td align="center">No</td>
<td align="center">No</td>
+<td align="center">Yes</td>
+</tr>
+<tr class="even">
+<td>Yandex Disk</td>
+<td align="center">Yes</td>
<td align="center">No</td>
<td align="center">No</td>
<td align="center">No</td>
+<td align="center">Yes</td>
+<td align="center">Yes</td>
+<td align="center">Yes</td>
</tr>
-<tr class="even">
+<tr class="odd">
<td>The local filesystem</td>
<td align="center">Yes</td>
<td align="center">No</td>
@@ -1443,6 +1653,7 @@ The hashes are used when transferring data as an integrity check and can be spec
<td align="center">Yes</td>
<td align="center">No</td>
<td align="center">No</td>
+<td align="center">Yes</td>
</tr>
</tbody>
</table>
@@ -1462,10 +1673,15 @@ The hashes are used when transferring data as an integrity check and can be spec
<p>If the server can't do <code>CleanUp</code> then <code>rclone cleanup</code> will return an error.</p>
<h3 id="listr">ListR</h3>
<p>The remote supports a recursive list to list all the contents beneath a directory quickly. This enables the <code>--fast-list</code> flag to work. See the <a href="/docs/#fast-list">rclone docs</a> for more details.</p>
-<h2 id="google-drive">Google Drive</h2>
-<p>Paths are specified as <code>drive:path</code></p>
-<p>Drive paths may be as deep as required, eg <code>drive:directory/subdirectory</code>.</p>
-<p>The initial setup for drive involves getting a token from Google drive which you need to do in your browser. <code>rclone config</code> walks you through it.</p>
+<h3 id="streamupload">StreamUpload</h3>
+<p>Some remotes allow files to be uploaded without knowing the file size in advance. This allows certain operations to work without spooling the file to local disk first, e.g. <code>rclone rcat</code>.</p>
+<h2 id="amazon-drive">Amazon Drive</h2>
+<p>Paths are specified as <code>remote:path</code></p>
+<p>Paths may be as deep as required, eg <code>remote:directory/subdirectory</code>.</p>
+<p>The initial setup for Amazon Drive involves getting a token from Amazon which you need to do in your browser. <code>rclone config</code> walks you through it.</p>
+<p>The configuration process for Amazon Drive may involve using an <a href="https://github.com/ncw/oauthproxy">oauth proxy</a>. This is used to keep the Amazon credentials out of the source code. The proxy runs in Google's very secure App Engine environment and doesn't store any credentials which pass through it.</p>
+<p><strong>NB</strong> rclone doesn't not currently have its own Amazon Drive credentials (see <a href="https://forum.rclone.org/t/rclone-has-been-banned-from-amazon-drive/">the forum</a> for why) so you will either need to have your own <code>client_id</code> and <code>client_secret</code> with Amazon Drive, or use a a third party ouath proxy in which case you will need to enter <code>client_id</code>, <code>client_secret</code>, <code>auth_url</code> and <code>token_url</code>.</p>
+<p>Note also if you are not using Amazon's <code>auth_url</code> and <code>token_url</code>, (ie you filled in something for those) then if setting up on a remote machine you can only use the <a href="https://rclone.org/remote_setup/#configuring-by-copying-the-config-file">copying the config method of configuration</a> - <code>rclone authorize</code> will not work.</p>
<p>Here is an example of how to make a remote called <code>remote</code>. First run:</p>
<pre><code> rclone config</code></pre>
<p>This will guide you through an interactive setup process:</p>
@@ -1507,15 +1723,20 @@ Choose a number from below, or type in your own value
\ &quot;sftp&quot;
14 / Yandex Disk
\ &quot;yandex&quot;
-Storage&gt; 8
-Google Application Client Id - leave blank normally.
-client_id&gt;
-Google Application Client Secret - leave blank normally.
-client_secret&gt;
+Storage&gt; 1
+Amazon Application Client Id - required.
+client_id&gt; your client ID goes here
+Amazon Application Client Secret - required.
+client_secret&gt; your client secret goes here
+Auth server URL - leave blank to use Amazon&#39;s.
+auth_url&gt; Optional auth URL
+Token server url - leave blank to use Amazon&#39;s.
+token_url&gt; Optional token URL
Remote config
+Make sure your Redirect URL is set to &quot;http://127.0.0.1:53682/&quot; in your custom config.
Use auto config?
* Say Y if not sure
- * Say N if you are working on a remote or headless machine or Y didn&#39;t work
+ * Say N if you are working on a remote or headless machine
y) Yes
n) No
y/n&gt; y
@@ -1523,238 +1744,51 @@ If your browser doesn&#39;t open automatically go to the following link: http://
Log in and authorize rclone for access
Waiting for code...
Got code
-Configure this as a team drive?
-y) Yes
-n) No
-y/n&gt; n
--------------------
[remote]
-client_id =
-client_secret =
-token = {&quot;AccessToken&quot;:&quot;xxxx.x.xxxxx_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;,&quot;RefreshToken&quot;:&quot;1/xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx&quot;,&quot;Expiry&quot;:&quot;2014-03-16T13:57:58.955387075Z&quot;,&quot;Extra&quot;:null}
+client_id = your client ID goes here
+client_secret = your client secret goes here
+auth_url = Optional auth URL
+token_url = Optional token URL
+token = {&quot;access_token&quot;:&quot;xxxxxxxxxxxxxxxxxxxxxxx&quot;,&quot;token_type&quot;:&quot;bearer&quot;,&quot;refresh_token&quot;:&quot;xxxxxxxxxxxxxxxxxx&quot;,&quot;expiry&quot;:&quot;2015-09-06T16:07:39.658438471+01:00&quot;}
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d&gt; y</code></pre>
-<p>Note that rclone runs a webserver on your local machine to collect the token as returned from Google if you use auto config mode. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on <code>http://127.0.0.1:53682/</code> and this it may require you to unblock it temporarily if you are running a host firewall, or use manual mode.</p>
-<p>You can then use it like this,</p>
-<p>List directories in top level of your drive</p>
+<p>See the <a href="https://rclone.org/remote_setup/">remote setup docs</a> for how to set it up on a machine with no Internet browser available.</p>
+<p>Note that rclone runs a webserver on your local machine to collect the token as returned from Amazon. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on <code>http://127.0.0.1:53682/</code> and this it may require you to unblock it temporarily if you are running a host firewall.</p>
+<p>Once configured you can then use <code>rclone</code> like this,</p>
+<p>List directories in top level of your Amazon Drive</p>
<pre><code>rclone lsd remote:</code></pre>
-<p>List all the files in your drive</p>
+<p>List all the files in your Amazon Drive</p>
<pre><code>rclone ls remote:</code></pre>
-<p>To copy a local directory to a drive directory called backup</p>
+<p>To copy a local directory to an Amazon Drive directory called backup</p>
<pre><code>rclone copy /home/source remote:backup</code></pre>
-<h3 id="team-drives">Team drives</h3>
-<p>If you want to configure the remote to point to a Google Team Drive then answer <code>y</code> to the question <code>Configure this as a team drive?</code>.</p>
-<p>This will fetch the list of Team Drives from google and allow you to configure which one you want to use. You can also type in a team drive ID if you prefer.</p>
-<p>For example:</p>
-<pre><code>Configure this as a team drive?
-y) Yes
-n) No
-y/n&gt; y
-Fetching team drive list...
-Choose a number from below, or type in your own value
- 1 / Rclone Test
- \ &quot;xxxxxxxxxxxxxxxxxxxx&quot;
- 2 / Rclone Test 2
- \ &quot;yyyyyyyyyyyyyyyyyyyy&quot;
- 3 / Rclone Test 3
- \ &quot;zzzzzzzzzzzzzzzzzzzz&quot;
-Enter a Team Drive ID&gt; 1
---------------------
-[remote]
-client_id =
-client_secret =
-token = {&quot;AccessToken&quot;:&quot;xxxx.x.xxxxx_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;,&quot;RefreshToken&quot;:&quot;1/xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx&quot;,&quot;Expiry&quot;:&quot;2014-03-16T13:57:58.955387075Z&quot;,&quot;Extra&quot;:null}
-team_drive = xxxxxxxxxxxxxxxxxxxx
---------------------
-y) Yes this is OK
-e) Edit this remote
-d) Delete this remote
-y/e/d&gt; y</code></pre>
-<h3 id="modified-time">Modified time</h3>
-<p>Google drive stores modification times accurate to 1 ms.</p>
-<h3 id="revisions">Revisions</h3>
-<p>Google drive stores revisions of files. When you upload a change to an existing file to google drive using rclone it will create a new revision of that file.</p>
-<p>Revisions follow the standard google policy which at time of writing was</p>
-<ul>
-<li>They are deleted after 30 days or 100 revisions (whatever comes first).</li>
-<li>They do not count towards a user storage quota.</li>
-</ul>
+<h3 id="modified-time-and-md5sums">Modified time and MD5SUMs</h3>
+<p>Amazon Drive doesn't allow modification times to be changed via the API so these won't be accurate or used for syncing.</p>
+<p>It does store MD5SUMs so for a more accurate sync, you can use the <code>--checksum</code> flag.</p>
<h3 id="deleting-files">Deleting files</h3>
-<p>By default rclone will delete files permanently when requested. If sending them to the trash is required instead then use the <code>--drive-use-trash</code> flag.</p>
+<p>Any files you delete with rclone will end up in the trash. Amazon don't provide an API to permanently delete files, nor to empty the trash, so you will have to do that with one of Amazon's apps or via the Amazon Drive website. As of November 17, 2016, files are automatically deleted by Amazon from the trash after 30 days.</p>
+<h3 id="using-with-non-.com-amazon-accounts">Using with non <code>.com</code> Amazon accounts</h3>
+<p>Let's say you usually use <code>amazon.co.uk</code>. When you authenticate with rclone it will take you to an <code>amazon.com</code> page to log in. Your <code>amazon.co.uk</code> email and password should work here just fine.</p>
<h3 id="specific-options">Specific options</h3>
<p>Here are the command line options specific to this cloud storage system.</p>
-<h4 id="drive-auth-owner-only">--drive-auth-owner-only</h4>
-<p>Only consider files owned by the authenticated user.</p>
-<h4 id="drive-chunk-sizesize">--drive-chunk-size=SIZE</h4>
-<p>Upload chunk size. Must a power of 2 &gt;= 256k. Default value is 8 MB.</p>
-<p>Making this larger will improve performance, but note that each chunk is buffered in memory one per transfer.</p>
-<p>Reducing this will reduce memory usage but decrease performance.</p>
-<h4 id="drive-auth-owner-only-1">--drive-auth-owner-only</h4>
-<p>Only consider files owned by the authenticated user.</p>
-<h4 id="drive-formats">--drive-formats</h4>
-<p>Google documents can only be exported from Google drive. When rclone downloads a Google doc it chooses a format to download depending upon this setting.</p>
-<p>By default the formats are <code>docx,xlsx,pptx,svg</code> which are a sensible default for an editable document.</p>
-<p>When choosing a format, rclone runs down the list provided in order and chooses the first file format the doc can be exported as from the list. If the file can't be exported to a format on the formats list, then rclone will choose a format from the default list.</p>
-<p>If you prefer an archive copy then you might use <code>--drive-formats pdf</code>, or if you prefer openoffice/libreoffice formats you might use <code>--drive-formats ods,odt,odp</code>.</p>
-<p>Note that rclone adds the extension to the google doc, so if it is calles <code>My Spreadsheet</code> on google docs, it will be exported as <code>My Spreadsheet.xlsx</code> or <code>My Spreadsheet.pdf</code> etc.</p>
-<p>Here are the possible extensions with their corresponding mime types.</p>
-<table style="width:49%;">
-<colgroup>
-<col width="13%" />
-<col width="16%" />
-<col width="18%" />
-</colgroup>
-<thead>
-<tr class="header">
-<th>Extension</th>
-<th>Mime Type</th>
-<th>Description</th>
-</tr>
-</thead>
-<tbody>
-<tr class="odd">
-<td>csv</td>
-<td>text/csv</td>
-<td>Standard CSV format for Spreadsheets</td>
-</tr>
-<tr class="even">
-<td>doc</td>
-<td>application/msword</td>
-<td>Micosoft Office Document</td>
-</tr>
-<tr class="odd">
-<td>docx</td>
-<td>application/vnd.openxmlformats-officedocument.wordprocessingml.document</td>
-<td>Microsoft Office Document</td>
-</tr>
-<tr class="even">
-<td>epub</td>
-<td>application/epub+zip</td>
-<td>E-book format</td>
-</tr>
-<tr class="odd">
-<td>html</td>
-<td>text/html</td>
-<td>An HTML Document</td>
-</tr>
-<tr class="even">
-<td>jpg</td>
-<td>image/jpeg</td>
-<td>A JPEG Image File</td>
-</tr>
-<tr class="odd">
-<td>odp</td>
-<td>application/vnd.oasis.opendocument.presentation</td>
-<td>Openoffice Presentation</td>
-</tr>
-<tr class="even">
-<td>ods</td>
-<td>application/vnd.oasis.opendocument.spreadsheet</td>
-<td>Openoffice Spreadsheet</td>
-</tr>
-<tr class="odd">
-<td>ods</td>
-<td>application/x-vnd.oasis.opendocument.spreadsheet</td>
-<td>Openoffice Spreadsheet</td>
-</tr>
-<tr class="even">
-<td>odt</td>
-<td>application/vnd.oasis.opendocument.text</td>
-<td>Openoffice Document</td>
-</tr>
-<tr class="odd">
-<td>pdf</td>
-<td>application/pdf</td>
-<td>Adobe PDF Format</td>
-</tr>
-<tr class="even">
-<td>png</td>
-<td>image/png</td>
-<td>PNG Image Format</td>
-</tr>
-<tr class="odd">
-<td>pptx</td>
-<td>application/vnd.openxmlformats-officedocument.presentationml.presentation</td>
-<td>Microsoft Office Powerpoint</td>
-</tr>
-<tr class="even">
-<td>rtf</td>
-<td>application/rtf</td>
-<td>Rich Text Format</td>
-</tr>
-<tr class="odd">
-<td>svg</td>
-<td>image/svg+xml</td>
-<td>Scalable Vector Graphics Format</td>
-</tr>
-<tr class="even">
-<td>tsv</td>
-<td>text/tab-separated-values</td>
-<td>Standard TSV format for spreadsheets</td>
-</tr>
-<tr class="odd">
-<td>txt</td>
-<td>text/plain</td>
-<td>Plain Text</td>
-</tr>
-<tr class="even">
-<td>xls</td>
-<td>application/vnd.ms-excel</td>
-<td>Microsoft Office Spreadsheet</td>
-</tr>
-<tr class="odd">
-<td>xlsx</td>
-<td>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</td>
-<td>Microsoft Office Spreadsheet</td>
-</tr>
-<tr class="even">
-<td>zip</td>
-<td>application/zip</td>
-<td>A ZIP file of HTML, Images CSS</td>
-</tr>
-</tbody>
-</table>
-<h4 id="drive-list-chunk-int">--drive-list-chunk int</h4>
-<p>Size of listing chunk 100-1000. 0 to disable. (default 1000)</p>
-<h4 id="drive-shared-with-me">--drive-shared-with-me</h4>
-<p>Only show files that are shared with me</p>
-<h4 id="drive-skip-gdocs">--drive-skip-gdocs</h4>
-<p>Skip google documents in all listings. If given, gdocs practically become invisible to rclone.</p>
-<h4 id="drive-trashed-only">--drive-trashed-only</h4>
-<p>Only show files that are in the trash. This will show trashed files in their original directory structure.</p>
-<h4 id="drive-upload-cutoffsize">--drive-upload-cutoff=SIZE</h4>
-<p>File size cutoff for switching to chunked upload. Default is 8 MB.</p>
-<h4 id="drive-use-trash">--drive-use-trash</h4>
-<p>Send files to the trash instead of deleting permanently. Defaults to off, namely deleting files permanently.</p>
+<h4 id="acd-templink-thresholdsize">--acd-templink-threshold=SIZE</h4>
+<p>Files this size or more will be downloaded via their <code>tempLink</code>. This is to work around a problem with Amazon Drive which blocks downloads of files bigger than about 10GB. The default for this is 9GB which shouldn't need to be changed.</p>
+<p>To download files above this threshold, rclone requests a <code>tempLink</code> which downloads the file through a temporary URL directly from the underlying S3 storage.</p>
+<h4 id="acd-upload-wait-per-gbtime">--acd-upload-wait-per-gb=TIME</h4>
+<p>Sometimes Amazon Drive gives an error when a file has been fully uploaded but the file appears anyway after a little while. This happens sometimes for files over 1GB in size and nearly every time for files bigger than 10GB. This parameter controls the time rclone waits for the file to appear.</p>
+<p>The default value for this parameter is 3 minutes per GB, so by default it will wait 3 minutes for every GB uploaded to see if the file appears.</p>
+<p>You can disable this feature by setting it to 0. This may cause conflict errors as rclone retries the failed upload but the file will most likely appear correctly eventually.</p>
+<p>These values were determined empirically by observing lots of uploads of big files for a range of file sizes.</p>
+<p>Upload with the <code>-v</code> flag to see more info about what rclone is doing in this situation.</p>
<h3 id="limitations-1">Limitations</h3>
-<p>Drive has quite a lot of rate limiting. This causes rclone to be limited to transferring about 2 files per second only. Individual files may be transferred much faster at 100s of MBytes/s but lots of small files can take a long time.</p>
-<h3 id="duplicated-files">Duplicated files</h3>
-<p>Sometimes, for no reason I've been able to track down, drive will duplicate a file that rclone uploads. Drive unlike all the other remotes can have duplicated files.</p>
-<p>Duplicated files cause problems with the syncing and you will see messages in the log about duplicates.</p>
-<p>Use <code>rclone dedupe</code> to fix duplicated files.</p>
-<p>Note that this isn't just a problem with rclone, even Google Photos on Android duplicates files on drive sometimes.</p>
-<h3 id="rclone-appears-to-be-re-copying-files-it-shouldnt">Rclone appears to be re-copying files it shouldn't</h3>
-<p>There are two possible reasons for rclone to recopy files which haven't changed to Google Drive.</p>
-<p>The first is the duplicated file issue above - run <code>rclone dedupe</code> and check your logs for duplicate object or directory messages.</p>
-<p>The second is that sometimes Google reports different sizes for the Google Docs exports which will cause rclone to re-download Google Docs for no apparent reason. <code>--ignore-size</code> is a not very satisfactory work-around for this if it is causing you a lot of problems.</p>
-<h3 id="google-docs-downloads-sometimes-fail-with-failed-to-copy-read-x-bytes-expecting-y">Google docs downloads sometimes fail with &quot;Failed to copy: read X bytes expecting Y&quot;</h3>
-<p>This is the same problem as above. Google reports the google doc is one size, but rclone downloads a different size. Work-around with the <code>--ignore-size</code> flag or wait for rclone to retry the download which it will.</p>
-<h3 id="making-your-own-client_id">Making your own client_id</h3>
-<p>When you use rclone with Google drive in its default configuration you are using rclone's client_id. This is shared between all the rclone users. There is a global rate limit on the number of queries per second that each client_id can do set by Google. rclone already has a high quota and I will continue to make sure it is high enough by contacting Google.</p>
-<p>However you might find you get better performance making your own client_id if you are a heavy user. Or you may not depending on exactly how Google have been raising rclone's rate limit.</p>
-<p>Here is how to create your own Google Drive client ID for rclone:</p>
-<ol style="list-style-type: decimal">
-<li><p>Log into the <a href="https://console.developers.google.com/">Google API Console</a> with your Google account. It doesn't matter what Google account you use. (It need not be the same account as the Google Drive you want to access)</p></li>
-<li><p>Select a project or create a new project.</p></li>
-<li><p>Under Overview, Google APIs, Google Apps APIs, click &quot;Drive API&quot;, then &quot;Enable&quot;.</p></li>
-<li><p>Click &quot;Credentials&quot; in the left-side panel (not &quot;Go to credentials&quot;, which opens the wizard), then &quot;Create credentials&quot;, then &quot;OAuth client ID&quot;. It will prompt you to set the OAuth consent screen product name, if you haven't set one already.</p></li>
-<li><p>Choose an application type of &quot;other&quot;, and click &quot;Create&quot;. (the default name is fine)</p></li>
-<li><p>It will show you a client ID and client secret. Use these values in rclone config to add a new remote or edit an existing remote.</p></li>
-</ol>
-<p>(Thanks to <span class="citation">@balazer</span> on github for these instructions.)</p>
+<p>Note that Amazon Drive is case insensitive so you can't have a file called &quot;Hello.doc&quot; and one called &quot;hello.doc&quot;.</p>
+<p>Amazon Drive has rate limiting so you may notice errors in the sync (429 errors). rclone will automatically retry the sync up to 3 times by default (see <code>--retries</code> flag) which should hopefully work around this problem.</p>
+<p>Amazon Drive has an internal limit of file sizes that can be uploaded to the service. This limit is not officially published, but all files larger than this will fail.</p>
+<p>At the time of writing (Jan 2016) is in the area of 50GB per file. This means that larger files are likely to fail.</p>
+<p>Unfortunately there is no way for rclone to see that this failure is because of file size, so it will retry the operation, as any other failure. To avoid this problem, use <code>--max-size 50000M</code> option to limit the maximum size of uploaded files. Note that <code>--max-size</code> does not split files into segments, it only ignores files over this size.</p>
<h2 id="amazon-s3">Amazon S3</h2>
<p>Paths are specified as <code>remote:bucket</code> (or <code>remote:</code> for the <code>lsd</code> command.) You may put subdirectories in too, eg <code>remote:bucket/path/to/dir</code>.</p>
<p>Here is an example of making an s3 configuration. First run</p>
@@ -1943,7 +1977,7 @@ y/e/d&gt; y</code></pre>
<pre><code>rclone sync /home/local/directory remote:bucket</code></pre>
<h3 id="fast-list-1">--fast-list</h3>
<p>This remote supports <code>--fast-list</code> which allows you to use fewer transactions in exchange for more memory. See the <a href="/docs/#fast-list">rclone docs</a> for more details.</p>
-<h3 id="modified-time-1">Modified time</h3>
+<h3 id="modified-time">Modified time</h3>
<p>The modified time is stored as metadata on the object as <code>X-Amz-Meta-Mtime</code> as floating point since the epoch accurate to 1 ns.</p>
<h3 id="multipart-uploads">Multipart uploads</h3>
<p>rclone supports multipart uploads with S3 which means that it can upload files bigger than 5GB. Note that files uploaded with multipart upload don't have an MD5SUM.</p>
@@ -1953,13 +1987,14 @@ y/e/d&gt; y</code></pre>
<p>There are two ways to supply <code>rclone</code> with a set of AWS credentials. In order of precedence:</p>
<ul>
<li>Directly in the rclone configuration file (as configured by <code>rclone config</code>)</li>
-<li>set <code>access_key_id</code> and <code>secret_access_key</code></li>
+<li>set <code>access_key_id</code> and <code>secret_access_key</code>. <code>session_token</code> can be optionally set when using AWS STS.</li>
<li>Runtime configuration:</li>
<li>set <code>env_auth</code> to <code>true</code> in the config file</li>
<li>Exporting the following environment variables before running <code>rclone</code>
<ul>
<li>Access Key ID: <code>AWS_ACCESS_KEY_ID</code> or <code>AWS_ACCESS_KEY</code></li>
<li>Secret Access Key: <code>AWS_SECRET_ACCESS_KEY</code> or <code>AWS_SECRET_KEY</code></li>
+<li>Session Token: <code>AWS_SESSION_TOKEN</code></li>
</ul></li>
<li>Running <code>rclone</code> on an EC2 instance with an IAM role</li>
</ul>
@@ -2002,6 +2037,10 @@ y/e/d&gt; y</code></pre>
<li>The Resource entry must include both resource ARNs, as one implies the bucket and the other implies the bucket's objects.</li>
</ol>
<p>For reference, <a href="https://gist.github.com/ebridges/ebfc9042dd7c756cd101cfa807b7ae2b">here's an Ansible script</a> that will generate one or more buckets that will work with <code>rclone sync</code>.</p>
+<h3 id="glacier">Glacier</h3>
+<p>You can transition objects to glacier storage using a <a href="http://docs.aws.amazon.com/AmazonS3/latest/user-guide/create-lifecycle.html">lifecycle policy</a>. The bucket can still be synced or copied into normally, but if rclone tries to access the data you will see an error like below.</p>
+<pre><code>2017/09/11 19:07:43 Failed to sync: failed to open source object: Object in GLACIER, restore first: path/to/file</code></pre>
+<p>In this case you need to <a href="http://docs.aws.amazon.com/AmazonS3/latest/user-guide/restore-archived-objects.html">restore</a> the object(s) in question before using rclone.</p>
<h3 id="specific-options-1">Specific options</h3>
<p>Here are the command line options specific to this cloud storage system.</p>
<h4 id="s3-aclstring">--s3-acl=STRING</h4>
@@ -2116,144 +2155,666 @@ location_constraint =
server_side_encryption =</code></pre>
<p>So once set up, for example to copy files into a bucket</p>
<pre><code>rclone copy /path/to/files minio:bucket</code></pre>
-<h2 id="swift">Swift</h2>
-<p>Swift refers to <a href="https://www.openstack.org/software/openstack-storage/">Openstack Object Storage</a>. Commercial implementations of that being:</p>
+<h3 id="wasabi">Wasabi</h3>
+<p><a href="https://wasabi.com">Wasabi</a> is a cloud-based object storage service for a broad range of applications and use cases. Wasabi is designed for individuals and organizations that require a high-performance, reliable, and secure data storage infrastructure at minimal cost.</p>
+<p>Wasabi provides an S3 interface which can be configured for use with rclone like this.</p>
+<pre><code>No remotes found - make a new one
+n) New remote
+s) Set configuration password
+n/s&gt; n
+name&gt; wasabi
+Type of storage to configure.
+Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ &quot;amazon cloud drive&quot;
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ &quot;s3&quot;
+[snip]
+Storage&gt; s3
+Get AWS credentials from runtime (environment variables or EC2 meta data if no env vars). Only applies if access_key_id and secret_access_key is blank.
+Choose a number from below, or type in your own value
+ 1 / Enter AWS credentials in the next step
+ \ &quot;false&quot;
+ 2 / Get AWS credentials from the environment (env vars or IAM)
+ \ &quot;true&quot;
+env_auth&gt; 1
+AWS Access Key ID - leave blank for anonymous access or runtime credentials.
+access_key_id&gt; YOURACCESSKEY
+AWS Secret Access Key (password) - leave blank for anonymous access or runtime credentials.
+secret_access_key&gt; YOURSECRETACCESSKEY
+Region to connect to.
+Choose a number from below, or type in your own value
+ / The default endpoint - a good choice if you are unsure.
+ 1 | US Region, Northern Virginia or Pacific Northwest.
+ | Leave location constraint empty.
+ \ &quot;us-east-1&quot;
+[snip]
+region&gt; us-east-1
+Endpoint for S3 API.
+Leave blank if using AWS to use the default endpoint for the region.
+Specify if using an S3 clone such as Ceph.
+endpoint&gt; s3.wasabisys.com
+Location constraint - must be set to match the Region. Used when creating buckets only.
+Choose a number from below, or type in your own value
+ 1 / Empty for US Region, Northern Virginia or Pacific Northwest.
+ \ &quot;&quot;
+[snip]
+location_constraint&gt;
+Canned ACL used when creating buckets and/or storing objects in S3.
+For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
+Choose a number from below, or type in your own value
+ 1 / Owner gets FULL_CONTROL. No one else has access rights (default).
+ \ &quot;private&quot;
+[snip]
+acl&gt;
+The server-side encryption algorithm used when storing this object in S3.
+Choose a number from below, or type in your own value
+ 1 / None
+ \ &quot;&quot;
+ 2 / AES256
+ \ &quot;AES256&quot;
+server_side_encryption&gt;
+The storage class to use when storing objects in S3.
+Choose a number from below, or type in your own value
+ 1 / Default
+ \ &quot;&quot;
+ 2 / Standard storage class
+ \ &quot;STANDARD&quot;
+ 3 / Reduced redundancy storage class
+ \ &quot;REDUCED_REDUNDANCY&quot;
+ 4 / Standard Infrequent Access storage class
+ \ &quot;STANDARD_IA&quot;
+storage_class&gt;
+Remote config
+--------------------
+[wasabi]
+env_auth = false
+access_key_id = YOURACCESSKEY
+secret_access_key = YOURSECRETACCESSKEY
+region = us-east-1
+endpoint = s3.wasabisys.com
+location_constraint =
+acl =
+server_side_encryption =
+storage_class =
+--------------------
+y) Yes this is OK
+e) Edit this remote
+d) Delete this remote
+y/e/d&gt; y</code></pre>
+<p>This will leave the config file looking like this.</p>
+<pre><code>[wasabi]
+env_auth = false
+access_key_id = YOURACCESSKEY
+secret_access_key = YOURSECRETACCESSKEY
+region = us-east-1
+endpoint = s3.wasabisys.com
+location_constraint =
+acl =
+server_side_encryption =
+storage_class = </code></pre>
+<h2 id="backblaze-b2">Backblaze B2</h2>
+<p>B2 is <a href="https://www.backblaze.com/b2/">Backblaze's cloud storage system</a>.</p>
+<p>Paths are specified as <code>remote:bucket</code> (or <code>remote:</code> for the <code>lsd</code> command.) You may put subdirectories in too, eg <code>remote:bucket/path/to/dir</code>.</p>
+<p>Here is an example of making a b2 configuration. First run</p>
+<pre><code>rclone config</code></pre>
+<p>This will guide you through an interactive setup process. You will need your account number (a short hex number) and key (a long hex number) which you can get from the b2 control panel.</p>
+<pre><code>No remotes found - make a new one
+n) New remote
+q) Quit config
+n/q&gt; n
+name&gt; remote
+Type of storage to configure.
+Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ &quot;amazon cloud drive&quot;
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ &quot;s3&quot;
+ 3 / Backblaze B2
+ \ &quot;b2&quot;
+ 4 / Dropbox
+ \ &quot;dropbox&quot;
+ 5 / Encrypt/Decrypt a remote
+ \ &quot;crypt&quot;
+ 6 / Google Cloud Storage (this is not Google Drive)
+ \ &quot;google cloud storage&quot;
+ 7 / Google Drive
+ \ &quot;drive&quot;
+ 8 / Hubic
+ \ &quot;hubic&quot;
+ 9 / Local Disk
+ \ &quot;local&quot;
+10 / Microsoft OneDrive
+ \ &quot;onedrive&quot;
+11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ \ &quot;swift&quot;
+12 / SSH/SFTP Connection
+ \ &quot;sftp&quot;
+13 / Yandex Disk
+ \ &quot;yandex&quot;
+Storage&gt; 3
+Account ID
+account&gt; 123456789abc
+Application Key
+key&gt; 0123456789abcdef0123456789abcdef0123456789
+Endpoint for the service - leave blank normally.
+endpoint&gt;
+Remote config
+--------------------
+[remote]
+account = 123456789abc
+key = 0123456789abcdef0123456789abcdef0123456789
+endpoint =
+--------------------
+y) Yes this is OK
+e) Edit this remote
+d) Delete this remote
+y/e/d&gt; y</code></pre>
+<p>This remote is called <code>remote</code> and can now be used like this</p>
+<p>See all buckets</p>
+<pre><code>rclone lsd remote:</code></pre>
+<p>Make a new bucket</p>
+<pre><code>rclone mkdir remote:bucket</code></pre>
+<p>List the contents of a bucket</p>
+<pre><code>rclone ls remote:bucket</code></pre>
+<p>Sync <code>/home/local/directory</code> to the remote bucket, deleting any excess files in the bucket.</p>
+<pre><code>rclone sync /home/local/directory remote:bucket</code></pre>
+<h3 id="fast-list-2">--fast-list</h3>
+<p>This remote supports <code>--fast-list</code> which allows you to use fewer transactions in exchange for more memory. See the <a href="/docs/#fast-list">rclone docs</a> for more details.</p>
+<h3 id="modified-time-1">Modified time</h3>
+<p>The modified time is stored as metadata on the object as <code>X-Bz-Info-src_last_modified_millis</code> as milliseconds since 1970-01-01 in the Backblaze standard. Other tools should be able to use this as a modified time.</p>
+<p>Modified times are used in syncing and are fully supported except in the case of updating a modification time on an existing object. In this case the object will be uploaded again as B2 doesn't have an API method to set the modification time independent of doing an upload.</p>
+<h3 id="sha1-checksums">SHA1 checksums</h3>
+<p>The SHA1 checksums of the files are checked on upload and download and will be used in the syncing process.</p>
+<p>Large files which are uploaded in chunks will store their SHA1 on the object as <code>X-Bz-Info-large_file_sha1</code> as recommended by Backblaze.</p>
+<h3 id="transfers">Transfers</h3>
+<p>Backblaze recommends that you do lots of transfers simultaneously for maximum speed. In tests from my SSD equiped laptop the optimum setting is about <code>--transfers 32</code> though higher numbers may be used for a slight speed improvement. The optimum number for you may vary depending on your hardware, how big the files are, how much you want to load your computer, etc. The default of <code>--transfers 4</code> is definitely too low for Backblaze B2 though.</p>
+<p>Note that uploading big files (bigger than 200 MB by default) will use a 96 MB RAM buffer by default. There can be at most <code>--transfers</code> of these in use at any moment, so this sets the upper limit on the memory used.</p>
+<h3 id="versions">Versions</h3>
+<p>When rclone uploads a new version of a file it creates a <a href="https://www.backblaze.com/b2/docs/file_versions.html">new version of it</a>. Likewise when you delete a file, the old version will be marked hidden and still be available. Conversely, you may opt in to a &quot;hard delete&quot; of files with the <code>--b2-hard-delete</code> flag which would permanently remove the file instead of hiding it.</p>
+<p>Old versions of files, where available, are visible using the <code>--b2-versions</code> flag.</p>
+<p>If you wish to remove all the old versions then you can use the <code>rclone cleanup remote:bucket</code> command which will delete all the old versions of files, leaving the current ones intact. You can also supply a path and only old versions under that path will be deleted, eg <code>rclone cleanup remote:bucket/path/to/stuff</code>.</p>
+<p>When you <code>purge</code> a bucket, the current and the old versions will be deleted then the bucket will be deleted.</p>
+<p>However <code>delete</code> will cause the current versions of the files to become hidden old versions.</p>
+<p>Here is a session showing the listing and and retreival of an old version followed by a <code>cleanup</code> of the old versions.</p>
+<p>Show current version and all the versions with <code>--b2-versions</code> flag.</p>
+<pre><code>$ rclone -q ls b2:cleanup-test
+ 9 one.txt
+
+$ rclone -q --b2-versions ls b2:cleanup-test
+ 9 one.txt
+ 8 one-v2016-07-04-141032-000.txt
+ 16 one-v2016-07-04-141003-000.txt
+ 15 one-v2016-07-02-155621-000.txt</code></pre>
+<p>Retreive an old verson</p>
+<pre><code>$ rclone -q --b2-versions copy b2:cleanup-test/one-v2016-07-04-141003-000.txt /tmp
+
+$ ls -l /tmp/one-v2016-07-04-141003-000.txt
+-rw-rw-r-- 1 ncw ncw 16 Jul 2 17:46 /tmp/one-v2016-07-04-141003-000.txt</code></pre>
+<p>Clean up all the old versions and show that they've gone.</p>
+<pre><code>$ rclone -q cleanup b2:cleanup-test
+
+$ rclone -q ls b2:cleanup-test
+ 9 one.txt
+
+$ rclone -q --b2-versions ls b2:cleanup-test
+ 9 one.txt</code></pre>
+<h3 id="data-usage">Data usage</h3>
+<p>It is useful to know how many requests are sent to the server in different scenarios.</p>
+<p>All copy commands send the following 4 requests:</p>
+<pre><code>/b2api/v1/b2_authorize_account
+/b2api/v1/b2_create_bucket
+/b2api/v1/b2_list_buckets
+/b2api/v1/b2_list_file_names</code></pre>
+<p>The <code>b2_list_file_names</code> request will be sent once for every 1k files in the remote path, providing the checksum and modification time of the listed files. As of version 1.33 issue <a href="https://github.com/ncw/rclone/issues/818">#818</a> causes extra requests to be sent when using B2 with Crypt. When a copy operation does not require any files to be uploaded, no more requests will be sent.</p>
+<p>Uploading files that do not require chunking, will send 2 requests per file upload:</p>
+<pre><code>/b2api/v1/b2_get_upload_url
+/b2api/v1/b2_upload_file/</code></pre>
+<p>Uploading files requiring chunking, will send 2 requests (one each to start and finish the upload) and another 2 requests for each chunk:</p>
+<pre><code>/b2api/v1/b2_start_large_file
+/b2api/v1/b2_get_upload_part_url
+/b2api/v1/b2_upload_part/
+/b2api/v1/b2_finish_large_file</code></pre>
+<h3 id="b2-with-crypt">B2 with crypt</h3>
+<p>When using B2 with <code>crypt</code> files are encrypted into a temporary location and streamed from there. This is required to calculate the encrypted file's checksum before beginning the upload. On Windows the %TMPDIR% environment variable is used as the temporary location. If the file requires chunking, both the chunking and encryption will take place in memory.</p>
+<h3 id="specific-options-2">Specific options</h3>
+<p>Here are the command line options specific to this cloud storage system.</p>
+<h4 id="b2-chunk-size-valueesize">--b2-chunk-size valuee=SIZE</h4>
+<p>When uploading large files chunk the file into this size. Note that these chunks are buffered in memory and there might a maximum of <code>--transfers</code> chunks in progress at once. 5,000,000 Bytes is the minimim size (default 96M).</p>
+<h4 id="b2-upload-cutoffsize">--b2-upload-cutoff=SIZE</h4>
+<p>Cutoff for switching to chunked upload (default 190.735 MiB == 200 MB). Files above this size will be uploaded in chunks of <code>--b2-chunk-size</code>.</p>
+<p>This value should be set no larger than 4.657GiB (== 5GB) as this is the largest file size that can be uploaded.</p>
+<h4 id="b2-test-modeflag">--b2-test-mode=FLAG</h4>
+<p>This is for debugging purposes only.</p>
+<p>Setting FLAG to one of the strings below will cause b2 to return specific errors for debugging purposes.</p>
+<ul>
+<li><code>fail_some_uploads</code></li>
+<li><code>expire_some_account_authorization_tokens</code></li>
+<li><code>force_cap_exceeded</code></li>
+</ul>
+<p>These will be set in the <code>X-Bz-Test-Mode</code> header which is documented in the <a href="https://www.backblaze.com/b2/docs/integration_checklist.html">b2 integrations checklist</a>.</p>
+<h4 id="b2-versions">--b2-versions</h4>
+<p>When set rclone will show and act on older versions of files. For example</p>
+<p>Listing without <code>--b2-versions</code></p>
+<pre><code>$ rclone -q ls b2:cleanup-test
+ 9 one.txt</code></pre>
+<p>And with</p>
+<pre><code>$ rclone -q --b2-versions ls b2:cleanup-test
+ 9 one.txt
+ 8 one-v2016-07-04-141032-000.txt
+ 16 one-v2016-07-04-141003-000.txt
+ 15 one-v2016-07-02-155621-000.txt</code></pre>
+<p>Showing that the current version is unchanged but older versions can be seen. These have the UTC date that they were uploaded to the server to the nearest millisecond appended to them.</p>
+<p>Note that when using <code>--b2-versions</code> no file write operations are permitted, so you can't upload files or delete them.</p>
+<h2 id="box">Box</h2>
+<p>Paths are specified as <code>remote:path</code></p>
+<p>Paths may be as deep as required, eg <code>remote:directory/subdirectory</code>.</p>
+<p>The initial setup for Box involves getting a token from Box which you need to do in your browser. <code>rclone config</code> walks you through it.</p>
+<p>Here is an example of how to make a remote called <code>remote</code>. First run:</p>
+<pre><code> rclone config</code></pre>
+<p>This will guide you through an interactive setup process:</p>
+<pre><code>No remotes found - make a new one
+n) New remote
+s) Set configuration password
+q) Quit config
+n/s/q&gt; n
+name&gt; remote
+Type of storage to configure.
+Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ &quot;amazon cloud drive&quot;
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ &quot;s3&quot;
+ 3 / Backblaze B2
+ \ &quot;b2&quot;
+ 4 / Box
+ \ &quot;box&quot;
+ 5 / Dropbox
+ \ &quot;dropbox&quot;
+ 6 / Encrypt/Decrypt a remote
+ \ &quot;crypt&quot;
+ 7 / FTP Connection
+ \ &quot;ftp&quot;
+ 8 / Google Cloud Storage (this is not Google Drive)
+ \ &quot;google cloud storage&quot;
+ 9 / Google Drive
+ \ &quot;drive&quot;
+10 / Hubic
+ \ &quot;hubic&quot;
+11 / Local Disk
+ \ &quot;local&quot;
+12 / Microsoft OneDrive
+ \ &quot;onedrive&quot;
+13 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ \ &quot;swift&quot;
+14 / SSH/SFTP Connection
+ \ &quot;sftp&quot;
+15 / Yandex Disk
+ \ &quot;yandex&quot;
+16 / http Connection
+ \ &quot;http&quot;
+Storage&gt; box
+Box App Client Id - leave blank normally.
+client_id&gt;
+Box App Client Secret - leave blank normally.
+client_secret&gt;
+Remote config
+Use auto config?
+ * Say Y if not sure
+ * Say N if you are working on a remote or headless machine
+y) Yes
+n) No
+y/n&gt; y
+If your browser doesn&#39;t open automatically go to the following link: http://127.0.0.1:53682/auth
+Log in and authorize rclone for access
+Waiting for code...
+Got code
+--------------------
+[remote]
+client_id =
+client_secret =
+token = {&quot;access_token&quot;:&quot;XXX&quot;,&quot;token_type&quot;:&quot;bearer&quot;,&quot;refresh_token&quot;:&quot;XXX&quot;,&quot;expiry&quot;:&quot;XXX&quot;}
+--------------------
+y) Yes this is OK
+e) Edit this remote
+d) Delete this remote
+y/e/d&gt; y</code></pre>
+<p>See the <a href="https://rclone.org/remote_setup/">remote setup docs</a> for how to set it up on a machine with no Internet browser available.</p>
+<p>Note that rclone runs a webserver on your local machine to collect the token as returned from Box. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on <code>http://127.0.0.1:53682/</code> and this it may require you to unblock it temporarily if you are running a host firewall.</p>
+<p>Once configured you can then use <code>rclone</code> like this,</p>
+<p>List directories in top level of your Box</p>
+<pre><code>rclone lsd remote:</code></pre>
+<p>List all the files in your Box</p>
+<pre><code>rclone ls remote:</code></pre>
+<p>To copy a local directory to an Box directory called backup</p>
+<pre><code>rclone copy /home/source remote:backup</code></pre>
+<h3 id="invalid-refresh-token">Invalid refresh token</h3>
+<p>According to the <a href="https://developer.box.com/v2.0/docs/oauth-20#section-6-using-the-access-and-refresh-tokens">box docs</a>:</p>
+<blockquote>
+<p>Each refresh_token is valid for one use in 60 days.</p>
+</blockquote>
+<p>This means that if you</p>
+<ul>
+<li>Don't use the box remote for 60 days</li>
+<li>Copy the config file with a box refresh token in and use it in two places</li>
+<li>Get an error on a token refresh</li>
+</ul>
+<p>then rclone will return an error which includes the text <code>Invalid refresh token</code>.</p>
+<p>To fix this you will need to use oauth2 again to update the refresh token. You can use the methods in <a href="https://rclone.org/remote_setup/">the remote setup docs</a>, bearing in mind that if you use the copy the config file method, you should not use that remote on the computer you did the authentication on.</p>
+<p>Here is how to do it.</p>
+<pre><code>$ rclone config
+Current remotes:
+
+Name Type
+==== ====
+remote box
+
+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&gt; e
+Choose a number from below, or type in an existing value
+ 1 &gt; remote
+remote&gt; remote
+--------------------
+[remote]
+type = box
+token = {&quot;access_token&quot;:&quot;XXX&quot;,&quot;token_type&quot;:&quot;bearer&quot;,&quot;refresh_token&quot;:&quot;XXX&quot;,&quot;expiry&quot;:&quot;2017-07-08T23:40:08.059167677+01:00&quot;}
+--------------------
+Edit remote
+Value &quot;client_id&quot; = &quot;&quot;
+Edit? (y/n)&gt;
+y) Yes
+n) No
+y/n&gt; n
+Value &quot;client_secret&quot; = &quot;&quot;
+Edit? (y/n)&gt;
+y) Yes
+n) No
+y/n&gt; n
+Remote config
+Already have a token - refresh?
+y) Yes
+n) No
+y/n&gt; y
+Use auto config?
+ * Say Y if not sure
+ * Say N if you are working on a remote or headless machine
+y) Yes
+n) No
+y/n&gt; y
+If your browser doesn&#39;t open automatically go to the following link: http://127.0.0.1:53682/auth
+Log in and authorize rclone for access
+Waiting for code...
+Got code
+--------------------
+[remote]
+type = box
+token = {&quot;access_token&quot;:&quot;YYY&quot;,&quot;token_type&quot;:&quot;bearer&quot;,&quot;refresh_token&quot;:&quot;YYY&quot;,&quot;expiry&quot;:&quot;2017-07-23T12:22:29.259137901+01:00&quot;}
+--------------------
+y) Yes this is OK
+e) Edit this remote
+d) Delete this remote
+y/e/d&gt; y</code></pre>
+<h3 id="modified-time-and-hashes">Modified time and hashes</h3>
+<p>Box allows modification times to be set on objects accurate to 1 second. These will be used to detect whether objects need syncing or not.</p>
+<p>One drive supports SHA1 type hashes, so you can use the <code>--checksum</code> flag.</p>
+<h3 id="transfers-1">Transfers</h3>
+<p>For files above 50MB rclone will use a chunked transfer. Rclone will upload up to <code>--transfers</code> chunks at the same time (shared among all the multipart uploads). Chunks are buffered in memory and are normally 8MB so increasing <code>--transfers</code> will increase memory use.</p>
+<h3 id="deleting-files-1">Deleting files</h3>
+<p>Depending on the enterprise settings for your user, the item will either be actually deleted from Box or moved to the trash.</p>
+<h3 id="specific-options-3">Specific options</h3>
+<p>Here are the command line options specific to this cloud storage system.</p>
+<h4 id="box-upload-cutoffsize">--box-upload-cutoff=SIZE</h4>
+<p>Cutoff for switching to chunked upload - must be &gt;= 50MB. The default is 50MB.</p>
+<h3 id="limitations-2">Limitations</h3>
+<p>Note that Box is case insensitive so you can't have a file called &quot;Hello.doc&quot; and one called &quot;hello.doc&quot;.</p>
+<p>Box file names can't have the <code>\</code> character in. rclone maps this to and from an identical looking unicode equivalent <code>\</code>.</p>
+<p>Box only supports filenames up to 255 characters in length.</p>
+<h2 id="crypt">Crypt</h2>
+<p>The <code>crypt</code> remote encrypts and decrypts another remote.</p>
+<p>To use it first set up the underlying remote following the config instructions for that remote. You can also use a local pathname instead of a remote which will encrypt and decrypt from that directory which might be useful for encrypting onto a USB stick for example.</p>
+<p>First check your chosen remote is working - we'll call it <code>remote:path</code> in these docs. Note that anything inside <code>remote:path</code> will be encrypted and anything outside won't. This means that if you are using a bucket based remote (eg S3, B2, swift) then you should probably put the bucket in the remote <code>s3:bucket</code>. If you just use <code>s3:</code> then rclone will make encrypted bucket names too (if using file name encryption) which may or may not be what you want.</p>
+<p>Now configure <code>crypt</code> using <code>rclone config</code>. We will call this one <code>secret</code> to differentiate it from the <code>remote</code>.</p>
+<pre><code>No remotes found - make a new one
+n) New remote
+s) Set configuration password
+q) Quit config
+n/s/q&gt; n
+name&gt; secret
+Type of storage to configure.
+Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ &quot;amazon cloud drive&quot;
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ &quot;s3&quot;
+ 3 / Backblaze B2
+ \ &quot;b2&quot;
+ 4 / Dropbox
+ \ &quot;dropbox&quot;
+ 5 / Encrypt/Decrypt a remote
+ \ &quot;crypt&quot;
+ 6 / Google Cloud Storage (this is not Google Drive)
+ \ &quot;google cloud storage&quot;
+ 7 / Google Drive
+ \ &quot;drive&quot;
+ 8 / Hubic
+ \ &quot;hubic&quot;
+ 9 / Local Disk
+ \ &quot;local&quot;
+10 / Microsoft OneDrive
+ \ &quot;onedrive&quot;
+11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ \ &quot;swift&quot;
+12 / SSH/SFTP Connection
+ \ &quot;sftp&quot;
+13 / Yandex Disk
+ \ &quot;yandex&quot;
+Storage&gt; 5
+Remote to encrypt/decrypt.
+Normally should contain a &#39;:&#39; and a path, eg &quot;myremote:path/to/dir&quot;,
+&quot;myremote:bucket&quot; or maybe &quot;myremote:&quot; (not recommended).
+remote&gt; remote:path
+How to encrypt the filenames.
+Choose a number from below, or type in your own value
+ 1 / Don&#39;t encrypt the file names. Adds a &quot;.bin&quot; extension only.
+ \ &quot;off&quot;
+ 2 / Encrypt the filenames see the docs for the details.
+ \ &quot;standard&quot;
+ 3 / Very simple filename obfuscation.
+ \ &quot;obfuscate&quot;
+filename_encryption&gt; 2
+Password or pass phrase for encryption.
+y) Yes type in my own password
+g) Generate random password
+y/g&gt; y
+Enter the password:
+password:
+Confirm the password:
+password:
+Password or pass phrase for salt. Optional but recommended.
+Should be different to the previous password.
+y) Yes type in my own password
+g) Generate random password
+n) No leave this optional password blank
+y/g/n&gt; g
+Password strength in bits.
+64 is just about memorable
+128 is secure
+1024 is the maximum
+Bits&gt; 128
+Your password is: JAsJvRcgR-_veXNfy_sGmQ
+Use this password?
+y) Yes
+n) No
+y/n&gt; y
+Remote config
+--------------------
+[secret]
+remote = remote:path
+filename_encryption = standard
+password = *** ENCRYPTED ***
+password2 = *** ENCRYPTED ***
+--------------------
+y) Yes this is OK
+e) Edit this remote
+d) Delete this remote
+y/e/d&gt; y</code></pre>
+<p><strong>Important</strong> The password is stored in the config file is lightly obscured so it isn't immediately obvious what it is. It is in no way secure unless you use config file encryption.</p>
+<p>A long passphrase is recommended, or you can use a random one. Note that if you reconfigure rclone with the same passwords/passphrases elsewhere it will be compatible - all the secrets used are derived from those two passwords/passphrases.</p>
+<p>Note that rclone does not encrypt</p>
+<ul>
+<li>file length - this can be calcuated within 16 bytes</li>
+<li>modification time - used for syncing</li>
+</ul>
+<h2 id="specifying-the-remote">Specifying the remote</h2>
+<p>In normal use, make sure the remote has a <code>:</code> in. If you specify the remote without a <code>:</code> then rclone will use a local directory of that name. So if you use a remote of <code>/path/to/secret/files</code> then rclone will encrypt stuff to that directory. If you use a remote of <code>name</code> then rclone will put files in a directory called <code>name</code> in the current directory.</p>
+<p>If you specify the remote as <code>remote:path/to/dir</code> then rclone will store encrypted files in <code>path/to/dir</code> on the remote. If you are using file name encryption, then when you save files to <code>secret:subdir/subfile</code> this will store them in the unencrypted path <code>path/to/dir</code> but the <code>subdir/subpath</code> bit will be encrypted.</p>
+<p>Note that unless you want encrypted bucket names (which are difficult to manage because you won't know what directory they represent in web interfaces etc), you should probably specify a bucket, eg <code>remote:secretbucket</code> when using bucket based remotes such as S3, Swift, Hubic, B2, GCS.</p>
+<h2 id="example">Example</h2>
+<p>To test I made a little directory of files using &quot;standard&quot; file name encryption.</p>
+<pre><code>plaintext/
+├── file0.txt
+├── file1.txt
+└── subdir
+ ├── file2.txt
+ ├── file3.txt
+ └── subsubdir
+ └── file4.txt</code></pre>
+<p>Copy these to the remote and list them back</p>
+<pre><code>$ rclone -q copy plaintext secret:
+$ rclone -q ls secret:
+ 7 file1.txt
+ 6 file0.txt
+ 8 subdir/file2.txt
+ 10 subdir/subsubdir/file4.txt
+ 9 subdir/file3.txt</code></pre>
+<p>Now see what that looked like when encrypted</p>
+<pre><code>$ rclone -q ls remote:path
+ 55 hagjclgavj2mbiqm6u6cnjjqcg
+ 54 v05749mltvv1tf4onltun46gls
+ 57 86vhrsv86mpbtd3a0akjuqslj8/dlj7fkq4kdq72emafg7a7s41uo
+ 58 86vhrsv86mpbtd3a0akjuqslj8/7uu829995du6o42n32otfhjqp4/b9pausrfansjth5ob3jkdqd4lc
+ 56 86vhrsv86mpbtd3a0akjuqslj8/8njh1sk437gttmep3p70g81aps</code></pre>
+<p>Note that this retains the directory structure which means you can do this</p>
+<pre><code>$ rclone -q ls secret:subdir
+ 8 file2.txt
+ 9 file3.txt
+ 10 subsubdir/file4.txt</code></pre>
+<p>If don't use file name encryption then the remote will look like this - note the <code>.bin</code> extensions added to prevent the cloud provider attempting to interpret the data.</p>
+<pre><code>$ rclone -q ls remote:path
+ 54 file0.txt.bin
+ 57 subdir/file3.txt.bin
+ 56 subdir/file2.txt.bin
+ 58 subdir/subsubdir/file4.txt.bin
+ 55 file1.txt.bin</code></pre>
+<h3 id="file-name-encryption-modes">File name encryption modes</h3>
+<p>Here are some of the features of the file name encryption modes</p>
+<p>Off</p>
+<ul>
+<li>doesn't hide file names or directory structure</li>
+<li>allows for longer file names (~246 characters)</li>
+<li>can use sub paths and copy single files</li>
+</ul>
+<p>Standard</p>
+<ul>
+<li>file names encrypted</li>
+<li>file names can't be as long (~156 characters)</li>
+<li>can use sub paths and copy single files</li>
+<li>directory structure visibile</li>
+<li>identical files names will have identical uploaded names</li>
+<li>can use shortcuts to shorten the directory recursion</li>
+</ul>
+<p>Obfuscation</p>
+<p>This is a simple &quot;rotate&quot; of the filename, with each file having a rot distance based on the filename. We store the distance at the beginning of the filename. So a file called &quot;hello&quot; may become &quot;53.jgnnq&quot;</p>
+<p>This is not a strong encryption of filenames, but it may stop automated scanning tools from picking up on filename patterns. As such it's an intermediate between &quot;off&quot; and &quot;standard&quot;. The advantage is that it allows for longer path segment names.</p>
+<p>There is a possibility with some unicode based filenames that the obfuscation is weak and may map lower case characters to upper case equivalents. You can not rely on this for strong protection.</p>
+<ul>
+<li>file names very lightly obfuscated</li>
+<li>file names can be longer than standard encryption</li>
+<li>can use sub paths and copy single files</li>
+<li>directory structure visibile</li>
+<li>identical files names will have identical uploaded names</li>
+</ul>
+<p>Cloud storage systems have various limits on file name length and total path length which you are more likely to hit using &quot;Standard&quot; file name encryption. If you keep your file names to below 156 characters in length then you should be OK on all providers.</p>
+<p>There may be an even more secure file name encryption mode in the future which will address the long file name problem.</p>
+<h3 id="modified-time-and-hashes-1">Modified time and hashes</h3>
+<p>Crypt stores modification times using the underlying remote so support depends on that.</p>
+<p>Hashes are not stored for crypt. However the data integrity is protected by an extremely strong crypto authenticator.</p>
+<p>Note that you should use the <code>rclone cryptcheck</code> command to check the integrity of a crypted remote instead of <code>rclone check</code> which can't check the checksums properly.</p>
+<h3 id="specific-options-4">Specific options</h3>
+<p>Here are the command line options specific to this cloud storage system.</p>
+<h4 id="crypt-show-mapping">--crypt-show-mapping</h4>
+<p>If this flag is set then for each file that the remote is asked to list, it will log (at level INFO) a line stating the decrypted file name and the encrypted file name.</p>
+<p>This is so you can work out which encrypted names are which decrypted names just in case you need to do something with the encrypted file names, or for debugging purposes.</p>
+<h2 id="backing-up-a-crypted-remote">Backing up a crypted remote</h2>
+<p>If you wish to backup a crypted remote, it it recommended that you use <code>rclone sync</code> on the encrypted files, and make sure the passwords are the same in the new encrypted remote.</p>
+<p>This will have the following advantages</p>
+<ul>
+<li><code>rclone sync</code> will check the checksums while copying</li>
+<li>you can use <code>rclone check</code> between the encrypted remotes</li>
+<li>you don't decrypt and encrypt unecessarily</li>
+</ul>
+<p>For example, let's say you have your original remote at <code>remote:</code> with the encrypted version at <code>eremote:</code> with path <code>remote:crypt</code>. You would then set up the new remote <code>remote2:</code> and then the encrypted version <code>eremote2:</code> with path <code>remote2:crypt</code> using the same passwords as <code>eremote:</code>.</p>
+<p>To sync the two remotes you would do</p>
+<pre><code>rclone sync remote:crypt remote2:crypt</code></pre>
+<p>And to check the integrity you would do</p>
+<pre><code>rclone check remote:crypt remote2:crypt</code></pre>
+<h2 id="file-formats">File formats</h2>
+<h3 id="file-encryption">File encryption</h3>
+<p>Files are encrypted 1:1 source file to destination object. The file has a header and is divided into chunks.</p>
+<h4 id="header">Header</h4>
+<ul>
+<li>8 bytes magic string <code>RCLONE\x00\x00</code></li>
+<li>24 bytes Nonce (IV)</li>
+</ul>
+<p>The initial nonce is generated from the operating systems crypto strong random number genrator. The nonce is incremented for each chunk read making sure each nonce is unique for each block written. The chance of a nonce being re-used is miniscule. If you wrote an exabyte of data (10¹⁸ bytes) you would have a probability of approximately 2×10⁻³² of re-using a nonce.</p>
+<h4 id="chunk">Chunk</h4>
+<p>Each chunk will contain 64kB of data, except for the last one which may have less data. The data chunk is in standard NACL secretbox format. Secretbox uses XSalsa20 and Poly1305 to encrypt and authenticate messages.</p>
+<p>Each chunk contains:</p>
+<ul>
+<li>16 Bytes of Poly1305 authenticator</li>
+<li>1 - 65536 bytes XSalsa20 encrypted data</li>
+</ul>
+<p>64k chunk size was chosen as the best performing chunk size (the authenticator takes too much time below this and the performance drops off due to cache effects above this). Note that these chunks are buffered in memory so they can't be too big.</p>
+<p>This uses a 32 byte (256 bit key) key derived from the user password.</p>
+<h4 id="examples">Examples</h4>
+<p>1 byte file will encrypt to</p>
<ul>
-<li><a href="https://www.rackspace.com/cloud/files/">Rackspace Cloud Files</a></li>
-<li><a href="https://www.memset.com/cloud/storage/">Memset Memstore</a></li>
+<li>32 bytes header</li>
+<li>17 bytes data chunk</li>
</ul>
-<p>Paths are specified as <code>remote:container</code> (or <code>remote:</code> for the <code>lsd</code> command.) You may put subdirectories in too, eg <code>remote:container/path/to/dir</code>.</p>
-<p>Here is an example of making a swift configuration. First run</p>
-<pre><code>rclone config</code></pre>
-<p>This will guide you through an interactive setup process.</p>
-<pre><code>No remotes found - make a new one
-n) New remote
-s) Set configuration password
-n/s&gt; n
-name&gt; remote
-Type of storage to configure.
-Choose a number from below, or type in your own value
- 1 / Amazon Drive
- \ &quot;amazon cloud drive&quot;
- 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
- \ &quot;s3&quot;
- 3 / Backblaze B2
- \ &quot;b2&quot;
- 4 / Dropbox
- \ &quot;dropbox&quot;
- 5 / Encrypt/Decrypt a remote
- \ &quot;crypt&quot;
- 6 / Google Cloud Storage (this is not Google Drive)
- \ &quot;google cloud storage&quot;
- 7 / Google Drive
- \ &quot;drive&quot;
- 8 / Hubic
- \ &quot;hubic&quot;
- 9 / Local Disk
- \ &quot;local&quot;
-10 / Microsoft OneDrive
- \ &quot;onedrive&quot;
-11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
- \ &quot;swift&quot;
-12 / SSH/SFTP Connection
- \ &quot;sftp&quot;
-13 / Yandex Disk
- \ &quot;yandex&quot;
-Storage&gt; 11
-User name to log in.
-user&gt; user_name
-API key or password.
-key&gt; password_or_api_key
-Authentication URL for server.
-Choose a number from below, or type in your own value
- 1 / Rackspace US
- \ &quot;https://auth.api.rackspacecloud.com/v1.0&quot;
- 2 / Rackspace UK
- \ &quot;https://lon.auth.api.rackspacecloud.com/v1.0&quot;
- 3 / Rackspace v2
- \ &quot;https://identity.api.rackspacecloud.com/v2.0&quot;
- 4 / Memset Memstore UK
- \ &quot;https://auth.storage.memset.com/v1.0&quot;
- 5 / Memset Memstore UK v2
- \ &quot;https://auth.storage.memset.com/v2.0&quot;
- 6 / OVH
- \ &quot;https://auth.cloud.ovh.net/v2.0&quot;
-auth&gt; 1
-User domain - optional (v3 auth)
-domain&gt; Default
-Tenant name - optional for v1 auth, required otherwise
-tenant&gt; tenant_name
-Tenant domain - optional (v3 auth)
-tenant_domain&gt;
-Region name - optional
-region&gt;
-Storage URL - optional
-storage_url&gt;
-AuthVersion - optional - set to (1,2,3) if your auth URL has no version
-auth_version&gt;
-Remote config
---------------------
-[remote]
-user = user_name
-key = password_or_api_key
-auth = https://auth.api.rackspacecloud.com/v1.0
-domain = Default
-tenant =
-tenant_domain =
-region =
-storage_url =
-auth_version =
---------------------
-y) Yes this is OK
-e) Edit this remote
-d) Delete this remote
-y/e/d&gt; y</code></pre>
-<p>This remote is called <code>remote</code> and can now be used like this</p>
-<p>See all containers</p>
-<pre><code>rclone lsd remote:</code></pre>
-<p>Make a new container</p>
-<pre><code>rclone mkdir remote:container</code></pre>
-<p>List the contents of a container</p>
-<pre><code>rclone ls remote:container</code></pre>
-<p>Sync <code>/home/local/directory</code> to the remote container, deleting any excess files in the container.</p>
-<pre><code>rclone sync /home/local/directory remote:container</code></pre>
-<h3 id="configuration-from-an-openstack-credentials-file">Configuration from an Openstack credentials file</h3>
-<p>An Opentstack credentials file typically looks something something like this (without the comments)</p>
-<pre><code>export OS_AUTH_URL=https://a.provider.net/v2.0
-export OS_TENANT_ID=ffffffffffffffffffffffffffffffff
-export OS_TENANT_NAME=&quot;1234567890123456&quot;
-export OS_USERNAME=&quot;123abc567xy&quot;
-echo &quot;Please enter your OpenStack Password: &quot;
-read -sr OS_PASSWORD_INPUT
-export OS_PASSWORD=$OS_PASSWORD_INPUT
-export OS_REGION_NAME=&quot;SBG1&quot;
-if [ -z &quot;$OS_REGION_NAME&quot; ]; then unset OS_REGION_NAME; fi</code></pre>
-<p>The config file needs to look something like this where <code>$OS_USERNAME</code> represents the value of the <code>OS_USERNAME</code> variable - <code>123abc567xy</code> in the example above.</p>
-<pre><code>[remote]
-type = swift
-user = $OS_USERNAME
-key = $OS_PASSWORD
-auth = $OS_AUTH_URL
-tenant = $OS_TENANT_NAME</code></pre>
-<p>Note that you may (or may not) need to set <code>region</code> too - try without first.</p>
-<h3 id="fast-list-2">--fast-list</h3>
-<p>This remote supports <code>--fast-list</code> which allows you to use fewer transactions in exchange for more memory. See the <a href="/docs/#fast-list">rclone docs</a> for more details.</p>
-<h3 id="specific-options-2">Specific options</h3>
-<p>Here are the command line options specific to this cloud storage system.</p>
-<h4 id="swift-chunk-sizesize">--swift-chunk-size=SIZE</h4>
-<p>Above this size files will be chunked into a _segments container. The default for this is 5GB which is its maximum value.</p>
-<h3 id="modified-time-2">Modified time</h3>
-<p>The modified time is stored as metadata on the object as <code>X-Object-Meta-Mtime</code> as floating point since the epoch accurate to 1 ns.</p>
-<p>This is a defacto standard (used in the official python-swiftclient amongst others) for storing the modification time for an object.</p>
-<h3 id="limitations-2">Limitations</h3>
-<p>The Swift API doesn't return a correct MD5SUM for segmented files (Dynamic or Static Large Objects) so rclone won't check or use the MD5SUM for these.</p>
-<h3 id="troubleshooting">Troubleshooting</h3>
-<h4 id="rclone-gives-failed-to-create-file-system-for-remote-bad-request">Rclone gives Failed to create file system for &quot;remote:&quot;: Bad Request</h4>
-<p>Due to an oddity of the underlying swift library, it gives a &quot;Bad Request&quot; error rather than a more sensible error when the authentication fails for Swift.</p>
-<p>So this most likely means your username / password is wrong. You can investigate further with the <code>--dump-bodies</code> flag.</p>
-<p>This may also be caused by specifying the region when you shouldn't have (eg OVH).</p>
-<h4 id="rclone-gives-failed-to-create-file-system-response-didnt-have-storage-storage-url-and-auth-token">Rclone gives Failed to create file system: Response didn't have storage storage url and auth token</h4>
-<p>This is most likely caused by forgetting to specify your tenant when setting up a swift remote.</p>
+<p>49 bytes total</p>
+<p>1MB (1048576 bytes) file will encrypt to</p>
+<ul>
+<li>32 bytes header</li>
+<li>16 chunks of 65568 bytes</li>
+</ul>
+<p>1049120 bytes total (a 0.05% overhead). This is the overhead for big files.</p>
+<h3 id="name-encryption">Name encryption</h3>
+<p>File names are encrypted segment by segment - the path is broken up into <code>/</code> separated strings and these are encrypted individually.</p>
+<p>File segments are padded using using PKCS#7 to a multiple of 16 bytes before encryption.</p>
+<p>They are then encrypted with EME using AES with 256 bit key. EME (ECB-Mix-ECB) is a wide-block encryption mode presented in the 2003 paper &quot;A Parallelizable Enciphering Mode&quot; by Halevi and Rogaway.</p>
+<p>This makes for determinstic encryption which is what we want - the same filename must encrypt to the same thing otherwise we can't find it on the cloud storage system.</p>
+<p>This means that</p>
+<ul>
+<li>filenames with the same name will encrypt the same</li>
+<li>filenames which start the same won't have a common prefix</li>
+</ul>
+<p>This uses a 32 byte key (256 bits) and a 16 byte (128 bits) IV both of which are derived from the user password.</p>
+<p>After encryption they are written out using a modified version of standard <code>base32</code> encoding as described in RFC4648. The standard encoding is modified in two ways:</p>
+<ul>
+<li>it becomes lower case (no-one likes upper case filenames!)</li>
+<li>we strip the padding character <code>=</code></li>
+</ul>
+<p><code>base32</code> is used rather than the more efficient <code>base64</code> so rclone can be used on case insensitive remotes (eg Windows, Amazon Drive).</p>
+<h3 id="key-derivation">Key derivation</h3>
+<p>Rclone uses <code>scrypt</code> with parameters <code>N=16384, r=8, p=1</code> with a an optional user supplied salt (password2) to derive the 32+32+16 = 80 bytes of key material required. If the user doesn't supply a salt then rclone uses an internal one.</p>
+<p><code>scrypt</code> makes it impractical to mount a dictionary attack on rclone encrypted data. For full protection agains this you should always use a salt.</p>
<h2 id="dropbox">Dropbox</h2>
<p>Paths are specified as <code>remote:path</code></p>
<p>Dropbox paths may be as deep as required, eg <code>remote:directory/subdirectory</code>.</p>
@@ -2320,11 +2881,11 @@ y/e/d&gt; y</code></pre>
<pre><code>rclone ls remote:</code></pre>
<p>To copy a local directory to a dropbox directory called backup</p>
<pre><code>rclone copy /home/source remote:backup</code></pre>
-<h3 id="modified-time-and-hashes">Modified time and Hashes</h3>
+<h3 id="modified-time-and-hashes-2">Modified time and Hashes</h3>
<p>Dropbox supports modified times, but the only way to set a modification time is to re-upload the file.</p>
<p>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 <code>--size-only</code> or <code>--checksum</code> flag to stop it.</p>
<p>Dropbox supports <a href="https://www.dropbox.com/developers/reference/content-hash">its own hash type</a> which is checked for all transfers.</p>
-<h3 id="specific-options-3">Specific options</h3>
+<h3 id="specific-options-5">Specific options</h3>
<p>Here are the command line options specific to this cloud storage system.</p>
<h4 id="dropbox-chunk-sizesize">--dropbox-chunk-size=SIZE</h4>
<p>Upload chunk size. Max 150M. The default is 128MB. Note that this isn't buffered into memory.</p>
@@ -2332,6 +2893,97 @@ y/e/d&gt; y</code></pre>
<p>Note that Dropbox is case insensitive so you can't have a file called &quot;Hello.doc&quot; and one called &quot;hello.doc&quot;.</p>
<p>There are some file names such as <code>thumbs.db</code> which Dropbox can't store. There is a full list of them in the <a href="https://www.dropbox.com/en/help/145">&quot;Ignored Files&quot; section of this document</a>. Rclone will issue an error message <code>File name disallowed - not uploading</code> if it attempt to upload one of those file names, but the sync won't fail.</p>
<p>If you have more than 10,000 files in a directory then <code>rclone purge dropbox:dir</code> will return the error <code>Failed to purge: There are too many files involved in this operation</code>. As a work-around do an <code>rclone delete dropbox:dir</code> followed by an <code>rclone rmdir dropbox:dir</code>.</p>
+<h2 id="ftp">FTP</h2>
+<p>FTP is the File Transfer Protocol. FTP support is provided using the <a href="https://godoc.org/github.com/jlaffaye/ftp">github.com/jlaffaye/ftp</a> package.</p>
+<p>Here is an example of making an FTP configuration. First run</p>
+<pre><code>rclone config</code></pre>
+<p>This will guide you through an interactive setup process. An FTP remote only needs a host together with and a username and a password. With anonymous FTP server, you will need to use <code>anonymous</code> as username and your email address as the password.</p>
+<pre><code>No remotes found - make a new one
+n) New remote
+r) Rename remote
+c) Copy remote
+s) Set configuration password
+q) Quit config
+n/r/c/s/q&gt; n
+name&gt; remote
+Type of storage to configure.
+Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ &quot;amazon cloud drive&quot;
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ &quot;s3&quot;
+ 3 / Backblaze B2
+ \ &quot;b2&quot;
+ 4 / Dropbox
+ \ &quot;dropbox&quot;
+ 5 / Encrypt/Decrypt a remote
+ \ &quot;crypt&quot;
+ 6 / FTP Connection
+ \ &quot;ftp&quot;
+ 7 / Google Cloud Storage (this is not Google Drive)
+ \ &quot;google cloud storage&quot;
+ 8 / Google Drive
+ \ &quot;drive&quot;
+ 9 / Hubic
+ \ &quot;hubic&quot;
+10 / Local Disk
+ \ &quot;local&quot;
+11 / Microsoft OneDrive
+ \ &quot;onedrive&quot;
+12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ \ &quot;swift&quot;
+13 / SSH/SFTP Connection
+ \ &quot;sftp&quot;
+14 / Yandex Disk
+ \ &quot;yandex&quot;
+Storage&gt; ftp
+FTP host to connect to
+Choose a number from below, or type in your own value
+ 1 / Connect to ftp.example.com
+ \ &quot;ftp.example.com&quot;
+host&gt; ftp.example.com
+FTP username, leave blank for current username, ncw
+user&gt;
+FTP port, leave blank to use default (21)
+port&gt;
+FTP password
+y) Yes type in my own password
+g) Generate random password
+y/g&gt; y
+Enter the password:
+password:
+Confirm the password:
+password:
+Remote config
+--------------------
+[remote]
+host = ftp.example.com
+user =
+port =
+pass = *** ENCRYPTED ***
+--------------------
+y) Yes this is OK
+e) Edit this remote
+d) Delete this remote
+y/e/d&gt; y</code></pre>
+<p>This remote is called <code>remote</code> and can now be used like this</p>
+<p>See all directories in the home directory</p>
+<pre><code>rclone lsd remote:</code></pre>
+<p>Make a new directory</p>
+<pre><code>rclone mkdir remote:path/to/directory</code></pre>
+<p>List the contents of a directory</p>
+<pre><code>rclone ls remote:path/to/directory</code></pre>
+<p>Sync <code>/home/local/directory</code> to the remote directory, deleting any excess files in the directory.</p>
+<pre><code>rclone sync /home/local/directory remote:directory</code></pre>
+<h3 id="modified-time-2">Modified time</h3>
+<p>FTP does not support modified times. Any times you see on the server will be time of upload.</p>
+<h3 id="checksums">Checksums</h3>
+<p>FTP does not support any checksums.</p>
+<h3 id="limitations-4">Limitations</h3>
+<p>Note that since FTP isn't HTTP based the following flags don't work with it: <code>--dump-headers</code>, <code>--dump-bodies</code>, <code>--dump-auth</code></p>
+<p>Note that <code>--timeout</code> isn't supported (but <code>--contimeout</code> is).</p>
+<p>Note that <code>--bind</code> isn't supported.</p>
+<p>FTP could support server side move but doesn't yet.</p>
<h2 id="google-cloud-storage">Google Cloud Storage</h2>
<p>Paths are specified as <code>remote:bucket</code> (or <code>remote:</code> for the <code>lsd</code> command.) You may put subdirectories in too, eg <code>remote:bucket/path/to/dir</code>.</p>
<p>The initial setup for google cloud storage involves getting a token from Google Cloud Storage which you need to do in your browser. <code>rclone config</code> walks you through it.</p>
@@ -2497,23 +3149,311 @@ y/e/d&gt; y</code></pre>
<p>This remote supports <code>--fast-list</code> which allows you to use fewer transactions in exchange for more memory. See the <a href="/docs/#fast-list">rclone docs</a> for more details.</p>
<h3 id="modified-time-3">Modified time</h3>
<p>Google google cloud storage stores md5sums natively and rclone stores modification times as metadata on the object, under the &quot;mtime&quot; key in RFC3339 format accurate to 1ns.</p>
-<h2 id="amazon-drive">Amazon Drive</h2>
-<p>Paths are specified as <code>remote:path</code></p>
-<p>Paths may be as deep as required, eg <code>remote:directory/subdirectory</code>.</p>
-<p>The initial setup for Amazon Drive involves getting a token from Amazon which you need to do in your browser. <code>rclone config</code> walks you through it.</p>
-<p>The configuration process for Amazon Drive may involve using an <a href="https://github.com/ncw/oauthproxy">oauth proxy</a>. This is used to keep the Amazon credentials out of the source code. The proxy runs in Google's very secure App Engine environment and doesn't store any credentials which pass through it.</p>
-<p><strong>NB</strong> rclone doesn't not currently have its own Amazon Drive credentials (see <a href="https://forum.rclone.org/t/rclone-has-been-banned-from-amazon-drive/">the forum</a> for why) so you will either need to have your own <code>client_id</code> and <code>client_secret</code> with Amazon Drive, or use a a third party ouath proxy in which case you will need to enter <code>client_id</code>, <code>client_secret</code>, <code>auth_url</code> and <code>token_url</code>.</p>
-<p>Note also if you are not using Amazon's <code>auth_url</code> and <code>token_url</code>, (ie you filled in something for those) then if setting up on a remote machine you can only use the <a href="https://rclone.org/remote_setup/#configuring-by-copying-the-config-file">copying the config method of configuration</a> - <code>rclone authorize</code> will not work.</p>
+<h2 id="google-drive">Google Drive</h2>
+<p>Paths are specified as <code>drive:path</code></p>
+<p>Drive paths may be as deep as required, eg <code>drive:directory/subdirectory</code>.</p>
+<p>The initial setup for drive involves getting a token from Google drive which you need to do in your browser. <code>rclone config</code> walks you through it.</p>
+<p>Here is an example of how to make a remote called <code>remote</code>. First run:</p>
+<pre><code> rclone config</code></pre>
+<p>This will guide you through an interactive setup process:</p>
+<pre><code>No remotes found - make a new one
+n) New remote
+r) Rename remote
+c) Copy remote
+s) Set configuration password
+q) Quit config
+n/r/c/s/q&gt; n
+name&gt; remote
+Type of storage to configure.
+Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ &quot;amazon cloud drive&quot;
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ &quot;s3&quot;
+ 3 / Backblaze B2
+ \ &quot;b2&quot;
+ 4 / Dropbox
+ \ &quot;dropbox&quot;
+ 5 / Encrypt/Decrypt a remote
+ \ &quot;crypt&quot;
+ 6 / FTP Connection
+ \ &quot;ftp&quot;
+ 7 / Google Cloud Storage (this is not Google Drive)
+ \ &quot;google cloud storage&quot;
+ 8 / Google Drive
+ \ &quot;drive&quot;
+ 9 / Hubic
+ \ &quot;hubic&quot;
+10 / Local Disk
+ \ &quot;local&quot;
+11 / Microsoft OneDrive
+ \ &quot;onedrive&quot;
+12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ \ &quot;swift&quot;
+13 / SSH/SFTP Connection
+ \ &quot;sftp&quot;
+14 / Yandex Disk
+ \ &quot;yandex&quot;
+Storage&gt; 8
+Google Application Client Id - leave blank normally.
+client_id&gt;
+Google Application Client Secret - leave blank normally.
+client_secret&gt;
+Remote config
+Use auto config?
+ * Say Y if not sure
+ * Say N if you are working on a remote or headless machine or Y didn&#39;t work
+y) Yes
+n) No
+y/n&gt; y
+If your browser doesn&#39;t open automatically go to the following link: http://127.0.0.1:53682/auth
+Log in and authorize rclone for access
+Waiting for code...
+Got code
+Configure this as a team drive?
+y) Yes
+n) No
+y/n&gt; n
+--------------------
+[remote]
+client_id =
+client_secret =
+token = {&quot;AccessToken&quot;:&quot;xxxx.x.xxxxx_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;,&quot;RefreshToken&quot;:&quot;1/xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx&quot;,&quot;Expiry&quot;:&quot;2014-03-16T13:57:58.955387075Z&quot;,&quot;Extra&quot;:null}
+--------------------
+y) Yes this is OK
+e) Edit this remote
+d) Delete this remote
+y/e/d&gt; y</code></pre>
+<p>Note that rclone runs a webserver on your local machine to collect the token as returned from Google if you use auto config mode. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on <code>http://127.0.0.1:53682/</code> and this it may require you to unblock it temporarily if you are running a host firewall, or use manual mode.</p>
+<p>You can then use it like this,</p>
+<p>List directories in top level of your drive</p>
+<pre><code>rclone lsd remote:</code></pre>
+<p>List all the files in your drive</p>
+<pre><code>rclone ls remote:</code></pre>
+<p>To copy a local directory to a drive directory called backup</p>
+<pre><code>rclone copy /home/source remote:backup</code></pre>
+<h3 id="team-drives">Team drives</h3>
+<p>If you want to configure the remote to point to a Google Team Drive then answer <code>y</code> to the question <code>Configure this as a team drive?</code>.</p>
+<p>This will fetch the list of Team Drives from google and allow you to configure which one you want to use. You can also type in a team drive ID if you prefer.</p>
+<p>For example:</p>
+<pre><code>Configure this as a team drive?
+y) Yes
+n) No
+y/n&gt; y
+Fetching team drive list...
+Choose a number from below, or type in your own value
+ 1 / Rclone Test
+ \ &quot;xxxxxxxxxxxxxxxxxxxx&quot;
+ 2 / Rclone Test 2
+ \ &quot;yyyyyyyyyyyyyyyyyyyy&quot;
+ 3 / Rclone Test 3
+ \ &quot;zzzzzzzzzzzzzzzzzzzz&quot;
+Enter a Team Drive ID&gt; 1
+--------------------
+[remote]
+client_id =
+client_secret =
+token = {&quot;AccessToken&quot;:&quot;xxxx.x.xxxxx_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;,&quot;RefreshToken&quot;:&quot;1/xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx&quot;,&quot;Expiry&quot;:&quot;2014-03-16T13:57:58.955387075Z&quot;,&quot;Extra&quot;:null}
+team_drive = xxxxxxxxxxxxxxxxxxxx
+--------------------
+y) Yes this is OK
+e) Edit this remote
+d) Delete this remote
+y/e/d&gt; y</code></pre>
+<h3 id="modified-time-4">Modified time</h3>
+<p>Google drive stores modification times accurate to 1 ms.</p>
+<h3 id="revisions">Revisions</h3>
+<p>Google drive stores revisions of files. When you upload a change to an existing file to google drive using rclone it will create a new revision of that file.</p>
+<p>Revisions follow the standard google policy which at time of writing was</p>
+<ul>
+<li>They are deleted after 30 days or 100 revisions (whatever comes first).</li>
+<li>They do not count towards a user storage quota.</li>
+</ul>
+<h3 id="deleting-files-2">Deleting files</h3>
+<p>By default rclone will send all files to the trash when deleting files. If deleting them permanently is required then use the <code>--drive-use-trash=false</code> flag, or set the equivalent environment variable.</p>
+<h3 id="emptying-trash">Emptying trash</h3>
+<p>If you wish to empty your trash you can use the <code>rclone cleanup remote:</code> command which will permanently delete all your trashed files. This command does not take any path arguments.</p>
+<h3 id="specific-options-6">Specific options</h3>
+<p>Here are the command line options specific to this cloud storage system.</p>
+<h4 id="drive-auth-owner-only">--drive-auth-owner-only</h4>
+<p>Only consider files owned by the authenticated user.</p>
+<h4 id="drive-chunk-sizesize">--drive-chunk-size=SIZE</h4>
+<p>Upload chunk size. Must a power of 2 &gt;= 256k. Default value is 8 MB.</p>
+<p>Making this larger will improve performance, but note that each chunk is buffered in memory one per transfer.</p>
+<p>Reducing this will reduce memory usage but decrease performance.</p>
+<h4 id="drive-formats">--drive-formats</h4>
+<p>Google documents can only be exported from Google drive. When rclone downloads a Google doc it chooses a format to download depending upon this setting.</p>
+<p>By default the formats are <code>docx,xlsx,pptx,svg</code> which are a sensible default for an editable document.</p>
+<p>When choosing a format, rclone runs down the list provided in order and chooses the first file format the doc can be exported as from the list. If the file can't be exported to a format on the formats list, then rclone will choose a format from the default list.</p>
+<p>If you prefer an archive copy then you might use <code>--drive-formats pdf</code>, or if you prefer openoffice/libreoffice formats you might use <code>--drive-formats ods,odt,odp</code>.</p>
+<p>Note that rclone adds the extension to the google doc, so if it is calles <code>My Spreadsheet</code> on google docs, it will be exported as <code>My Spreadsheet.xlsx</code> or <code>My Spreadsheet.pdf</code> etc.</p>
+<p>Here are the possible extensions with their corresponding mime types.</p>
+<table style="width:49%;">
+<colgroup>
+<col width="13%" />
+<col width="16%" />
+<col width="18%" />
+</colgroup>
+<thead>
+<tr class="header">
+<th>Extension</th>
+<th>Mime Type</th>
+<th>Description</th>
+</tr>
+</thead>
+<tbody>
+<tr class="odd">
+<td>csv</td>
+<td>text/csv</td>
+<td>Standard CSV format for Spreadsheets</td>
+</tr>
+<tr class="even">
+<td>doc</td>
+<td>application/msword</td>
+<td>Micosoft Office Document</td>
+</tr>
+<tr class="odd">
+<td>docx</td>
+<td>application/vnd.openxmlformats-officedocument.wordprocessingml.document</td>
+<td>Microsoft Office Document</td>
+</tr>
+<tr class="even">
+<td>epub</td>
+<td>application/epub+zip</td>
+<td>E-book format</td>
+</tr>
+<tr class="odd">
+<td>html</td>
+<td>text/html</td>
+<td>An HTML Document</td>
+</tr>
+<tr class="even">
+<td>jpg</td>
+<td>image/jpeg</td>
+<td>A JPEG Image File</td>
+</tr>
+<tr class="odd">
+<td>odp</td>
+<td>application/vnd.oasis.opendocument.presentation</td>
+<td>Openoffice Presentation</td>
+</tr>
+<tr class="even">
+<td>ods</td>
+<td>application/vnd.oasis.opendocument.spreadsheet</td>
+<td>Openoffice Spreadsheet</td>
+</tr>
+<tr class="odd">
+<td>ods</td>
+<td>application/x-vnd.oasis.opendocument.spreadsheet</td>
+<td>Openoffice Spreadsheet</td>
+</tr>
+<tr class="even">
+<td>odt</td>
+<td>application/vnd.oasis.opendocument.text</td>
+<td>Openoffice Document</td>
+</tr>
+<tr class="odd">
+<td>pdf</td>
+<td>application/pdf</td>
+<td>Adobe PDF Format</td>
+</tr>
+<tr class="even">
+<td>png</td>
+<td>image/png</td>
+<td>PNG Image Format</td>
+</tr>
+<tr class="odd">
+<td>pptx</td>
+<td>application/vnd.openxmlformats-officedocument.presentationml.presentation</td>
+<td>Microsoft Office Powerpoint</td>
+</tr>
+<tr class="even">
+<td>rtf</td>
+<td>application/rtf</td>
+<td>Rich Text Format</td>
+</tr>
+<tr class="odd">
+<td>svg</td>
+<td>image/svg+xml</td>
+<td>Scalable Vector Graphics Format</td>
+</tr>
+<tr class="even">
+<td>tsv</td>
+<td>text/tab-separated-values</td>
+<td>Standard TSV format for spreadsheets</td>
+</tr>
+<tr class="odd">
+<td>txt</td>
+<td>text/plain</td>
+<td>Plain Text</td>
+</tr>
+<tr class="even">
+<td>xls</td>
+<td>application/vnd.ms-excel</td>
+<td>Microsoft Office Spreadsheet</td>
+</tr>
+<tr class="odd">
+<td>xlsx</td>
+<td>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</td>
+<td>Microsoft Office Spreadsheet</td>
+</tr>
+<tr class="even">
+<td>zip</td>
+<td>application/zip</td>
+<td>A ZIP file of HTML, Images CSS</td>
+</tr>
+</tbody>
+</table>
+<h4 id="drive-list-chunk-int">--drive-list-chunk int</h4>
+<p>Size of listing chunk 100-1000. 0 to disable. (default 1000)</p>
+<h4 id="drive-shared-with-me">--drive-shared-with-me</h4>
+<p>Only show files that are shared with me</p>
+<h4 id="drive-skip-gdocs">--drive-skip-gdocs</h4>
+<p>Skip google documents in all listings. If given, gdocs practically become invisible to rclone.</p>
+<h4 id="drive-trashed-only">--drive-trashed-only</h4>
+<p>Only show files that are in the trash. This will show trashed files in their original directory structure.</p>
+<h4 id="drive-upload-cutoffsize">--drive-upload-cutoff=SIZE</h4>
+<p>File size cutoff for switching to chunked upload. Default is 8 MB.</p>
+<h4 id="drive-use-trash">--drive-use-trash</h4>
+<p>Controls whether files are sent to the trash or deleted permanently. Defaults to true, namely sending files to the trash. Use <code>--drive-use-trash=false</code> to delete files permanently instead.</p>
+<h3 id="limitations-5">Limitations</h3>
+<p>Drive has quite a lot of rate limiting. This causes rclone to be limited to transferring about 2 files per second only. Individual files may be transferred much faster at 100s of MBytes/s but lots of small files can take a long time.</p>
+<p>Server side copies are also subject to a separate rate limit. If you see User rate limit exceeded errors, wait at least 24 hours and retry. You can disable server side copies with <code>--disable copy</code> to download and upload the files if you prefer.</p>
+<h3 id="duplicated-files">Duplicated files</h3>
+<p>Sometimes, for no reason I've been able to track down, drive will duplicate a file that rclone uploads. Drive unlike all the other remotes can have duplicated files.</p>
+<p>Duplicated files cause problems with the syncing and you will see messages in the log about duplicates.</p>
+<p>Use <code>rclone dedupe</code> to fix duplicated files.</p>
+<p>Note that this isn't just a problem with rclone, even Google Photos on Android duplicates files on drive sometimes.</p>
+<h3 id="rclone-appears-to-be-re-copying-files-it-shouldnt">Rclone appears to be re-copying files it shouldn't</h3>
+<p>There are two possible reasons for rclone to recopy files which haven't changed to Google Drive.</p>
+<p>The first is the duplicated file issue above - run <code>rclone dedupe</code> and check your logs for duplicate object or directory messages.</p>
+<p>The second is that sometimes Google reports different sizes for the Google Docs exports which will cause rclone to re-download Google Docs for no apparent reason. <code>--ignore-size</code> is a not very satisfactory work-around for this if it is causing you a lot of problems.</p>
+<h3 id="google-docs-downloads-sometimes-fail-with-failed-to-copy-read-x-bytes-expecting-y">Google docs downloads sometimes fail with &quot;Failed to copy: read X bytes expecting Y&quot;</h3>
+<p>This is the same problem as above. Google reports the google doc is one size, but rclone downloads a different size. Work-around with the <code>--ignore-size</code> flag or wait for rclone to retry the download which it will.</p>
+<h3 id="making-your-own-client_id">Making your own client_id</h3>
+<p>When you use rclone with Google drive in its default configuration you are using rclone's client_id. This is shared between all the rclone users. There is a global rate limit on the number of queries per second that each client_id can do set by Google. rclone already has a high quota and I will continue to make sure it is high enough by contacting Google.</p>
+<p>However you might find you get better performance making your own client_id if you are a heavy user. Or you may not depending on exactly how Google have been raising rclone's rate limit.</p>
+<p>Here is how to create your own Google Drive client ID for rclone:</p>
+<ol style="list-style-type: decimal">
+<li><p>Log into the <a href="https://console.developers.google.com/">Google API Console</a> with your Google account. It doesn't matter what Google account you use. (It need not be the same account as the Google Drive you want to access)</p></li>
+<li><p>Select a project or create a new project.</p></li>
+<li><p>Under Overview, Google APIs, Google Apps APIs, click &quot;Drive API&quot;, then &quot;Enable&quot;.</p></li>
+<li><p>Click &quot;Credentials&quot; in the left-side panel (not &quot;Go to credentials&quot;, which opens the wizard), then &quot;Create credentials&quot;, then &quot;OAuth client ID&quot;. It will prompt you to set the OAuth consent screen product name, if you haven't set one already.</p></li>
+<li><p>Choose an application type of &quot;other&quot;, and click &quot;Create&quot;. (the default name is fine)</p></li>
+<li><p>It will show you a client ID and client secret. Use these values in rclone config to add a new remote or edit an existing remote.</p></li>
+</ol>
+<p>(Thanks to <span class="citation">@balazer</span> on github for these instructions.)</p>
+<h2 id="http">HTTP</h2>
+<p>The HTTP remote is a read only remote for reading files of a webserver. The webserver should provide file listings which rclone will read and turn into a remote. This has been tested with common webservers such as Apache/Nginx/Caddy and will likely work with file listings from most web servers. (If it doesn't then please file an issue, or send a pull request!)</p>
+<p>Paths are specified as <code>remote:</code> or <code>remote:path/to/dir</code>.</p>
<p>Here is an example of how to make a remote called <code>remote</code>. First run:</p>
<pre><code> rclone config</code></pre>
<p>This will guide you through an interactive setup process:</p>
<pre><code>No remotes found - make a new one
n) New remote
-r) Rename remote
-c) Copy remote
s) Set configuration password
q) Quit config
-n/r/c/s/q&gt; n
+n/s/q&gt; n
name&gt; remote
Type of storage to configure.
Choose a number from below, or type in your own value
@@ -2545,81 +3485,65 @@ Choose a number from below, or type in your own value
\ &quot;sftp&quot;
14 / Yandex Disk
\ &quot;yandex&quot;
-Storage&gt; 1
-Amazon Application Client Id - required.
-client_id&gt; your client ID goes here
-Amazon Application Client Secret - required.
-client_secret&gt; your client secret goes here
-Auth server URL - leave blank to use Amazon&#39;s.
-auth_url&gt; Optional auth URL
-Token server url - leave blank to use Amazon&#39;s.
-token_url&gt; Optional token URL
+15 / http Connection
+ \ &quot;http&quot;
+Storage&gt; http
+URL of http host to connect to
+Choose a number from below, or type in your own value
+ 1 / Connect to example.com
+ \ &quot;https://example.com&quot;
+url&gt; https://beta.rclone.org
Remote config
-Make sure your Redirect URL is set to &quot;http://127.0.0.1:53682/&quot; in your custom config.
-Use auto config?
- * Say Y if not sure
- * Say N if you are working on a remote or headless machine
-y) Yes
-n) No
-y/n&gt; y
-If your browser doesn&#39;t open automatically go to the following link: http://127.0.0.1:53682/auth
-Log in and authorize rclone for access
-Waiting for code...
-Got code
--------------------
[remote]
-client_id = your client ID goes here
-client_secret = your client secret goes here
-auth_url = Optional auth URL
-token_url = Optional token URL
-token = {&quot;access_token&quot;:&quot;xxxxxxxxxxxxxxxxxxxxxxx&quot;,&quot;token_type&quot;:&quot;bearer&quot;,&quot;refresh_token&quot;:&quot;xxxxxxxxxxxxxxxxxx&quot;,&quot;expiry&quot;:&quot;2015-09-06T16:07:39.658438471+01:00&quot;}
+url = https://beta.rclone.org
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
-y/e/d&gt; y</code></pre>
-<p>See the <a href="https://rclone.org/remote_setup/">remote setup docs</a> for how to set it up on a machine with no Internet browser available.</p>
-<p>Note that rclone runs a webserver on your local machine to collect the token as returned from Amazon. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on <code>http://127.0.0.1:53682/</code> and this it may require you to unblock it temporarily if you are running a host firewall.</p>
-<p>Once configured you can then use <code>rclone</code> like this,</p>
-<p>List directories in top level of your Amazon Drive</p>
+y/e/d&gt; y
+Current remotes:
+
+Name Type
+==== ====
+remote http
+
+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&gt; q</code></pre>
+<p>This remote is called <code>remote</code> and can now be used like this</p>
+<p>See all the top level directories</p>
<pre><code>rclone lsd remote:</code></pre>
-<p>List all the files in your Amazon Drive</p>
-<pre><code>rclone ls remote:</code></pre>
-<p>To copy a local directory to an Amazon Drive directory called backup</p>
-<pre><code>rclone copy /home/source remote:backup</code></pre>
-<h3 id="modified-time-and-md5sums">Modified time and MD5SUMs</h3>
-<p>Amazon Drive doesn't allow modification times to be changed via the API so these won't be accurate or used for syncing.</p>
-<p>It does store MD5SUMs so for a more accurate sync, you can use the <code>--checksum</code> flag.</p>
-<h3 id="deleting-files-1">Deleting files</h3>
-<p>Any files you delete with rclone will end up in the trash. Amazon don't provide an API to permanently delete files, nor to empty the trash, so you will have to do that with one of Amazon's apps or via the Amazon Drive website. As of November 17, 2016, files are automatically deleted by Amazon from the trash after 30 days.</p>
-<h3 id="using-with-non-.com-amazon-accounts">Using with non <code>.com</code> Amazon accounts</h3>
-<p>Let's say you usually use <code>amazon.co.uk</code>. When you authenticate with rclone it will take you to an <code>amazon.com</code> page to log in. Your <code>amazon.co.uk</code> email and password should work here just fine.</p>
-<h3 id="specific-options-4">Specific options</h3>
-<p>Here are the command line options specific to this cloud storage system.</p>
-<h4 id="acd-templink-thresholdsize">--acd-templink-threshold=SIZE</h4>
-<p>Files this size or more will be downloaded via their <code>tempLink</code>. This is to work around a problem with Amazon Drive which blocks downloads of files bigger than about 10GB. The default for this is 9GB which shouldn't need to be changed.</p>
-<p>To download files above this threshold, rclone requests a <code>tempLink</code> which downloads the file through a temporary URL directly from the underlying S3 storage.</p>
-<h4 id="acd-upload-wait-per-gbtime">--acd-upload-wait-per-gb=TIME</h4>
-<p>Sometimes Amazon Drive gives an error when a file has been fully uploaded but the file appears anyway after a little while. This happens sometimes for files over 1GB in size and nearly every time for files bigger than 10GB. This parameter controls the time rclone waits for the file to appear.</p>
-<p>The default value for this parameter is 3 minutes per GB, so by default it will wait 3 minutes for every GB uploaded to see if the file appears.</p>
-<p>You can disable this feature by setting it to 0. This may cause conflict errors as rclone retries the failed upload but the file will most likely appear correctly eventually.</p>
-<p>These values were determined empirically by observing lots of uploads of big files for a range of file sizes.</p>
-<p>Upload with the <code>-v</code> flag to see more info about what rclone is doing in this situation.</p>
-<h3 id="limitations-4">Limitations</h3>
-<p>Note that Amazon Drive is case insensitive so you can't have a file called &quot;Hello.doc&quot; and one called &quot;hello.doc&quot;.</p>
-<p>Amazon Drive has rate limiting so you may notice errors in the sync (429 errors). rclone will automatically retry the sync up to 3 times by default (see <code>--retries</code> flag) which should hopefully work around this problem.</p>
-<p>Amazon Drive has an internal limit of file sizes that can be uploaded to the service. This limit is not officially published, but all files larger than this will fail.</p>
-<p>At the time of writing (Jan 2016) is in the area of 50GB per file. This means that larger files are likely to fail.</p>
-<p>Unfortunately there is no way for rclone to see that this failure is because of file size, so it will retry the operation, as any other failure. To avoid this problem, use <code>--max-size 50000M</code> option to limit the maximum size of uploaded files. Note that <code>--max-size</code> does not split files into segments, it only ignores files over this size.</p>
-<h2 id="microsoft-onedrive">Microsoft OneDrive</h2>
+<p>List the contents of a directory</p>
+<pre><code>rclone ls remote:directory</code></pre>
+<p>Sync the remote <code>directory</code> to <code>/home/local/directory</code>, deleting any excess files.</p>
+<pre><code>rclone sync remote:directory /home/local/directory</code></pre>
+<h3 id="read-only">Read only</h3>
+<p>This remote is read only - you can't upload files to an HTTP server.</p>
+<h3 id="modified-time-5">Modified time</h3>
+<p>Most HTTP servers store time accurate to 1 second.</p>
+<h3 id="checksum">Checksum</h3>
+<p>No checksums are stored.</p>
+<h3 id="usage-without-a-config-file">Usage without a config file</h3>
+<p>Note that since only two environment variable need to be set, it is easy to use without a config file like this.</p>
+<pre><code>RCLONE_CONFIG_ZZ_TYPE=http RCLONE_CONFIG_ZZ_URL=https://beta.rclone.org rclone lsd zz:</code></pre>
+<p>Or if you prefer</p>
+<pre><code>export RCLONE_CONFIG_ZZ_TYPE=http
+export RCLONE_CONFIG_ZZ_URL=https://beta.rclone.org
+rclone lsd zz:</code></pre>
+<h2 id="hubic">Hubic</h2>
<p>Paths are specified as <code>remote:path</code></p>
-<p>Paths may be as deep as required, eg <code>remote:directory/subdirectory</code>.</p>
-<p>The initial setup for OneDrive involves getting a token from Microsoft which you need to do in your browser. <code>rclone config</code> walks you through it.</p>
+<p>Paths are specified as <code>remote:container</code> (or <code>remote:</code> for the <code>lsd</code> command.) You may put subdirectories in too, eg <code>remote:container/path/to/dir</code>.</p>
+<p>The initial setup for Hubic involves getting a token from Hubic which you need to do in your browser. <code>rclone config</code> walks you through it.</p>
<p>Here is an example of how to make a remote called <code>remote</code>. First run:</p>
<pre><code> rclone config</code></pre>
<p>This will guide you through an interactive setup process:</p>
-<pre><code>No remotes found - make a new one
-n) New remote
+<pre><code>n) New remote
s) Set configuration password
n/s&gt; n
name&gt; remote
@@ -2651,10 +3575,10 @@ Choose a number from below, or type in your own value
\ &quot;sftp&quot;
13 / Yandex Disk
\ &quot;yandex&quot;
-Storage&gt; 10
-Microsoft App Client Id - leave blank normally.
+Storage&gt; 8
+Hubic Client Id - leave blank normally.
client_id&gt;
-Microsoft App Client Secret - leave blank normally.
+Hubic Client Secret - leave blank normally.
client_secret&gt;
Remote config
Use auto config?
@@ -2678,38 +3602,126 @@ e) Edit this remote
d) Delete this remote
y/e/d&gt; y</code></pre>
<p>See the <a href="https://rclone.org/remote_setup/">remote setup docs</a> for how to set it up on a machine with no Internet browser available.</p>
-<p>Note that rclone runs a webserver on your local machine to collect the token as returned from Microsoft. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on <code>http://127.0.0.1:53682/</code> and this it may require you to unblock it temporarily if you are running a host firewall.</p>
+<p>Note that rclone runs a webserver on your local machine to collect the token as returned from Hubic. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on <code>http://127.0.0.1:53682/</code> and this it may require you to unblock it temporarily if you are running a host firewall.</p>
<p>Once configured you can then use <code>rclone</code> like this,</p>
-<p>List directories in top level of your OneDrive</p>
+<p>List containers in the top level of your Hubic</p>
<pre><code>rclone lsd remote:</code></pre>
-<p>List all the files in your OneDrive</p>
+<p>List all the files in your Hubic</p>
<pre><code>rclone ls remote:</code></pre>
-<p>To copy a local directory to an OneDrive directory called backup</p>
+<p>To copy a local directory to an Hubic directory called backup</p>
<pre><code>rclone copy /home/source remote:backup</code></pre>
-<h3 id="modified-time-and-hashes-1">Modified time and hashes</h3>
-<p>OneDrive allows modification times to be set on objects accurate to 1 second. These will be used to detect whether objects need syncing or not.</p>
-<p>One drive supports SHA1 type hashes, so you can use <code>--checksum</code> flag.</p>
-<h3 id="deleting-files-2">Deleting files</h3>
-<p>Any files you delete with rclone will end up in the trash. Microsoft doesn't provide an API to permanently delete files, nor to empty the trash, so you will have to do that with one of Microsoft's apps or via the OneDrive website.</p>
-<h3 id="specific-options-5">Specific options</h3>
+<p>If you want the directory to be visible in the official <em>Hubic browser</em>, you need to copy your files to the <code>default</code> directory</p>
+<pre><code>rclone copy /home/source remote:default/backup</code></pre>
+<h3 id="fast-list-4">--fast-list</h3>
+<p>This remote supports <code>--fast-list</code> which allows you to use fewer transactions in exchange for more memory. See the <a href="/docs/#fast-list">rclone docs</a> for more details.</p>
+<h3 id="modified-time-6">Modified time</h3>
+<p>The modified time is stored as metadata on the object as <code>X-Object-Meta-Mtime</code> as floating point since the epoch accurate to 1 ns.</p>
+<p>This is a defacto standard (used in the official python-swiftclient amongst others) for storing the modification time for an object.</p>
+<p>Note that Hubic wraps the Swift backend, so most of the properties of are the same.</p>
+<h3 id="limitations-6">Limitations</h3>
+<p>This uses the normal OpenStack Swift mechanism to refresh the Swift API credentials and ignores the expires field returned by the Hubic API.</p>
+<p>The Swift API doesn't return a correct MD5SUM for segmented files (Dynamic or Static Large Objects) so rclone won't check or use the MD5SUM for these.</p>
+<h2 id="microsoft-azure-blob-storage">Microsoft Azure Blob Storage</h2>
+<p>Paths are specified as <code>remote:container</code> (or <code>remote:</code> for the <code>lsd</code> command.) You may put subdirectories in too, eg <code>remote:container/path/to/dir</code>.</p>
+<p>Here is an example of making a Microsoft Azure Blob Storage configuration. For a remote called <code>remote</code>. First run:</p>
+<pre><code> rclone config</code></pre>
+<p>This will guide you through an interactive setup process:</p>
+<pre><code>No remotes found - make a new one
+n) New remote
+s) Set configuration password
+q) Quit config
+n/s/q&gt; n
+name&gt; remote
+Type of storage to configure.
+Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ &quot;amazon cloud drive&quot;
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ &quot;s3&quot;
+ 3 / Backblaze B2
+ \ &quot;b2&quot;
+ 4 / Box
+ \ &quot;box&quot;
+ 5 / Dropbox
+ \ &quot;dropbox&quot;
+ 6 / Encrypt/Decrypt a remote
+ \ &quot;crypt&quot;
+ 7 / FTP Connection
+ \ &quot;ftp&quot;
+ 8 / Google Cloud Storage (this is not Google Drive)
+ \ &quot;google cloud storage&quot;
+ 9 / Google Drive
+ \ &quot;drive&quot;
+10 / Hubic
+ \ &quot;hubic&quot;
+11 / Local Disk
+ \ &quot;local&quot;
+12 / Microsoft Azure Blob Storage
+ \ &quot;azureblob&quot;
+13 / Microsoft OneDrive
+ \ &quot;onedrive&quot;
+14 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ \ &quot;swift&quot;
+15 / SSH/SFTP Connection
+ \ &quot;sftp&quot;
+16 / Yandex Disk
+ \ &quot;yandex&quot;
+17 / http Connection
+ \ &quot;http&quot;
+Storage&gt; azureblob
+Storage Account Name
+account&gt; account_name
+Storage Account Key
+key&gt; base64encodedkey==
+Endpoint for the service - leave blank normally.
+endpoint&gt;
+Remote config
+--------------------
+[remote]
+account = account_name
+key = base64encodedkey==
+endpoint =
+--------------------
+y) Yes this is OK
+e) Edit this remote
+d) Delete this remote
+y/e/d&gt; y</code></pre>
+<p>See all containers</p>
+<pre><code>rclone lsd remote:</code></pre>
+<p>Make a new container</p>
+<pre><code>rclone mkdir remote:container</code></pre>
+<p>List the contents of a container</p>
+<pre><code>rclone ls remote:container</code></pre>
+<p>Sync <code>/home/local/directory</code> to the remote container, deleting any excess files in the container.</p>
+<pre><code>rclone sync /home/local/directory remote:container</code></pre>
+<h3 id="fast-list-5">--fast-list</h3>
+<p>This remote supports <code>--fast-list</code> which allows you to use fewer transactions in exchange for more memory. See the <a href="/docs/#fast-list">rclone docs</a> for more details.</p>
+<h3 id="modified-time-7">Modified time</h3>
+<p>The modified time is stored as metadata on the object with the <code>mtime</code> key. It is stored using RFC3339 Format time with nanosecond precision. The metadata is supplied during directory listings so there is no overhead to using it.</p>
+<h3 id="hashes">Hashes</h3>
+<p>MD5 hashes are stored with blobs. However blobs that were uploaded in chunks only have an MD5 if the source remote was capable of MD5 hashes, eg the local disk.</p>
+<h3 id="multipart-uploads-1">Multipart uploads</h3>
+<p>Rclone supports multipart uploads with Azure Blob storage. Files bigger than 256MB will be uploaded using chunked upload by default.</p>
+<p>The files will be uploaded in parallel in 4MB chunks (by default). Note that these chunks are buffered in memory and there may be up to <code>--transfers</code> of them being uploaded at once.</p>
+<p>Files can't be split into more than 50,000 chunks so by default, so the largest file that can be uploaded with 4MB chunk size is 195GB. Above this rclone will double the chunk size until it creates less than 50,000 chunks. By default this will mean a maximum file size of 3.2TB can be uploaded. This can be raised to 5TB using <code>--azureblob-chunk-size 100M</code>.</p>
+<p>Note that rclone doesn't commit the block list until the end of the upload which means that there is a limit of 9.5TB of multipart uploads in progress as Azure won't allow more than that amount of uncommitted blocks.</p>
+<h3 id="specific-options-7">Specific options</h3>
<p>Here are the command line options specific to this cloud storage system.</p>
-<h4 id="onedrive-chunk-sizesize">--onedrive-chunk-size=SIZE</h4>
-<p>Above this size files will be chunked - must be multiple of 320k. The default is 10MB. Note that the chunks will be buffered into memory.</p>
-<h4 id="onedrive-upload-cutoffsize">--onedrive-upload-cutoff=SIZE</h4>
-<p>Cutoff for switching to chunked upload - must be &lt;= 100MB. The default is 10MB.</p>
-<h3 id="limitations-5">Limitations</h3>
-<p>Note that OneDrive is case insensitive so you can't have a file called &quot;Hello.doc&quot; and one called &quot;hello.doc&quot;.</p>
-<p>Rclone only supports your default OneDrive, and doesn't work with One Drive for business. Both these issues may be fixed at some point depending on user demand!</p>
-<p>There are quite a few characters that can't be in OneDrive file names. These can't occur on Windows platforms, but on non-Windows platforms they are common. Rclone will map these names to and from an identical looking unicode equivalent. For example if a file has a <code>?</code> in it will be mapped to <code>?</code> instead.</p>
-<p>The largest allowed file size is 10GiB (10,737,418,240 bytes).</p>
-<h2 id="hubic">Hubic</h2>
+<h4 id="azureblob-upload-cutoffsize">--azureblob-upload-cutoff=SIZE</h4>
+<p>Cutoff for switching to chunked upload - must be &lt;= 256MB. The default is 256MB.</p>
+<h4 id="azureblob-chunk-sizesize">--azureblob-chunk-size=SIZE</h4>
+<p>Upload chunk size. Default 4MB. Note that this is stored in memory and there may be up to <code>--transfers</code> chunks stored at once in memory. This can be at most 100MB.</p>
+<h3 id="limitations-7">Limitations</h3>
+<p>MD5 sums are only uploaded with chunked files if the source has an MD5 sum. This will always be the case for a local to azure copy.</p>
+<h2 id="microsoft-onedrive">Microsoft OneDrive</h2>
<p>Paths are specified as <code>remote:path</code></p>
-<p>Paths are specified as <code>remote:container</code> (or <code>remote:</code> for the <code>lsd</code> command.) You may put subdirectories in too, eg <code>remote:container/path/to/dir</code>.</p>
-<p>The initial setup for Hubic involves getting a token from Hubic which you need to do in your browser. <code>rclone config</code> walks you through it.</p>
+<p>Paths may be as deep as required, eg <code>remote:directory/subdirectory</code>.</p>
+<p>The initial setup for OneDrive involves getting a token from Microsoft which you need to do in your browser. <code>rclone config</code> walks you through it.</p>
<p>Here is an example of how to make a remote called <code>remote</code>. First run:</p>
<pre><code> rclone config</code></pre>
<p>This will guide you through an interactive setup process:</p>
-<pre><code>n) New remote
+<pre><code>No remotes found - make a new one
+n) New remote
s) Set configuration password
n/s&gt; n
name&gt; remote
@@ -2741,12 +3753,18 @@ Choose a number from below, or type in your own value
\ &quot;sftp&quot;
13 / Yandex Disk
\ &quot;yandex&quot;
-Storage&gt; 8
-Hubic Client Id - leave blank normally.
+Storage&gt; 10
+Microsoft App Client Id - leave blank normally.
client_id&gt;
-Hubic Client Secret - leave blank normally.
+Microsoft App Client Secret - leave blank normally.
client_secret&gt;
Remote config
+Choose OneDrive account type?
+ * Say b for a OneDrive business account
+ * Say p for a personal OneDrive account
+b) Business
+p) Personal
+b/p&gt; p
Use auto config?
* Say Y if not sure
* Say N if you are working on a remote or headless machine
@@ -2768,35 +3786,50 @@ e) Edit this remote
d) Delete this remote
y/e/d&gt; y</code></pre>
<p>See the <a href="https://rclone.org/remote_setup/">remote setup docs</a> for how to set it up on a machine with no Internet browser available.</p>
-<p>Note that rclone runs a webserver on your local machine to collect the token as returned from Hubic. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on <code>http://127.0.0.1:53682/</code> and this it may require you to unblock it temporarily if you are running a host firewall.</p>
+<p>Note that rclone runs a webserver on your local machine to collect the token as returned from Microsoft. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on <code>http://127.0.0.1:53682/</code> and this it may require you to unblock it temporarily if you are running a host firewall.</p>
<p>Once configured you can then use <code>rclone</code> like this,</p>
-<p>List containers in the top level of your Hubic</p>
+<p>List directories in top level of your OneDrive</p>
<pre><code>rclone lsd remote:</code></pre>
-<p>List all the files in your Hubic</p>
+<p>List all the files in your OneDrive</p>
<pre><code>rclone ls remote:</code></pre>
-<p>To copy a local directory to an Hubic directory called backup</p>
+<p>To copy a local directory to an OneDrive directory called backup</p>
<pre><code>rclone copy /home/source remote:backup</code></pre>
-<p>If you want the directory to be visible in the official <em>Hubic browser</em>, you need to copy your files to the <code>default</code> directory</p>
-<pre><code>rclone copy /home/source remote:default/backup</code></pre>
-<h3 id="fast-list-4">--fast-list</h3>
-<p>This remote supports <code>--fast-list</code> which allows you to use fewer transactions in exchange for more memory. See the <a href="/docs/#fast-list">rclone docs</a> for more details.</p>
-<h3 id="modified-time-4">Modified time</h3>
-<p>The modified time is stored as metadata on the object as <code>X-Object-Meta-Mtime</code> as floating point since the epoch accurate to 1 ns.</p>
-<p>This is a defacto standard (used in the official python-swiftclient amongst others) for storing the modification time for an object.</p>
-<p>Note that Hubic wraps the Swift backend, so most of the properties of are the same.</p>
-<h3 id="limitations-6">Limitations</h3>
-<p>This uses the normal OpenStack Swift mechanism to refresh the Swift API credentials and ignores the expires field returned by the Hubic API.</p>
-<p>The Swift API doesn't return a correct MD5SUM for segmented files (Dynamic or Static Large Objects) so rclone won't check or use the MD5SUM for these.</p>
-<h2 id="backblaze-b2">Backblaze B2</h2>
-<p>B2 is <a href="https://www.backblaze.com/b2/">Backblaze's cloud storage system</a>.</p>
+<h3 id="onedrive-for-business">OneDrive for Business</h3>
+<p>There is additional support for OneDrive for Business. Select &quot;b&quot; when ask</p>
+<pre><code>Choose OneDrive account type?
+ * Say b for a OneDrive business account
+ * Say p for a personal OneDrive account
+b) Business
+p) Personal
+b/p&gt; </code></pre>
+<p>After that rclone requires an authentication of your account. The application will first authenticate your account, then query the OneDrive resource URL and do a second (silent) authentication for this resource URL.</p>
+<h3 id="modified-time-and-hashes-3">Modified time and hashes</h3>
+<p>OneDrive allows modification times to be set on objects accurate to 1 second. These will be used to detect whether objects need syncing or not.</p>
+<p>One drive supports SHA1 type hashes, so you can use <code>--checksum</code> flag.</p>
+<h3 id="deleting-files-3">Deleting files</h3>
+<p>Any files you delete with rclone will end up in the trash. Microsoft doesn't provide an API to permanently delete files, nor to empty the trash, so you will have to do that with one of Microsoft's apps or via the OneDrive website.</p>
+<h3 id="specific-options-8">Specific options</h3>
+<p>Here are the command line options specific to this cloud storage system.</p>
+<h4 id="onedrive-chunk-sizesize">--onedrive-chunk-size=SIZE</h4>
+<p>Above this size files will be chunked - must be multiple of 320k. The default is 10MB. Note that the chunks will be buffered into memory.</p>
+<h4 id="onedrive-upload-cutoffsize">--onedrive-upload-cutoff=SIZE</h4>
+<p>Cutoff for switching to chunked upload - must be &lt;= 100MB. The default is 10MB.</p>
+<h3 id="limitations-8">Limitations</h3>
+<p>Note that OneDrive is case insensitive so you can't have a file called &quot;Hello.doc&quot; and one called &quot;hello.doc&quot;.</p>
+<p>There are quite a few characters that can't be in OneDrive file names. These can't occur on Windows platforms, but on non-Windows platforms they are common. Rclone will map these names to and from an identical looking unicode equivalent. For example if a file has a <code>?</code> in it will be mapped to <code>?</code> instead.</p>
+<p>The largest allowed file size is 10GiB (10,737,418,240 bytes).</p>
+<h2 id="qingstor">QingStor</h2>
<p>Paths are specified as <code>remote:bucket</code> (or <code>remote:</code> for the <code>lsd</code> command.) You may put subdirectories in too, eg <code>remote:bucket/path/to/dir</code>.</p>
-<p>Here is an example of making a b2 configuration. First run</p>
+<p>Here is an example of making an QingStor configuration. First run</p>
<pre><code>rclone config</code></pre>
-<p>This will guide you through an interactive setup process. You will need your account number (a short hex number) and key (a long hex number) which you can get from the b2 control panel.</p>
+<p>This will guide you through an interactive setup process.</p>
<pre><code>No remotes found - make a new one
n) New remote
+r) Rename remote
+c) Copy remote
+s) Set configuration password
q) Quit config
-n/q&gt; n
+n/r/c/s/q&gt; n
name&gt; remote
Type of storage to configure.
Choose a number from below, or type in your own value
@@ -2810,35 +3843,62 @@ Choose a number from below, or type in your own value
\ &quot;dropbox&quot;
5 / Encrypt/Decrypt a remote
\ &quot;crypt&quot;
- 6 / Google Cloud Storage (this is not Google Drive)
+ 6 / FTP Connection
+ \ &quot;ftp&quot;
+ 7 / Google Cloud Storage (this is not Google Drive)
\ &quot;google cloud storage&quot;
- 7 / Google Drive
+ 8 / Google Drive
\ &quot;drive&quot;
- 8 / Hubic
+ 9 / Hubic
\ &quot;hubic&quot;
- 9 / Local Disk
+10 / Local Disk
\ &quot;local&quot;
-10 / Microsoft OneDrive
+11 / Microsoft OneDrive
\ &quot;onedrive&quot;
-11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
\ &quot;swift&quot;
-12 / SSH/SFTP Connection
+13 / QingStor Object Storage
+ \ &quot;qingstor&quot;
+14 / SSH/SFTP Connection
\ &quot;sftp&quot;
-13 / Yandex Disk
+15 / Yandex Disk
\ &quot;yandex&quot;
-Storage&gt; 3
-Account ID
-account&gt; 123456789abc
-Application Key
-key&gt; 0123456789abcdef0123456789abcdef0123456789
-Endpoint for the service - leave blank normally.
+Storage&gt; 13
+Get QingStor credentials from runtime. Only applies if access_key_id and secret_access_key is blank.
+Choose a number from below, or type in your own value
+ 1 / Enter QingStor credentials in the next step
+ \ &quot;false&quot;
+ 2 / Get QingStor credentials from the environment (env vars or IAM)
+ \ &quot;true&quot;
+env_auth&gt; 1
+QingStor Access Key ID - leave blank for anonymous access or runtime credentials.
+access_key_id&gt; access_key
+QingStor Secret Access Key (password) - leave blank for anonymous access or runtime credentials.
+secret_access_key&gt; secret_key
+Enter a endpoint URL to connection QingStor API.
+Leave blank will use the default value &quot;https://qingstor.com:443&quot;
endpoint&gt;
+Zone connect to. Default is &quot;pek3a&quot;.
+Choose a number from below, or type in your own value
+ / The Beijing (China) Three Zone
+ 1 | Needs location constraint pek3a.
+ \ &quot;pek3a&quot;
+ / The Shanghai (China) First Zone
+ 2 | Needs location constraint sh1a.
+ \ &quot;sh1a&quot;
+zone&gt; 1
+Number of connnection retry.
+Leave blank will use the default value &quot;3&quot;.
+connection_retries&gt;
Remote config
--------------------
[remote]
-account = 123456789abc
-key = 0123456789abcdef0123456789abcdef0123456789
+env_auth = false
+access_key_id = access_key
+secret_access_key = secret_key
endpoint =
+zone = pek3a
+connection_retries =
--------------------
y) Yes this is OK
e) Edit this remote
@@ -2853,103 +3913,42 @@ y/e/d&gt; y</code></pre>
<pre><code>rclone ls remote:bucket</code></pre>
<p>Sync <code>/home/local/directory</code> to the remote bucket, deleting any excess files in the bucket.</p>
<pre><code>rclone sync /home/local/directory remote:bucket</code></pre>
-<h3 id="fast-list-5">--fast-list</h3>
+<h3 id="fast-list-6">--fast-list</h3>
<p>This remote supports <code>--fast-list</code> which allows you to use fewer transactions in exchange for more memory. See the <a href="/docs/#fast-list">rclone docs</a> for more details.</p>
-<h3 id="modified-time-5">Modified time</h3>
-<p>The modified time is stored as metadata on the object as <code>X-Bz-Info-src_last_modified_millis</code> as milliseconds since 1970-01-01 in the Backblaze standard. Other tools should be able to use this as a modified time.</p>
-<p>Modified times are used in syncing and are fully supported except in the case of updating a modification time on an existing object. In this case the object will be uploaded again as B2 doesn't have an API method to set the modification time independent of doing an upload.</p>
-<h3 id="sha1-checksums">SHA1 checksums</h3>
-<p>The SHA1 checksums of the files are checked on upload and download and will be used in the syncing process.</p>
-<p>Large files which are uploaded in chunks will store their SHA1 on the object as <code>X-Bz-Info-large_file_sha1</code> as recommended by Backblaze.</p>
-<h3 id="transfers">Transfers</h3>
-<p>Backblaze recommends that you do lots of transfers simultaneously for maximum speed. In tests from my SSD equiped laptop the optimum setting is about <code>--transfers 32</code> though higher numbers may be used for a slight speed improvement. The optimum number for you may vary depending on your hardware, how big the files are, how much you want to load your computer, etc. The default of <code>--transfers 4</code> is definitely too low for Backblaze B2 though.</p>
-<p>Note that uploading big files (bigger than 200 MB by default) will use a 96 MB RAM buffer by default. There can be at most <code>--transfers</code> of these in use at any moment, so this sets the upper limit on the memory used.</p>
-<h3 id="versions">Versions</h3>
-<p>When rclone uploads a new version of a file it creates a <a href="https://www.backblaze.com/b2/docs/file_versions.html">new version of it</a>. Likewise when you delete a file, the old version will still be available.</p>
-<p>Old versions of files are visible using the <code>--b2-versions</code> flag.</p>
-<p>If you wish to remove all the old versions then you can use the <code>rclone cleanup remote:bucket</code> command which will delete all the old versions of files, leaving the current ones intact. You can also supply a path and only old versions under that path will be deleted, eg <code>rclone cleanup remote:bucket/path/to/stuff</code>.</p>
-<p>When you <code>purge</code> a bucket, the current and the old versions will be deleted then the bucket will be deleted.</p>
-<p>However <code>delete</code> will cause the current versions of the files to become hidden old versions.</p>
-<p>Here is a session showing the listing and and retreival of an old version followed by a <code>cleanup</code> of the old versions.</p>
-<p>Show current version and all the versions with <code>--b2-versions</code> flag.</p>
-<pre><code>$ rclone -q ls b2:cleanup-test
- 9 one.txt
-
-$ rclone -q --b2-versions ls b2:cleanup-test
- 9 one.txt
- 8 one-v2016-07-04-141032-000.txt
- 16 one-v2016-07-04-141003-000.txt
- 15 one-v2016-07-02-155621-000.txt</code></pre>
-<p>Retreive an old verson</p>
-<pre><code>$ rclone -q --b2-versions copy b2:cleanup-test/one-v2016-07-04-141003-000.txt /tmp
-
-$ ls -l /tmp/one-v2016-07-04-141003-000.txt
--rw-rw-r-- 1 ncw ncw 16 Jul 2 17:46 /tmp/one-v2016-07-04-141003-000.txt</code></pre>
-<p>Clean up all the old versions and show that they've gone.</p>
-<pre><code>$ rclone -q cleanup b2:cleanup-test
-
-$ rclone -q ls b2:cleanup-test
- 9 one.txt
-
-$ rclone -q --b2-versions ls b2:cleanup-test
- 9 one.txt</code></pre>
-<h3 id="data-usage">Data usage</h3>
-<p>It is useful to know how many requests are sent to the server in different scenarios.</p>
-<p>All copy commands send the following 4 requests:</p>
-<pre><code>/b2api/v1/b2_authorize_account
-/b2api/v1/b2_create_bucket
-/b2api/v1/b2_list_buckets
-/b2api/v1/b2_list_file_names</code></pre>
-<p>The <code>b2_list_file_names</code> request will be sent once for every 1k files in the remote path, providing the checksum and modification time of the listed files. As of version 1.33 issue <a href="https://github.com/ncw/rclone/issues/818">#818</a> causes extra requests to be sent when using B2 with Crypt. When a copy operation does not require any files to be uploaded, no more requests will be sent.</p>
-<p>Uploading files that do not require chunking, will send 2 requests per file upload:</p>
-<pre><code>/b2api/v1/b2_get_upload_url
-/b2api/v1/b2_upload_file/</code></pre>
-<p>Uploading files requiring chunking, will send 2 requests (one each to start and finish the upload) and another 2 requests for each chunk:</p>
-<pre><code>/b2api/v1/b2_start_large_file
-/b2api/v1/b2_get_upload_part_url
-/b2api/v1/b2_upload_part/
-/b2api/v1/b2_finish_large_file</code></pre>
-<h3 id="b2-with-crypt">B2 with crypt</h3>
-<p>When using B2 with <code>crypt</code> files are encrypted into a temporary location and streamed from there. This is required to calculate the encrypted file's checksum before beginning the upload. On Windows the %TMPDIR% environment variable is used as the temporary location. If the file requires chunking, both the chunking and encryption will take place in memory.</p>
-<h3 id="specific-options-6">Specific options</h3>
-<p>Here are the command line options specific to this cloud storage system.</p>
-<h4 id="b2-chunk-size-valueesize">--b2-chunk-size valuee=SIZE</h4>
-<p>When uploading large files chunk the file into this size. Note that these chunks are buffered in memory and there might a maximum of <code>--transfers</code> chunks in progress at once. 5,000,000 Bytes is the minimim size (default 96M).</p>
-<h4 id="b2-upload-cutoffsize">--b2-upload-cutoff=SIZE</h4>
-<p>Cutoff for switching to chunked upload (default 190.735 MiB == 200 MB). Files above this size will be uploaded in chunks of <code>--b2-chunk-size</code>.</p>
-<p>This value should be set no larger than 4.657GiB (== 5GB) as this is the largest file size that can be uploaded.</p>
-<h4 id="b2-test-modeflag">--b2-test-mode=FLAG</h4>
-<p>This is for debugging purposes only.</p>
-<p>Setting FLAG to one of the strings below will cause b2 to return specific errors for debugging purposes.</p>
+<h3 id="multipart-uploads-2">Multipart uploads</h3>
+<p>rclone supports multipart uploads with QingStor which means that it can upload files bigger than 5GB. Note that files uploaded with multipart upload don't have an MD5SUM.</p>
+<h3 id="buckets-and-zone">Buckets and Zone</h3>
+<p>With QingStor you can list buckets (<code>rclone lsd</code>) using any zone, but you can only access the content of a bucket from the zone it was created in. If you attempt to access a bucket from the wrong zone, you will get an error, <code>incorrect zone, the bucket is not in 'XXX' zone</code>.</p>
+<h3 id="authentication-1">Authentication</h3>
+<p>There are two ways to supply <code>rclone</code> with a set of QingStor credentials. In order of precedence:</p>
<ul>
-<li><code>fail_some_uploads</code></li>
-<li><code>expire_some_account_authorization_tokens</code></li>
-<li><code>force_cap_exceeded</code></li>
+<li>Directly in the rclone configuration file (as configured by <code>rclone config</code>)</li>
+<li>set <code>access_key_id</code> and <code>secret_access_key</code></li>
+<li>Runtime configuration:</li>
+<li>set <code>env_auth</code> to <code>true</code> in the config file</li>
+<li>Exporting the following environment variables before running <code>rclone</code>
+<ul>
+<li>Access Key ID: <code>QS_ACCESS_KEY_ID</code> or <code>QS_ACCESS_KEY</code></li>
+<li>Secret Access Key: <code>QS_SECRET_ACCESS_KEY</code> or <code>QS_SECRET_KEY</code></li>
+</ul></li>
</ul>
-<p>These will be set in the <code>X-Bz-Test-Mode</code> header which is documented in the <a href="https://www.backblaze.com/b2/docs/integration_checklist.html">b2 integrations checklist</a>.</p>
-<h4 id="b2-versions">--b2-versions</h4>
-<p>When set rclone will show and act on older versions of files. For example</p>
-<p>Listing without <code>--b2-versions</code></p>
-<pre><code>$ rclone -q ls b2:cleanup-test
- 9 one.txt</code></pre>
-<p>And with</p>
-<pre><code>$ rclone -q --b2-versions ls b2:cleanup-test
- 9 one.txt
- 8 one-v2016-07-04-141032-000.txt
- 16 one-v2016-07-04-141003-000.txt
- 15 one-v2016-07-02-155621-000.txt</code></pre>
-<p>Showing that the current version is unchanged but older versions can be seen. These have the UTC date that they were uploaded to the server to the nearest millisecond appended to them.</p>
-<p>Note that when using <code>--b2-versions</code> no file write operations are permitted, so you can't upload files or delete them.</p>
-<h2 id="yandex-disk">Yandex Disk</h2>
-<p><a href="https://disk.yandex.com">Yandex Disk</a> is a cloud storage solution created by <a href="https://yandex.com">Yandex</a>.</p>
-<p>Yandex paths may be as deep as required, eg <code>remote:directory/subdirectory</code>.</p>
-<p>Here is an example of making a yandex configuration. First run</p>
+<h2 id="swift">Swift</h2>
+<p>Swift refers to <a href="https://docs.openstack.org/swift/latest/">Openstack Object Storage</a>. Commercial implementations of that being:</p>
+<ul>
+<li><a href="https://www.rackspace.com/cloud/files/">Rackspace Cloud Files</a></li>
+<li><a href="https://www.memset.com/cloud/storage/">Memset Memstore</a></li>
+<li><a href="https://www.ovh.co.uk/public-cloud/storage/object-storage/">OVH Object Storage</a></li>
+<li><a href="https://cloud.oracle.com/storage-opc">Oracle Cloud Storage</a></li>
+</ul>
+<p>Paths are specified as <code>remote:container</code> (or <code>remote:</code> for the <code>lsd</code> command.) You may put subdirectories in too, eg <code>remote:container/path/to/dir</code>.</p>
+<p>Here is an example of making a swift configuration. First run</p>
<pre><code>rclone config</code></pre>
-<p>This will guide you through an interactive setup process:</p>
+<p>This will guide you through an interactive setup process.</p>
<pre><code>No remotes found - make a new one
n) New remote
s) Set configuration password
-n/s&gt; n
+q) Quit config
+n/s/q&gt; n
name&gt; remote
Type of storage to configure.
Choose a number from below, or type in your own value
@@ -2959,69 +3958,159 @@ Choose a number from below, or type in your own value
\ &quot;s3&quot;
3 / Backblaze B2
\ &quot;b2&quot;
- 4 / Dropbox
+ 4 / Box
+ \ &quot;box&quot;
+ 5 / Dropbox
\ &quot;dropbox&quot;
- 5 / Encrypt/Decrypt a remote
+ 6 / Encrypt/Decrypt a remote
\ &quot;crypt&quot;
- 6 / Google Cloud Storage (this is not Google Drive)
+ 7 / FTP Connection
+ \ &quot;ftp&quot;
+ 8 / Google Cloud Storage (this is not Google Drive)
\ &quot;google cloud storage&quot;
- 7 / Google Drive
+ 9 / Google Drive
\ &quot;drive&quot;
- 8 / Hubic
+10 / Hubic
\ &quot;hubic&quot;
- 9 / Local Disk
+11 / Local Disk
\ &quot;local&quot;
-10 / Microsoft OneDrive
+12 / Microsoft Azure Blob Storage
+ \ &quot;azureblob&quot;
+13 / Microsoft OneDrive
\ &quot;onedrive&quot;
-11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+14 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
\ &quot;swift&quot;
-12 / SSH/SFTP Connection
+15 / QingClound Object Storage
+ \ &quot;qingstor&quot;
+16 / SSH/SFTP Connection
\ &quot;sftp&quot;
-13 / Yandex Disk
+17 / Yandex Disk
\ &quot;yandex&quot;
-Storage&gt; 13
-Yandex Client Id - leave blank normally.
-client_id&gt;
-Yandex Client Secret - leave blank normally.
-client_secret&gt;
+18 / http Connection
+ \ &quot;http&quot;
+Storage&gt; swift
+Get swift credentials from environment variables in standard OpenStack form.
+Choose a number from below, or type in your own value
+ 1 / Enter swift credentials in the next step
+ \ &quot;false&quot;
+ 2 / Get swift credentials from environment vars. Leave other fields blank if using this.
+ \ &quot;true&quot;
+env_auth&gt; 1
+User name to log in.
+user&gt; user_name
+API key or password.
+key&gt; password_or_api_key
+Authentication URL for server.
+Choose a number from below, or type in your own value
+ 1 / Rackspace US
+ \ &quot;https://auth.api.rackspacecloud.com/v1.0&quot;
+ 2 / Rackspace UK
+ \ &quot;https://lon.auth.api.rackspacecloud.com/v1.0&quot;
+ 3 / Rackspace v2
+ \ &quot;https://identity.api.rackspacecloud.com/v2.0&quot;
+ 4 / Memset Memstore UK
+ \ &quot;https://auth.storage.memset.com/v1.0&quot;
+ 5 / Memset Memstore UK v2
+ \ &quot;https://auth.storage.memset.com/v2.0&quot;
+ 6 / OVH
+ \ &quot;https://auth.cloud.ovh.net/v2.0&quot;
+auth&gt; 1
+User domain - optional (v3 auth)
+domain&gt; Default
+Tenant name - optional for v1 auth, required otherwise
+tenant&gt; tenant_name
+Tenant domain - optional (v3 auth)
+tenant_domain&gt;
+Region name - optional
+region&gt;
+Storage URL - optional
+storage_url&gt;
+AuthVersion - optional - set to (1,2,3) if your auth URL has no version
+auth_version&gt;
+Endpoint type to choose from the service catalogue
+Choose a number from below, or type in your own value
+ 1 / Public (default, choose this if not sure)
+ \ &quot;public&quot;
+ 2 / Internal (use internal service net)
+ \ &quot;internal&quot;
+ 3 / Admin
+ \ &quot;admin&quot;
+endpoint_type&gt;
Remote config
-Use auto config?
- * Say Y if not sure
- * Say N if you are working on a remote or headless machine
-y) Yes
-n) No
-y/n&gt; y
-If your browser doesn&#39;t open automatically go to the following link: http://127.0.0.1:53682/auth
-Log in and authorize rclone for access
-Waiting for code...
-Got code
--------------------
[remote]
-client_id =
-client_secret =
-token = {&quot;access_token&quot;:&quot;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;,&quot;token_type&quot;:&quot;bearer&quot;,&quot;expiry&quot;:&quot;2016-12-29T12:27:11.362788025Z&quot;}
+env_auth = false
+user = user_name
+key = password_or_api_key
+auth = https://auth.api.rackspacecloud.com/v1.0
+domain = Default
+tenant =
+tenant_domain =
+region =
+storage_url =
+auth_version =
+endpoint_type =
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d&gt; y</code></pre>
-<p>See the <a href="https://rclone.org/remote_setup/">remote setup docs</a> for how to set it up on a machine with no Internet browser available.</p>
-<p>Note that rclone runs a webserver on your local machine to collect the token as returned from Yandex Disk. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on <code>http://127.0.0.1:53682/</code> and this it may require you to unblock it temporarily if you are running a host firewall.</p>
-<p>Once configured you can then use <code>rclone</code> like this,</p>
-<p>See top level directories</p>
+<p>This remote is called <code>remote</code> and can now be used like this</p>
+<p>See all containers</p>
<pre><code>rclone lsd remote:</code></pre>
-<p>Make a new directory</p>
-<pre><code>rclone mkdir remote:directory</code></pre>
-<p>List the contents of a directory</p>
-<pre><code>rclone ls remote:directory</code></pre>
-<p>Sync <code>/home/local/directory</code> to the remote path, deleting any excess files in the path.</p>
-<pre><code>rclone sync /home/local/directory remote:directory</code></pre>
-<h3 id="fast-list-6">--fast-list</h3>
+<p>Make a new container</p>
+<pre><code>rclone mkdir remote:container</code></pre>
+<p>List the contents of a container</p>
+<pre><code>rclone ls remote:container</code></pre>
+<p>Sync <code>/home/local/directory</code> to the remote container, deleting any excess files in the container.</p>
+<pre><code>rclone sync /home/local/directory remote:container</code></pre>
+<h3 id="configuration-from-an-openstack-credentials-file">Configuration from an Openstack credentials file</h3>
+<p>An Opentstack credentials file typically looks something something like this (without the comments)</p>
+<pre><code>export OS_AUTH_URL=https://a.provider.net/v2.0
+export OS_TENANT_ID=ffffffffffffffffffffffffffffffff
+export OS_TENANT_NAME=&quot;1234567890123456&quot;
+export OS_USERNAME=&quot;123abc567xy&quot;
+echo &quot;Please enter your OpenStack Password: &quot;
+read -sr OS_PASSWORD_INPUT
+export OS_PASSWORD=$OS_PASSWORD_INPUT
+export OS_REGION_NAME=&quot;SBG1&quot;
+if [ -z &quot;$OS_REGION_NAME&quot; ]; then unset OS_REGION_NAME; fi</code></pre>
+<p>The config file needs to look something like this where <code>$OS_USERNAME</code> represents the value of the <code>OS_USERNAME</code> variable - <code>123abc567xy</code> in the example above.</p>
+<pre><code>[remote]
+type = swift
+user = $OS_USERNAME
+key = $OS_PASSWORD
+auth = $OS_AUTH_URL
+tenant = $OS_TENANT_NAME</code></pre>
+<p>Note that you may (or may not) need to set <code>region</code> too - try without first.</p>
+<h3 id="configuration-from-the-environment">Configuration from the environment</h3>
+<p>If you prefer you can configure rclone to use swift using a standard set of OpenStack environment variables.</p>
+<p>When you run through the config, make sure you choose <code>true</code> for <code>env_auth</code> and leave everything else blank.</p>
+<p>rclone will then set any empty config parameters from the enviroment using standard OpenStack environment variables. There is <a href="https://godoc.org/github.com/ncw/swift#Connection.ApplyEnvironment">a list of the variables</a> in the docs for the swift library.</p>
+<h4 id="using-rclone-without-a-config-file">Using rclone without a config file</h4>
+<p>You can use rclone with swift without a config file, if desired, like this:</p>
+<pre><code>source openstack-credentials-file
+export RCLONE_CONFIG_MYREMOTE_TYPE=swift
+export RCLONE_CONFIG_MYREMOTE_ENV_AUTH=true
+rclone lsd myremote:</code></pre>
+<h3 id="fast-list-7">--fast-list</h3>
<p>This remote supports <code>--fast-list</code> which allows you to use fewer transactions in exchange for more memory. See the <a href="/docs/#fast-list">rclone docs</a> for more details.</p>
-<h3 id="modified-time-6">Modified time</h3>
-<p>Modified times are supported and are stored accurate to 1 ns in custom metadata called <code>rclone_modified</code> in RFC3339 with nanoseconds format.</p>
-<h3 id="md5-checksums">MD5 checksums</h3>
-<p>MD5 checksums are natively supported by Yandex Disk.</p>
+<h3 id="specific-options-9">Specific options</h3>
+<p>Here are the command line options specific to this cloud storage system.</p>
+<h4 id="swift-chunk-sizesize">--swift-chunk-size=SIZE</h4>
+<p>Above this size files will be chunked into a _segments container. The default for this is 5GB which is its maximum value.</p>
+<h3 id="modified-time-8">Modified time</h3>
+<p>The modified time is stored as metadata on the object as <code>X-Object-Meta-Mtime</code> as floating point since the epoch accurate to 1 ns.</p>
+<p>This is a defacto standard (used in the official python-swiftclient amongst others) for storing the modification time for an object.</p>
+<h3 id="limitations-9">Limitations</h3>
+<p>The Swift API doesn't return a correct MD5SUM for segmented files (Dynamic or Static Large Objects) so rclone won't check or use the MD5SUM for these.</p>
+<h3 id="troubleshooting">Troubleshooting</h3>
+<h4 id="rclone-gives-failed-to-create-file-system-for-remote-bad-request">Rclone gives Failed to create file system for &quot;remote:&quot;: Bad Request</h4>
+<p>Due to an oddity of the underlying swift library, it gives a &quot;Bad Request&quot; error rather than a more sensible error when the authentication fails for Swift.</p>
+<p>So this most likely means your username / password is wrong. You can investigate further with the <code>--dump-bodies</code> flag.</p>
+<p>This may also be caused by specifying the region when you shouldn't have (eg OVH).</p>
+<h4 id="rclone-gives-failed-to-create-file-system-response-didnt-have-storage-storage-url-and-auth-token">Rclone gives Failed to create file system: Response didn't have storage storage url and auth token</h4>
+<p>This is most likely caused by forgetting to specify your tenant when setting up a swift remote.</p>
<h2 id="sftp">SFTP</h2>
<p>SFTP is the <a href="https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol">Secure (or SSH) File Transfer Protocol</a>.</p>
<p>It runs over SSH v2 and is standard with most modern SSH installations.</p>
@@ -3121,209 +4210,26 @@ y/e/d&gt; y</code></pre>
<p>And then at the end of the session</p>
<pre><code>eval `ssh-agent -k`</code></pre>
<p>These commands can be used in scripts of course.</p>
-<h3 id="modified-time-7">Modified time</h3>
+<h3 id="modified-time-9">Modified time</h3>
<p>Modified times are stored on the server to 1 second precision.</p>
<p>Modified times are used in syncing and are fully supported.</p>
-<h3 id="limitations-7">Limitations</h3>
-<p>SFTP does not support any checksums.</p>
+<h3 id="limitations-10">Limitations</h3>
+<p>SFTP supports checksums if the same login has shell access and <code>md5sum</code> or <code>sha1sum</code> as well as <code>echo</code> are in the remote's PATH.</p>
<p>The only ssh agent supported under Windows is Putty's pagent.</p>
<p>SFTP isn't supported under plan9 until <a href="https://github.com/pkg/sftp/issues/156">this issue</a> is fixed.</p>
<p>Note that since SFTP isn't HTTP based the following flags don't work with it: <code>--dump-headers</code>, <code>--dump-bodies</code>, <code>--dump-auth</code></p>
<p>Note that <code>--timeout</code> isn't supported (but <code>--contimeout</code> is).</p>
-<h2 id="ftp">FTP</h2>
-<p>FTP is the File Transfer Protocol. FTP support is provided using the <a href="https://godoc.org/github.com/jlaffaye/ftp">github.com/jlaffaye/ftp</a> package.</p>
-<p>Here is an example of making an FTP configuration. First run</p>
-<pre><code>rclone config</code></pre>
-<p>This will guide you through an interactive setup process. An FTP remote only needs a host together with and a username and a password. With anonymous FTP server, you will need to use <code>anonymous</code> as username and your email address as the password.</p>
-<pre><code>No remotes found - make a new one
-n) New remote
-r) Rename remote
-c) Copy remote
-s) Set configuration password
-q) Quit config
-n/r/c/s/q&gt; n
-name&gt; remote
-Type of storage to configure.
-Choose a number from below, or type in your own value
- 1 / Amazon Drive
- \ &quot;amazon cloud drive&quot;
- 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
- \ &quot;s3&quot;
- 3 / Backblaze B2
- \ &quot;b2&quot;
- 4 / Dropbox
- \ &quot;dropbox&quot;
- 5 / Encrypt/Decrypt a remote
- \ &quot;crypt&quot;
- 6 / FTP Connection
- \ &quot;ftp&quot;
- 7 / Google Cloud Storage (this is not Google Drive)
- \ &quot;google cloud storage&quot;
- 8 / Google Drive
- \ &quot;drive&quot;
- 9 / Hubic
- \ &quot;hubic&quot;
-10 / Local Disk
- \ &quot;local&quot;
-11 / Microsoft OneDrive
- \ &quot;onedrive&quot;
-12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
- \ &quot;swift&quot;
-13 / SSH/SFTP Connection
- \ &quot;sftp&quot;
-14 / Yandex Disk
- \ &quot;yandex&quot;
-Storage&gt; ftp
-FTP host to connect to
-Choose a number from below, or type in your own value
- 1 / Connect to ftp.example.com
- \ &quot;ftp.example.com&quot;
-host&gt; ftp.example.com
-FTP username, leave blank for current username, ncw
-user&gt;
-FTP port, leave blank to use default (21)
-port&gt;
-FTP password
-y) Yes type in my own password
-g) Generate random password
-y/g&gt; y
-Enter the password:
-password:
-Confirm the password:
-password:
-Remote config
---------------------
-[remote]
-host = ftp.example.com
-user =
-port =
-pass = *** ENCRYPTED ***
---------------------
-y) Yes this is OK
-e) Edit this remote
-d) Delete this remote
-y/e/d&gt; y</code></pre>
-<p>This remote is called <code>remote</code> and can now be used like this</p>
-<p>See all directories in the home directory</p>
-<pre><code>rclone lsd remote:</code></pre>
-<p>Make a new directory</p>
-<pre><code>rclone mkdir remote:path/to/directory</code></pre>
-<p>List the contents of a directory</p>
-<pre><code>rclone ls remote:path/to/directory</code></pre>
-<p>Sync <code>/home/local/directory</code> to the remote directory, deleting any excess files in the directory.</p>
-<pre><code>rclone sync /home/local/directory remote:directory</code></pre>
-<h3 id="modified-time-8">Modified time</h3>
-<p>FTP does not support modified times. Any times you see on the server will be time of upload.</p>
-<h3 id="checksums">Checksums</h3>
-<p>FTP does not support any checksums.</p>
-<h3 id="limitations-8">Limitations</h3>
-<p>Note that since FTP isn't HTTP based the following flags don't work with it: <code>--dump-headers</code>, <code>--dump-bodies</code>, <code>--dump-auth</code></p>
-<p>Note that <code>--timeout</code> isn't supported (but <code>--contimeout</code> is).</p>
-<p>FTP could support server side move but doesn't yet.</p>
-<h2 id="http">HTTP</h2>
-<p>The HTTP remote is a read only remote for reading files of a webserver. The webserver should provide file listings which rclone will read and turn into a remote. This has been tested with common webservers such as Apache/Nginx/Caddy and will likely work with file listings from most web servers. (If it doesn't then please file an issue, or send a pull request!)</p>
-<p>Paths are specified as <code>remote:</code> or <code>remote:path/to/dir</code>.</p>
-<p>Here is an example of how to make a remote called <code>remote</code>. First run:</p>
-<pre><code> rclone config</code></pre>
-<p>This will guide you through an interactive setup process:</p>
-<pre><code>No remotes found - make a new one
-n) New remote
-s) Set configuration password
-q) Quit config
-n/s/q&gt; n
-name&gt; remote
-Type of storage to configure.
-Choose a number from below, or type in your own value
- 1 / Amazon Drive
- \ &quot;amazon cloud drive&quot;
- 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
- \ &quot;s3&quot;
- 3 / Backblaze B2
- \ &quot;b2&quot;
- 4 / Dropbox
- \ &quot;dropbox&quot;
- 5 / Encrypt/Decrypt a remote
- \ &quot;crypt&quot;
- 6 / FTP Connection
- \ &quot;ftp&quot;
- 7 / Google Cloud Storage (this is not Google Drive)
- \ &quot;google cloud storage&quot;
- 8 / Google Drive
- \ &quot;drive&quot;
- 9 / Hubic
- \ &quot;hubic&quot;
-10 / Local Disk
- \ &quot;local&quot;
-11 / Microsoft OneDrive
- \ &quot;onedrive&quot;
-12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
- \ &quot;swift&quot;
-13 / SSH/SFTP Connection
- \ &quot;sftp&quot;
-14 / Yandex Disk
- \ &quot;yandex&quot;
-15 / http Connection
- \ &quot;http&quot;
-Storage&gt; http
-URL of http host to connect to
-Choose a number from below, or type in your own value
- 1 / Connect to example.com
- \ &quot;https://example.com&quot;
-url&gt; https://beta.rclone.org
-Remote config
---------------------
-[remote]
-url = https://beta.rclone.org
---------------------
-y) Yes this is OK
-e) Edit this remote
-d) Delete this remote
-y/e/d&gt; y
-Current remotes:
-
-Name Type
-==== ====
-remote http
-
-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&gt; q</code></pre>
-<p>This remote is called <code>remote</code> and can now be used like this</p>
-<p>See all the top level directories</p>
-<pre><code>rclone lsd remote:</code></pre>
-<p>List the contents of a directory</p>
-<pre><code>rclone ls remote:directory</code></pre>
-<p>Sync the remote <code>directory</code> to <code>/home/local/directory</code>, deleting any excess files.</p>
-<pre><code>rclone sync remote:directory /home/local/directory</code></pre>
-<h3 id="read-only">Read only</h3>
-<p>This remote is read only - you can't upload files to an HTTP server.</p>
-<h3 id="modified-time-9">Modified time</h3>
-<p>Most HTTP servers store time accurate to 1 second.</p>
-<h3 id="checksum">Checksum</h3>
-<p>No checksums are stored.</p>
-<h3 id="usage-without-a-config-file">Usage without a config file</h3>
-<p>Note that since only two environment variable need to be set, it is easy to use without a config file like this.</p>
-<pre><code>RCLONE_CONFIG_ZZ_TYPE=http RCLONE_CONFIG_ZZ_URL=https://beta.rclone.org rclone lsd zz:</code></pre>
-<p>Or if you prefer</p>
-<pre><code>export RCLONE_CONFIG_ZZ_TYPE=http
-export RCLONE_CONFIG_ZZ_URL=https://beta.rclone.org
-rclone lsd zz:</code></pre>
-<h2 id="crypt">Crypt</h2>
-<p>The <code>crypt</code> remote encrypts and decrypts another remote.</p>
-<p>To use it first set up the underlying remote following the config instructions for that remote. You can also use a local pathname instead of a remote which will encrypt and decrypt from that directory which might be useful for encrypting onto a USB stick for example.</p>
-<p>First check your chosen remote is working - we'll call it <code>remote:path</code> in these docs. Note that anything inside <code>remote:path</code> will be encrypted and anything outside won't. This means that if you are using a bucket based remote (eg S3, B2, swift) then you should probably put the bucket in the remote <code>s3:bucket</code>. If you just use <code>s3:</code> then rclone will make encrypted bucket names too (if using file name encryption) which may or may not be what you want.</p>
-<p>Now configure <code>crypt</code> using <code>rclone config</code>. We will call this one <code>secret</code> to differentiate it from the <code>remote</code>.</p>
+<h2 id="yandex-disk">Yandex Disk</h2>
+<p><a href="https://disk.yandex.com">Yandex Disk</a> is a cloud storage solution created by <a href="https://yandex.com">Yandex</a>.</p>
+<p>Yandex paths may be as deep as required, eg <code>remote:directory/subdirectory</code>.</p>
+<p>Here is an example of making a yandex configuration. First run</p>
+<pre><code>rclone config</code></pre>
+<p>This will guide you through an interactive setup process:</p>
<pre><code>No remotes found - make a new one
n) New remote
s) Set configuration password
-q) Quit config
-n/s/q&gt; n
-name&gt; secret
+n/s&gt; n
+name&gt; remote
Type of storage to configure.
Choose a number from below, or type in your own value
1 / Amazon Drive
@@ -3352,213 +4258,57 @@ Choose a number from below, or type in your own value
\ &quot;sftp&quot;
13 / Yandex Disk
\ &quot;yandex&quot;
-Storage&gt; 5
-Remote to encrypt/decrypt.
-Normally should contain a &#39;:&#39; and a path, eg &quot;myremote:path/to/dir&quot;,
-&quot;myremote:bucket&quot; or maybe &quot;myremote:&quot; (not recommended).
-remote&gt; remote:path
-How to encrypt the filenames.
-Choose a number from below, or type in your own value
- 1 / Don&#39;t encrypt the file names. Adds a &quot;.bin&quot; extension only.
- \ &quot;off&quot;
- 2 / Encrypt the filenames see the docs for the details.
- \ &quot;standard&quot;
- 3 / Very simple filename obfuscation.
- \ &quot;obfuscate&quot;
-filename_encryption&gt; 2
-Password or pass phrase for encryption.
-y) Yes type in my own password
-g) Generate random password
-y/g&gt; y
-Enter the password:
-password:
-Confirm the password:
-password:
-Password or pass phrase for salt. Optional but recommended.
-Should be different to the previous password.
-y) Yes type in my own password
-g) Generate random password
-n) No leave this optional password blank
-y/g/n&gt; g
-Password strength in bits.
-64 is just about memorable
-128 is secure
-1024 is the maximum
-Bits&gt; 128
-Your password is: JAsJvRcgR-_veXNfy_sGmQ
-Use this password?
+Storage&gt; 13
+Yandex Client Id - leave blank normally.
+client_id&gt;
+Yandex Client Secret - leave blank normally.
+client_secret&gt;
+Remote config
+Use auto config?
+ * Say Y if not sure
+ * Say N if you are working on a remote or headless machine
y) Yes
n) No
y/n&gt; y
-Remote config
+If your browser doesn&#39;t open automatically go to the following link: http://127.0.0.1:53682/auth
+Log in and authorize rclone for access
+Waiting for code...
+Got code
--------------------
-[secret]
-remote = remote:path
-filename_encryption = standard
-password = *** ENCRYPTED ***
-password2 = *** ENCRYPTED ***
+[remote]
+client_id =
+client_secret =
+token = {&quot;access_token&quot;:&quot;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;,&quot;token_type&quot;:&quot;bearer&quot;,&quot;expiry&quot;:&quot;2016-12-29T12:27:11.362788025Z&quot;}
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d&gt; y</code></pre>
-<p><strong>Important</strong> The password is stored in the config file is lightly obscured so it isn't immediately obvious what it is. It is in no way secure unless you use config file encryption.</p>
-<p>A long passphrase is recommended, or you can use a random one. Note that if you reconfigure rclone with the same passwords/passphrases elsewhere it will be compatible - all the secrets used are derived from those two passwords/passphrases.</p>
-<p>Note that rclone does not encrypt</p>
-<ul>
-<li>file length - this can be calcuated within 16 bytes</li>
-<li>modification time - used for syncing</li>
-</ul>
-<h2 id="specifying-the-remote">Specifying the remote</h2>
-<p>In normal use, make sure the remote has a <code>:</code> in. If you specify the remote without a <code>:</code> then rclone will use a local directory of that name. So if you use a remote of <code>/path/to/secret/files</code> then rclone will encrypt stuff to that directory. If you use a remote of <code>name</code> then rclone will put files in a directory called <code>name</code> in the current directory.</p>
-<p>If you specify the remote as <code>remote:path/to/dir</code> then rclone will store encrypted files in <code>path/to/dir</code> on the remote. If you are using file name encryption, then when you save files to <code>secret:subdir/subfile</code> this will store them in the unencrypted path <code>path/to/dir</code> but the <code>subdir/subpath</code> bit will be encrypted.</p>
-<p>Note that unless you want encrypted bucket names (which are difficult to manage because you won't know what directory they represent in web interfaces etc), you should probably specify a bucket, eg <code>remote:secretbucket</code> when using bucket based remotes such as S3, Swift, Hubic, B2, GCS.</p>
-<h2 id="example">Example</h2>
-<p>To test I made a little directory of files using &quot;standard&quot; file name encryption.</p>
-<pre><code>plaintext/
-├── file0.txt
-├── file1.txt
-└── subdir
- ├── file2.txt
- ├── file3.txt
- └── subsubdir
- └── file4.txt</code></pre>
-<p>Copy these to the remote and list them back</p>
-<pre><code>$ rclone -q copy plaintext secret:
-$ rclone -q ls secret:
- 7 file1.txt
- 6 file0.txt
- 8 subdir/file2.txt
- 10 subdir/subsubdir/file4.txt
- 9 subdir/file3.txt</code></pre>
-<p>Now see what that looked like when encrypted</p>
-<pre><code>$ rclone -q ls remote:path
- 55 hagjclgavj2mbiqm6u6cnjjqcg
- 54 v05749mltvv1tf4onltun46gls
- 57 86vhrsv86mpbtd3a0akjuqslj8/dlj7fkq4kdq72emafg7a7s41uo
- 58 86vhrsv86mpbtd3a0akjuqslj8/7uu829995du6o42n32otfhjqp4/b9pausrfansjth5ob3jkdqd4lc
- 56 86vhrsv86mpbtd3a0akjuqslj8/8njh1sk437gttmep3p70g81aps</code></pre>
-<p>Note that this retains the directory structure which means you can do this</p>
-<pre><code>$ rclone -q ls secret:subdir
- 8 file2.txt
- 9 file3.txt
- 10 subsubdir/file4.txt</code></pre>
-<p>If don't use file name encryption then the remote will look like this - note the <code>.bin</code> extensions added to prevent the cloud provider attempting to interpret the data.</p>
-<pre><code>$ rclone -q ls remote:path
- 54 file0.txt.bin
- 57 subdir/file3.txt.bin
- 56 subdir/file2.txt.bin
- 58 subdir/subsubdir/file4.txt.bin
- 55 file1.txt.bin</code></pre>
-<h3 id="file-name-encryption-modes">File name encryption modes</h3>
-<p>Here are some of the features of the file name encryption modes</p>
-<p>Off</p>
-<ul>
-<li>doesn't hide file names or directory structure</li>
-<li>allows for longer file names (~246 characters)</li>
-<li>can use sub paths and copy single files</li>
-</ul>
-<p>Standard</p>
-<ul>
-<li>file names encrypted</li>
-<li>file names can't be as long (~156 characters)</li>
-<li>can use sub paths and copy single files</li>
-<li>directory structure visibile</li>
-<li>identical files names will have identical uploaded names</li>
-<li>can use shortcuts to shorten the directory recursion</li>
-</ul>
-<p>Obfuscation</p>
-<p>This is a simple &quot;rotate&quot; of the filename, with each file having a rot distance based on the filename. We store the distance at the beginning of the filename. So a file called &quot;hello&quot; may become &quot;53.jgnnq&quot;</p>
-<p>This is not a strong encryption of filenames, but it may stop automated scanning tools from picking up on filename patterns. As such it's an intermediate between &quot;off&quot; and &quot;standard&quot;. The advantage is that it allows for longer path segment names.</p>
-<p>There is a possibility with some unicode based filenames that the obfuscation is weak and may map lower case characters to upper case equivalents. You can not rely on this for strong protection.</p>
-<ul>
-<li>file names very lightly obfuscated</li>
-<li>file names can be longer than standard encryption</li>
-<li>can use sub paths and copy single files</li>
-<li>directory structure visibile</li>
-<li>identical files names will have identical uploaded names</li>
-</ul>
-<p>Cloud storage systems have various limits on file name length and total path length which you are more likely to hit using &quot;Standard&quot; file name encryption. If you keep your file names to below 156 characters in length then you should be OK on all providers.</p>
-<p>There may be an even more secure file name encryption mode in the future which will address the long file name problem.</p>
-<h3 id="modified-time-and-hashes-2">Modified time and hashes</h3>
-<p>Crypt stores modification times using the underlying remote so support depends on that.</p>
-<p>Hashes are not stored for crypt. However the data integrity is protected by an extremely strong crypto authenticator.</p>
-<p>Note that you should use the <code>rclone cryptcheck</code> command to check the integrity of a crypted remote instead of <code>rclone check</code> which can't check the checksums properly.</p>
-<h3 id="specific-options-7">Specific options</h3>
-<p>Here are the command line options specific to this cloud storage system.</p>
-<h4 id="crypt-show-mapping">--crypt-show-mapping</h4>
-<p>If this flag is set then for each file that the remote is asked to list, it will log (at level INFO) a line stating the decrypted file name and the encrypted file name.</p>
-<p>This is so you can work out which encrypted names are which decrypted names just in case you need to do something with the encrypted file names, or for debugging purposes.</p>
-<h2 id="backing-up-a-crypted-remote">Backing up a crypted remote</h2>
-<p>If you wish to backup a crypted remote, it it recommended that you use <code>rclone sync</code> on the encrypted files, and make sure the passwords are the same in the new encrypted remote.</p>
-<p>This will have the following advantages</p>
-<ul>
-<li><code>rclone sync</code> will check the checksums while copying</li>
-<li>you can use <code>rclone check</code> between the encrypted remotes</li>
-<li>you don't decrypt and encrypt unecessarily</li>
-</ul>
-<p>For example, let's say you have your original remote at <code>remote:</code> with the encrypted version at <code>eremote:</code> with path <code>remote:crypt</code>. You would then set up the new remote <code>remote2:</code> and then the encrypted version <code>eremote2:</code> with path <code>remote2:crypt</code> using the same passwords as <code>eremote:</code>.</p>
-<p>To sync the two remotes you would do</p>
-<pre><code>rclone sync remote:crypt remote2:crypt</code></pre>
-<p>And to check the integrity you would do</p>
-<pre><code>rclone check remote:crypt remote2:crypt</code></pre>
-<h2 id="file-formats">File formats</h2>
-<h3 id="file-encryption">File encryption</h3>
-<p>Files are encrypted 1:1 source file to destination object. The file has a header and is divided into chunks.</p>
-<h4 id="header">Header</h4>
-<ul>
-<li>8 bytes magic string <code>RCLONE\x00\x00</code></li>
-<li>24 bytes Nonce (IV)</li>
-</ul>
-<p>The initial nonce is generated from the operating systems crypto strong random number genrator. The nonce is incremented for each chunk read making sure each nonce is unique for each block written. The chance of a nonce being re-used is miniscule. If you wrote an exabyte of data (10¹⁸ bytes) you would have a probability of approximately 2×10⁻³² of re-using a nonce.</p>
-<h4 id="chunk">Chunk</h4>
-<p>Each chunk will contain 64kB of data, except for the last one which may have less data. The data chunk is in standard NACL secretbox format. Secretbox uses XSalsa20 and Poly1305 to encrypt and authenticate messages.</p>
-<p>Each chunk contains:</p>
-<ul>
-<li>16 Bytes of Poly1305 authenticator</li>
-<li>1 - 65536 bytes XSalsa20 encrypted data</li>
-</ul>
-<p>64k chunk size was chosen as the best performing chunk size (the authenticator takes too much time below this and the performance drops off due to cache effects above this). Note that these chunks are buffered in memory so they can't be too big.</p>
-<p>This uses a 32 byte (256 bit key) key derived from the user password.</p>
-<h4 id="examples">Examples</h4>
-<p>1 byte file will encrypt to</p>
-<ul>
-<li>32 bytes header</li>
-<li>17 bytes data chunk</li>
-</ul>
-<p>49 bytes total</p>
-<p>1MB (1048576 bytes) file will encrypt to</p>
-<ul>
-<li>32 bytes header</li>
-<li>16 chunks of 65568 bytes</li>
-</ul>
-<p>1049120 bytes total (a 0.05% overhead). This is the overhead for big files.</p>
-<h3 id="name-encryption">Name encryption</h3>
-<p>File names are encrypted segment by segment - the path is broken up into <code>/</code> separated strings and these are encrypted individually.</p>
-<p>File segments are padded using using PKCS#7 to a multiple of 16 bytes before encryption.</p>
-<p>They are then encrypted with EME using AES with 256 bit key. EME (ECB-Mix-ECB) is a wide-block encryption mode presented in the 2003 paper &quot;A Parallelizable Enciphering Mode&quot; by Halevi and Rogaway.</p>
-<p>This makes for determinstic encryption which is what we want - the same filename must encrypt to the same thing otherwise we can't find it on the cloud storage system.</p>
-<p>This means that</p>
-<ul>
-<li>filenames with the same name will encrypt the same</li>
-<li>filenames which start the same won't have a common prefix</li>
-</ul>
-<p>This uses a 32 byte key (256 bits) and a 16 byte (128 bits) IV both of which are derived from the user password.</p>
-<p>After encryption they are written out using a modified version of standard <code>base32</code> encoding as described in RFC4648. The standard encoding is modified in two ways:</p>
-<ul>
-<li>it becomes lower case (no-one likes upper case filenames!)</li>
-<li>we strip the padding character <code>=</code></li>
-</ul>
-<p><code>base32</code> is used rather than the more efficient <code>base64</code> so rclone can be used on case insensitive remotes (eg Windows, Amazon Drive).</p>
-<h3 id="key-derivation">Key derivation</h3>
-<p>Rclone uses <code>scrypt</code> with parameters <code>N=16384, r=8, p=1</code> with a an optional user supplied salt (password2) to derive the 32+32+16 = 80 bytes of key material required. If the user doesn't supply a salt then rclone uses an internal one.</p>
-<p><code>scrypt</code> makes it impractical to mount a dictionary attack on rclone encrypted data. For full protection agains this you should always use a salt.</p>
+<p>See the <a href="https://rclone.org/remote_setup/">remote setup docs</a> for how to set it up on a machine with no Internet browser available.</p>
+<p>Note that rclone runs a webserver on your local machine to collect the token as returned from Yandex Disk. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on <code>http://127.0.0.1:53682/</code> and this it may require you to unblock it temporarily if you are running a host firewall.</p>
+<p>Once configured you can then use <code>rclone</code> like this,</p>
+<p>See top level directories</p>
+<pre><code>rclone lsd remote:</code></pre>
+<p>Make a new directory</p>
+<pre><code>rclone mkdir remote:directory</code></pre>
+<p>List the contents of a directory</p>
+<pre><code>rclone ls remote:directory</code></pre>
+<p>Sync <code>/home/local/directory</code> to the remote path, deleting any excess files in the path.</p>
+<pre><code>rclone sync /home/local/directory remote:directory</code></pre>
+<h3 id="fast-list-8">--fast-list</h3>
+<p>This remote supports <code>--fast-list</code> which allows you to use fewer transactions in exchange for more memory. See the <a href="/docs/#fast-list">rclone docs</a> for more details.</p>
+<h3 id="modified-time-10">Modified time</h3>
+<p>Modified times are supported and are stored accurate to 1 ns in custom metadata called <code>rclone_modified</code> in RFC3339 with nanoseconds format.</p>
+<h3 id="md5-checksums">MD5 checksums</h3>
+<p>MD5 checksums are natively supported by Yandex Disk.</p>
+<h3 id="emptying-trash-1">Emptying Trash</h3>
+<p>If you wish to empty your trash you can use the <code>rclone cleanup remote:</code> command which will permanently delete all your trashed files. This command does not take any path arguments.</p>
<h2 id="local-filesystem">Local Filesystem</h2>
<p>Local paths are specified as normal filesystem paths, eg <code>/path/to/wherever</code>, so</p>
<pre><code>rclone sync /home/source /tmp/destination</code></pre>
<p>Will sync <code>/home/source</code> to <code>/tmp/destination</code></p>
<p>These can be configured into the config file for consistencies sake, but it is probably easier not to.</p>
-<h3 id="modified-time-10">Modified time</h3>
+<h3 id="modified-time-11">Modified time</h3>
<p>Rclone reads and writes the modified time using an accuracy determined by the OS. Typically this is 1ns on Linux, 10 ns on Windows and 1 Second on OS X.</p>
<h3 id="filenames">Filenames</h3>
<p>Filenames are expected to be encoded in UTF-8 on disk. This is the normal case for Windows and OS X.</p>
@@ -3578,7 +4328,7 @@ nounc = true</code></pre>
<p>And use rclone like this:</p>
<p><code>rclone copy c:\src nounc:z:\dst</code></p>
<p>This will use UNC paths on <code>c:\src</code> but not on <code>z:\dst</code>. Of course this will cause problems if the absolute path length of a file exceeds 258 characters on z, so only use this option if you have to.</p>
-<h3 id="specific-options-8">Specific options</h3>
+<h3 id="specific-options-10">Specific options</h3>
<p>Here are the command line options specific to local storage</p>
<h4 id="copy-links--l">--copy-links, -L</h4>
<p>Normally rclone will ignore symlinks or junction points (which behave like symlinks under Windows).</p>
@@ -3603,10 +4353,8 @@ nounc = true</code></pre>
6 two/three
6 b/two
6 b/one</code></pre>
-<h4 id="no-local-unicode-normalization">--no-local-unicode-normalization</h4>
-<p>By default rclone normalizes (NFC) the unicode representation of filenames and directories. This flag disables that normalization and uses the same representation as the local filesystem.</p>
-<p>This can be useful if you need to retain the local unicode representation and you are using a cloud provider which supports unnormalized names (e.g. S3 or ACD).</p>
-<p>This should also work with any provider if you are using crypt and have file name encryption (the default) or obfuscation turned on.</p>
+<h4 id="local-no-unicode-normalization">--local-no-unicode-normalization</h4>
+<p>This flag is deprecated now. Rclone no longer normalizes unicode file names, but it compares them with unicode normalization in the sync routine instead.</p>
<h4 id="one-file-system--x">--one-file-system, -x</h4>
<p>This tells rclone to stay in the filesystem specified by the root and not to recurse into different file systems.</p>
<p>For example if you have a directory heirachy like this</p>
@@ -3628,8 +4376,78 @@ nounc = true</code></pre>
0 file2</code></pre>
<p><strong>NB</strong> Rclone (like most unix tools such as <code>du</code>, <code>rsync</code> and <code>tar</code>) treats a bind mount to the same device as being on the same filesystem.</p>
<p><strong>NB</strong> This flag is only available on Unix based systems. On systems where it isn't supported (eg Windows) it will not appear as an valid flag.</p>
+<h4 id="skip-links">--skip-links</h4>
+<p>This flag disables warning messages on skipped symlinks or junction points, as you explicitly acknowledge that they should be skipped.</p>
<h2 id="changelog">Changelog</h2>
<ul>
+<li>v1.38 - 2017-09-30
+<ul>
+<li>New backends</li>
+<li>Azure Blob Storage (thanks Andrei Dragomir)</li>
+<li>Box</li>
+<li>Onedrive for Business (thanks Oliver Heyme)</li>
+<li>QingStor from QingCloud (thanks wuyu)</li>
+<li>New commands</li>
+<li><code>rcat</code> - read from standard input and stream upload</li>
+<li><code>tree</code> - shows a nicely formatted recursive listing</li>
+<li><code>cryptdecode</code> - decode crypted file names (thanks ishuah)</li>
+<li><code>config show</code> - print the config file</li>
+<li><code>config file</code> - print the config file location</li>
+<li>New Features</li>
+<li>Empty directories are deleted on <code>sync</code></li>
+<li><code>dedupe</code> - implement merging of duplicate directories</li>
+<li><code>check</code> and <code>cryptcheck</code> made more consistent and use less memory</li>
+<li><code>cleanup</code> for remaining remotes (thanks ishuah)</li>
+<li><code>--immutable</code> for ensuring that files don't change (thanks Jacob McNamee)</li>
+<li><code>--user-agent</code> option (thanks Alex McGrath Kraak)</li>
+<li><code>--disable</code> flag to disable optional features</li>
+<li><code>--bind</code> flag for choosing the local addr on outgoing connections</li>
+<li>Support for zsh auto-completion (thanks bpicode)</li>
+<li>Stop normalizing file names but do a normalized compare in <code>sync</code></li>
+<li>Compile</li>
+<li>Update to using go1.9 as the default go version</li>
+<li>Remove snapd build due to maintenance problems</li>
+<li>Bug Fixes</li>
+<li>Improve retriable error detection which makes multipart uploads better</li>
+<li>Make <code>check</code> obey <code>--ignore-size</code></li>
+<li>Fix bwlimit toggle in conjunction with schedules (thanks cbruegg)</li>
+<li><code>config</code> ensures newly written config is on the same mount</li>
+<li>Local</li>
+<li>Revert to copy when moving file across file system boundaries</li>
+<li><code>--skip-links</code> to suppress symlink warnings (thanks Zhiming Wang)</li>
+<li>Mount</li>
+<li>Re-use <code>rcat</code> internals to support uploads from all remotes</li>
+<li>Dropbox</li>
+<li>Fix &quot;entry doesn't belong in directory&quot; error</li>
+<li>Stop using deprecated API methods</li>
+<li>Swift</li>
+<li>Fix server side copy to empty container with <code>--fast-list</code></li>
+<li>Google Drive</li>
+<li>Change the default for <code>--drive-use-trash</code> to <code>true</code></li>
+<li>S3</li>
+<li>Set session token when using STS (thanks Girish Ramakrishnan)</li>
+<li>Glacier docs and error messages (thanks Jan Varho)</li>
+<li>Read 1000 (not 1024) items in dir listings to fix Wasabi</li>
+<li>Backblaze B2</li>
+<li>Fix SHA1 mismatch when downloading files with no SHA1</li>
+<li>Calculate missing hashes on the fly instead of spooling</li>
+<li><code>--b2-hard-delete</code> to permanently delete (not hide) files (thanks John Papandriopoulos)</li>
+<li>Hubic</li>
+<li>Fix creating containers - no longer have to use the <code>default</code> container</li>
+<li>Swift</li>
+<li>Optionally configure from a standard set of OpenStack environment vars</li>
+<li>Add <code>endpoint_type</code> config</li>
+<li>Google Cloud Storage</li>
+<li>Fix bucket creation to work with limited permission users</li>
+<li>SFTP</li>
+<li>Implement connection pooling for multiple ssh connections</li>
+<li>Limit new connections per second</li>
+<li>Add support for MD5 and SHA1 hashes where available (thanks Christian Brüggemann)</li>
+<li>HTTP</li>
+<li>Fix URL encoding issues</li>
+<li>Fix directories with <code>:</code> in</li>
+<li>Fix panic with URL encoded content</li>
+</ul></li>
<li>v1.37 - 2017-07-22
<ul>
<li>New backends</li>
@@ -3645,7 +4463,7 @@ nounc = true</code></pre>
<li>This allows remotes to list recursively if they can</li>
<li>This uses less transactions (important if you pay for them)</li>
<li>This may or may not be quicker</li>
-<li>This will user more memory as it has to hold the listing in memory</li>
+<li>This will use more memory as it has to hold the listing in memory</li>
<li>--old-sync-method deprecated - the remaining uses are covered by --fast-list</li>
<li>This involved a major re-write of all the listing code</li>
</ul></li>
@@ -4555,6 +5373,12 @@ ntpclient -s -h pool.ntp.org</code></pre>
<p>See the <a href="https://golang.org/doc/install">system requirements section in the go install docs</a> for full details.</p>
<h3 id="all-my-uploaded-docxxlsxpptx-files-appear-as-archivezip">All my uploaded docx/xlsx/pptx files appear as archive/zip</h3>
<p>This is caused by uploading these files from a Windows computer which hasn't got the Microsoft Office suite installed. The easiest way to fix is to install the Word viewer and the Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint 2007 and later versions' file formats</p>
+<h3 id="tcp-lookup-some.domain.com-no-such-host">tcp lookup some.domain.com no such host</h3>
+<p>This happens when rclone cannot resolve a domain. Please check that your DNS setup is generally working, e.g.</p>
+<pre><code># both should print a long list of possible IP addresses
+dig www.googleapis.com # resolve using your default DNS
+dig www.googleapis.com @8.8.8.8 # resolve with Google&#39;s DNS server</code></pre>
+<p>If you are using <code>systemd-resolved</code> (default on Arch Linux), ensure it is at version 233 or higher. Previous releases contain a bug which causes not all domains to be resolved properly.</p>
<h2 id="license">License</h2>
<p>This is free software under the terms of MIT the license (check the COPYING file included with the source code).</p>
<pre><code>Copyright (C) 2012 by Nick Craig-Wood https://www.craig-wood.com/nick/
@@ -4658,6 +5482,22 @@ THE SOFTWARE.</code></pre>
<li>sainaen <a href="mailto:[email protected]">[email protected]</a></li>
<li>gdm85 <a href="mailto:[email protected]">[email protected]</a></li>
<li>Yaroslav Halchenko <a href="mailto:[email protected]">[email protected]</a></li>
+<li>John Papandriopoulos <a href="mailto:[email protected]">[email protected]</a></li>
+<li>Zhiming Wang <a href="mailto:[email protected]">[email protected]</a></li>
+<li>Andy Pilate <a href="mailto:[email protected]">[email protected]</a></li>
+<li>Oliver Heyme <a href="mailto:[email protected]">[email protected]</a></li>
+<li>wuyu <a href="mailto:[email protected]">[email protected]</a></li>
+<li>Andrei Dragomir <a href="mailto:[email protected]">[email protected]</a></li>
+<li>Christian Brüggemann <a href="mailto:[email protected]">[email protected]</a></li>
+<li>Alex McGrath Kraak <a href="mailto:[email protected]">[email protected]</a></li>
+<li>bpicode <a href="mailto:[email protected]">[email protected]</a></li>
+<li>Daniel Jagszent <a href="mailto:[email protected]">[email protected]</a></li>
+<li>Josiah White <a href="mailto:[email protected]">[email protected]</a></li>
+<li>Ishuah Kariuki <a href="mailto:[email protected]">[email protected]</a> <a href="mailto:[email protected]">[email protected]</a></li>
+<li>Jan Varho <a href="mailto:[email protected]">[email protected]</a></li>
+<li>Girish Ramakrishnan <a href="mailto:[email protected]">[email protected]</a></li>
+<li>LingMan <a href="mailto:[email protected]">[email protected]</a></li>
+<li>Jacob McNamee <a href="mailto:[email protected]">[email protected]</a></li>
</ul>
<h1 id="contact-the-rclone-project">Contact the rclone project</h1>
<h2 id="forum">Forum</h2>
diff --git a/MANUAL.md b/MANUAL.md
index 83eac85df..b0906a083 100644
--- a/MANUAL.md
+++ b/MANUAL.md
@@ -1,28 +1,39 @@
% rclone(1) User Manual
% Nick Craig-Wood
-% Jul 22, 2017
+% Sep 30, 2017
Rclone
======
[![Logo](https://rclone.org/img/rclone-120x120.png)](https://rclone.org/)
-Rclone is a command line program to sync files and directories to and from
-
- * Google Drive
- * Amazon S3
- * Openstack Swift / Rackspace cloud files / Memset Memstore
- * Dropbox
- * Google Cloud Storage
- * Amazon Drive
- * Microsoft OneDrive
- * Hubic
- * Backblaze B2
- * Yandex Disk
- * SFTP
- * FTP
- * HTTP
- * The local filesystem
+Rclone is a command line program to sync files and directories to and from:
+
+* Amazon Drive
+* Amazon S3
+* Backblaze B2
+* Box
+* Ceph
+* Dreamhost
+* Dropbox
+* FTP
+* Google Cloud Storage
+* Google Drive
+* HTTP
+* Hubic
+* Memset Memstore
+* Microsoft Azure Blob Storage
+* Microsoft OneDrive
+* Minio
+* OVH
+* Openstack Swift
+* Oracle Cloud Storage
+* QingStor
+* Rackspace Cloud Files
+* SFTP
+* Wasabi
+* Yandex Disk
+* The local filesystem
Features
@@ -95,8 +106,11 @@ Unzip the download and cd to the extracted folder.
Move rclone to your $PATH. You will be prompted for your password.
+ sudo mkdir -p /usr/local/bin
sudo mv rclone /usr/local/bin/
+(the `mkdir` command is safe to run, even if the directory already exists).
+
Remove the leftover files.
cd .. && rm -rf rclone-*-osx-amd64 rclone-current-osx-amd64.zip
@@ -134,60 +148,6 @@ Instructions
- rclone
```
-## Installation with snap ##
-
-### Quickstart ###
-
- * install Snapd on your distro using the instructions below
- * sudo snap install rclone --classic
- * Run `rclone config` to setup. See [rclone config docs](https://rclone.org/docs/) for more details.
-
-See below for how to install snapd if it isn't already installed
-
-#### Arch ####
-
- sudo pacman -S snapd
-
-enable the snapd systemd service:
-
- sudo systemctl enable --now snapd.socket
-
-#### Debian / Ubuntu ####
-
- sudo apt install snapd
-
-#### Fedora ####
-
- sudo dnf copr enable zyga/snapcore
- sudo dnf install snapd
-
-enable the snapd systemd service:
-
- sudo systemctl enable --now snapd.service
-
-SELinux support is in beta, so currently:
-
- sudo setenforce 0
-
-to persist, edit `/etc/selinux/config` to set `SELINUX=permissive` and reboot.
-
-#### Gentoo ####
-
-Install the [gentoo-snappy overlay](https://github.com/zyga/gentoo-snappy).
-
-#### OpenEmbedded/Yocto ####
-
-Install the [snap meta layer](https://github.com/morphis/meta-snappy/blob/master/README.md).
-
-#### openSUSE ####
-
- sudo zypper addrepo https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_42.2/ snappy
- sudo zypper install snapd
-
-#### OpenWrt ####
-
-Enable the snap-openwrt feed.
-
Configure
---------
@@ -203,21 +163,24 @@ option:
See the following for detailed instructions for
- * [Google Drive](https://rclone.org/drive/)
+ * [Amazon Drive](https://rclone.org/amazonclouddrive/)
* [Amazon S3](https://rclone.org/s3/)
- * [Swift / Rackspace Cloudfiles / Memset Memstore](https://rclone.org/swift/)
+ * [Backblaze B2](https://rclone.org/b2/)
+ * [Box](https://rclone.org/box/)
+ * [Crypt](https://rclone.org/crypt/) - to encrypt other remotes
* [Dropbox](https://rclone.org/dropbox/)
+ * [FTP](https://rclone.org/ftp/)
* [Google Cloud Storage](https://rclone.org/googlecloudstorage/)
- * [Local filesystem](https://rclone.org/local/)
- * [Amazon Drive](https://rclone.org/amazonclouddrive/)
- * [Backblaze B2](https://rclone.org/b2/)
+ * [Google Drive](https://rclone.org/drive/)
+ * [HTTP](https://rclone.org/http/)
* [Hubic](https://rclone.org/hubic/)
+ * [Microsoft Azure Blob Storage](https://rclone.org/azureblob/)
* [Microsoft OneDrive](https://rclone.org/onedrive/)
- * [Yandex Disk](https://rclone.org/yandex/)
+ * [Openstack Swift / Rackspace Cloudfiles / Memset Memstore](https://rclone.org/swift/)
+ * [QingStor](https://rclone.org/qingstor/)
* [SFTP](https://rclone.org/sftp/)
- * [FTP](https://rclone.org/ftp/)
- * [HTTP](https://rclone.org/http/)
- * [Crypt](https://rclone.org/crypt/) - to encrypt other remotes
+ * [Yandex Disk](https://rclone.org/yandex/)
+ * [The local filesystem](https://rclone.org/local/)
Usage
-----
@@ -250,10 +213,26 @@ Enter an interactive configuration session.
### Synopsis
-Enter an interactive configuration session.
+`rclone config`
+ enters an interactive configuration sessions where you can setup
+new remotes and manage existing ones. You may also set or remove a password to
+protect your configuration.
+
+Additional functions:
+
+ * `rclone config edit` – same as above
+ * `rclone config file` – show path of configuration file in use
+ * `rclone config show` – print (decrypted) config file
+
+
+```
+rclone config [function] [flags]
+```
+
+### Options
```
-rclone config
+ -h, --help help for config
```
## rclone copy
@@ -305,7 +284,13 @@ the destination directory or not.
```
-rclone copy source:path dest:path
+rclone copy source:path dest:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for copy
```
## rclone sync
@@ -337,7 +322,13 @@ go there.
```
-rclone sync source:path dest:path
+rclone sync source:path dest:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for sync
```
## rclone move
@@ -367,7 +358,13 @@ into `dest:path` then delete the original (if no errors on copy) in
```
-rclone move source:path dest:path
+rclone move source:path dest:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for move
```
## rclone delete
@@ -397,7 +394,13 @@ delete all files bigger than 100MBytes.
```
-rclone delete remote:path
+rclone delete remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for delete
```
## rclone purge
@@ -414,7 +417,13 @@ you want to selectively delete files.
```
-rclone purge remote:path
+rclone purge remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for purge
```
## rclone mkdir
@@ -427,7 +436,13 @@ Make the path if it doesn't already exist.
Make the path if it doesn't already exist.
```
-rclone mkdir remote:path
+rclone mkdir remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for mkdir
```
## rclone rmdir
@@ -442,7 +457,13 @@ Remove the path. Note that you can't remove a path with
objects in it, use purge for that.
```
-rclone rmdir remote:path
+rclone rmdir remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for rmdir
```
## rclone check
@@ -474,6 +495,7 @@ rclone check source:path dest:path [flags]
```
--download Check by downloading rather than with hash.
+ -h, --help help for check
```
## rclone ls
@@ -486,7 +508,13 @@ List all the objects in the path with size and path.
List all the objects in the path with size and path.
```
-rclone ls remote:path
+rclone ls remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for ls
```
## rclone lsd
@@ -499,7 +527,13 @@ List all directories/containers/buckets in the path.
List all directories/containers/buckets in the path.
```
-rclone lsd remote:path
+rclone lsd remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for lsd
```
## rclone lsl
@@ -512,7 +546,13 @@ List all the objects path with modification time, size and path.
List all the objects path with modification time, size and path.
```
-rclone lsl remote:path
+rclone lsl remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for lsl
```
## rclone md5sum
@@ -528,7 +568,13 @@ is in the same format as the standard md5sum tool produces.
```
-rclone md5sum remote:path
+rclone md5sum remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for md5sum
```
## rclone sha1sum
@@ -544,7 +590,13 @@ is in the same format as the standard sha1sum tool produces.
```
-rclone sha1sum remote:path
+rclone sha1sum remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for sha1sum
```
## rclone size
@@ -557,7 +609,13 @@ Prints the total size and number of objects in remote:path.
Prints the total size and number of objects in remote:path.
```
-rclone size remote:path
+rclone size remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for size
```
## rclone version
@@ -570,7 +628,13 @@ Show the version number.
Show the version number.
```
-rclone version
+rclone version [flags]
+```
+
+### Options
+
+```
+ -h, --help help for version
```
## rclone cleanup
@@ -586,7 +650,13 @@ versions. Not supported by all remotes.
```
-rclone cleanup remote:path
+rclone cleanup remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for cleanup
```
## rclone dedupe
@@ -597,10 +667,14 @@ Interactively find duplicate files delete/rename them.
-By default `dedup` interactively finds duplicate files and offers to
+By default `dedupe` interactively finds duplicate files and offers to
delete all but one or rename them to be different. Only useful with
Google Drive which can have duplicate file names.
+In the first pass it will merge directories with the same name. It
+will do this iteratively until all the identical directories have been
+merged.
+
The `dedupe` command will delete all but one of any identical (same
md5sum) files it finds without confirmation. This means that for most
duplicated files the `dedupe` command will not be interactive. You
@@ -681,6 +755,7 @@ rclone dedupe [mode] remote:path [flags]
```
--dedupe-mode string Dedupe mode interactive|skip|first|newest|oldest|rename. (default "interactive")
+ -h, --help help for dedupe
```
## rclone authorize
@@ -696,7 +771,13 @@ rclone from a machine with a browser - use as instructed by
rclone config.
```
-rclone authorize
+rclone authorize [flags]
+```
+
+### Options
+
+```
+ -h, --help help for authorize
```
## rclone cat
@@ -737,6 +818,7 @@ rclone cat remote:path [flags]
--count int Only print N characters. (default -1)
--discard Discard the output instead of printing.
--head int Only print the first N characters.
+ -h, --help help for cat
--offset int Start printing at offset N (or from end if -ve).
--tail int Only print the last N characters.
```
@@ -777,7 +859,13 @@ destination.
```
-rclone copyto source:path dest:path
+rclone copyto source:path dest:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for copyto
```
## rclone cryptcheck
@@ -813,7 +901,39 @@ After it has run it will log the status of the encryptedremote:.
```
-rclone cryptcheck remote:path cryptedremote:path
+rclone cryptcheck remote:path cryptedremote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for cryptcheck
+```
+
+## rclone cryptdecode
+
+Cryptdecode returns unencrypted file names.
+
+### Synopsis
+
+
+
+rclone cryptdecode returns unencrypted file names when provided with
+a list of encrypted file names. List limit is 10 items.
+
+use it like this
+
+ rclone cryptdecode encryptedremote: encryptedfilename1 encryptedfilename2
+
+
+```
+rclone cryptdecode encryptedremote: encryptedfilename [flags]
+```
+
+### Options
+
+```
+ -h, --help help for cryptdecode
```
## rclone dbhashsum
@@ -831,11 +951,35 @@ The output is in the same format as md5sum and sha1sum.
```
-rclone dbhashsum remote:path
+rclone dbhashsum remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for dbhashsum
```
## rclone genautocomplete
+Output completion script for a given shell.
+
+### Synopsis
+
+
+
+Generates a shell completion script for rclone.
+Run with --help to list the supported shells.
+
+
+### Options
+
+```
+ -h, --help help for genautocomplete
+```
+
+## rclone genautocomplete bash
+
Output bash completion script for rclone.
### Synopsis
@@ -847,7 +991,7 @@ Generates a bash shell autocompletion script for rclone.
This writes to /etc/bash_completion.d/rclone by default so will
probably need to be run with sudo or as root, eg
- sudo rclone genautocomplete
+ sudo rclone genautocomplete bash
Logout and login again to use the autocompletion scripts, or source
them directly
@@ -859,7 +1003,47 @@ there.
```
-rclone genautocomplete [output_file]
+rclone genautocomplete bash [output_file] [flags]
+```
+
+### Options
+
+```
+ -h, --help help for bash
+```
+
+## rclone genautocomplete zsh
+
+Output zsh completion script for rclone.
+
+### Synopsis
+
+
+
+Generates a zsh autocompletion script for rclone.
+
+This writes to /usr/share/zsh/vendor-completions/_rclone by default so will
+probably need to be run with sudo or as root, eg
+
+ sudo rclone genautocomplete zsh
+
+Logout and login again to use the autocompletion scripts, or source
+them directly
+
+ autoload -U compinit && compinit
+
+If you supply a command line argument the script will be written
+there.
+
+
+```
+rclone genautocomplete zsh [output_file] [flags]
+```
+
+### Options
+
+```
+ -h, --help help for zsh
```
## rclone gendocs
@@ -904,6 +1088,7 @@ rclone listremotes [flags]
### Options
```
+ -h, --help help for listremotes
-l, --long Show the type as well as names.
```
@@ -949,6 +1134,7 @@ rclone lsjson remote:path [flags]
```
--hash Include hashes in the output (may take longer).
+ -h, --help help for lsjson
--no-modtime Don't read the modification time (can speed things up).
-R, --recursive Recurse into the listing.
```
@@ -988,6 +1174,34 @@ When that happens, it is the user's responsibility to stop the mount manually wi
# OS X
umount /path/to/local/mount
+### Installing on Windows ###
+
+To run rclone mount on Windows, you will need to
+download and install [WinFsp](http://www.secfs.net/winfsp/).
+
+WinFsp is an [open source](https://github.com/billziss-gh/winfsp)
+Windows File System Proxy which makes it easy to write user space file
+systems for Windows. It provides a FUSE emulation layer which rclone
+uses combination with
+[cgofuse](https://github.com/billziss-gh/cgofuse). Both of these
+packages are by Bill Zissimopoulos who was very helpful during the
+implementation of rclone mount for Windows.
+
+#### Windows caveats ####
+
+Note that drives created as Administrator are not visible by other
+accounts (including the account that was elevated as
+Administrator). So if you start a Windows drive from an Administrative
+Command Prompt and then try to access the same drive from Explorer
+(which does not run as Administrator), you will not be able to see the
+new drive.
+
+The easiest way around this is to start the drive from a normal
+command prompt. It is also possible to start a drive from the SYSTEM
+account (using [the WinFsp.Launcher
+infrastructure](https://github.com/billziss-gh/winfsp/wiki/WinFsp-Service-Architecture))
+which creates drives accessible for everyone on the system.
+
### Limitations ###
This can only write files seqentially, it can only seek when reading.
@@ -1033,13 +1247,6 @@ like this:
kill -SIGHUP $(pidof rclone)
-### Bugs ###
-
- * All the remotes should work for read, but some may not for write
- * those which need to know the size in advance won't - eg B2
- * maybe should pass in size as -1 to mean work it out
- * Or put in an an upload cache to cache the files on disk first
-
```
rclone mount remote:path /path/to/mountpoint [flags]
@@ -1056,6 +1263,7 @@ rclone mount remote:path /path/to/mountpoint [flags]
--dir-cache-time duration Time to cache directory entries for. (default 5m0s)
--fuse-flag stringArray Flags or arguments to be passed direct to libfuse/WinFsp. Repeat if required.
--gid uint32 Override the gid field set by the filesystem. (default 502)
+ -h, --help help for mount
--max-read-ahead int The number of bytes that can be prefetched for sequential reads. (default 128k)
--no-checksum Don't compare checksums on up/download.
--no-modtime Don't read/write the modification time (can speed things up).
@@ -1107,7 +1315,13 @@ transfer.
```
-rclone moveto source:path dest:path
+rclone moveto source:path dest:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for moveto
```
## rclone ncdu
@@ -1144,7 +1358,13 @@ importantly deleting files, but is useful as it stands.
```
-rclone ncdu remote:path
+rclone ncdu remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for ncdu
```
## rclone obscure
@@ -1157,7 +1377,54 @@ Obscure password for use in the rclone.conf
Obscure password for use in the rclone.conf
```
-rclone obscure password
+rclone obscure password [flags]
+```
+
+### Options
+
+```
+ -h, --help help for obscure
+```
+
+## rclone rcat
+
+Copies standard input to file on remote.
+
+### Synopsis
+
+
+
+rclone rcat reads from standard input (stdin) and copies it to a
+single remote file.
+
+ echo "hello world" | rclone rcat remote:path/to/file
+ ffmpeg - | rclone rcat --checksum remote:path/to/file
+
+If the remote file already exists, it will be overwritten.
+
+rcat will try to upload small files in a single request, which is
+usually more efficient than the streaming/chunked upload endpoints,
+which use multiple requests. Exact behaviour depends on the remote.
+What is considered a small file may be set through
+`--streaming-upload-cutoff`. Uploading only starts after
+the cutoff is reached or if the file ends before that. The data
+must fit into RAM. The cutoff needs to be small enough to adhere
+the limits of your remote, please see there. Generally speaking,
+setting this cutoff too high will decrease your performance.
+
+Note that the upload can also not be retried because the data is
+not kept around until the upload succeeds. If you need to transfer
+a lot of data, you're better off caching locally and then
+`rclone move` it to the destination.
+
+```
+rclone rcat remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for rcat
```
## rclone rmdirs
@@ -1177,14 +1444,82 @@ empty directories in.
```
-rclone rmdirs remote:path
+rclone rmdirs remote:path [flags]
```
+### Options
-Copying single files
---------------------
+```
+ -h, --help help for rmdirs
+```
-rclone normally syncs or copies directories. However, if the source
+## rclone tree
+
+List the contents of the remote in a tree like fashion.
+
+### Synopsis
+
+
+
+rclone tree lists the contents of a remote in a similar way to the
+unix tree command.
+
+For example
+
+ $ rclone tree remote:path
+ /
+ ├── file1
+ ├── file2
+ ├── file3
+ └── subdir
+ ├── file4
+ └── file5
+
+ 1 directories, 5 files
+
+You can use any of the filtering options with the tree command (eg
+--include and --exclude). You can also use --fast-list.
+
+The tree command has many options for controlling the listing which
+are compatible with the tree command. Note that not all of them have
+short options as they conflict with rclone's short options.
+
+
+```
+rclone tree remote:path [flags]
+```
+
+### Options
+
+```
+ -a, --all All files are listed (list . files too).
+ -C, --color Turn colorization on always.
+ -d, --dirs-only List directories only.
+ --dirsfirst List directories before files (-U disables).
+ --full-path Print the full path prefix for each file.
+ -h, --help help for tree
+ --human Print the size in a more human readable way.
+ --level int Descend only level directories deep.
+ -D, --modtime Print the date of last modification.
+ -i, --noindent Don't print indentation lines.
+ --noreport Turn off file/directory count at end of tree listing.
+ -o, --output string Output to file instead of stdout.
+ -p, --protections Print the protections for each file.
+ -Q, --quote Quote filenames with double quotes.
+ -s, --size Print the size in bytes of each file.
+ --sort string Select sort: name,version,size,mtime,ctime.
+ --sort-ctime Sort files by last status change time.
+ -t, --sort-modtime Sort files by last modification time.
+ -r, --sort-reverse Reverse the order of the sort.
+ -U, --unsorted Leave files unsorted.
+ --version Sort files alphanumerically by version.
+```
+
+
+Copying single files
+--------------------
+
+rclone normally syncs or copies directories. However, if the source
remote points to a file, rclone will just copy that file. The
destination remote must point to a directory - rclone will give the
error `Failed to create file system for "remote:file": is a file not a
@@ -1336,6 +1671,13 @@ If running rclone from a script you might want to use today's date as
the directory name passed to `--backup-dir` to store the old files, or
you might want to pass `--suffix` with today's date.
+### --bind string ###
+
+Local address to bind to for outgoing connections. This can be an
+IPv4 address (1.2.3.4), an IPv6 address (1234::789A) or host name. If
+the host name doesn't resolve or resoves to more than one IP address
+it will give an error.
+
### --bwlimit=BANDWIDTH_SPEC ###
This option controls the bandwidth limit. Limits can be specified
@@ -1443,6 +1785,27 @@ connection to go through to a remote object storage system. It is
Mode to run dedupe command in. One of `interactive`, `skip`, `first`, `newest`, `oldest`, `rename`. The default is `interactive`. See the dedupe command for more information as to what these options mean.
+### --disable FEATURE,FEATURE,... ###
+
+This disables a comma separated list of optional features. For example
+to disable server side move and server side copy use:
+
+ --disable move,copy
+
+The features can be put in in any case.
+
+To see a list of which features can be disabled use:
+
+ --disable help
+
+See the overview [features](/overview/#features) and
+[optional features](/overview/#optional-features) to get an idea of
+which feature does what.
+
+This flag can be useful for debugging and in exceptional circumstances
+(eg Google Drive limiting the total volume of Server Side Copies to
+100GB/day).
+
### -n, --dry-run ###
Do a trial run with no permanent changes. Use this to see what rclone
@@ -1490,6 +1853,26 @@ Normally rclone would skip any files that have the same
modification time and are the same size (or have the same checksum if
using `--checksum`).
+### --immutable ###
+
+Treat source and destination files as immutable and disallow
+modification.
+
+With this option set, files will be created and deleted as requested,
+but existing files will never be updated. If an existing file does
+not match between the source and destination, rclone will give the error
+`Source and destination exist but do not match: immutable file modified`.
+
+Note that only commands which transfer files (e.g. `sync`, `copy`,
+`move`) are affected by this behavior, and only modification is
+disallowed. Files may still be deleted explicitly (e.g. `delete`,
+`purge`) or implicitly (e.g. `sync`, `move`). Use `copy --immutable`
+if it is desired to avoid deletion as well as modification.
+
+This can be useful as an additional layer of protection for immutable
+or append-only data sets (notably backup archives), where modification
+implies corruption and should not be propagated.
+
### --log-file=FILE ###
Log all of rclone's output to FILE. This is not active by default.
@@ -1933,6 +2316,9 @@ only.
Dump HTTP headers and bodies - may contain sensitive info. Can be
very verbose. Useful for debugging only.
+Note that the bodies are buffered in memory so don't use this for
+enormous files.
+
### --dump-filters ###
Dump the filters to the output. Useful to see exactly what include
@@ -2459,11 +2845,13 @@ processed in.
Prepare a file like this `filter-file.txt`
- # a sample exclude rule file
+ # a sample filter rule file
- secret*.jpg
+ *.jpg
+ *.png
+ file2.avi
+ - /dir/Trash/**
+ + /dir/**
# exclude everything else
- *
@@ -2471,8 +2859,10 @@ Then use as `--filter-from filter-file.txt`. The rules are processed
in the order that they are defined.
This example will include all `jpg` and `png` files, exclude any files
-matching `secret*.jpg` and include `file2.avi`. Everything else will
-be excluded from the sync.
+matching `secret*.jpg` and include `file2.avi`. It will also include
+everything in the directory `dir` at the root of the sync, except
+`dir/Trash` which it will exclude. Everything else will be excluded
+from the sync.
### `--files-from` - Read list of source-file names ###
@@ -2622,37 +3012,43 @@ show through.
Here is an overview of the major features of each cloud storage system.
-| Name | Hash | ModTime | Case Insensitive | Duplicate Files | MIME Type |
-| ---------------------- |:-------:|:-------:|:----------------:|:---------------:|:---------:|
-| Google Drive | MD5 | Yes | No | Yes | R/W |
-| Amazon S3 | MD5 | Yes | No | No | R/W |
-| Openstack Swift | MD5 | Yes | No | No | R/W |
-| Dropbox | DBHASH †| Yes | Yes | No | - |
-| Google Cloud Storage | MD5 | Yes | No | No | R/W |
-| Amazon Drive | MD5 | No | Yes | No | R |
-| Microsoft OneDrive | SHA1 | Yes | Yes | No | R |
-| Hubic | MD5 | Yes | No | No | R/W |
-| Backblaze B2 | SHA1 | Yes | No | No | R/W |
-| Yandex Disk | MD5 | Yes | No | No | R/W |
-| SFTP | - | Yes | Depends | No | - |
-| FTP | - | No | Yes | No | - |
-| HTTP | - | No | Yes | No | R |
-| The local filesystem | All | Yes | Depends | No | - |
+| Name | Hash | ModTime | Case Insensitive | Duplicate Files | MIME Type |
+| ---------------------------- |:-----------:|:-------:|:----------------:|:---------------:|:---------:|
+| Amazon Drive | MD5 | No | Yes | No | R |
+| Amazon S3 | MD5 | Yes | No | No | R/W |
+| Backblaze B2 | SHA1 | Yes | No | No | R/W |
+| Box | SHA1 | Yes | Yes | No | - |
+| Dropbox | DBHASH † | Yes | Yes | No | - |
+| FTP | - | No | No | No | - |
+| Google Cloud Storage | MD5 | Yes | No | No | R/W |
+| Google Drive | MD5 | Yes | No | Yes | R/W |
+| HTTP | - | No | No | No | R |
+| Hubic | MD5 | Yes | No | No | R/W |
+| Microsoft Azure Blob Storage | MD5 | Yes | No | No | R/W |
+| Microsoft OneDrive | SHA1 | Yes | Yes | No | R |
+| Openstack Swift | MD5 | Yes | No | No | R/W |
+| QingStor | MD5 | No | No | No | R/W |
+| SFTP | MD5, SHA1 ‡ | Yes | Depends | No | - |
+| Yandex Disk | MD5 | Yes | No | No | R/W |
+| The local filesystem | All | Yes | Depends | No | - |
### Hash ###
-The cloud storage system supports various hash types of the objects.
+The cloud storage system supports various hash types of the objects.
The hashes are used when transferring data as an integrity check and
can be specifically used with the `--checksum` flag in syncs and in
the `check` command.
-To use the checksum checks between filesystems they must support a
-common hash type.
+To use the verify checksums when transferring between cloud storage
+systems they must support a common hash type.
† Note that Dropbox supports [its own custom
hash](https://www.dropbox.com/developers/reference/content-hash).
This is an SHA256 sum of all the 4MB block SHA256s.
+‡ SFTP supports checksums if the same login has shell access and `md5sum`
+or `sha1sum` as well as `echo` are in the remote's PATH.
+
### ModTime ###
The cloud storage system supports setting modification times on
@@ -2716,23 +3112,25 @@ All the remotes support a basic set of features, but there are some
optional features supported by some remotes used to make some
operations more efficient.
-| Name | Purge | Copy | Move | DirMove | CleanUp | ListR |
-| ---------------------- |:-----:|:----:|:----:|:-------:|:-------:|:-----:|
-| Google Drive | Yes | Yes | Yes | Yes | No [#575](https://github.com/ncw/rclone/issues/575) | No |
-| Amazon S3 | No | Yes | No | No | No | Yes |
-| Openstack Swift | Yes † | Yes | No | No | No | Yes |
-| Dropbox | Yes | Yes | Yes | Yes | No [#575](https://github.com/ncw/rclone/issues/575) | No |
-| Google Cloud Storage | Yes | Yes | No | No | No | Yes |
-| Amazon Drive | Yes | No | Yes | Yes | No [#575](https://github.com/ncw/rclone/issues/575) | No |
-| Microsoft OneDrive | Yes | Yes | Yes | No [#197](https://github.com/ncw/rclone/issues/197) | No [#575](https://github.com/ncw/rclone/issues/575) | No |
-| Hubic | Yes † | Yes | No | No | No | Yes |
-| Backblaze B2 | No | No | No | No | Yes | Yes |
-| Yandex Disk | Yes | No | No | No | No [#575](https://github.com/ncw/rclone/issues/575) | Yes |
-| SFTP | No | No | Yes | Yes | No | No |
-| FTP | No | No | Yes | Yes | No | No |
-| HTTP | No | No | No | No | No | No |
-| The local filesystem | Yes | No | Yes | Yes | No | No |
-
+| Name | Purge | Copy | Move | DirMove | CleanUp | ListR | StreamUpload |
+| ---------------------------- |:-----:|:----:|:----:|:-------:|:-------:|:-----:|:------------:|
+| Amazon Drive | Yes | No | Yes | Yes | No [#575](https://github.com/ncw/rclone/issues/575) | No | No |
+| Amazon S3 | No | Yes | No | No | No | Yes | Yes |
+| Backblaze B2 | No | No | No | No | Yes | Yes | Yes |
+| Box | Yes | Yes | Yes | Yes | No [#575](https://github.com/ncw/rclone/issues/575) | No | Yes |
+| Dropbox | Yes | Yes | Yes | Yes | No [#575](https://github.com/ncw/rclone/issues/575) | No | Yes |
+| FTP | No | No | Yes | Yes | No | No | Yes |
+| Google Cloud Storage | Yes | Yes | No | No | No | Yes | Yes |
+| Google Drive | Yes | Yes | Yes | Yes | Yes | No | Yes |
+| HTTP | No | No | No | No | No | No | No |
+| Hubic | Yes † | Yes | No | No | No | Yes | Yes |
+| Microsoft Azure Blob Storage | Yes | Yes | No | No | No | Yes | No |
+| Microsoft OneDrive | Yes | Yes | Yes | No [#197](https://github.com/ncw/rclone/issues/197) | No [#575](https://github.com/ncw/rclone/issues/575) | No | No |
+| Openstack Swift | Yes † | Yes | No | No | No | Yes | Yes |
+| QingStor | No | Yes | No | No | No | Yes | No |
+| SFTP | No | No | Yes | Yes | No | No | Yes |
+| Yandex Disk | Yes | No | No | No | Yes | Yes | Yes |
+| The local filesystem | Yes | No | Yes | Yes | No | No | Yes |
### Purge ###
@@ -2782,16 +3180,42 @@ The remote supports a recursive list to list all the contents beneath
a directory quickly. This enables the `--fast-list` flag to work.
See the [rclone docs](/docs/#fast-list) for more details.
-Google Drive
+### StreamUpload ###
+
+Some remotes allow files to be uploaded without knowing the file size
+in advance. This allows certain operations to work without spooling the
+file to local disk first, e.g. `rclone rcat`.
+
+Amazon Drive
-----------------------------------------
-Paths are specified as `drive:path`
+Paths are specified as `remote:path`
-Drive paths may be as deep as required, eg `drive:directory/subdirectory`.
+Paths may be as deep as required, eg `remote:directory/subdirectory`.
-The initial setup for drive involves getting a token from Google drive
-which you need to do in your browser. `rclone config` walks you
-through it.
+The initial setup for Amazon Drive involves getting a token from
+Amazon which you need to do in your browser. `rclone config` walks
+you through it.
+
+The configuration process for Amazon Drive may involve using an [oauth
+proxy](https://github.com/ncw/oauthproxy). This is used to keep the
+Amazon credentials out of the source code. The proxy runs in Google's
+very secure App Engine environment and doesn't store any credentials
+which pass through it.
+
+**NB** rclone doesn't not currently have its own Amazon Drive
+credentials (see [the
+forum](https://forum.rclone.org/t/rclone-has-been-banned-from-amazon-drive/)
+for why) so you will either need to have your own `client_id` and
+`client_secret` with Amazon Drive, or use a a third party ouath proxy
+in which case you will need to enter `client_id`, `client_secret`,
+`auth_url` and `token_url`.
+
+Note also if you are not using Amazon's `auth_url` and `token_url`,
+(ie you filled in something for those) then if setting up on a remote
+machine you can only use the [copying the config method of
+configuration](https://rclone.org/remote_setup/#configuring-by-copying-the-config-file)
+- `rclone authorize` will not work.
Here is an example of how to make a remote called `remote`. First run:
@@ -2838,15 +3262,20 @@ Choose a number from below, or type in your own value
\ "sftp"
14 / Yandex Disk
\ "yandex"
-Storage> 8
-Google Application Client Id - leave blank normally.
-client_id>
-Google Application Client Secret - leave blank normally.
-client_secret>
+Storage> 1
+Amazon Application Client Id - required.
+client_id> your client ID goes here
+Amazon Application Client Secret - required.
+client_secret> your client secret goes here
+Auth server URL - leave blank to use Amazon's.
+auth_url> Optional auth URL
+Token server url - leave blank to use Amazon's.
+token_url> Optional token URL
Remote config
+Make sure your Redirect URL is set to "http://127.0.0.1:53682/" in your custom config.
Use auto config?
* Say Y if not sure
- * Say N if you are working on a remote or headless machine or Y didn't work
+ * Say N if you are working on a remote or headless machine
y) Yes
n) No
y/n> y
@@ -2854,15 +3283,13 @@ If your browser doesn't open automatically go to the following link: http://127.
Log in and authorize rclone for access
Waiting for code...
Got code
-Configure this as a team drive?
-y) Yes
-n) No
-y/n> n
--------------------
[remote]
-client_id =
-client_secret =
-token = {"AccessToken":"xxxx.x.xxxxx_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"1/xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx","Expiry":"2014-03-16T13:57:58.955387075Z","Extra":null}
+client_id = your client ID goes here
+client_secret = your client secret goes here
+auth_url = Optional auth URL
+token_url = Optional token URL
+token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxx","token_type":"bearer","refresh_token":"xxxxxxxxxxxxxxxxxx","expiry":"2015-09-06T16:07:39.658438471+01:00"}
--------------------
y) Yes this is OK
e) Edit this remote
@@ -2870,260 +3297,111 @@ d) Delete this remote
y/e/d> y
```
+See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
+machine with no Internet browser available.
+
Note that rclone runs a webserver on your local machine to collect the
-token as returned from Google if you use auto config mode. This only
-runs from the moment it opens your browser to the moment you get back
-the verification code. This is on `http://127.0.0.1:53682/` and this
-it may require you to unblock it temporarily if you are running a host
-firewall, or use manual mode.
+token as returned from Amazon. This only runs from the moment it
+opens your browser to the moment you get back the verification
+code. This is on `http://127.0.0.1:53682/` and this it may require
+you to unblock it temporarily if you are running a host firewall.
-You can then use it like this,
+Once configured you can then use `rclone` like this,
-List directories in top level of your drive
+List directories in top level of your Amazon Drive
rclone lsd remote:
-List all the files in your drive
+List all the files in your Amazon Drive
rclone ls remote:
-To copy a local directory to a drive directory called backup
+To copy a local directory to an Amazon Drive directory called backup
rclone copy /home/source remote:backup
-### Team drives ###
-
-If you want to configure the remote to point to a Google Team Drive
-then answer `y` to the question `Configure this as a team drive?`.
-
-This will fetch the list of Team Drives from google and allow you to
-configure which one you want to use. You can also type in a team
-drive ID if you prefer.
-
-For example:
-
-```
-Configure this as a team drive?
-y) Yes
-n) No
-y/n> y
-Fetching team drive list...
-Choose a number from below, or type in your own value
- 1 / Rclone Test
- \ "xxxxxxxxxxxxxxxxxxxx"
- 2 / Rclone Test 2
- \ "yyyyyyyyyyyyyyyyyyyy"
- 3 / Rclone Test 3
- \ "zzzzzzzzzzzzzzzzzzzz"
-Enter a Team Drive ID> 1
---------------------
-[remote]
-client_id =
-client_secret =
-token = {"AccessToken":"xxxx.x.xxxxx_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"1/xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx","Expiry":"2014-03-16T13:57:58.955387075Z","Extra":null}
-team_drive = xxxxxxxxxxxxxxxxxxxx
---------------------
-y) Yes this is OK
-e) Edit this remote
-d) Delete this remote
-y/e/d> y
-```
-
-### Modified time ###
-
-Google drive stores modification times accurate to 1 ms.
+### Modified time and MD5SUMs ###
-### Revisions ###
+Amazon Drive doesn't allow modification times to be changed via
+the API so these won't be accurate or used for syncing.
-Google drive stores revisions of files. When you upload a change to
-an existing file to google drive using rclone it will create a new
-revision of that file.
+It does store MD5SUMs so for a more accurate sync, you can use the
+`--checksum` flag.
-Revisions follow the standard google policy which at time of writing
-was
+### Deleting files ###
- * They are deleted after 30 days or 100 revisions (whatever comes first).
- * They do not count towards a user storage quota.
+Any files you delete with rclone will end up in the trash. Amazon
+don't provide an API to permanently delete files, nor to empty the
+trash, so you will have to do that with one of Amazon's apps or via
+the Amazon Drive website. As of November 17, 2016, files are
+automatically deleted by Amazon from the trash after 30 days.
-### Deleting files ###
+### Using with non `.com` Amazon accounts ###
-By default rclone will delete files permanently when requested. If
-sending them to the trash is required instead then use the
-`--drive-use-trash` flag.
+Let's say you usually use `amazon.co.uk`. When you authenticate with
+rclone it will take you to an `amazon.com` page to log in. Your
+`amazon.co.uk` email and password should work here just fine.
### Specific options ###
Here are the command line options specific to this cloud storage
system.
-#### --drive-auth-owner-only ####
+#### --acd-templink-threshold=SIZE ####
-Only consider files owned by the authenticated user.
+Files this size or more will be downloaded via their `tempLink`. This
+is to work around a problem with Amazon Drive which blocks downloads
+of files bigger than about 10GB. The default for this is 9GB which
+shouldn't need to be changed.
-#### --drive-chunk-size=SIZE ####
+To download files above this threshold, rclone requests a `tempLink`
+which downloads the file through a temporary URL directly from the
+underlying S3 storage.
-Upload chunk size. Must a power of 2 >= 256k. Default value is 8 MB.
+#### --acd-upload-wait-per-gb=TIME ####
-Making this larger will improve performance, but note that each chunk
-is buffered in memory one per transfer.
+Sometimes Amazon Drive gives an error when a file has been fully
+uploaded but the file appears anyway after a little while. This
+happens sometimes for files over 1GB in size and nearly every time for
+files bigger than 10GB. This parameter controls the time rclone waits
+for the file to appear.
-Reducing this will reduce memory usage but decrease performance.
+The default value for this parameter is 3 minutes per GB, so by
+default it will wait 3 minutes for every GB uploaded to see if the
+file appears.
-#### --drive-auth-owner-only ####
+You can disable this feature by setting it to 0. This may cause
+conflict errors as rclone retries the failed upload but the file will
+most likely appear correctly eventually.
-Only consider files owned by the authenticated user.
+These values were determined empirically by observing lots of uploads
+of big files for a range of file sizes.
-#### --drive-formats ####
+Upload with the `-v` flag to see more info about what rclone is doing
+in this situation.
-Google documents can only be exported from Google drive. When rclone
-downloads a Google doc it chooses a format to download depending upon
-this setting.
+### Limitations ###
-By default the formats are `docx,xlsx,pptx,svg` which are a sensible
-default for an editable document.
+Note that Amazon Drive is case insensitive so you can't have a
+file called "Hello.doc" and one called "hello.doc".
-When choosing a format, rclone runs down the list provided in order
-and chooses the first file format the doc can be exported as from the
-list. If the file can't be exported to a format on the formats list,
-then rclone will choose a format from the default list.
+Amazon Drive has rate limiting so you may notice errors in the
+sync (429 errors). rclone will automatically retry the sync up to 3
+times by default (see `--retries` flag) which should hopefully work
+around this problem.
-If you prefer an archive copy then you might use `--drive-formats
-pdf`, or if you prefer openoffice/libreoffice formats you might use
-`--drive-formats ods,odt,odp`.
+Amazon Drive has an internal limit of file sizes that can be uploaded
+to the service. This limit is not officially published, but all files
+larger than this will fail.
-Note that rclone adds the extension to the google doc, so if it is
-calles `My Spreadsheet` on google docs, it will be exported as `My
-Spreadsheet.xlsx` or `My Spreadsheet.pdf` etc.
+At the time of writing (Jan 2016) is in the area of 50GB per file.
+This means that larger files are likely to fail.
-Here are the possible extensions with their corresponding mime types.
-
-| Extension | Mime Type | Description |
-| --------- |-----------| ------------|
-| csv | text/csv | Standard CSV format for Spreadsheets |
-| doc | application/msword | Micosoft Office Document |
-| docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Microsoft Office Document |
-| epub | application/epub+zip | E-book format |
-| html | text/html | An HTML Document |
-| jpg | image/jpeg | A JPEG Image File |
-| odp | application/vnd.oasis.opendocument.presentation | Openoffice Presentation |
-| ods | application/vnd.oasis.opendocument.spreadsheet | Openoffice Spreadsheet |
-| ods | application/x-vnd.oasis.opendocument.spreadsheet | Openoffice Spreadsheet |
-| odt | application/vnd.oasis.opendocument.text | Openoffice Document |
-| pdf | application/pdf | Adobe PDF Format |
-| png | image/png | PNG Image Format|
-| pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | Microsoft Office Powerpoint |
-| rtf | application/rtf | Rich Text Format |
-| svg | image/svg+xml | Scalable Vector Graphics Format |
-| tsv | text/tab-separated-values | Standard TSV format for spreadsheets |
-| txt | text/plain | Plain Text |
-| xls | application/vnd.ms-excel | Microsoft Office Spreadsheet |
-| xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Microsoft Office Spreadsheet |
-| zip | application/zip | A ZIP file of HTML, Images CSS |
-
-#### --drive-list-chunk int ####
-
-Size of listing chunk 100-1000. 0 to disable. (default 1000)
-
-#### --drive-shared-with-me ####
-
-Only show files that are shared with me
-
-#### --drive-skip-gdocs ####
-
-Skip google documents in all listings. If given, gdocs practically become invisible to rclone.
-
-#### --drive-trashed-only ####
-
-Only show files that are in the trash. This will show trashed files
-in their original directory structure.
-
-#### --drive-upload-cutoff=SIZE ####
-
-File size cutoff for switching to chunked upload. Default is 8 MB.
-
-#### --drive-use-trash ####
-
-Send files to the trash instead of deleting permanently. Defaults to
-off, namely deleting files permanently.
-
-### Limitations ###
-
-Drive has quite a lot of rate limiting. This causes rclone to be
-limited to transferring about 2 files per second only. Individual
-files may be transferred much faster at 100s of MBytes/s but lots of
-small files can take a long time.
-
-### Duplicated files ###
-
-Sometimes, for no reason I've been able to track down, drive will
-duplicate a file that rclone uploads. Drive unlike all the other
-remotes can have duplicated files.
-
-Duplicated files cause problems with the syncing and you will see
-messages in the log about duplicates.
-
-Use `rclone dedupe` to fix duplicated files.
-
-Note that this isn't just a problem with rclone, even Google Photos on
-Android duplicates files on drive sometimes.
-
-### Rclone appears to be re-copying files it shouldn't ###
-
-There are two possible reasons for rclone to recopy files which
-haven't changed to Google Drive.
-
-The first is the duplicated file issue above - run `rclone dedupe` and
-check your logs for duplicate object or directory messages.
-
-The second is that sometimes Google reports different sizes for the
-Google Docs exports which will cause rclone to re-download Google Docs
-for no apparent reason. `--ignore-size` is a not very satisfactory
-work-around for this if it is causing you a lot of problems.
-
-### Google docs downloads sometimes fail with "Failed to copy: read X bytes expecting Y" ###
-
-This is the same problem as above. Google reports the google doc is
-one size, but rclone downloads a different size. Work-around with the
-`--ignore-size` flag or wait for rclone to retry the download which it
-will.
-
-### Making your own client_id ###
-
-When you use rclone with Google drive in its default configuration you
-are using rclone's client_id. This is shared between all the rclone
-users. There is a global rate limit on the number of queries per
-second that each client_id can do set by Google. rclone already has a
-high quota and I will continue to make sure it is high enough by
-contacting Google.
-
-However you might find you get better performance making your own
-client_id if you are a heavy user. Or you may not depending on exactly
-how Google have been raising rclone's rate limit.
-
-Here is how to create your own Google Drive client ID for rclone:
-
-1. Log into the [Google API
-Console](https://console.developers.google.com/) with your Google
-account. It doesn't matter what Google account you use. (It need not
-be the same account as the Google Drive you want to access)
-
-2. Select a project or create a new project.
-
-3. Under Overview, Google APIs, Google Apps APIs, click "Drive API",
-then "Enable".
-
-4. Click "Credentials" in the left-side panel (not "Go to
-credentials", which opens the wizard), then "Create credentials", then
-"OAuth client ID". It will prompt you to set the OAuth consent screen
-product name, if you haven't set one already.
-
-5. Choose an application type of "other", and click "Create". (the
-default name is fine)
-
-6. It will show you a client ID and client secret. Use these values
-in rclone config to add a new remote or edit an existing remote.
-
-(Thanks to @balazer on github for these instructions.)
+Unfortunately there is no way for rclone to see that this failure is
+because of file size, so it will retry the operation, as any other
+failure. To avoid this problem, use `--max-size 50000M` option to limit
+the maximum size of uploaded files. Note that `--max-size` does not split
+files into segments, it only ignores files over this size.
Amazon S3
---------------------------------------
@@ -3361,12 +3639,14 @@ There are two ways to supply `rclone` with a set of AWS
credentials. In order of precedence:
- Directly in the rclone configuration file (as configured by `rclone config`)
- - set `access_key_id` and `secret_access_key`
+ - set `access_key_id` and `secret_access_key`. `session_token` can be
+ optionally set when using AWS STS.
- Runtime configuration:
- set `env_auth` to `true` in the config file
- Exporting the following environment variables before running `rclone`
- Access Key ID: `AWS_ACCESS_KEY_ID` or `AWS_ACCESS_KEY`
- Secret Access Key: `AWS_SECRET_ACCESS_KEY` or `AWS_SECRET_KEY`
+ - Session Token: `AWS_SESSION_TOKEN`
- Running `rclone` on an EC2 instance with an IAM role
If none of these option actually end up providing `rclone` with AWS
@@ -3420,6 +3700,17 @@ Notes on above:
For reference, [here's an Ansible script](https://gist.github.com/ebridges/ebfc9042dd7c756cd101cfa807b7ae2b)
that will generate one or more buckets that will work with `rclone sync`.
+### Glacier ###
+
+You can transition objects to glacier storage using a [lifecycle policy](http://docs.aws.amazon.com/AmazonS3/latest/user-guide/create-lifecycle.html).
+The bucket can still be synced or copied into normally, but if rclone
+tries to access the data you will see an error like below.
+
+ 2017/09/11 19:07:43 Failed to sync: failed to open source object: Object in GLACIER, restore first: path/to/file
+
+In this case you need to [restore](http://docs.aws.amazon.com/AmazonS3/latest/user-guide/restore-archived-objects.html)
+the object(s) in question before using rclone.
+
### Specific options ###
Here are the command line options specific to this cloud storage
@@ -3590,29 +3881,139 @@ So once set up, for example to copy files into a bucket
rclone copy /path/to/files minio:bucket
```
-Swift
-----------------------------------------
+### Wasabi ###
-Swift refers to [Openstack Object Storage](https://www.openstack.org/software/openstack-storage/).
-Commercial implementations of that being:
+[Wasabi](https://wasabi.com) is a cloud-based object storage service for a
+broad range of applications and use cases. Wasabi is designed for
+individuals and organizations that require a high-performance,
+reliable, and secure data storage infrastructure at minimal cost.
- * [Rackspace Cloud Files](https://www.rackspace.com/cloud/files/)
- * [Memset Memstore](https://www.memset.com/cloud/storage/)
+Wasabi provides an S3 interface which can be configured for use with
+rclone like this.
-Paths are specified as `remote:container` (or `remote:` for the `lsd`
-command.) You may put subdirectories in too, eg `remote:container/path/to/dir`.
+```
+No remotes found - make a new one
+n) New remote
+s) Set configuration password
+n/s> n
+name> wasabi
+Type of storage to configure.
+Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ "amazon cloud drive"
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ "s3"
+[snip]
+Storage> s3
+Get AWS credentials from runtime (environment variables or EC2 meta data if no env vars). Only applies if access_key_id and secret_access_key is blank.
+Choose a number from below, or type in your own value
+ 1 / Enter AWS credentials in the next step
+ \ "false"
+ 2 / Get AWS credentials from the environment (env vars or IAM)
+ \ "true"
+env_auth> 1
+AWS Access Key ID - leave blank for anonymous access or runtime credentials.
+access_key_id> YOURACCESSKEY
+AWS Secret Access Key (password) - leave blank for anonymous access or runtime credentials.
+secret_access_key> YOURSECRETACCESSKEY
+Region to connect to.
+Choose a number from below, or type in your own value
+ / The default endpoint - a good choice if you are unsure.
+ 1 | US Region, Northern Virginia or Pacific Northwest.
+ | Leave location constraint empty.
+ \ "us-east-1"
+[snip]
+region> us-east-1
+Endpoint for S3 API.
+Leave blank if using AWS to use the default endpoint for the region.
+Specify if using an S3 clone such as Ceph.
+endpoint> s3.wasabisys.com
+Location constraint - must be set to match the Region. Used when creating buckets only.
+Choose a number from below, or type in your own value
+ 1 / Empty for US Region, Northern Virginia or Pacific Northwest.
+ \ ""
+[snip]
+location_constraint>
+Canned ACL used when creating buckets and/or storing objects in S3.
+For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
+Choose a number from below, or type in your own value
+ 1 / Owner gets FULL_CONTROL. No one else has access rights (default).
+ \ "private"
+[snip]
+acl>
+The server-side encryption algorithm used when storing this object in S3.
+Choose a number from below, or type in your own value
+ 1 / None
+ \ ""
+ 2 / AES256
+ \ "AES256"
+server_side_encryption>
+The storage class to use when storing objects in S3.
+Choose a number from below, or type in your own value
+ 1 / Default
+ \ ""
+ 2 / Standard storage class
+ \ "STANDARD"
+ 3 / Reduced redundancy storage class
+ \ "REDUCED_REDUNDANCY"
+ 4 / Standard Infrequent Access storage class
+ \ "STANDARD_IA"
+storage_class>
+Remote config
+--------------------
+[wasabi]
+env_auth = false
+access_key_id = YOURACCESSKEY
+secret_access_key = YOURSECRETACCESSKEY
+region = us-east-1
+endpoint = s3.wasabisys.com
+location_constraint =
+acl =
+server_side_encryption =
+storage_class =
+--------------------
+y) Yes this is OK
+e) Edit this remote
+d) Delete this remote
+y/e/d> y
+```
-Here is an example of making a swift configuration. First run
+This will leave the config file looking like this.
+
+```
+[wasabi]
+env_auth = false
+access_key_id = YOURACCESSKEY
+secret_access_key = YOURSECRETACCESSKEY
+region = us-east-1
+endpoint = s3.wasabisys.com
+location_constraint =
+acl =
+server_side_encryption =
+storage_class =
+```
+
+Backblaze B2
+----------------------------------------
+
+B2 is [Backblaze's cloud storage system](https://www.backblaze.com/b2/).
+
+Paths are specified as `remote:bucket` (or `remote:` for the `lsd`
+command.) You may put subdirectories in too, eg `remote:bucket/path/to/dir`.
+
+Here is an example of making a b2 configuration. First run
rclone config
-This will guide you through an interactive setup process.
+This will guide you through an interactive setup process. You will
+need your account number (a short hex number) and key (a long hex
+number) which you can get from the b2 control panel.
```
No remotes found - make a new one
n) New remote
-s) Set configuration password
-n/s> n
+q) Quit config
+n/q> n
name> remote
Type of storage to configure.
Choose a number from below, or type in your own value
@@ -3642,50 +4043,19 @@ Choose a number from below, or type in your own value
\ "sftp"
13 / Yandex Disk
\ "yandex"
-Storage> 11
-User name to log in.
-user> user_name
-API key or password.
-key> password_or_api_key
-Authentication URL for server.
-Choose a number from below, or type in your own value
- 1 / Rackspace US
- \ "https://auth.api.rackspacecloud.com/v1.0"
- 2 / Rackspace UK
- \ "https://lon.auth.api.rackspacecloud.com/v1.0"
- 3 / Rackspace v2
- \ "https://identity.api.rackspacecloud.com/v2.0"
- 4 / Memset Memstore UK
- \ "https://auth.storage.memset.com/v1.0"
- 5 / Memset Memstore UK v2
- \ "https://auth.storage.memset.com/v2.0"
- 6 / OVH
- \ "https://auth.cloud.ovh.net/v2.0"
-auth> 1
-User domain - optional (v3 auth)
-domain> Default
-Tenant name - optional for v1 auth, required otherwise
-tenant> tenant_name
-Tenant domain - optional (v3 auth)
-tenant_domain>
-Region name - optional
-region>
-Storage URL - optional
-storage_url>
-AuthVersion - optional - set to (1,2,3) if your auth URL has no version
-auth_version>
+Storage> 3
+Account ID
+account> 123456789abc
+Application Key
+key> 0123456789abcdef0123456789abcdef0123456789
+Endpoint for the service - leave blank normally.
+endpoint>
Remote config
--------------------
[remote]
-user = user_name
-key = password_or_api_key
-auth = https://auth.api.rackspacecloud.com/v1.0
-domain = Default
-tenant =
-tenant_domain =
-region =
-storage_url =
-auth_version =
+account = 123456789abc
+key = 0123456789abcdef0123456789abcdef0123456789
+endpoint =
--------------------
y) Yes this is OK
e) Edit this remote
@@ -3695,54 +4065,22 @@ y/e/d> y
This remote is called `remote` and can now be used like this
-See all containers
+See all buckets
rclone lsd remote:
-Make a new container
-
- rclone mkdir remote:container
-
-List the contents of a container
-
- rclone ls remote:container
-
-Sync `/home/local/directory` to the remote container, deleting any
-excess files in the container.
-
- rclone sync /home/local/directory remote:container
-
-### Configuration from an Openstack credentials file ###
+Make a new bucket
-An Opentstack credentials file typically looks something something
-like this (without the comments)
+ rclone mkdir remote:bucket
-```
-export OS_AUTH_URL=https://a.provider.net/v2.0
-export OS_TENANT_ID=ffffffffffffffffffffffffffffffff
-export OS_TENANT_NAME="1234567890123456"
-export OS_USERNAME="123abc567xy"
-echo "Please enter your OpenStack Password: "
-read -sr OS_PASSWORD_INPUT
-export OS_PASSWORD=$OS_PASSWORD_INPUT
-export OS_REGION_NAME="SBG1"
-if [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi
-```
+List the contents of a bucket
-The config file needs to look something like this where `$OS_USERNAME`
-represents the value of the `OS_USERNAME` variable - `123abc567xy` in
-the example above.
+ rclone ls remote:bucket
-```
-[remote]
-type = swift
-user = $OS_USERNAME
-key = $OS_PASSWORD
-auth = $OS_AUTH_URL
-tenant = $OS_TENANT_NAME
-```
+Sync `/home/local/directory` to the remote bucket, deleting any
+excess files in the bucket.
-Note that you may (or may not) need to set `region` too - try without first.
+ rclone sync /home/local/directory remote:bucket
### --fast-list ###
@@ -3750,187 +4088,223 @@ This remote supports `--fast-list` which allows you to use fewer
transactions in exchange for more memory. See the [rclone
docs](/docs/#fast-list) for more details.
-### Specific options ###
-
-Here are the command line options specific to this cloud storage
-system.
-
-#### --swift-chunk-size=SIZE ####
-
-Above this size files will be chunked into a _segments container. The
-default for this is 5GB which is its maximum value.
-
### Modified time ###
The modified time is stored as metadata on the object as
-`X-Object-Meta-Mtime` as floating point since the epoch accurate to 1
-ns.
-
-This is a defacto standard (used in the official python-swiftclient
-amongst others) for storing the modification time for an object.
-
-### Limitations ###
+`X-Bz-Info-src_last_modified_millis` as milliseconds since 1970-01-01
+in the Backblaze standard. Other tools should be able to use this as
+a modified time.
-The Swift API doesn't return a correct MD5SUM for segmented files
-(Dynamic or Static Large Objects) so rclone won't check or use the
-MD5SUM for these.
+Modified times are used in syncing and are fully supported except in
+the case of updating a modification time on an existing object. In
+this case the object will be uploaded again as B2 doesn't have an API
+method to set the modification time independent of doing an upload.
-### Troubleshooting ###
+### SHA1 checksums ###
-#### Rclone gives Failed to create file system for "remote:": Bad Request ####
+The SHA1 checksums of the files are checked on upload and download and
+will be used in the syncing process.
-Due to an oddity of the underlying swift library, it gives a "Bad
-Request" error rather than a more sensible error when the
-authentication fails for Swift.
+Large files which are uploaded in chunks will store their SHA1 on the
+object as `X-Bz-Info-large_file_sha1` as recommended by Backblaze.
-So this most likely means your username / password is wrong. You can
-investigate further with the `--dump-bodies` flag.
+### Transfers ###
-This may also be caused by specifying the region when you shouldn't
-have (eg OVH).
+Backblaze recommends that you do lots of transfers simultaneously for
+maximum speed. In tests from my SSD equiped laptop the optimum
+setting is about `--transfers 32` though higher numbers may be used
+for a slight speed improvement. The optimum number for you may vary
+depending on your hardware, how big the files are, how much you want
+to load your computer, etc. The default of `--transfers 4` is
+definitely too low for Backblaze B2 though.
-#### Rclone gives Failed to create file system: Response didn't have storage storage url and auth token ####
+Note that uploading big files (bigger than 200 MB by default) will use
+a 96 MB RAM buffer by default. There can be at most `--transfers` of
+these in use at any moment, so this sets the upper limit on the memory
+used.
-This is most likely caused by forgetting to specify your tenant when
-setting up a swift remote.
+### Versions ###
-Dropbox
----------------------------------
+When rclone uploads a new version of a file it creates a [new version
+of it](https://www.backblaze.com/b2/docs/file_versions.html).
+Likewise when you delete a file, the old version will be marked hidden
+and still be available. Conversely, you may opt in to a "hard delete"
+of files with the `--b2-hard-delete` flag which would permanently remove
+the file instead of hiding it.
-Paths are specified as `remote:path`
+Old versions of files, where available, are visible using the
+`--b2-versions` flag.
-Dropbox paths may be as deep as required, eg
-`remote:directory/subdirectory`.
+If you wish to remove all the old versions then you can use the
+`rclone cleanup remote:bucket` command which will delete all the old
+versions of files, leaving the current ones intact. You can also
+supply a path and only old versions under that path will be deleted,
+eg `rclone cleanup remote:bucket/path/to/stuff`.
-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.
+When you `purge` a bucket, the current and the old versions will be
+deleted then the bucket will be deleted.
-Here is an example of how to make a remote called `remote`. First run:
+However `delete` will cause the current versions of the files to
+become hidden old versions.
- rclone config
+Here is a session showing the listing and and retreival of an old
+version followed by a `cleanup` of the old versions.
-This will guide you through an interactive setup process:
+Show current version and all the versions with `--b2-versions` flag.
```
-n) New remote
-d) Delete remote
-q) Quit config
-e/n/d/q> n
-name> remote
-Type of storage to configure.
-Choose a number from below, or type in your own value
- 1 / Amazon Drive
- \ "amazon cloud drive"
- 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
- \ "s3"
- 3 / Backblaze B2
- \ "b2"
- 4 / Dropbox
- \ "dropbox"
- 5 / Encrypt/Decrypt a remote
- \ "crypt"
- 6 / Google Cloud Storage (this is not Google Drive)
- \ "google cloud storage"
- 7 / Google Drive
- \ "drive"
- 8 / Hubic
- \ "hubic"
- 9 / Local Disk
- \ "local"
-10 / Microsoft OneDrive
- \ "onedrive"
-11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
- \ "swift"
-12 / SSH/SFTP Connection
- \ "sftp"
-13 / Yandex Disk
- \ "yandex"
-Storage> 4
-Dropbox App Key - leave blank normally.
-app_key>
-Dropbox App Secret - leave blank normally.
-app_secret>
-Remote config
-Please visit:
-https://www.dropbox.com/1/oauth2/authorize?client_id=XXXXXXXXXXXXXXX&response_type=code
-Enter the code: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXXXXXXXX
---------------------
-[remote]
-app_key =
-app_secret =
-token = XXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXX_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
---------------------
-y) Yes this is OK
-e) Edit this remote
-d) Delete this remote
-y/e/d> y
-```
+$ rclone -q ls b2:cleanup-test
+ 9 one.txt
-You can then use it like this,
+$ rclone -q --b2-versions ls b2:cleanup-test
+ 9 one.txt
+ 8 one-v2016-07-04-141032-000.txt
+ 16 one-v2016-07-04-141003-000.txt
+ 15 one-v2016-07-02-155621-000.txt
+```
-List directories in top level of your dropbox
+Retreive an old verson
- rclone lsd remote:
+```
+$ rclone -q --b2-versions copy b2:cleanup-test/one-v2016-07-04-141003-000.txt /tmp
-List all the files in your dropbox
+$ ls -l /tmp/one-v2016-07-04-141003-000.txt
+-rw-rw-r-- 1 ncw ncw 16 Jul 2 17:46 /tmp/one-v2016-07-04-141003-000.txt
+```
- rclone ls remote:
+Clean up all the old versions and show that they've gone.
-To copy a local directory to a dropbox directory called backup
+```
+$ rclone -q cleanup b2:cleanup-test
- rclone copy /home/source remote:backup
+$ rclone -q ls b2:cleanup-test
+ 9 one.txt
-### Modified time and Hashes ###
+$ rclone -q --b2-versions ls b2:cleanup-test
+ 9 one.txt
+```
-Dropbox supports modified times, but the only way to set a
-modification time is to re-upload the file.
+### Data usage ###
-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.
+It is useful to know how many requests are sent to the server in different scenarios.
-Dropbox supports [its own hash
-type](https://www.dropbox.com/developers/reference/content-hash) which
-is checked for all transfers.
+All copy commands send the following 4 requests:
+
+```
+/b2api/v1/b2_authorize_account
+/b2api/v1/b2_create_bucket
+/b2api/v1/b2_list_buckets
+/b2api/v1/b2_list_file_names
+```
+
+The `b2_list_file_names` request will be sent once for every 1k files
+in the remote path, providing the checksum and modification time of
+the listed files. As of version 1.33 issue
+[#818](https://github.com/ncw/rclone/issues/818) causes extra requests
+to be sent when using B2 with Crypt. When a copy operation does not
+require any files to be uploaded, no more requests will be sent.
+
+Uploading files that do not require chunking, will send 2 requests per
+file upload:
+
+```
+/b2api/v1/b2_get_upload_url
+/b2api/v1/b2_upload_file/
+```
+
+Uploading files requiring chunking, will send 2 requests (one each to
+start and finish the upload) and another 2 requests for each chunk:
+
+```
+/b2api/v1/b2_start_large_file
+/b2api/v1/b2_get_upload_part_url
+/b2api/v1/b2_upload_part/
+/b2api/v1/b2_finish_large_file
+```
+
+### B2 with crypt ###
+
+When using B2 with `crypt` files are encrypted into a temporary
+location and streamed from there. This is required to calculate the
+encrypted file's checksum before beginning the upload. On Windows the
+%TMPDIR% environment variable is used as the temporary location. If
+the file requires chunking, both the chunking and encryption will take
+place in memory.
### Specific options ###
Here are the command line options specific to this cloud storage
system.
-#### --dropbox-chunk-size=SIZE ####
+#### --b2-chunk-size valuee=SIZE ####
-Upload chunk size. Max 150M. The default is 128MB. Note that this
-isn't buffered into memory.
+When uploading large files chunk the file into this size. Note that
+these chunks are buffered in memory and there might a maximum of
+`--transfers` chunks in progress at once. 5,000,000 Bytes is the
+minimim size (default 96M).
-### Limitations ###
+#### --b2-upload-cutoff=SIZE ####
-Note that Dropbox is case insensitive so you can't have a file called
-"Hello.doc" and one called "hello.doc".
+Cutoff for switching to chunked upload (default 190.735 MiB == 200
+MB). Files above this size will be uploaded in chunks of
+`--b2-chunk-size`.
-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
-attempt to upload one of those file names, but the sync won't fail.
+This value should be set no larger than 4.657GiB (== 5GB) as this is
+the largest file size that can be uploaded.
-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 dropbox:dir` followed by an `rclone rmdir dropbox:dir`.
-Google Cloud Storage
--------------------------------------------------
+#### --b2-test-mode=FLAG ####
-Paths are specified as `remote:bucket` (or `remote:` for the `lsd`
-command.) You may put subdirectories in too, eg `remote:bucket/path/to/dir`.
+This is for debugging purposes only.
-The initial setup for google cloud storage involves getting a token from Google Cloud Storage
-which you need to do in your browser. `rclone config` walks you
-through it.
+Setting FLAG to one of the strings below will cause b2 to return
+specific errors for debugging purposes.
+
+ * `fail_some_uploads`
+ * `expire_some_account_authorization_tokens`
+ * `force_cap_exceeded`
+
+These will be set in the `X-Bz-Test-Mode` header which is documented
+in the [b2 integrations
+checklist](https://www.backblaze.com/b2/docs/integration_checklist.html).
+
+#### --b2-versions ####
+
+When set rclone will show and act on older versions of files. For example
+
+Listing without `--b2-versions`
+
+```
+$ rclone -q ls b2:cleanup-test
+ 9 one.txt
+```
+
+And with
+
+```
+$ rclone -q --b2-versions ls b2:cleanup-test
+ 9 one.txt
+ 8 one-v2016-07-04-141032-000.txt
+ 16 one-v2016-07-04-141003-000.txt
+ 15 one-v2016-07-02-155621-000.txt
+```
+
+Showing that the current version is unchanged but older versions can
+be seen. These have the UTC date that they were uploaded to the
+server to the nearest millisecond appended to them.
+
+Note that when using `--b2-versions` no file write operations are
+permitted, so you can't upload files or delete them.
+
+Box
+-----------------------------------------
+
+Paths are specified as `remote:path`
+
+Paths may be as deep as required, eg `remote:directory/subdirectory`.
+
+The initial setup for Box involves getting a token from Box 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:
@@ -3939,10 +4313,11 @@ Here is an example of how to make a remote called `remote`. First run:
This will guide you through an interactive setup process:
```
+No remotes found - make a new one
n) New remote
-d) Delete remote
+s) Set configuration password
q) Quit config
-e/n/d/q> n
+n/s/q> n
name> remote
Type of storage to configure.
Choose a number from below, or type in your own value
@@ -3952,113 +4327,41 @@ Choose a number from below, or type in your own value
\ "s3"
3 / Backblaze B2
\ "b2"
- 4 / Dropbox
+ 4 / Box
+ \ "box"
+ 5 / Dropbox
\ "dropbox"
- 5 / Encrypt/Decrypt a remote
+ 6 / Encrypt/Decrypt a remote
\ "crypt"
- 6 / Google Cloud Storage (this is not Google Drive)
+ 7 / FTP Connection
+ \ "ftp"
+ 8 / Google Cloud Storage (this is not Google Drive)
\ "google cloud storage"
- 7 / Google Drive
+ 9 / Google Drive
\ "drive"
- 8 / Hubic
+10 / Hubic
\ "hubic"
- 9 / Local Disk
+11 / Local Disk
\ "local"
-10 / Microsoft OneDrive
+12 / Microsoft OneDrive
\ "onedrive"
-11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+13 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
\ "swift"
-12 / SSH/SFTP Connection
+14 / SSH/SFTP Connection
\ "sftp"
-13 / Yandex Disk
+15 / Yandex Disk
\ "yandex"
-Storage> 6
-Google Application Client Id - leave blank normally.
-client_id>
-Google Application Client Secret - leave blank normally.
-client_secret>
-Project number optional - needed only for list/create/delete buckets - see your developer console.
-project_number> 12345678
-Service Account Credentials JSON file path - needed only if you want use SA instead of interactive login.
-service_account_file>
-Access Control List for new objects.
-Choose a number from below, or type in your own value
- 1 / Object owner gets OWNER access, and all Authenticated Users get READER access.
- \ "authenticatedRead"
- 2 / Object owner gets OWNER access, and project team owners get OWNER access.
- \ "bucketOwnerFullControl"
- 3 / Object owner gets OWNER access, and project team owners get READER access.
- \ "bucketOwnerRead"
- 4 / Object owner gets OWNER access [default if left blank].
- \ "private"
- 5 / Object owner gets OWNER access, and project team members get access according to their roles.
- \ "projectPrivate"
- 6 / Object owner gets OWNER access, and all Users get READER access.
- \ "publicRead"
-object_acl> 4
-Access Control List for new buckets.
-Choose a number from below, or type in your own value
- 1 / Project team owners get OWNER access, and all Authenticated Users get READER access.
- \ "authenticatedRead"
- 2 / Project team owners get OWNER access [default if left blank].
- \ "private"
- 3 / Project team members get access according to their roles.
- \ "projectPrivate"
- 4 / Project team owners get OWNER access, and all Users get READER access.
- \ "publicRead"
- 5 / Project team owners get OWNER access, and all Users get WRITER access.
- \ "publicReadWrite"
-bucket_acl> 2
-Location for the newly created buckets.
-Choose a number from below, or type in your own value
- 1 / Empty for default location (US).
- \ ""
- 2 / Multi-regional location for Asia.
- \ "asia"
- 3 / Multi-regional location for Europe.
- \ "eu"
- 4 / Multi-regional location for United States.
- \ "us"
- 5 / Taiwan.
- \ "asia-east1"
- 6 / Tokyo.
- \ "asia-northeast1"
- 7 / Singapore.
- \ "asia-southeast1"
- 8 / Sydney.
- \ "australia-southeast1"
- 9 / Belgium.
- \ "europe-west1"
-10 / London.
- \ "europe-west2"
-11 / Iowa.
- \ "us-central1"
-12 / South Carolina.
- \ "us-east1"
-13 / Northern Virginia.
- \ "us-east4"
-14 / Oregon.
- \ "us-west1"
-location> 12
-The storage class to use when storing objects in Google Cloud Storage.
-Choose a number from below, or type in your own value
- 1 / Default
- \ ""
- 2 / Multi-regional storage class
- \ "MULTI_REGIONAL"
- 3 / Regional storage class
- \ "REGIONAL"
- 4 / Nearline storage class
- \ "NEARLINE"
- 5 / Coldline storage class
- \ "COLDLINE"
- 6 / Durable reduced availability storage class
- \ "DURABLE_REDUCED_AVAILABILITY"
-storage_class> 5
+16 / http Connection
+ \ "http"
+Storage> box
+Box App Client Id - leave blank normally.
+client_id>
+Box App Client Secret - leave blank normally.
+client_secret>
Remote config
Use auto config?
* Say Y if not sure
- * Say N if you are working on a remote or headless machine or Y didn't work
+ * Say N if you are working on a remote or headless machine
y) Yes
n) No
y/n> y
@@ -4068,13 +4371,9 @@ Waiting for code...
Got code
--------------------
[remote]
-type = google cloud storage
-client_id =
-client_secret =
-token = {"AccessToken":"xxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"x/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxx","Expiry":"2014-07-17T20:49:14.929208288+01:00","Extra":null}
-project_number = 12345678
-object_acl = private
-bucket_acl = private
+client_id =
+client_secret =
+token = {"access_token":"XXX","token_type":"bearer","refresh_token":"XXX","expiry":"XXX"}
--------------------
y) Yes this is OK
e) Edit this remote
@@ -4082,155 +4381,92 @@ d) Delete this remote
y/e/d> y
```
+See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
+machine with no Internet browser available.
+
Note that rclone runs a webserver on your local machine to collect the
-token as returned from Google if you use auto config mode. This only
-runs from the moment it opens your browser to the moment you get back
-the verification code. This is on `http://127.0.0.1:53682/` and this
-it may require you to unblock it temporarily if you are running a host
-firewall, or use manual mode.
+token as returned from Box. This only runs from the moment it opens
+your browser to the moment you get back the verification code. This
+is on `http://127.0.0.1:53682/` and this it may require you to unblock
+it temporarily if you are running a host firewall.
-This remote is called `remote` and can now be used like this
+Once configured you can then use `rclone` like this,
-See all the buckets in your project
+List directories in top level of your Box
rclone lsd remote:
-Make a new bucket
+List all the files in your Box
- rclone mkdir remote:bucket
+ rclone ls remote:
-List the contents of a bucket
+To copy a local directory to an Box directory called backup
- rclone ls remote:bucket
+ rclone copy /home/source remote:backup
-Sync `/home/local/directory` to the remote bucket, deleting any excess
-files in the bucket.
+### Invalid refresh token ###
- rclone sync /home/local/directory remote:bucket
-
-### Service Account support ###
-
-You can set up rclone with Google Cloud Storage in an unattended mode,
-i.e. not tied to a specific end-user Google account. This is useful
-when you want to synchronise files onto machines that don't have
-actively logged-in users, for example build machines.
-
-To get credentials for Google Cloud Platform
-[IAM Service Accounts](https://cloud.google.com/iam/docs/service-accounts),
-please head to the
-[Service Account](https://console.cloud.google.com/permissions/serviceaccounts)
-section of the Google Developer Console. Service Accounts behave just
-like normal `User` permissions in
-[Google Cloud Storage ACLs](https://cloud.google.com/storage/docs/access-control),
-so you can limit their access (e.g. make them read only). After
-creating an account, a JSON file containing the Service Account's
-credentials will be downloaded onto your machines. These credentials
-are what rclone will use for authentication.
-
-To use a Service Account instead of OAuth2 token flow, enter the path
-to your Service Account credentials at the `service_account_file`
-prompt and rclone won't use the browser based authentication
-flow.
-
-### --fast-list ###
-
-This remote supports `--fast-list` which allows you to use fewer
-transactions in exchange for more memory. See the [rclone
-docs](/docs/#fast-list) for more details.
-
-### Modified time ###
-
-Google google cloud storage stores md5sums natively and rclone stores
-modification times as metadata on the object, under the "mtime" key in
-RFC3339 format accurate to 1ns.
-
-Amazon Drive
------------------------------------------
+According to the [box docs](https://developer.box.com/v2.0/docs/oauth-20#section-6-using-the-access-and-refresh-tokens):
-Paths are specified as `remote:path`
-
-Paths may be as deep as required, eg `remote:directory/subdirectory`.
+> Each refresh_token is valid for one use in 60 days.
-The initial setup for Amazon Drive involves getting a token from
-Amazon which you need to do in your browser. `rclone config` walks
-you through it.
+This means that if you
-The configuration process for Amazon Drive may involve using an [oauth
-proxy](https://github.com/ncw/oauthproxy). This is used to keep the
-Amazon credentials out of the source code. The proxy runs in Google's
-very secure App Engine environment and doesn't store any credentials
-which pass through it.
+ * Don't use the box remote for 60 days
+ * Copy the config file with a box refresh token in and use it in two places
+ * Get an error on a token refresh
-**NB** rclone doesn't not currently have its own Amazon Drive
-credentials (see [the
-forum](https://forum.rclone.org/t/rclone-has-been-banned-from-amazon-drive/)
-for why) so you will either need to have your own `client_id` and
-`client_secret` with Amazon Drive, or use a a third party ouath proxy
-in which case you will need to enter `client_id`, `client_secret`,
-`auth_url` and `token_url`.
+then rclone will return an error which includes the text `Invalid
+refresh token`.
-Note also if you are not using Amazon's `auth_url` and `token_url`,
-(ie you filled in something for those) then if setting up on a remote
-machine you can only use the [copying the config method of
-configuration](https://rclone.org/remote_setup/#configuring-by-copying-the-config-file)
-- `rclone authorize` will not work.
+To fix this you will need to use oauth2 again to update the refresh
+token. You can use the methods in [the remote setup
+docs](https://rclone.org/remote_setup/), bearing in mind that if you use the copy the
+config file method, you should not use that remote on the computer you
+did the authentication on.
-Here is an example of how to make a remote called `remote`. First run:
+Here is how to do it.
- rclone config
+```
+$ rclone config
+Current remotes:
-This will guide you through an interactive setup process:
+Name Type
+==== ====
+remote box
-```
-No remotes found - make a new one
+e) Edit existing remote
n) New remote
+d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
-n/r/c/s/q> n
-name> remote
-Type of storage to configure.
-Choose a number from below, or type in your own value
- 1 / Amazon Drive
- \ "amazon cloud drive"
- 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
- \ "s3"
- 3 / Backblaze B2
- \ "b2"
- 4 / Dropbox
- \ "dropbox"
- 5 / Encrypt/Decrypt a remote
- \ "crypt"
- 6 / FTP Connection
- \ "ftp"
- 7 / Google Cloud Storage (this is not Google Drive)
- \ "google cloud storage"
- 8 / Google Drive
- \ "drive"
- 9 / Hubic
- \ "hubic"
-10 / Local Disk
- \ "local"
-11 / Microsoft OneDrive
- \ "onedrive"
-12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
- \ "swift"
-13 / SSH/SFTP Connection
- \ "sftp"
-14 / Yandex Disk
- \ "yandex"
-Storage> 1
-Amazon Application Client Id - required.
-client_id> your client ID goes here
-Amazon Application Client Secret - required.
-client_secret> your client secret goes here
-Auth server URL - leave blank to use Amazon's.
-auth_url> Optional auth URL
-Token server url - leave blank to use Amazon's.
-token_url> Optional token URL
+e/n/d/r/c/s/q> e
+Choose a number from below, or type in an existing value
+ 1 > remote
+remote> remote
+--------------------
+[remote]
+type = box
+token = {"access_token":"XXX","token_type":"bearer","refresh_token":"XXX","expiry":"2017-07-08T23:40:08.059167677+01:00"}
+--------------------
+Edit remote
+Value "client_id" = ""
+Edit? (y/n)>
+y) Yes
+n) No
+y/n> n
+Value "client_secret" = ""
+Edit? (y/n)>
+y) Yes
+n) No
+y/n> n
Remote config
-Make sure your Redirect URL is set to "http://127.0.0.1:53682/" in your custom config.
+Already have a token - refresh?
+y) Yes
+n) No
+y/n> y
Use auto config?
* Say Y if not sure
* Say N if you are working on a remote or headless machine
@@ -4243,11 +4479,8 @@ Waiting for code...
Got code
--------------------
[remote]
-client_id = your client ID goes here
-client_secret = your client secret goes here
-auth_url = Optional auth URL
-token_url = Optional token URL
-token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxx","token_type":"bearer","refresh_token":"xxxxxxxxxxxxxxxxxx","expiry":"2015-09-06T16:07:39.658438471+01:00"}
+type = box
+token = {"access_token":"YYY","token_type":"bearer","refresh_token":"YYY","expiry":"2017-07-23T12:22:29.259137901+01:00"}
--------------------
y) Yes this is OK
e) Edit this remote
@@ -4255,136 +4488,76 @@ d) Delete this remote
y/e/d> y
```
-See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
-machine with no Internet browser available.
-
-Note that rclone runs a webserver on your local machine to collect the
-token as returned from Amazon. This only runs from the moment it
-opens your browser to the moment you get back the verification
-code. This is on `http://127.0.0.1:53682/` and this it may require
-you to unblock it temporarily if you are running a host firewall.
-
-Once configured you can then use `rclone` like this,
-
-List directories in top level of your Amazon Drive
-
- rclone lsd remote:
-
-List all the files in your Amazon Drive
-
- rclone ls remote:
-
-To copy a local directory to an Amazon Drive directory called backup
+### Modified time and hashes ###
- rclone copy /home/source remote:backup
+Box allows modification times to be set on objects accurate to 1
+second. These will be used to detect whether objects need syncing or
+not.
-### Modified time and MD5SUMs ###
+One drive supports SHA1 type hashes, so you can use the `--checksum`
+flag.
-Amazon Drive doesn't allow modification times to be changed via
-the API so these won't be accurate or used for syncing.
+### Transfers ###
-It does store MD5SUMs so for a more accurate sync, you can use the
-`--checksum` flag.
+For files above 50MB rclone will use a chunked transfer. Rclone will
+upload up to `--transfers` chunks at the same time (shared among all
+the multipart uploads). Chunks are buffered in memory and are
+normally 8MB so increasing `--transfers` will increase memory use.
### Deleting files ###
-Any files you delete with rclone will end up in the trash. Amazon
-don't provide an API to permanently delete files, nor to empty the
-trash, so you will have to do that with one of Amazon's apps or via
-the Amazon Drive website. As of November 17, 2016, files are
-automatically deleted by Amazon from the trash after 30 days.
-
-### Using with non `.com` Amazon accounts ###
-
-Let's say you usually use `amazon.co.uk`. When you authenticate with
-rclone it will take you to an `amazon.com` page to log in. Your
-`amazon.co.uk` email and password should work here just fine.
+Depending on the enterprise settings for your user, the item will
+either be actually deleted from Box or moved to the trash.
### Specific options ###
Here are the command line options specific to this cloud storage
system.
-#### --acd-templink-threshold=SIZE ####
-
-Files this size or more will be downloaded via their `tempLink`. This
-is to work around a problem with Amazon Drive which blocks downloads
-of files bigger than about 10GB. The default for this is 9GB which
-shouldn't need to be changed.
-
-To download files above this threshold, rclone requests a `tempLink`
-which downloads the file through a temporary URL directly from the
-underlying S3 storage.
-
-#### --acd-upload-wait-per-gb=TIME ####
-
-Sometimes Amazon Drive gives an error when a file has been fully
-uploaded but the file appears anyway after a little while. This
-happens sometimes for files over 1GB in size and nearly every time for
-files bigger than 10GB. This parameter controls the time rclone waits
-for the file to appear.
-
-The default value for this parameter is 3 minutes per GB, so by
-default it will wait 3 minutes for every GB uploaded to see if the
-file appears.
-
-You can disable this feature by setting it to 0. This may cause
-conflict errors as rclone retries the failed upload but the file will
-most likely appear correctly eventually.
-
-These values were determined empirically by observing lots of uploads
-of big files for a range of file sizes.
+#### --box-upload-cutoff=SIZE ####
-Upload with the `-v` flag to see more info about what rclone is doing
-in this situation.
+Cutoff for switching to chunked upload - must be >= 50MB. The default
+is 50MB.
### Limitations ###
-Note that Amazon Drive is case insensitive so you can't have a
-file called "Hello.doc" and one called "hello.doc".
-
-Amazon Drive has rate limiting so you may notice errors in the
-sync (429 errors). rclone will automatically retry the sync up to 3
-times by default (see `--retries` flag) which should hopefully work
-around this problem.
-
-Amazon Drive has an internal limit of file sizes that can be uploaded
-to the service. This limit is not officially published, but all files
-larger than this will fail.
-
-At the time of writing (Jan 2016) is in the area of 50GB per file.
-This means that larger files are likely to fail.
-
-Unfortunately there is no way for rclone to see that this failure is
-because of file size, so it will retry the operation, as any other
-failure. To avoid this problem, use `--max-size 50000M` option to limit
-the maximum size of uploaded files. Note that `--max-size` does not split
-files into segments, it only ignores files over this size.
+Note that Box is case insensitive so you can't have a file called
+"Hello.doc" and one called "hello.doc".
-Microsoft OneDrive
------------------------------------------
+Box file names can't have the `\` character in. rclone maps this to
+and from an identical looking unicode equivalent `\`.
-Paths are specified as `remote:path`
+Box only supports filenames up to 255 characters in length.
-Paths may be as deep as required, eg `remote:directory/subdirectory`.
+Crypt
+----------------------------------------
-The initial setup for OneDrive involves getting a token from
-Microsoft which you need to do in your browser. `rclone config` walks
-you through it.
+The `crypt` remote encrypts and decrypts another remote.
-Here is an example of how to make a remote called `remote`. First run:
+To use it first set up the underlying remote following the config
+instructions for that remote. You can also use a local pathname
+instead of a remote which will encrypt and decrypt from that directory
+which might be useful for encrypting onto a USB stick for example.
- rclone config
+First check your chosen remote is working - we'll call it
+`remote:path` in these docs. Note that anything inside `remote:path`
+will be encrypted and anything outside won't. This means that if you
+are using a bucket based remote (eg S3, B2, swift) then you should
+probably put the bucket in the remote `s3:bucket`. If you just use
+`s3:` then rclone will make encrypted bucket names too (if using file
+name encryption) which may or may not be what you want.
-This will guide you through an interactive setup process:
+Now configure `crypt` using `rclone config`. We will call this one
+`secret` to differentiate it from the `remote`.
```
No remotes found - make a new one
n) New remote
s) Set configuration password
-n/s> n
-name> remote
-Type of storage to configure.
+q) Quit config
+n/s/q> n
+name> secret
+Type of storage to configure.
Choose a number from below, or type in your own value
1 / Amazon Drive
\ "amazon cloud drive"
@@ -4412,27 +4585,51 @@ Choose a number from below, or type in your own value
\ "sftp"
13 / Yandex Disk
\ "yandex"
-Storage> 10
-Microsoft App Client Id - leave blank normally.
-client_id>
-Microsoft App Client Secret - leave blank normally.
-client_secret>
-Remote config
-Use auto config?
- * Say Y if not sure
- * Say N if you are working on a remote or headless machine
+Storage> 5
+Remote to encrypt/decrypt.
+Normally should contain a ':' and a path, eg "myremote:path/to/dir",
+"myremote:bucket" or maybe "myremote:" (not recommended).
+remote> remote:path
+How to encrypt the filenames.
+Choose a number from below, or type in your own value
+ 1 / Don't encrypt the file names. Adds a ".bin" extension only.
+ \ "off"
+ 2 / Encrypt the filenames see the docs for the details.
+ \ "standard"
+ 3 / Very simple filename obfuscation.
+ \ "obfuscate"
+filename_encryption> 2
+Password or pass phrase for encryption.
+y) Yes type in my own password
+g) Generate random password
+y/g> y
+Enter the password:
+password:
+Confirm the password:
+password:
+Password or pass phrase for salt. Optional but recommended.
+Should be different to the previous password.
+y) Yes type in my own password
+g) Generate random password
+n) No leave this optional password blank
+y/g/n> g
+Password strength in bits.
+64 is just about memorable
+128 is secure
+1024 is the maximum
+Bits> 128
+Your password is: JAsJvRcgR-_veXNfy_sGmQ
+Use this password?
y) Yes
n) No
y/n> y
-If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
-Log in and authorize rclone for access
-Waiting for code...
-Got code
+Remote config
--------------------
-[remote]
-client_id =
-client_secret =
-token = {"access_token":"XXXXXX"}
+[secret]
+remote = remote:path
+filename_encryption = standard
+password = *** ENCRYPTED ***
+password2 = *** ENCRYPTED ***
--------------------
y) Yes this is OK
e) Edit this remote
@@ -4440,232 +4637,326 @@ d) Delete this remote
y/e/d> y
```
-See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
-machine with no Internet browser available.
+**Important** The password is stored in the config file is lightly
+obscured so it isn't immediately obvious what it is. It is in no way
+secure unless you use config file encryption.
-Note that rclone runs a webserver on your local machine to collect the
-token as returned from Microsoft. This only runs from the moment it
-opens your browser to the moment you get back the verification
-code. This is on `http://127.0.0.1:53682/` and this it may require
-you to unblock it temporarily if you are running a host firewall.
+A long passphrase is recommended, or you can use a random one. Note
+that if you reconfigure rclone with the same passwords/passphrases
+elsewhere it will be compatible - all the secrets used are derived
+from those two passwords/passphrases.
-Once configured you can then use `rclone` like this,
+Note that rclone does not encrypt
-List directories in top level of your OneDrive
+ * file length - this can be calcuated within 16 bytes
+ * modification time - used for syncing
- rclone lsd remote:
+## Specifying the remote ##
-List all the files in your OneDrive
+In normal use, make sure the remote has a `:` in. If you specify the
+remote without a `:` then rclone will use a local directory of that
+name. So if you use a remote of `/path/to/secret/files` then rclone
+will encrypt stuff to that directory. If you use a remote of `name`
+then rclone will put files in a directory called `name` in the current
+directory.
- rclone ls remote:
+If you specify the remote as `remote:path/to/dir` then rclone will
+store encrypted files in `path/to/dir` on the remote. If you are using
+file name encryption, then when you save files to
+`secret:subdir/subfile` this will store them in the unencrypted path
+`path/to/dir` but the `subdir/subpath` bit will be encrypted.
-To copy a local directory to an OneDrive directory called backup
+Note that unless you want encrypted bucket names (which are difficult
+to manage because you won't know what directory they represent in web
+interfaces etc), you should probably specify a bucket, eg
+`remote:secretbucket` when using bucket based remotes such as S3,
+Swift, Hubic, B2, GCS.
- rclone copy /home/source remote:backup
+## Example ##
-### Modified time and hashes ###
+To test I made a little directory of files using "standard" file name
+encryption.
-OneDrive allows modification times to be set on objects accurate to 1
-second. These will be used to detect whether objects need syncing or
-not.
+```
+plaintext/
+├── file0.txt
+├── file1.txt
+└── subdir
+ ├── file2.txt
+ ├── file3.txt
+ └── subsubdir
+ └── file4.txt
+```
-One drive supports SHA1 type hashes, so you can use `--checksum` flag.
+Copy these to the remote and list them back
+```
+$ rclone -q copy plaintext secret:
+$ rclone -q ls secret:
+ 7 file1.txt
+ 6 file0.txt
+ 8 subdir/file2.txt
+ 10 subdir/subsubdir/file4.txt
+ 9 subdir/file3.txt
+```
-### Deleting files ###
+Now see what that looked like when encrypted
-Any files you delete with rclone will end up in the trash. Microsoft
-doesn't provide an API to permanently delete files, nor to empty the
-trash, so you will have to do that with one of Microsoft's apps or via
-the OneDrive website.
+```
+$ rclone -q ls remote:path
+ 55 hagjclgavj2mbiqm6u6cnjjqcg
+ 54 v05749mltvv1tf4onltun46gls
+ 57 86vhrsv86mpbtd3a0akjuqslj8/dlj7fkq4kdq72emafg7a7s41uo
+ 58 86vhrsv86mpbtd3a0akjuqslj8/7uu829995du6o42n32otfhjqp4/b9pausrfansjth5ob3jkdqd4lc
+ 56 86vhrsv86mpbtd3a0akjuqslj8/8njh1sk437gttmep3p70g81aps
+```
-### Specific options ###
+Note that this retains the directory structure which means you can do this
-Here are the command line options specific to this cloud storage
-system.
+```
+$ rclone -q ls secret:subdir
+ 8 file2.txt
+ 9 file3.txt
+ 10 subsubdir/file4.txt
+```
-#### --onedrive-chunk-size=SIZE ####
+If don't use file name encryption then the remote will look like this
+- note the `.bin` extensions added to prevent the cloud provider
+attempting to interpret the data.
-Above this size files will be chunked - must be multiple of 320k. The
-default is 10MB. Note that the chunks will be buffered into memory.
+```
+$ rclone -q ls remote:path
+ 54 file0.txt.bin
+ 57 subdir/file3.txt.bin
+ 56 subdir/file2.txt.bin
+ 58 subdir/subsubdir/file4.txt.bin
+ 55 file1.txt.bin
+```
-#### --onedrive-upload-cutoff=SIZE ####
+### File name encryption modes ###
-Cutoff for switching to chunked upload - must be <= 100MB. The default
-is 10MB.
+Here are some of the features of the file name encryption modes
-### Limitations ###
+Off
-Note that OneDrive is case insensitive so you can't have a
-file called "Hello.doc" and one called "hello.doc".
+ * doesn't hide file names or directory structure
+ * allows for longer file names (~246 characters)
+ * can use sub paths and copy single files
-Rclone only supports your default OneDrive, and doesn't work with One
-Drive for business. Both these issues may be fixed at some point
-depending on user demand!
+Standard
-There are quite a few characters that can't be in OneDrive file
-names. These can't occur on Windows platforms, but on non-Windows
-platforms they are common. Rclone will map these names to and from an
-identical looking unicode equivalent. For example if a file has a `?`
-in it will be mapped to `?` instead.
+ * file names encrypted
+ * file names can't be as long (~156 characters)
+ * can use sub paths and copy single files
+ * directory structure visibile
+ * identical files names will have identical uploaded names
+ * can use shortcuts to shorten the directory recursion
-The largest allowed file size is 10GiB (10,737,418,240 bytes).
+Obfuscation
-Hubic
------------------------------------------
+This is a simple "rotate" of the filename, with each file having a rot
+distance based on the filename. We store the distance at the beginning
+of the filename. So a file called "hello" may become "53.jgnnq"
-Paths are specified as `remote:path`
+This is not a strong encryption of filenames, but it may stop automated
+scanning tools from picking up on filename patterns. As such it's an
+intermediate between "off" and "standard". The advantage is that it
+allows for longer path segment names.
-Paths are specified as `remote:container` (or `remote:` for the `lsd`
-command.) You may put subdirectories in too, eg `remote:container/path/to/dir`.
+There is a possibility with some unicode based filenames that the
+obfuscation is weak and may map lower case characters to upper case
+equivalents. You can not rely on this for strong protection.
-The initial setup for Hubic involves getting a token from Hubic which
-you need to do in your browser. `rclone config` walks you through it.
+ * file names very lightly obfuscated
+ * file names can be longer than standard encryption
+ * can use sub paths and copy single files
+ * directory structure visibile
+ * identical files names will have identical uploaded names
-Here is an example of how to make a remote called `remote`. First run:
+Cloud storage systems have various limits on file name length and
+total path length which you are more likely to hit using "Standard"
+file name encryption. If you keep your file names to below 156
+characters in length then you should be OK on all providers.
- rclone config
+There may be an even more secure file name encryption mode in the
+future which will address the long file name problem.
-This will guide you through an interactive setup process:
+### Modified time and hashes ###
-```
-n) New remote
-s) Set configuration password
-n/s> n
-name> remote
-Type of storage to configure.
-Choose a number from below, or type in your own value
- 1 / Amazon Drive
- \ "amazon cloud drive"
- 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
- \ "s3"
- 3 / Backblaze B2
- \ "b2"
- 4 / Dropbox
- \ "dropbox"
- 5 / Encrypt/Decrypt a remote
- \ "crypt"
- 6 / Google Cloud Storage (this is not Google Drive)
- \ "google cloud storage"
- 7 / Google Drive
- \ "drive"
- 8 / Hubic
- \ "hubic"
- 9 / Local Disk
- \ "local"
-10 / Microsoft OneDrive
- \ "onedrive"
-11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
- \ "swift"
-12 / SSH/SFTP Connection
- \ "sftp"
-13 / Yandex Disk
- \ "yandex"
-Storage> 8
-Hubic Client Id - leave blank normally.
-client_id>
-Hubic Client Secret - leave blank normally.
-client_secret>
-Remote config
-Use auto config?
- * Say Y if not sure
- * Say N if you are working on a remote or headless machine
-y) Yes
-n) No
-y/n> y
-If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
-Log in and authorize rclone for access
-Waiting for code...
-Got code
---------------------
-[remote]
-client_id =
-client_secret =
-token = {"access_token":"XXXXXX"}
---------------------
-y) Yes this is OK
-e) Edit this remote
-d) Delete this remote
-y/e/d> y
-```
+Crypt stores modification times using the underlying remote so support
+depends on that.
-See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
-machine with no Internet browser available.
+Hashes are not stored for crypt. However the data integrity is
+protected by an extremely strong crypto authenticator.
-Note that rclone runs a webserver on your local machine to collect the
-token as returned from Hubic. This only runs from the moment it opens
-your browser to the moment you get back the verification code. This
-is on `http://127.0.0.1:53682/` and this it may require you to unblock
-it temporarily if you are running a host firewall.
+Note that you should use the `rclone cryptcheck` command to check the
+integrity of a crypted remote instead of `rclone check` which can't
+check the checksums properly.
-Once configured you can then use `rclone` like this,
+### Specific options ###
-List containers in the top level of your Hubic
+Here are the command line options specific to this cloud storage
+system.
- rclone lsd remote:
+#### --crypt-show-mapping ####
-List all the files in your Hubic
+If this flag is set then for each file that the remote is asked to
+list, it will log (at level INFO) a line stating the decrypted file
+name and the encrypted file name.
- rclone ls remote:
+This is so you can work out which encrypted names are which decrypted
+names just in case you need to do something with the encrypted file
+names, or for debugging purposes.
-To copy a local directory to an Hubic directory called backup
+## Backing up a crypted remote ##
- rclone copy /home/source remote:backup
+If you wish to backup a crypted remote, it it recommended that you use
+`rclone sync` on the encrypted files, and make sure the passwords are
+the same in the new encrypted remote.
-If you want the directory to be visible in the official *Hubic
-browser*, you need to copy your files to the `default` directory
+This will have the following advantages
- rclone copy /home/source remote:default/backup
+ * `rclone sync` will check the checksums while copying
+ * you can use `rclone check` between the encrypted remotes
+ * you don't decrypt and encrypt unecessarily
-### --fast-list ###
+For example, let's say you have your original remote at `remote:` with
+the encrypted version at `eremote:` with path `remote:crypt`. You
+would then set up the new remote `remote2:` and then the encrypted
+version `eremote2:` with path `remote2:crypt` using the same passwords
+as `eremote:`.
-This remote supports `--fast-list` which allows you to use fewer
-transactions in exchange for more memory. See the [rclone
-docs](/docs/#fast-list) for more details.
+To sync the two remotes you would do
-### Modified time ###
+ rclone sync remote:crypt remote2:crypt
-The modified time is stored as metadata on the object as
-`X-Object-Meta-Mtime` as floating point since the epoch accurate to 1
-ns.
+And to check the integrity you would do
-This is a defacto standard (used in the official python-swiftclient
-amongst others) for storing the modification time for an object.
+ rclone check remote:crypt remote2:crypt
-Note that Hubic wraps the Swift backend, so most of the properties of
-are the same.
+## File formats ##
-### Limitations ###
+### File encryption ###
-This uses the normal OpenStack Swift mechanism to refresh the Swift
-API credentials and ignores the expires field returned by the Hubic
-API.
+Files are encrypted 1:1 source file to destination object. The file
+has a header and is divided into chunks.
-The Swift API doesn't return a correct MD5SUM for segmented files
-(Dynamic or Static Large Objects) so rclone won't check or use the
-MD5SUM for these.
+#### Header ####
-Backblaze B2
-----------------------------------------
+ * 8 bytes magic string `RCLONE\x00\x00`
+ * 24 bytes Nonce (IV)
-B2 is [Backblaze's cloud storage system](https://www.backblaze.com/b2/).
+The initial nonce is generated from the operating systems crypto
+strong random number genrator. The nonce is incremented for each
+chunk read making sure each nonce is unique for each block written.
+The chance of a nonce being re-used is miniscule. If you wrote an
+exabyte of data (10¹⁸ bytes) you would have a probability of
+approximately 2×10⁻³² of re-using a nonce.
-Paths are specified as `remote:bucket` (or `remote:` for the `lsd`
-command.) You may put subdirectories in too, eg `remote:bucket/path/to/dir`.
+#### Chunk ####
-Here is an example of making a b2 configuration. First run
+Each chunk will contain 64kB of data, except for the last one which
+may have less data. The data chunk is in standard NACL secretbox
+format. Secretbox uses XSalsa20 and Poly1305 to encrypt and
+authenticate messages.
- rclone config
+Each chunk contains:
-This will guide you through an interactive setup process. You will
-need your account number (a short hex number) and key (a long hex
-number) which you can get from the b2 control panel.
+ * 16 Bytes of Poly1305 authenticator
+ * 1 - 65536 bytes XSalsa20 encrypted data
+
+64k chunk size was chosen as the best performing chunk size (the
+authenticator takes too much time below this and the performance drops
+off due to cache effects above this). Note that these chunks are
+buffered in memory so they can't be too big.
+
+This uses a 32 byte (256 bit key) key derived from the user password.
+
+#### Examples ####
+
+1 byte file will encrypt to
+
+ * 32 bytes header
+ * 17 bytes data chunk
+
+49 bytes total
+
+1MB (1048576 bytes) file will encrypt to
+
+ * 32 bytes header
+ * 16 chunks of 65568 bytes
+
+1049120 bytes total (a 0.05% overhead). This is the overhead for big
+files.
+
+### Name encryption ###
+
+File names are encrypted segment by segment - the path is broken up
+into `/` separated strings and these are encrypted individually.
+
+File segments are padded using using PKCS#7 to a multiple of 16 bytes
+before encryption.
+
+They are then encrypted with EME using AES with 256 bit key. EME
+(ECB-Mix-ECB) is a wide-block encryption mode presented in the 2003
+paper "A Parallelizable Enciphering Mode" by Halevi and Rogaway.
+
+This makes for determinstic encryption which is what we want - the
+same filename must encrypt to the same thing otherwise we can't find
+it on the cloud storage system.
+
+This means that
+
+ * filenames with the same name will encrypt the same
+ * filenames which start the same won't have a common prefix
+
+This uses a 32 byte key (256 bits) and a 16 byte (128 bits) IV both of
+which are derived from the user password.
+
+After encryption they are written out using a modified version of
+standard `base32` encoding as described in RFC4648. The standard
+encoding is modified in two ways:
+
+ * it becomes lower case (no-one likes upper case filenames!)
+ * we strip the padding character `=`
+
+`base32` is used rather than the more efficient `base64` so rclone can be
+used on case insensitive remotes (eg Windows, Amazon Drive).
+
+### Key derivation ###
+
+Rclone uses `scrypt` with parameters `N=16384, r=8, p=1` with a an
+optional user supplied salt (password2) to derive the 32+32+16 = 80
+bytes of key material required. If the user doesn't supply a salt
+then rclone uses an internal one.
+
+`scrypt` makes it impractical to mount a dictionary attack on rclone
+encrypted data. For full protection agains this you should always use
+a salt.
+
+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:
```
-No remotes found - make a new one
n) New remote
+d) Delete remote
q) Quit config
-n/q> n
+e/n/d/q> n
name> remote
Type of storage to configure.
Choose a number from below, or type in your own value
@@ -4695,19 +4986,20 @@ Choose a number from below, or type in your own value
\ "sftp"
13 / Yandex Disk
\ "yandex"
-Storage> 3
-Account ID
-account> 123456789abc
-Application Key
-key> 0123456789abcdef0123456789abcdef0123456789
-Endpoint for the service - leave blank normally.
-endpoint>
+Storage> 4
+Dropbox App Key - leave blank normally.
+app_key>
+Dropbox App Secret - leave blank normally.
+app_secret>
Remote config
+Please visit:
+https://www.dropbox.com/1/oauth2/authorize?client_id=XXXXXXXXXXXXXXX&response_type=code
+Enter the code: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXXXXXXXX
--------------------
[remote]
-account = 123456789abc
-key = 0123456789abcdef0123456789abcdef0123456789
-endpoint =
+app_key =
+app_secret =
+token = XXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXX_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
--------------------
y) Yes this is OK
e) Edit this remote
@@ -4715,251 +5007,911 @@ d) Delete this remote
y/e/d> y
```
-This remote is called `remote` and can now be used like this
+You can then use it like this,
-See all buckets
+List directories in top level of your dropbox
rclone lsd remote:
-Make a new bucket
+List all the files in your dropbox
- rclone mkdir remote:bucket
+ rclone ls remote:
-List the contents of a bucket
+To copy a local directory to a dropbox directory called backup
- rclone ls remote:bucket
+ rclone copy /home/source remote:backup
-Sync `/home/local/directory` to the remote bucket, deleting any
-excess files in the bucket.
+### Modified time and Hashes ###
- rclone sync /home/local/directory remote:bucket
+Dropbox supports modified times, but the only way to set a
+modification time is to re-upload the file.
-### --fast-list ###
+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.
-This remote supports `--fast-list` which allows you to use fewer
-transactions in exchange for more memory. See the [rclone
-docs](/docs/#fast-list) for more details.
+Dropbox supports [its own hash
+type](https://www.dropbox.com/developers/reference/content-hash) which
+is checked for all transfers.
-### Modified time ###
+### Specific options ###
-The modified time is stored as metadata on the object as
-`X-Bz-Info-src_last_modified_millis` as milliseconds since 1970-01-01
-in the Backblaze standard. Other tools should be able to use this as
-a modified time.
+Here are the command line options specific to this cloud storage
+system.
-Modified times are used in syncing and are fully supported except in
-the case of updating a modification time on an existing object. In
-this case the object will be uploaded again as B2 doesn't have an API
-method to set the modification time independent of doing an upload.
+#### --dropbox-chunk-size=SIZE ####
-### SHA1 checksums ###
+Upload chunk size. Max 150M. The default is 128MB. Note that this
+isn't buffered into memory.
-The SHA1 checksums of the files are checked on upload and download and
-will be used in the syncing process.
+### Limitations ###
-Large files which are uploaded in chunks will store their SHA1 on the
-object as `X-Bz-Info-large_file_sha1` as recommended by Backblaze.
+Note that Dropbox is case insensitive so you can't have a file called
+"Hello.doc" and one called "hello.doc".
-### Transfers ###
+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
+attempt to upload one of those file names, but the sync won't fail.
-Backblaze recommends that you do lots of transfers simultaneously for
-maximum speed. In tests from my SSD equiped laptop the optimum
-setting is about `--transfers 32` though higher numbers may be used
-for a slight speed improvement. The optimum number for you may vary
-depending on your hardware, how big the files are, how much you want
-to load your computer, etc. The default of `--transfers 4` is
-definitely too low for Backblaze B2 though.
+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 dropbox:dir` followed by an `rclone rmdir dropbox:dir`.
-Note that uploading big files (bigger than 200 MB by default) will use
-a 96 MB RAM buffer by default. There can be at most `--transfers` of
-these in use at any moment, so this sets the upper limit on the memory
-used.
+FTP
+------------------------------
-### Versions ###
+FTP is the File Transfer Protocol. FTP support is provided using the
+[github.com/jlaffaye/ftp](https://godoc.org/github.com/jlaffaye/ftp)
+package.
-When rclone uploads a new version of a file it creates a [new version
-of it](https://www.backblaze.com/b2/docs/file_versions.html).
-Likewise when you delete a file, the old version will still be
-available.
+Here is an example of making an FTP configuration. First run
-Old versions of files are visible using the `--b2-versions` flag.
+ rclone config
-If you wish to remove all the old versions then you can use the
-`rclone cleanup remote:bucket` command which will delete all the old
-versions of files, leaving the current ones intact. You can also
-supply a path and only old versions under that path will be deleted,
-eg `rclone cleanup remote:bucket/path/to/stuff`.
+This will guide you through an interactive setup process. An FTP remote only
+needs a host together with and a username and a password. With anonymous FTP
+server, you will need to use `anonymous` as username and your email address as
+the password.
-When you `purge` a bucket, the current and the old versions will be
-deleted then the bucket will be deleted.
+```
+No remotes found - make a new one
+n) New remote
+r) Rename remote
+c) Copy remote
+s) Set configuration password
+q) Quit config
+n/r/c/s/q> n
+name> remote
+Type of storage to configure.
+Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ "amazon cloud drive"
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ "s3"
+ 3 / Backblaze B2
+ \ "b2"
+ 4 / Dropbox
+ \ "dropbox"
+ 5 / Encrypt/Decrypt a remote
+ \ "crypt"
+ 6 / FTP Connection
+ \ "ftp"
+ 7 / Google Cloud Storage (this is not Google Drive)
+ \ "google cloud storage"
+ 8 / Google Drive
+ \ "drive"
+ 9 / Hubic
+ \ "hubic"
+10 / Local Disk
+ \ "local"
+11 / Microsoft OneDrive
+ \ "onedrive"
+12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ \ "swift"
+13 / SSH/SFTP Connection
+ \ "sftp"
+14 / Yandex Disk
+ \ "yandex"
+Storage> ftp
+FTP host to connect to
+Choose a number from below, or type in your own value
+ 1 / Connect to ftp.example.com
+ \ "ftp.example.com"
+host> ftp.example.com
+FTP username, leave blank for current username, ncw
+user>
+FTP port, leave blank to use default (21)
+port>
+FTP password
+y) Yes type in my own password
+g) Generate random password
+y/g> y
+Enter the password:
+password:
+Confirm the password:
+password:
+Remote config
+--------------------
+[remote]
+host = ftp.example.com
+user =
+port =
+pass = *** ENCRYPTED ***
+--------------------
+y) Yes this is OK
+e) Edit this remote
+d) Delete this remote
+y/e/d> y
+```
-However `delete` will cause the current versions of the files to
-become hidden old versions.
+This remote is called `remote` and can now be used like this
-Here is a session showing the listing and and retreival of an old
-version followed by a `cleanup` of the old versions.
+See all directories in the home directory
-Show current version and all the versions with `--b2-versions` flag.
+ rclone lsd remote:
-```
-$ rclone -q ls b2:cleanup-test
- 9 one.txt
+Make a new directory
-$ rclone -q --b2-versions ls b2:cleanup-test
- 9 one.txt
- 8 one-v2016-07-04-141032-000.txt
- 16 one-v2016-07-04-141003-000.txt
- 15 one-v2016-07-02-155621-000.txt
-```
+ rclone mkdir remote:path/to/directory
-Retreive an old verson
+List the contents of a directory
-```
-$ rclone -q --b2-versions copy b2:cleanup-test/one-v2016-07-04-141003-000.txt /tmp
+ rclone ls remote:path/to/directory
-$ ls -l /tmp/one-v2016-07-04-141003-000.txt
--rw-rw-r-- 1 ncw ncw 16 Jul 2 17:46 /tmp/one-v2016-07-04-141003-000.txt
-```
+Sync `/home/local/directory` to the remote directory, deleting any
+excess files in the directory.
-Clean up all the old versions and show that they've gone.
+ rclone sync /home/local/directory remote:directory
-```
-$ rclone -q cleanup b2:cleanup-test
+### Modified time ###
-$ rclone -q ls b2:cleanup-test
- 9 one.txt
+FTP does not support modified times. Any times you see on the server
+will be time of upload.
-$ rclone -q --b2-versions ls b2:cleanup-test
- 9 one.txt
-```
+### Checksums ###
-### Data usage ###
+FTP does not support any checksums.
-It is useful to know how many requests are sent to the server in different scenarios.
+### Limitations ###
-All copy commands send the following 4 requests:
+Note that since FTP isn't HTTP based the following flags don't work
+with it: `--dump-headers`, `--dump-bodies`, `--dump-auth`
-```
-/b2api/v1/b2_authorize_account
-/b2api/v1/b2_create_bucket
-/b2api/v1/b2_list_buckets
-/b2api/v1/b2_list_file_names
-```
+Note that `--timeout` isn't supported (but `--contimeout` is).
-The `b2_list_file_names` request will be sent once for every 1k files
-in the remote path, providing the checksum and modification time of
-the listed files. As of version 1.33 issue
-[#818](https://github.com/ncw/rclone/issues/818) causes extra requests
-to be sent when using B2 with Crypt. When a copy operation does not
-require any files to be uploaded, no more requests will be sent.
+Note that `--bind` isn't supported.
-Uploading files that do not require chunking, will send 2 requests per
-file upload:
+FTP could support server side move but doesn't yet.
-```
-/b2api/v1/b2_get_upload_url
-/b2api/v1/b2_upload_file/
-```
+Google Cloud Storage
+-------------------------------------------------
-Uploading files requiring chunking, will send 2 requests (one each to
-start and finish the upload) and another 2 requests for each chunk:
+Paths are specified as `remote:bucket` (or `remote:` for the `lsd`
+command.) You may put subdirectories in too, eg `remote:bucket/path/to/dir`.
+
+The initial setup for google cloud storage involves getting a token from Google Cloud Storage
+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:
```
-/b2api/v1/b2_start_large_file
-/b2api/v1/b2_get_upload_part_url
-/b2api/v1/b2_upload_part/
-/b2api/v1/b2_finish_large_file
-```
+n) New remote
+d) Delete remote
+q) Quit config
+e/n/d/q> n
+name> remote
+Type of storage to configure.
+Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ "amazon cloud drive"
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ "s3"
+ 3 / Backblaze B2
+ \ "b2"
+ 4 / Dropbox
+ \ "dropbox"
+ 5 / Encrypt/Decrypt a remote
+ \ "crypt"
+ 6 / Google Cloud Storage (this is not Google Drive)
+ \ "google cloud storage"
+ 7 / Google Drive
+ \ "drive"
+ 8 / Hubic
+ \ "hubic"
+ 9 / Local Disk
+ \ "local"
+10 / Microsoft OneDrive
+ \ "onedrive"
+11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ \ "swift"
+12 / SSH/SFTP Connection
+ \ "sftp"
+13 / Yandex Disk
+ \ "yandex"
+Storage> 6
+Google Application Client Id - leave blank normally.
+client_id>
+Google Application Client Secret - leave blank normally.
+client_secret>
+Project number optional - needed only for list/create/delete buckets - see your developer console.
+project_number> 12345678
+Service Account Credentials JSON file path - needed only if you want use SA instead of interactive login.
+service_account_file>
+Access Control List for new objects.
+Choose a number from below, or type in your own value
+ 1 / Object owner gets OWNER access, and all Authenticated Users get READER access.
+ \ "authenticatedRead"
+ 2 / Object owner gets OWNER access, and project team owners get OWNER access.
+ \ "bucketOwnerFullControl"
+ 3 / Object owner gets OWNER access, and project team owners get READER access.
+ \ "bucketOwnerRead"
+ 4 / Object owner gets OWNER access [default if left blank].
+ \ "private"
+ 5 / Object owner gets OWNER access, and project team members get access according to their roles.
+ \ "projectPrivate"
+ 6 / Object owner gets OWNER access, and all Users get READER access.
+ \ "publicRead"
+object_acl> 4
+Access Control List for new buckets.
+Choose a number from below, or type in your own value
+ 1 / Project team owners get OWNER access, and all Authenticated Users get READER access.
+ \ "authenticatedRead"
+ 2 / Project team owners get OWNER access [default if left blank].
+ \ "private"
+ 3 / Project team members get access according to their roles.
+ \ "projectPrivate"
+ 4 / Project team owners get OWNER access, and all Users get READER access.
+ \ "publicRead"
+ 5 / Project team owners get OWNER access, and all Users get WRITER access.
+ \ "publicReadWrite"
+bucket_acl> 2
+Location for the newly created buckets.
+Choose a number from below, or type in your own value
+ 1 / Empty for default location (US).
+ \ ""
+ 2 / Multi-regional location for Asia.
+ \ "asia"
+ 3 / Multi-regional location for Europe.
+ \ "eu"
+ 4 / Multi-regional location for United States.
+ \ "us"
+ 5 / Taiwan.
+ \ "asia-east1"
+ 6 / Tokyo.
+ \ "asia-northeast1"
+ 7 / Singapore.
+ \ "asia-southeast1"
+ 8 / Sydney.
+ \ "australia-southeast1"
+ 9 / Belgium.
+ \ "europe-west1"
+10 / London.
+ \ "europe-west2"
+11 / Iowa.
+ \ "us-central1"
+12 / South Carolina.
+ \ "us-east1"
+13 / Northern Virginia.
+ \ "us-east4"
+14 / Oregon.
+ \ "us-west1"
+location> 12
+The storage class to use when storing objects in Google Cloud Storage.
+Choose a number from below, or type in your own value
+ 1 / Default
+ \ ""
+ 2 / Multi-regional storage class
+ \ "MULTI_REGIONAL"
+ 3 / Regional storage class
+ \ "REGIONAL"
+ 4 / Nearline storage class
+ \ "NEARLINE"
+ 5 / Coldline storage class
+ \ "COLDLINE"
+ 6 / Durable reduced availability storage class
+ \ "DURABLE_REDUCED_AVAILABILITY"
+storage_class> 5
+Remote config
+Use auto config?
+ * Say Y if not sure
+ * Say N if you are working on a remote or headless machine or Y didn't work
+y) Yes
+n) No
+y/n> y
+If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
+Log in and authorize rclone for access
+Waiting for code...
+Got code
+--------------------
+[remote]
+type = google cloud storage
+client_id =
+client_secret =
+token = {"AccessToken":"xxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"x/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxx","Expiry":"2014-07-17T20:49:14.929208288+01:00","Extra":null}
+project_number = 12345678
+object_acl = private
+bucket_acl = private
+--------------------
+y) Yes this is OK
+e) Edit this remote
+d) Delete this remote
+y/e/d> y
+```
+
+Note that rclone runs a webserver on your local machine to collect the
+token as returned from Google if you use auto config mode. This only
+runs from the moment it opens your browser to the moment you get back
+the verification code. This is on `http://127.0.0.1:53682/` and this
+it may require you to unblock it temporarily if you are running a host
+firewall, or use manual mode.
+
+This remote is called `remote` and can now be used like this
+
+See all the buckets in your project
+
+ rclone lsd remote:
+
+Make a new bucket
+
+ rclone mkdir remote:bucket
+
+List the contents of a bucket
+
+ rclone ls remote:bucket
+
+Sync `/home/local/directory` to the remote bucket, deleting any excess
+files in the bucket.
+
+ rclone sync /home/local/directory remote:bucket
+
+### Service Account support ###
+
+You can set up rclone with Google Cloud Storage in an unattended mode,
+i.e. not tied to a specific end-user Google account. This is useful
+when you want to synchronise files onto machines that don't have
+actively logged-in users, for example build machines.
+
+To get credentials for Google Cloud Platform
+[IAM Service Accounts](https://cloud.google.com/iam/docs/service-accounts),
+please head to the
+[Service Account](https://console.cloud.google.com/permissions/serviceaccounts)
+section of the Google Developer Console. Service Accounts behave just
+like normal `User` permissions in
+[Google Cloud Storage ACLs](https://cloud.google.com/storage/docs/access-control),
+so you can limit their access (e.g. make them read only). After
+creating an account, a JSON file containing the Service Account's
+credentials will be downloaded onto your machines. These credentials
+are what rclone will use for authentication.
+
+To use a Service Account instead of OAuth2 token flow, enter the path
+to your Service Account credentials at the `service_account_file`
+prompt and rclone won't use the browser based authentication
+flow.
+
+### --fast-list ###
+
+This remote supports `--fast-list` which allows you to use fewer
+transactions in exchange for more memory. See the [rclone
+docs](/docs/#fast-list) for more details.
+
+### Modified time ###
+
+Google google cloud storage stores md5sums natively and rclone stores
+modification times as metadata on the object, under the "mtime" key in
+RFC3339 format accurate to 1ns.
+
+Google Drive
+-----------------------------------------
+
+Paths are specified as `drive:path`
+
+Drive paths may be as deep as required, eg `drive:directory/subdirectory`.
+
+The initial setup for drive involves getting a token from Google drive
+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:
+
+```
+No remotes found - make a new one
+n) New remote
+r) Rename remote
+c) Copy remote
+s) Set configuration password
+q) Quit config
+n/r/c/s/q> n
+name> remote
+Type of storage to configure.
+Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ "amazon cloud drive"
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ "s3"
+ 3 / Backblaze B2
+ \ "b2"
+ 4 / Dropbox
+ \ "dropbox"
+ 5 / Encrypt/Decrypt a remote
+ \ "crypt"
+ 6 / FTP Connection
+ \ "ftp"
+ 7 / Google Cloud Storage (this is not Google Drive)
+ \ "google cloud storage"
+ 8 / Google Drive
+ \ "drive"
+ 9 / Hubic
+ \ "hubic"
+10 / Local Disk
+ \ "local"
+11 / Microsoft OneDrive
+ \ "onedrive"
+12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ \ "swift"
+13 / SSH/SFTP Connection
+ \ "sftp"
+14 / Yandex Disk
+ \ "yandex"
+Storage> 8
+Google Application Client Id - leave blank normally.
+client_id>
+Google Application Client Secret - leave blank normally.
+client_secret>
+Remote config
+Use auto config?
+ * Say Y if not sure
+ * Say N if you are working on a remote or headless machine or Y didn't work
+y) Yes
+n) No
+y/n> y
+If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
+Log in and authorize rclone for access
+Waiting for code...
+Got code
+Configure this as a team drive?
+y) Yes
+n) No
+y/n> n
+--------------------
+[remote]
+client_id =
+client_secret =
+token = {"AccessToken":"xxxx.x.xxxxx_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"1/xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx","Expiry":"2014-03-16T13:57:58.955387075Z","Extra":null}
+--------------------
+y) Yes this is OK
+e) Edit this remote
+d) Delete this remote
+y/e/d> y
+```
+
+Note that rclone runs a webserver on your local machine to collect the
+token as returned from Google if you use auto config mode. This only
+runs from the moment it opens your browser to the moment you get back
+the verification code. This is on `http://127.0.0.1:53682/` and this
+it may require you to unblock it temporarily if you are running a host
+firewall, or use manual mode.
+
+You can then use it like this,
+
+List directories in top level of your drive
+
+ rclone lsd remote:
+
+List all the files in your drive
+
+ rclone ls remote:
+
+To copy a local directory to a drive directory called backup
+
+ rclone copy /home/source remote:backup
+
+### Team drives ###
+
+If you want to configure the remote to point to a Google Team Drive
+then answer `y` to the question `Configure this as a team drive?`.
+
+This will fetch the list of Team Drives from google and allow you to
+configure which one you want to use. You can also type in a team
+drive ID if you prefer.
+
+For example:
+
+```
+Configure this as a team drive?
+y) Yes
+n) No
+y/n> y
+Fetching team drive list...
+Choose a number from below, or type in your own value
+ 1 / Rclone Test
+ \ "xxxxxxxxxxxxxxxxxxxx"
+ 2 / Rclone Test 2
+ \ "yyyyyyyyyyyyyyyyyyyy"
+ 3 / Rclone Test 3
+ \ "zzzzzzzzzzzzzzzzzzzz"
+Enter a Team Drive ID> 1
+--------------------
+[remote]
+client_id =
+client_secret =
+token = {"AccessToken":"xxxx.x.xxxxx_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"1/xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx","Expiry":"2014-03-16T13:57:58.955387075Z","Extra":null}
+team_drive = xxxxxxxxxxxxxxxxxxxx
+--------------------
+y) Yes this is OK
+e) Edit this remote
+d) Delete this remote
+y/e/d> y
+```
+
+### Modified time ###
+
+Google drive stores modification times accurate to 1 ms.
+
+### Revisions ###
+
+Google drive stores revisions of files. When you upload a change to
+an existing file to google drive using rclone it will create a new
+revision of that file.
+
+Revisions follow the standard google policy which at time of writing
+was
+
+ * They are deleted after 30 days or 100 revisions (whatever comes first).
+ * They do not count towards a user storage quota.
+
+### Deleting files ###
+
+By default rclone will send all files to the trash when deleting
+files. If deleting them permanently is required then use the
+`--drive-use-trash=false` flag, or set the equivalent environment
+variable.
+
+### Emptying trash ###
+
+If you wish to empty your trash you can use the `rclone cleanup remote:`
+command which will permanently delete all your trashed files. This command
+does not take any path arguments.
+
+### Specific options ###
+
+Here are the command line options specific to this cloud storage
+system.
+
+#### --drive-auth-owner-only ####
+
+Only consider files owned by the authenticated user.
+
+#### --drive-chunk-size=SIZE ####
+
+Upload chunk size. Must a power of 2 >= 256k. Default value is 8 MB.
+
+Making this larger will improve performance, but note that each chunk
+is buffered in memory one per transfer.
+
+Reducing this will reduce memory usage but decrease performance.
+
+#### --drive-formats ####
+
+Google documents can only be exported from Google drive. When rclone
+downloads a Google doc it chooses a format to download depending upon
+this setting.
+
+By default the formats are `docx,xlsx,pptx,svg` which are a sensible
+default for an editable document.
+
+When choosing a format, rclone runs down the list provided in order
+and chooses the first file format the doc can be exported as from the
+list. If the file can't be exported to a format on the formats list,
+then rclone will choose a format from the default list.
+
+If you prefer an archive copy then you might use `--drive-formats
+pdf`, or if you prefer openoffice/libreoffice formats you might use
+`--drive-formats ods,odt,odp`.
+
+Note that rclone adds the extension to the google doc, so if it is
+calles `My Spreadsheet` on google docs, it will be exported as `My
+Spreadsheet.xlsx` or `My Spreadsheet.pdf` etc.
+
+Here are the possible extensions with their corresponding mime types.
+
+| Extension | Mime Type | Description |
+| --------- |-----------| ------------|
+| csv | text/csv | Standard CSV format for Spreadsheets |
+| doc | application/msword | Micosoft Office Document |
+| docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Microsoft Office Document |
+| epub | application/epub+zip | E-book format |
+| html | text/html | An HTML Document |
+| jpg | image/jpeg | A JPEG Image File |
+| odp | application/vnd.oasis.opendocument.presentation | Openoffice Presentation |
+| ods | application/vnd.oasis.opendocument.spreadsheet | Openoffice Spreadsheet |
+| ods | application/x-vnd.oasis.opendocument.spreadsheet | Openoffice Spreadsheet |
+| odt | application/vnd.oasis.opendocument.text | Openoffice Document |
+| pdf | application/pdf | Adobe PDF Format |
+| png | image/png | PNG Image Format|
+| pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | Microsoft Office Powerpoint |
+| rtf | application/rtf | Rich Text Format |
+| svg | image/svg+xml | Scalable Vector Graphics Format |
+| tsv | text/tab-separated-values | Standard TSV format for spreadsheets |
+| txt | text/plain | Plain Text |
+| xls | application/vnd.ms-excel | Microsoft Office Spreadsheet |
+| xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Microsoft Office Spreadsheet |
+| zip | application/zip | A ZIP file of HTML, Images CSS |
+
+#### --drive-list-chunk int ####
+
+Size of listing chunk 100-1000. 0 to disable. (default 1000)
+
+#### --drive-shared-with-me ####
+
+Only show files that are shared with me
+
+#### --drive-skip-gdocs ####
+
+Skip google documents in all listings. If given, gdocs practically become invisible to rclone.
+
+#### --drive-trashed-only ####
+
+Only show files that are in the trash. This will show trashed files
+in their original directory structure.
+
+#### --drive-upload-cutoff=SIZE ####
+
+File size cutoff for switching to chunked upload. Default is 8 MB.
+
+#### --drive-use-trash ####
+
+Controls whether files are sent to the trash or deleted
+permanently. Defaults to true, namely sending files to the trash. Use
+`--drive-use-trash=false` to delete files permanently instead.
+
+### Limitations ###
+
+Drive has quite a lot of rate limiting. This causes rclone to be
+limited to transferring about 2 files per second only. Individual
+files may be transferred much faster at 100s of MBytes/s but lots of
+small files can take a long time.
+
+Server side copies are also subject to a separate rate limit. If you
+see User rate limit exceeded errors, wait at least 24 hours and retry.
+You can disable server side copies with `--disable copy` to download
+and upload the files if you prefer.
+
+### Duplicated files ###
+
+Sometimes, for no reason I've been able to track down, drive will
+duplicate a file that rclone uploads. Drive unlike all the other
+remotes can have duplicated files.
+
+Duplicated files cause problems with the syncing and you will see
+messages in the log about duplicates.
+
+Use `rclone dedupe` to fix duplicated files.
+
+Note that this isn't just a problem with rclone, even Google Photos on
+Android duplicates files on drive sometimes.
+
+### Rclone appears to be re-copying files it shouldn't ###
+
+There are two possible reasons for rclone to recopy files which
+haven't changed to Google Drive.
+
+The first is the duplicated file issue above - run `rclone dedupe` and
+check your logs for duplicate object or directory messages.
+
+The second is that sometimes Google reports different sizes for the
+Google Docs exports which will cause rclone to re-download Google Docs
+for no apparent reason. `--ignore-size` is a not very satisfactory
+work-around for this if it is causing you a lot of problems.
+
+### Google docs downloads sometimes fail with "Failed to copy: read X bytes expecting Y" ###
+
+This is the same problem as above. Google reports the google doc is
+one size, but rclone downloads a different size. Work-around with the
+`--ignore-size` flag or wait for rclone to retry the download which it
+will.
+
+### Making your own client_id ###
+
+When you use rclone with Google drive in its default configuration you
+are using rclone's client_id. This is shared between all the rclone
+users. There is a global rate limit on the number of queries per
+second that each client_id can do set by Google. rclone already has a
+high quota and I will continue to make sure it is high enough by
+contacting Google.
+
+However you might find you get better performance making your own
+client_id if you are a heavy user. Or you may not depending on exactly
+how Google have been raising rclone's rate limit.
+
+Here is how to create your own Google Drive client ID for rclone:
+
+1. Log into the [Google API
+Console](https://console.developers.google.com/) with your Google
+account. It doesn't matter what Google account you use. (It need not
+be the same account as the Google Drive you want to access)
+
+2. Select a project or create a new project.
+
+3. Under Overview, Google APIs, Google Apps APIs, click "Drive API",
+then "Enable".
+
+4. Click "Credentials" in the left-side panel (not "Go to
+credentials", which opens the wizard), then "Create credentials", then
+"OAuth client ID". It will prompt you to set the OAuth consent screen
+product name, if you haven't set one already.
+
+5. Choose an application type of "other", and click "Create". (the
+default name is fine)
+
+6. It will show you a client ID and client secret. Use these values
+in rclone config to add a new remote or edit an existing remote.
+
+(Thanks to @balazer on github for these instructions.)
+
+HTTP
+-------------------------------------------------
+
+The HTTP remote is a read only remote for reading files of a
+webserver. The webserver should provide file listings which rclone
+will read and turn into a remote. This has been tested with common
+webservers such as Apache/Nginx/Caddy and will likely work with file
+listings from most web servers. (If it doesn't then please file an
+issue, or send a pull request!)
+
+Paths are specified as `remote:` or `remote:path/to/dir`.
+
+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:
-### B2 with crypt ###
+```
+No remotes found - make a new one
+n) New remote
+s) Set configuration password
+q) Quit config
+n/s/q> n
+name> remote
+Type of storage to configure.
+Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ "amazon cloud drive"
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ "s3"
+ 3 / Backblaze B2
+ \ "b2"
+ 4 / Dropbox
+ \ "dropbox"
+ 5 / Encrypt/Decrypt a remote
+ \ "crypt"
+ 6 / FTP Connection
+ \ "ftp"
+ 7 / Google Cloud Storage (this is not Google Drive)
+ \ "google cloud storage"
+ 8 / Google Drive
+ \ "drive"
+ 9 / Hubic
+ \ "hubic"
+10 / Local Disk
+ \ "local"
+11 / Microsoft OneDrive
+ \ "onedrive"
+12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ \ "swift"
+13 / SSH/SFTP Connection
+ \ "sftp"
+14 / Yandex Disk
+ \ "yandex"
+15 / http Connection
+ \ "http"
+Storage> http
+URL of http host to connect to
+Choose a number from below, or type in your own value
+ 1 / Connect to example.com
+ \ "https://example.com"
+url> https://beta.rclone.org
+Remote config
+--------------------
+[remote]
+url = https://beta.rclone.org
+--------------------
+y) Yes this is OK
+e) Edit this remote
+d) Delete this remote
+y/e/d> y
+Current remotes:
-When using B2 with `crypt` files are encrypted into a temporary
-location and streamed from there. This is required to calculate the
-encrypted file's checksum before beginning the upload. On Windows the
-%TMPDIR% environment variable is used as the temporary location. If
-the file requires chunking, both the chunking and encryption will take
-place in memory.
+Name Type
+==== ====
+remote http
-### Specific options ###
+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> q
+```
-Here are the command line options specific to this cloud storage
-system.
+This remote is called `remote` and can now be used like this
-#### --b2-chunk-size valuee=SIZE ####
+See all the top level directories
-When uploading large files chunk the file into this size. Note that
-these chunks are buffered in memory and there might a maximum of
-`--transfers` chunks in progress at once. 5,000,000 Bytes is the
-minimim size (default 96M).
+ rclone lsd remote:
-#### --b2-upload-cutoff=SIZE ####
+List the contents of a directory
-Cutoff for switching to chunked upload (default 190.735 MiB == 200
-MB). Files above this size will be uploaded in chunks of
-`--b2-chunk-size`.
+ rclone ls remote:directory
-This value should be set no larger than 4.657GiB (== 5GB) as this is
-the largest file size that can be uploaded.
+Sync the remote `directory` to `/home/local/directory`, deleting any excess files.
+ rclone sync remote:directory /home/local/directory
-#### --b2-test-mode=FLAG ####
+### Read only ###
-This is for debugging purposes only.
+This remote is read only - you can't upload files to an HTTP server.
-Setting FLAG to one of the strings below will cause b2 to return
-specific errors for debugging purposes.
+### Modified time ###
- * `fail_some_uploads`
- * `expire_some_account_authorization_tokens`
- * `force_cap_exceeded`
+Most HTTP servers store time accurate to 1 second.
-These will be set in the `X-Bz-Test-Mode` header which is documented
-in the [b2 integrations
-checklist](https://www.backblaze.com/b2/docs/integration_checklist.html).
+### Checksum ###
-#### --b2-versions ####
+No checksums are stored.
-When set rclone will show and act on older versions of files. For example
+### Usage without a config file ###
-Listing without `--b2-versions`
+Note that since only two environment variable need to be set, it is
+easy to use without a config file like this.
```
-$ rclone -q ls b2:cleanup-test
- 9 one.txt
+RCLONE_CONFIG_ZZ_TYPE=http RCLONE_CONFIG_ZZ_URL=https://beta.rclone.org rclone lsd zz:
```
-And with
+Or if you prefer
```
-$ rclone -q --b2-versions ls b2:cleanup-test
- 9 one.txt
- 8 one-v2016-07-04-141032-000.txt
- 16 one-v2016-07-04-141003-000.txt
- 15 one-v2016-07-02-155621-000.txt
+export RCLONE_CONFIG_ZZ_TYPE=http
+export RCLONE_CONFIG_ZZ_URL=https://beta.rclone.org
+rclone lsd zz:
```
-Showing that the current version is unchanged but older versions can
-be seen. These have the UTC date that they were uploaded to the
-server to the nearest millisecond appended to them.
-
-Note that when using `--b2-versions` no file write operations are
-permitted, so you can't upload files or delete them.
+Hubic
+-----------------------------------------
-Yandex Disk
-----------------------------------------
+Paths are specified as `remote:path`
-[Yandex Disk](https://disk.yandex.com) is a cloud storage solution created by [Yandex](https://yandex.com).
+Paths are specified as `remote:container` (or `remote:` for the `lsd`
+command.) You may put subdirectories in too, eg `remote:container/path/to/dir`.
-Yandex paths may be as deep as required, eg `remote:directory/subdirectory`.
+The initial setup for Hubic involves getting a token from Hubic which
+you need to do in your browser. `rclone config` walks you through it.
-Here is an example of making a yandex configuration. First run
+Here is an example of how to make a remote called `remote`. First run:
- rclone config
+ rclone config
This will guide you through an interactive setup process:
```
-No remotes found - make a new one
n) New remote
s) Set configuration password
n/s> n
@@ -4992,10 +5944,10 @@ Choose a number from below, or type in your own value
\ "sftp"
13 / Yandex Disk
\ "yandex"
-Storage> 13
-Yandex Client Id - leave blank normally.
+Storage> 8
+Hubic Client Id - leave blank normally.
client_id>
-Yandex Client Secret - leave blank normally.
+Hubic Client Secret - leave blank normally.
client_secret>
Remote config
Use auto config?
@@ -5012,7 +5964,7 @@ Got code
[remote]
client_id =
client_secret =
-token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"bearer","expiry":"2016-12-29T12:27:11.362788025Z"}
+token = {"access_token":"XXXXXX"}
--------------------
y) Yes this is OK
e) Edit this remote
@@ -5024,29 +5976,151 @@ See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it
machine with no Internet browser available.
Note that rclone runs a webserver on your local machine to collect the
-token as returned from Yandex Disk. This only runs from the moment it
-opens your browser to the moment you get back the verification code.
-This is on `http://127.0.0.1:53682/` and this it may require you to
-unblock it temporarily if you are running a host firewall.
+token as returned from Hubic. This only runs from the moment it opens
+your browser to the moment you get back the verification code. This
+is on `http://127.0.0.1:53682/` and this it may require you to unblock
+it temporarily if you are running a host firewall.
Once configured you can then use `rclone` like this,
-See top level directories
+List containers in the top level of your Hubic
+
+ rclone lsd remote:
+
+List all the files in your Hubic
+
+ rclone ls remote:
+
+To copy a local directory to an Hubic directory called backup
+
+ rclone copy /home/source remote:backup
+
+If you want the directory to be visible in the official *Hubic
+browser*, you need to copy your files to the `default` directory
+
+ rclone copy /home/source remote:default/backup
+
+### --fast-list ###
+
+This remote supports `--fast-list` which allows you to use fewer
+transactions in exchange for more memory. See the [rclone
+docs](/docs/#fast-list) for more details.
+
+### Modified time ###
+
+The modified time is stored as metadata on the object as
+`X-Object-Meta-Mtime` as floating point since the epoch accurate to 1
+ns.
+
+This is a defacto standard (used in the official python-swiftclient
+amongst others) for storing the modification time for an object.
+
+Note that Hubic wraps the Swift backend, so most of the properties of
+are the same.
+
+### Limitations ###
+
+This uses the normal OpenStack Swift mechanism to refresh the Swift
+API credentials and ignores the expires field returned by the Hubic
+API.
+
+The Swift API doesn't return a correct MD5SUM for segmented files
+(Dynamic or Static Large Objects) so rclone won't check or use the
+MD5SUM for these.
+
+Microsoft Azure Blob Storage
+-----------------------------------------
+
+Paths are specified as `remote:container` (or `remote:` for the `lsd`
+command.) You may put subdirectories in too, eg
+`remote:container/path/to/dir`.
+
+Here is an example of making a Microsoft Azure Blob Storage
+configuration. For a remote called `remote`. First run:
+
+ rclone config
+
+This will guide you through an interactive setup process:
+
+```
+No remotes found - make a new one
+n) New remote
+s) Set configuration password
+q) Quit config
+n/s/q> n
+name> remote
+Type of storage to configure.
+Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ "amazon cloud drive"
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ "s3"
+ 3 / Backblaze B2
+ \ "b2"
+ 4 / Box
+ \ "box"
+ 5 / Dropbox
+ \ "dropbox"
+ 6 / Encrypt/Decrypt a remote
+ \ "crypt"
+ 7 / FTP Connection
+ \ "ftp"
+ 8 / Google Cloud Storage (this is not Google Drive)
+ \ "google cloud storage"
+ 9 / Google Drive
+ \ "drive"
+10 / Hubic
+ \ "hubic"
+11 / Local Disk
+ \ "local"
+12 / Microsoft Azure Blob Storage
+ \ "azureblob"
+13 / Microsoft OneDrive
+ \ "onedrive"
+14 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ \ "swift"
+15 / SSH/SFTP Connection
+ \ "sftp"
+16 / Yandex Disk
+ \ "yandex"
+17 / http Connection
+ \ "http"
+Storage> azureblob
+Storage Account Name
+account> account_name
+Storage Account Key
+key> base64encodedkey==
+Endpoint for the service - leave blank normally.
+endpoint>
+Remote config
+--------------------
+[remote]
+account = account_name
+key = base64encodedkey==
+endpoint =
+--------------------
+y) Yes this is OK
+e) Edit this remote
+d) Delete this remote
+y/e/d> y
+```
+
+See all containers
rclone lsd remote:
-Make a new directory
+Make a new container
- rclone mkdir remote:directory
+ rclone mkdir remote:container
-List the contents of a directory
+List the contents of a container
- rclone ls remote:directory
+ rclone ls remote:container
-Sync `/home/local/directory` to the remote path, deleting any
-excess files in the path.
+Sync `/home/local/directory` to the remote container, deleting any excess
+files in the container.
- rclone sync /home/local/directory remote:directory
+ rclone sync /home/local/directory remote:container
### --fast-list ###
@@ -5056,38 +6130,81 @@ docs](/docs/#fast-list) for more details.
### Modified time ###
-Modified times are supported and are stored accurate to 1 ns in custom
-metadata called `rclone_modified` in RFC3339 with nanoseconds format.
+The modified time is stored as metadata on the object with the `mtime`
+key. It is stored using RFC3339 Format time with nanosecond
+precision. The metadata is supplied during directory listings so
+there is no overhead to using it.
-### MD5 checksums ###
+### Hashes ###
-MD5 checksums are natively supported by Yandex Disk.
+MD5 hashes are stored with blobs. However blobs that were uploaded in
+chunks only have an MD5 if the source remote was capable of MD5
+hashes, eg the local disk.
-SFTP
-----------------------------------------
+### Multipart uploads ###
-SFTP is the [Secure (or SSH) File Transfer
-Protocol](https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol).
+Rclone supports multipart uploads with Azure Blob storage. Files
+bigger than 256MB will be uploaded using chunked upload by default.
-It runs over SSH v2 and is standard with most modern SSH
-installations.
+The files will be uploaded in parallel in 4MB chunks (by default).
+Note that these chunks are buffered in memory and there may be up to
+`--transfers` of them being uploaded at once.
-Paths are specified as `remote:path`. If the path does not begin with
-a `/` it is relative to the home directory of the user. An empty path
-`remote:` refers to the users home directory.
+Files can't be split into more than 50,000 chunks so by default, so
+the largest file that can be uploaded with 4MB chunk size is 195GB.
+Above this rclone will double the chunk size until it creates less
+than 50,000 chunks. By default this will mean a maximum file size of
+3.2TB can be uploaded. This can be raised to 5TB using
+`--azureblob-chunk-size 100M`.
-Here is an example of making a SFTP configuration. First run
+Note that rclone doesn't commit the block list until the end of the
+upload which means that there is a limit of 9.5TB of multipart uploads
+in progress as Azure won't allow more than that amount of uncommitted
+blocks.
- rclone config
+### Specific options ###
-This will guide you through an interactive setup process.
+Here are the command line options specific to this cloud storage
+system.
+
+#### --azureblob-upload-cutoff=SIZE ####
+
+Cutoff for switching to chunked upload - must be <= 256MB. The default
+is 256MB.
+
+#### --azureblob-chunk-size=SIZE ####
+
+Upload chunk size. Default 4MB. Note that this is stored in memory
+and there may be up to `--transfers` chunks stored at once in memory.
+This can be at most 100MB.
+
+### Limitations ###
+
+MD5 sums are only uploaded with chunked files if the source has an MD5
+sum. This will always be the case for a local to azure copy.
+
+Microsoft OneDrive
+-----------------------------------------
+
+Paths are specified as `remote:path`
+
+Paths may be as deep as required, eg `remote:directory/subdirectory`.
+
+The initial setup for OneDrive involves getting a token from
+Microsoft 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:
```
No remotes found - make a new one
n) New remote
s) Set configuration password
-q) Quit config
-n/s/q> n
+n/s> n
name> remote
Type of storage to configure.
Choose a number from below, or type in your own value
@@ -5101,51 +6218,49 @@ Choose a number from below, or type in your own value
\ "dropbox"
5 / Encrypt/Decrypt a remote
\ "crypt"
- 6 / FTP Connection
- \ "ftp"
- 7 / Google Cloud Storage (this is not Google Drive)
+ 6 / Google Cloud Storage (this is not Google Drive)
\ "google cloud storage"
- 8 / Google Drive
+ 7 / Google Drive
\ "drive"
- 9 / Hubic
+ 8 / Hubic
\ "hubic"
-10 / Local Disk
+ 9 / Local Disk
\ "local"
-11 / Microsoft OneDrive
+10 / Microsoft OneDrive
\ "onedrive"
-12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
\ "swift"
-13 / SSH/SFTP Connection
+12 / SSH/SFTP Connection
\ "sftp"
-14 / Yandex Disk
+13 / Yandex Disk
\ "yandex"
-15 / http Connection
- \ "http"
-Storage> sftp
-SSH host to connect to
-Choose a number from below, or type in your own value
- 1 / Connect to example.com
- \ "example.com"
-host> example.com
-SSH username, leave blank for current username, ncw
-user> sftpuser
-SSH port, leave blank to use default (22)
-port>
-SSH password, leave blank to use ssh-agent.
-y) Yes type in my own password
-g) Generate random password
-n) No leave this optional password blank
-y/g/n> n
-Path to unencrypted PEM-encoded private key file, leave blank to use ssh-agent.
-key_file>
+Storage> 10
+Microsoft App Client Id - leave blank normally.
+client_id>
+Microsoft App Client Secret - leave blank normally.
+client_secret>
Remote config
+Choose OneDrive account type?
+ * Say b for a OneDrive business account
+ * Say p for a personal OneDrive account
+b) Business
+p) Personal
+b/p> p
+Use auto config?
+ * Say Y if not sure
+ * Say N if you are working on a remote or headless machine
+y) Yes
+n) No
+y/n> y
+If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
+Log in and authorize rclone for access
+Waiting for code...
+Got code
--------------------
[remote]
-host = example.com
-user = sftpuser
-port =
-pass =
-key_file =
+client_id =
+client_secret =
+token = {"access_token":"XXXXXX"}
--------------------
y) Yes this is OK
e) Edit this remote
@@ -5153,88 +6268,99 @@ d) Delete this remote
y/e/d> y
```
-This remote is called `remote` and can now be used like this
+See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
+machine with no Internet browser available.
-See all directories in the home directory
+Note that rclone runs a webserver on your local machine to collect the
+token as returned from Microsoft. This only runs from the moment it
+opens your browser to the moment you get back the verification
+code. This is on `http://127.0.0.1:53682/` and this it may require
+you to unblock it temporarily if you are running a host firewall.
- rclone lsd remote:
+Once configured you can then use `rclone` like this,
-Make a new directory
+List directories in top level of your OneDrive
- rclone mkdir remote:path/to/directory
+ rclone lsd remote:
-List the contents of a directory
+List all the files in your OneDrive
- rclone ls remote:path/to/directory
+ rclone ls remote:
-Sync `/home/local/directory` to the remote directory, deleting any
-excess files in the directory.
+To copy a local directory to an OneDrive directory called backup
- rclone sync /home/local/directory remote:directory
+ rclone copy /home/source remote:backup
-### SSH Authentication ###
+### OneDrive for Business ###
-The SFTP remote supports 3 authentication methods
+There is additional support for OneDrive for Business.
+Select "b" when ask
+```
+Choose OneDrive account type?
+ * Say b for a OneDrive business account
+ * Say p for a personal OneDrive account
+b) Business
+p) Personal
+b/p>
+```
+After that rclone requires an authentication of your account. The application will first authenticate your account, then query the OneDrive resource URL
+and do a second (silent) authentication for this resource URL.
- * Password
- * Key file
- * ssh-agent
+### Modified time and hashes ###
-Key files should be unencrypted PEM-encoded private key files. For
-instance `/home/$USER/.ssh/id_rsa`.
+OneDrive allows modification times to be set on objects accurate to 1
+second. These will be used to detect whether objects need syncing or
+not.
-If you don't specify `pass` or `key_file` then it will attempt to
-contact an ssh-agent.
+One drive supports SHA1 type hashes, so you can use `--checksum` flag.
-### ssh-agent on macOS ###
-Note that there seem to be various problems with using an ssh-agent on
-macOS due to recent changes in the OS. The most effective work-around
-seems to be to start an ssh-agent in each session, eg
+### Deleting files ###
- eval `ssh-agent -s` && ssh-add -A
+Any files you delete with rclone will end up in the trash. Microsoft
+doesn't provide an API to permanently delete files, nor to empty the
+trash, so you will have to do that with one of Microsoft's apps or via
+the OneDrive website.
-And then at the end of the session
+### Specific options ###
- eval `ssh-agent -k`
+Here are the command line options specific to this cloud storage
+system.
-These commands can be used in scripts of course.
+#### --onedrive-chunk-size=SIZE ####
-### Modified time ###
+Above this size files will be chunked - must be multiple of 320k. The
+default is 10MB. Note that the chunks will be buffered into memory.
-Modified times are stored on the server to 1 second precision.
+#### --onedrive-upload-cutoff=SIZE ####
-Modified times are used in syncing and are fully supported.
+Cutoff for switching to chunked upload - must be <= 100MB. The default
+is 10MB.
### Limitations ###
-SFTP does not support any checksums.
-
-The only ssh agent supported under Windows is Putty's pagent.
-
-SFTP isn't supported under plan9 until [this
-issue](https://github.com/pkg/sftp/issues/156) is fixed.
+Note that OneDrive is case insensitive so you can't have a
+file called "Hello.doc" and one called "hello.doc".
-Note that since SFTP isn't HTTP based the following flags don't work
-with it: `--dump-headers`, `--dump-bodies`, `--dump-auth`
+There are quite a few characters that can't be in OneDrive file
+names. These can't occur on Windows platforms, but on non-Windows
+platforms they are common. Rclone will map these names to and from an
+identical looking unicode equivalent. For example if a file has a `?`
+in it will be mapped to `?` instead.
-Note that `--timeout` isn't supported (but `--contimeout` is).
+The largest allowed file size is 10GiB (10,737,418,240 bytes).
-FTP
-------------------------------
+QingStor
+---------------------------------------
-FTP is the File Transfer Protocol. FTP support is provided using the
-[github.com/jlaffaye/ftp](https://godoc.org/github.com/jlaffaye/ftp)
-package.
+Paths are specified as `remote:bucket` (or `remote:` for the `lsd`
+command.) You may put subdirectories in too, eg `remote:bucket/path/to/dir`.
-Here is an example of making an FTP configuration. First run
+Here is an example of making an QingStor configuration. First run
rclone config
-This will guide you through an interactive setup process. An FTP remote only
-needs a host together with and a username and a password. With anonymous FTP
-server, you will need to use `anonymous` as username and your email address as
-the password.
+This will guide you through an interactive setup process.
```
No remotes found - make a new one
@@ -5257,7 +6383,7 @@ Choose a number from below, or type in your own value
\ "dropbox"
5 / Encrypt/Decrypt a remote
\ "crypt"
- 6 / FTP Connection
+ 6 / FTP Connection
\ "ftp"
7 / Google Cloud Storage (this is not Google Drive)
\ "google cloud storage"
@@ -5271,35 +6397,48 @@ Choose a number from below, or type in your own value
\ "onedrive"
12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
\ "swift"
-13 / SSH/SFTP Connection
+13 / QingStor Object Storage
+ \ "qingstor"
+14 / SSH/SFTP Connection
\ "sftp"
-14 / Yandex Disk
+15 / Yandex Disk
\ "yandex"
-Storage> ftp
-FTP host to connect to
+Storage> 13
+Get QingStor credentials from runtime. Only applies if access_key_id and secret_access_key is blank.
Choose a number from below, or type in your own value
- 1 / Connect to ftp.example.com
- \ "ftp.example.com"
-host> ftp.example.com
-FTP username, leave blank for current username, ncw
-user>
-FTP port, leave blank to use default (21)
-port>
-FTP password
-y) Yes type in my own password
-g) Generate random password
-y/g> y
-Enter the password:
-password:
-Confirm the password:
-password:
-Remote config
---------------------
-[remote]
-host = ftp.example.com
-user =
-port =
-pass = *** ENCRYPTED ***
+ 1 / Enter QingStor credentials in the next step
+ \ "false"
+ 2 / Get QingStor credentials from the environment (env vars or IAM)
+ \ "true"
+env_auth> 1
+QingStor Access Key ID - leave blank for anonymous access or runtime credentials.
+access_key_id> access_key
+QingStor Secret Access Key (password) - leave blank for anonymous access or runtime credentials.
+secret_access_key> secret_key
+Enter a endpoint URL to connection QingStor API.
+Leave blank will use the default value "https://qingstor.com:443"
+endpoint>
+Zone connect to. Default is "pek3a".
+Choose a number from below, or type in your own value
+ / The Beijing (China) Three Zone
+ 1 | Needs location constraint pek3a.
+ \ "pek3a"
+ / The Shanghai (China) First Zone
+ 2 | Needs location constraint sh1a.
+ \ "sh1a"
+zone> 1
+Number of connnection retry.
+Leave blank will use the default value "3".
+connection_retries>
+Remote config
+--------------------
+[remote]
+env_auth = false
+access_key_id = access_key
+secret_access_key = secret_key
+endpoint =
+zone = pek3a
+connection_retries =
--------------------
y) Yes this is OK
e) Edit this remote
@@ -5309,59 +6448,75 @@ y/e/d> y
This remote is called `remote` and can now be used like this
-See all directories in the home directory
+See all buckets
rclone lsd remote:
-Make a new directory
+Make a new bucket
- rclone mkdir remote:path/to/directory
+ rclone mkdir remote:bucket
-List the contents of a directory
+List the contents of a bucket
- rclone ls remote:path/to/directory
+ rclone ls remote:bucket
-Sync `/home/local/directory` to the remote directory, deleting any
-excess files in the directory.
+Sync `/home/local/directory` to the remote bucket, deleting any excess
+files in the bucket.
- rclone sync /home/local/directory remote:directory
+ rclone sync /home/local/directory remote:bucket
-### Modified time ###
+### --fast-list ###
-FTP does not support modified times. Any times you see on the server
-will be time of upload.
+This remote supports `--fast-list` which allows you to use fewer
+transactions in exchange for more memory. See the [rclone
+docs](/docs/#fast-list) for more details.
-### Checksums ###
+### Multipart uploads ###
-FTP does not support any checksums.
+rclone supports multipart uploads with QingStor which means that it can
+upload files bigger than 5GB. Note that files uploaded with multipart
+upload don't have an MD5SUM.
-### Limitations ###
+### Buckets and Zone ###
-Note that since FTP isn't HTTP based the following flags don't work
-with it: `--dump-headers`, `--dump-bodies`, `--dump-auth`
+With QingStor you can list buckets (`rclone lsd`) using any zone,
+but you can only access the content of a bucket from the zone it was
+created in. If you attempt to access a bucket from the wrong zone,
+you will get an error, `incorrect zone, the bucket is not in 'XXX'
+zone`.
-Note that `--timeout` isn't supported (but `--contimeout` is).
+### Authentication ###
-FTP could support server side move but doesn't yet.
+There are two ways to supply `rclone` with a set of QingStor
+credentials. In order of precedence:
-HTTP
--------------------------------------------------
+ - Directly in the rclone configuration file (as configured by `rclone config`)
+ - set `access_key_id` and `secret_access_key`
+ - Runtime configuration:
+ - set `env_auth` to `true` in the config file
+ - Exporting the following environment variables before running `rclone`
+ - Access Key ID: `QS_ACCESS_KEY_ID` or `QS_ACCESS_KEY`
+ - Secret Access Key: `QS_SECRET_ACCESS_KEY` or `QS_SECRET_KEY`
-The HTTP remote is a read only remote for reading files of a
-webserver. The webserver should provide file listings which rclone
-will read and turn into a remote. This has been tested with common
-webservers such as Apache/Nginx/Caddy and will likely work with file
-listings from most web servers. (If it doesn't then please file an
-issue, or send a pull request!)
+Swift
+----------------------------------------
-Paths are specified as `remote:` or `remote:path/to/dir`.
+Swift refers to [Openstack Object Storage](https://docs.openstack.org/swift/latest/).
+Commercial implementations of that being:
-Here is an example of how to make a remote called `remote`. First
-run:
+ * [Rackspace Cloud Files](https://www.rackspace.com/cloud/files/)
+ * [Memset Memstore](https://www.memset.com/cloud/storage/)
+ * [OVH Object Storage](https://www.ovh.co.uk/public-cloud/storage/object-storage/)
+ * [Oracle Cloud Storage](https://cloud.oracle.com/storage-opc)
- rclone config
+Paths are specified as `remote:container` (or `remote:` for the `lsd`
+command.) You may put subdirectories in too, eg `remote:container/path/to/dir`.
-This will guide you through an interactive setup process:
+Here is an example of making a swift configuration. First run
+
+ rclone config
+
+This will guide you through an interactive setup process.
```
No remotes found - make a new one
@@ -5378,132 +6533,258 @@ Choose a number from below, or type in your own value
\ "s3"
3 / Backblaze B2
\ "b2"
- 4 / Dropbox
+ 4 / Box
+ \ "box"
+ 5 / Dropbox
\ "dropbox"
- 5 / Encrypt/Decrypt a remote
+ 6 / Encrypt/Decrypt a remote
\ "crypt"
- 6 / FTP Connection
+ 7 / FTP Connection
\ "ftp"
- 7 / Google Cloud Storage (this is not Google Drive)
+ 8 / Google Cloud Storage (this is not Google Drive)
\ "google cloud storage"
- 8 / Google Drive
+ 9 / Google Drive
\ "drive"
- 9 / Hubic
+10 / Hubic
\ "hubic"
-10 / Local Disk
+11 / Local Disk
\ "local"
-11 / Microsoft OneDrive
+12 / Microsoft Azure Blob Storage
+ \ "azureblob"
+13 / Microsoft OneDrive
\ "onedrive"
-12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+14 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
\ "swift"
-13 / SSH/SFTP Connection
+15 / QingClound Object Storage
+ \ "qingstor"
+16 / SSH/SFTP Connection
\ "sftp"
-14 / Yandex Disk
+17 / Yandex Disk
\ "yandex"
-15 / http Connection
+18 / http Connection
\ "http"
-Storage> http
-URL of http host to connect to
+Storage> swift
+Get swift credentials from environment variables in standard OpenStack form.
Choose a number from below, or type in your own value
- 1 / Connect to example.com
- \ "https://example.com"
-url> https://beta.rclone.org
+ 1 / Enter swift credentials in the next step
+ \ "false"
+ 2 / Get swift credentials from environment vars. Leave other fields blank if using this.
+ \ "true"
+env_auth> 1
+User name to log in.
+user> user_name
+API key or password.
+key> password_or_api_key
+Authentication URL for server.
+Choose a number from below, or type in your own value
+ 1 / Rackspace US
+ \ "https://auth.api.rackspacecloud.com/v1.0"
+ 2 / Rackspace UK
+ \ "https://lon.auth.api.rackspacecloud.com/v1.0"
+ 3 / Rackspace v2
+ \ "https://identity.api.rackspacecloud.com/v2.0"
+ 4 / Memset Memstore UK
+ \ "https://auth.storage.memset.com/v1.0"
+ 5 / Memset Memstore UK v2
+ \ "https://auth.storage.memset.com/v2.0"
+ 6 / OVH
+ \ "https://auth.cloud.ovh.net/v2.0"
+auth> 1
+User domain - optional (v3 auth)
+domain> Default
+Tenant name - optional for v1 auth, required otherwise
+tenant> tenant_name
+Tenant domain - optional (v3 auth)
+tenant_domain>
+Region name - optional
+region>
+Storage URL - optional
+storage_url>
+AuthVersion - optional - set to (1,2,3) if your auth URL has no version
+auth_version>
+Endpoint type to choose from the service catalogue
+Choose a number from below, or type in your own value
+ 1 / Public (default, choose this if not sure)
+ \ "public"
+ 2 / Internal (use internal service net)
+ \ "internal"
+ 3 / Admin
+ \ "admin"
+endpoint_type>
Remote config
--------------------
[remote]
-url = https://beta.rclone.org
+env_auth = false
+user = user_name
+key = password_or_api_key
+auth = https://auth.api.rackspacecloud.com/v1.0
+domain = Default
+tenant =
+tenant_domain =
+region =
+storage_url =
+auth_version =
+endpoint_type =
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
-Current remotes:
-
-Name Type
-==== ====
-remote http
-
-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> q
```
This remote is called `remote` and can now be used like this
-See all the top level directories
+See all containers
rclone lsd remote:
-List the contents of a directory
-
- rclone ls remote:directory
-
-Sync the remote `directory` to `/home/local/directory`, deleting any excess files.
+Make a new container
- rclone sync remote:directory /home/local/directory
+ rclone mkdir remote:container
-### Read only ###
+List the contents of a container
-This remote is read only - you can't upload files to an HTTP server.
+ rclone ls remote:container
-### Modified time ###
+Sync `/home/local/directory` to the remote container, deleting any
+excess files in the container.
-Most HTTP servers store time accurate to 1 second.
+ rclone sync /home/local/directory remote:container
-### Checksum ###
+### Configuration from an Openstack credentials file ###
-No checksums are stored.
+An Opentstack credentials file typically looks something something
+like this (without the comments)
-### Usage without a config file ###
+```
+export OS_AUTH_URL=https://a.provider.net/v2.0
+export OS_TENANT_ID=ffffffffffffffffffffffffffffffff
+export OS_TENANT_NAME="1234567890123456"
+export OS_USERNAME="123abc567xy"
+echo "Please enter your OpenStack Password: "
+read -sr OS_PASSWORD_INPUT
+export OS_PASSWORD=$OS_PASSWORD_INPUT
+export OS_REGION_NAME="SBG1"
+if [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi
+```
-Note that since only two environment variable need to be set, it is
-easy to use without a config file like this.
+The config file needs to look something like this where `$OS_USERNAME`
+represents the value of the `OS_USERNAME` variable - `123abc567xy` in
+the example above.
```
-RCLONE_CONFIG_ZZ_TYPE=http RCLONE_CONFIG_ZZ_URL=https://beta.rclone.org rclone lsd zz:
+[remote]
+type = swift
+user = $OS_USERNAME
+key = $OS_PASSWORD
+auth = $OS_AUTH_URL
+tenant = $OS_TENANT_NAME
```
-Or if you prefer
+Note that you may (or may not) need to set `region` too - try without first.
+
+### Configuration from the environment ###
+
+If you prefer you can configure rclone to use swift using a standard
+set of OpenStack environment variables.
+
+When you run through the config, make sure you choose `true` for
+`env_auth` and leave everything else blank.
+
+rclone will then set any empty config parameters from the enviroment
+using standard OpenStack environment variables. There is [a list of
+the
+variables](https://godoc.org/github.com/ncw/swift#Connection.ApplyEnvironment)
+in the docs for the swift library.
+
+#### Using rclone without a config file ####
+
+You can use rclone with swift without a config file, if desired, like
+this:
```
-export RCLONE_CONFIG_ZZ_TYPE=http
-export RCLONE_CONFIG_ZZ_URL=https://beta.rclone.org
-rclone lsd zz:
+source openstack-credentials-file
+export RCLONE_CONFIG_MYREMOTE_TYPE=swift
+export RCLONE_CONFIG_MYREMOTE_ENV_AUTH=true
+rclone lsd myremote:
```
-Crypt
+### --fast-list ###
+
+This remote supports `--fast-list` which allows you to use fewer
+transactions in exchange for more memory. See the [rclone
+docs](/docs/#fast-list) for more details.
+
+### Specific options ###
+
+Here are the command line options specific to this cloud storage
+system.
+
+#### --swift-chunk-size=SIZE ####
+
+Above this size files will be chunked into a _segments container. The
+default for this is 5GB which is its maximum value.
+
+### Modified time ###
+
+The modified time is stored as metadata on the object as
+`X-Object-Meta-Mtime` as floating point since the epoch accurate to 1
+ns.
+
+This is a defacto standard (used in the official python-swiftclient
+amongst others) for storing the modification time for an object.
+
+### Limitations ###
+
+The Swift API doesn't return a correct MD5SUM for segmented files
+(Dynamic or Static Large Objects) so rclone won't check or use the
+MD5SUM for these.
+
+### Troubleshooting ###
+
+#### Rclone gives Failed to create file system for "remote:": Bad Request ####
+
+Due to an oddity of the underlying swift library, it gives a "Bad
+Request" error rather than a more sensible error when the
+authentication fails for Swift.
+
+So this most likely means your username / password is wrong. You can
+investigate further with the `--dump-bodies` flag.
+
+This may also be caused by specifying the region when you shouldn't
+have (eg OVH).
+
+#### Rclone gives Failed to create file system: Response didn't have storage storage url and auth token ####
+
+This is most likely caused by forgetting to specify your tenant when
+setting up a swift remote.
+
+SFTP
----------------------------------------
-The `crypt` remote encrypts and decrypts another remote.
+SFTP is the [Secure (or SSH) File Transfer
+Protocol](https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol).
-To use it first set up the underlying remote following the config
-instructions for that remote. You can also use a local pathname
-instead of a remote which will encrypt and decrypt from that directory
-which might be useful for encrypting onto a USB stick for example.
+It runs over SSH v2 and is standard with most modern SSH
+installations.
-First check your chosen remote is working - we'll call it
-`remote:path` in these docs. Note that anything inside `remote:path`
-will be encrypted and anything outside won't. This means that if you
-are using a bucket based remote (eg S3, B2, swift) then you should
-probably put the bucket in the remote `s3:bucket`. If you just use
-`s3:` then rclone will make encrypted bucket names too (if using file
-name encryption) which may or may not be what you want.
+Paths are specified as `remote:path`. If the path does not begin with
+a `/` it is relative to the home directory of the user. An empty path
+`remote:` refers to the users home directory.
-Now configure `crypt` using `rclone config`. We will call this one
-`secret` to differentiate it from the `remote`.
+Here is an example of making a SFTP configuration. First run
+
+ rclone config
+
+This will guide you through an interactive setup process.
```
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
-n/s/q> n
-name> secret
+n/s/q> n
+name> remote
Type of storage to configure.
Choose a number from below, or type in your own value
1 / Amazon Drive
@@ -5516,67 +6797,51 @@ Choose a number from below, or type in your own value
\ "dropbox"
5 / Encrypt/Decrypt a remote
\ "crypt"
- 6 / Google Cloud Storage (this is not Google Drive)
+ 6 / FTP Connection
+ \ "ftp"
+ 7 / Google Cloud Storage (this is not Google Drive)
\ "google cloud storage"
- 7 / Google Drive
+ 8 / Google Drive
\ "drive"
- 8 / Hubic
+ 9 / Hubic
\ "hubic"
- 9 / Local Disk
+10 / Local Disk
\ "local"
-10 / Microsoft OneDrive
+11 / Microsoft OneDrive
\ "onedrive"
-11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
\ "swift"
-12 / SSH/SFTP Connection
+13 / SSH/SFTP Connection
\ "sftp"
-13 / Yandex Disk
+14 / Yandex Disk
\ "yandex"
-Storage> 5
-Remote to encrypt/decrypt.
-Normally should contain a ':' and a path, eg "myremote:path/to/dir",
-"myremote:bucket" or maybe "myremote:" (not recommended).
-remote> remote:path
-How to encrypt the filenames.
+15 / http Connection
+ \ "http"
+Storage> sftp
+SSH host to connect to
Choose a number from below, or type in your own value
- 1 / Don't encrypt the file names. Adds a ".bin" extension only.
- \ "off"
- 2 / Encrypt the filenames see the docs for the details.
- \ "standard"
- 3 / Very simple filename obfuscation.
- \ "obfuscate"
-filename_encryption> 2
-Password or pass phrase for encryption.
-y) Yes type in my own password
-g) Generate random password
-y/g> y
-Enter the password:
-password:
-Confirm the password:
-password:
-Password or pass phrase for salt. Optional but recommended.
-Should be different to the previous password.
+ 1 / Connect to example.com
+ \ "example.com"
+host> example.com
+SSH username, leave blank for current username, ncw
+user> sftpuser
+SSH port, leave blank to use default (22)
+port>
+SSH password, leave blank to use ssh-agent.
y) Yes type in my own password
g) Generate random password
n) No leave this optional password blank
-y/g/n> g
-Password strength in bits.
-64 is just about memorable
-128 is secure
-1024 is the maximum
-Bits> 128
-Your password is: JAsJvRcgR-_veXNfy_sGmQ
-Use this password?
-y) Yes
-n) No
-y/n> y
+y/g/n> n
+Path to unencrypted PEM-encoded private key file, leave blank to use ssh-agent.
+key_file>
Remote config
--------------------
-[secret]
-remote = remote:path
-filename_encryption = standard
-password = *** ENCRYPTED ***
-password2 = *** ENCRYPTED ***
+[remote]
+host = example.com
+user = sftpuser
+port =
+pass =
+key_file =
--------------------
y) Yes this is OK
e) Edit this remote
@@ -5584,302 +6849,197 @@ d) Delete this remote
y/e/d> y
```
-**Important** The password is stored in the config file is lightly
-obscured so it isn't immediately obvious what it is. It is in no way
-secure unless you use config file encryption.
-
-A long passphrase is recommended, or you can use a random one. Note
-that if you reconfigure rclone with the same passwords/passphrases
-elsewhere it will be compatible - all the secrets used are derived
-from those two passwords/passphrases.
-
-Note that rclone does not encrypt
-
- * file length - this can be calcuated within 16 bytes
- * modification time - used for syncing
-
-## Specifying the remote ##
-
-In normal use, make sure the remote has a `:` in. If you specify the
-remote without a `:` then rclone will use a local directory of that
-name. So if you use a remote of `/path/to/secret/files` then rclone
-will encrypt stuff to that directory. If you use a remote of `name`
-then rclone will put files in a directory called `name` in the current
-directory.
-
-If you specify the remote as `remote:path/to/dir` then rclone will
-store encrypted files in `path/to/dir` on the remote. If you are using
-file name encryption, then when you save files to
-`secret:subdir/subfile` this will store them in the unencrypted path
-`path/to/dir` but the `subdir/subpath` bit will be encrypted.
-
-Note that unless you want encrypted bucket names (which are difficult
-to manage because you won't know what directory they represent in web
-interfaces etc), you should probably specify a bucket, eg
-`remote:secretbucket` when using bucket based remotes such as S3,
-Swift, Hubic, B2, GCS.
-
-## Example ##
-
-To test I made a little directory of files using "standard" file name
-encryption.
-
-```
-plaintext/
-├── file0.txt
-├── file1.txt
-└── subdir
- ├── file2.txt
- ├── file3.txt
- └── subsubdir
- └── file4.txt
-```
-
-Copy these to the remote and list them back
-
-```
-$ rclone -q copy plaintext secret:
-$ rclone -q ls secret:
- 7 file1.txt
- 6 file0.txt
- 8 subdir/file2.txt
- 10 subdir/subsubdir/file4.txt
- 9 subdir/file3.txt
-```
-
-Now see what that looked like when encrypted
-
-```
-$ rclone -q ls remote:path
- 55 hagjclgavj2mbiqm6u6cnjjqcg
- 54 v05749mltvv1tf4onltun46gls
- 57 86vhrsv86mpbtd3a0akjuqslj8/dlj7fkq4kdq72emafg7a7s41uo
- 58 86vhrsv86mpbtd3a0akjuqslj8/7uu829995du6o42n32otfhjqp4/b9pausrfansjth5ob3jkdqd4lc
- 56 86vhrsv86mpbtd3a0akjuqslj8/8njh1sk437gttmep3p70g81aps
-```
-
-Note that this retains the directory structure which means you can do this
-
-```
-$ rclone -q ls secret:subdir
- 8 file2.txt
- 9 file3.txt
- 10 subsubdir/file4.txt
-```
-
-If don't use file name encryption then the remote will look like this
-- note the `.bin` extensions added to prevent the cloud provider
-attempting to interpret the data.
-
-```
-$ rclone -q ls remote:path
- 54 file0.txt.bin
- 57 subdir/file3.txt.bin
- 56 subdir/file2.txt.bin
- 58 subdir/subsubdir/file4.txt.bin
- 55 file1.txt.bin
-```
-
-### File name encryption modes ###
-
-Here are some of the features of the file name encryption modes
-
-Off
-
- * doesn't hide file names or directory structure
- * allows for longer file names (~246 characters)
- * can use sub paths and copy single files
-
-Standard
-
- * file names encrypted
- * file names can't be as long (~156 characters)
- * can use sub paths and copy single files
- * directory structure visibile
- * identical files names will have identical uploaded names
- * can use shortcuts to shorten the directory recursion
-
-Obfuscation
-
-This is a simple "rotate" of the filename, with each file having a rot
-distance based on the filename. We store the distance at the beginning
-of the filename. So a file called "hello" may become "53.jgnnq"
-
-This is not a strong encryption of filenames, but it may stop automated
-scanning tools from picking up on filename patterns. As such it's an
-intermediate between "off" and "standard". The advantage is that it
-allows for longer path segment names.
-
-There is a possibility with some unicode based filenames that the
-obfuscation is weak and may map lower case characters to upper case
-equivalents. You can not rely on this for strong protection.
-
- * file names very lightly obfuscated
- * file names can be longer than standard encryption
- * can use sub paths and copy single files
- * directory structure visibile
- * identical files names will have identical uploaded names
+This remote is called `remote` and can now be used like this
-Cloud storage systems have various limits on file name length and
-total path length which you are more likely to hit using "Standard"
-file name encryption. If you keep your file names to below 156
-characters in length then you should be OK on all providers.
+See all directories in the home directory
-There may be an even more secure file name encryption mode in the
-future which will address the long file name problem.
+ rclone lsd remote:
-### Modified time and hashes ###
+Make a new directory
-Crypt stores modification times using the underlying remote so support
-depends on that.
+ rclone mkdir remote:path/to/directory
-Hashes are not stored for crypt. However the data integrity is
-protected by an extremely strong crypto authenticator.
+List the contents of a directory
-Note that you should use the `rclone cryptcheck` command to check the
-integrity of a crypted remote instead of `rclone check` which can't
-check the checksums properly.
+ rclone ls remote:path/to/directory
-### Specific options ###
+Sync `/home/local/directory` to the remote directory, deleting any
+excess files in the directory.
-Here are the command line options specific to this cloud storage
-system.
+ rclone sync /home/local/directory remote:directory
-#### --crypt-show-mapping ####
+### SSH Authentication ###
-If this flag is set then for each file that the remote is asked to
-list, it will log (at level INFO) a line stating the decrypted file
-name and the encrypted file name.
+The SFTP remote supports 3 authentication methods
-This is so you can work out which encrypted names are which decrypted
-names just in case you need to do something with the encrypted file
-names, or for debugging purposes.
+ * Password
+ * Key file
+ * ssh-agent
-## Backing up a crypted remote ##
+Key files should be unencrypted PEM-encoded private key files. For
+instance `/home/$USER/.ssh/id_rsa`.
-If you wish to backup a crypted remote, it it recommended that you use
-`rclone sync` on the encrypted files, and make sure the passwords are
-the same in the new encrypted remote.
+If you don't specify `pass` or `key_file` then it will attempt to
+contact an ssh-agent.
-This will have the following advantages
+### ssh-agent on macOS ###
- * `rclone sync` will check the checksums while copying
- * you can use `rclone check` between the encrypted remotes
- * you don't decrypt and encrypt unecessarily
+Note that there seem to be various problems with using an ssh-agent on
+macOS due to recent changes in the OS. The most effective work-around
+seems to be to start an ssh-agent in each session, eg
-For example, let's say you have your original remote at `remote:` with
-the encrypted version at `eremote:` with path `remote:crypt`. You
-would then set up the new remote `remote2:` and then the encrypted
-version `eremote2:` with path `remote2:crypt` using the same passwords
-as `eremote:`.
+ eval `ssh-agent -s` && ssh-add -A
-To sync the two remotes you would do
+And then at the end of the session
- rclone sync remote:crypt remote2:crypt
+ eval `ssh-agent -k`
-And to check the integrity you would do
+These commands can be used in scripts of course.
- rclone check remote:crypt remote2:crypt
+### Modified time ###
-## File formats ##
+Modified times are stored on the server to 1 second precision.
-### File encryption ###
+Modified times are used in syncing and are fully supported.
-Files are encrypted 1:1 source file to destination object. The file
-has a header and is divided into chunks.
+### Limitations ###
-#### Header ####
+SFTP supports checksums if the same login has shell access and `md5sum`
+or `sha1sum` as well as `echo` are in the remote's PATH.
- * 8 bytes magic string `RCLONE\x00\x00`
- * 24 bytes Nonce (IV)
+The only ssh agent supported under Windows is Putty's pagent.
-The initial nonce is generated from the operating systems crypto
-strong random number genrator. The nonce is incremented for each
-chunk read making sure each nonce is unique for each block written.
-The chance of a nonce being re-used is miniscule. If you wrote an
-exabyte of data (10¹⁸ bytes) you would have a probability of
-approximately 2×10⁻³² of re-using a nonce.
+SFTP isn't supported under plan9 until [this
+issue](https://github.com/pkg/sftp/issues/156) is fixed.
-#### Chunk ####
+Note that since SFTP isn't HTTP based the following flags don't work
+with it: `--dump-headers`, `--dump-bodies`, `--dump-auth`
-Each chunk will contain 64kB of data, except for the last one which
-may have less data. The data chunk is in standard NACL secretbox
-format. Secretbox uses XSalsa20 and Poly1305 to encrypt and
-authenticate messages.
+Note that `--timeout` isn't supported (but `--contimeout` is).
-Each chunk contains:
+Yandex Disk
+----------------------------------------
- * 16 Bytes of Poly1305 authenticator
- * 1 - 65536 bytes XSalsa20 encrypted data
+[Yandex Disk](https://disk.yandex.com) is a cloud storage solution created by [Yandex](https://yandex.com).
-64k chunk size was chosen as the best performing chunk size (the
-authenticator takes too much time below this and the performance drops
-off due to cache effects above this). Note that these chunks are
-buffered in memory so they can't be too big.
+Yandex paths may be as deep as required, eg `remote:directory/subdirectory`.
-This uses a 32 byte (256 bit key) key derived from the user password.
+Here is an example of making a yandex configuration. First run
-#### Examples ####
+ rclone config
-1 byte file will encrypt to
+This will guide you through an interactive setup process:
- * 32 bytes header
- * 17 bytes data chunk
+```
+No remotes found - make a new one
+n) New remote
+s) Set configuration password
+n/s> n
+name> remote
+Type of storage to configure.
+Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ "amazon cloud drive"
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ "s3"
+ 3 / Backblaze B2
+ \ "b2"
+ 4 / Dropbox
+ \ "dropbox"
+ 5 / Encrypt/Decrypt a remote
+ \ "crypt"
+ 6 / Google Cloud Storage (this is not Google Drive)
+ \ "google cloud storage"
+ 7 / Google Drive
+ \ "drive"
+ 8 / Hubic
+ \ "hubic"
+ 9 / Local Disk
+ \ "local"
+10 / Microsoft OneDrive
+ \ "onedrive"
+11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ \ "swift"
+12 / SSH/SFTP Connection
+ \ "sftp"
+13 / Yandex Disk
+ \ "yandex"
+Storage> 13
+Yandex Client Id - leave blank normally.
+client_id>
+Yandex Client Secret - leave blank normally.
+client_secret>
+Remote config
+Use auto config?
+ * Say Y if not sure
+ * Say N if you are working on a remote or headless machine
+y) Yes
+n) No
+y/n> y
+If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
+Log in and authorize rclone for access
+Waiting for code...
+Got code
+--------------------
+[remote]
+client_id =
+client_secret =
+token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"bearer","expiry":"2016-12-29T12:27:11.362788025Z"}
+--------------------
+y) Yes this is OK
+e) Edit this remote
+d) Delete this remote
+y/e/d> y
+```
-49 bytes total
+See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
+machine with no Internet browser available.
-1MB (1048576 bytes) file will encrypt to
+Note that rclone runs a webserver on your local machine to collect the
+token as returned from Yandex Disk. This only runs from the moment it
+opens your browser to the moment you get back the verification code.
+This is on `http://127.0.0.1:53682/` and this it may require you to
+unblock it temporarily if you are running a host firewall.
- * 32 bytes header
- * 16 chunks of 65568 bytes
+Once configured you can then use `rclone` like this,
-1049120 bytes total (a 0.05% overhead). This is the overhead for big
-files.
+See top level directories
-### Name encryption ###
+ rclone lsd remote:
-File names are encrypted segment by segment - the path is broken up
-into `/` separated strings and these are encrypted individually.
+Make a new directory
-File segments are padded using using PKCS#7 to a multiple of 16 bytes
-before encryption.
+ rclone mkdir remote:directory
-They are then encrypted with EME using AES with 256 bit key. EME
-(ECB-Mix-ECB) is a wide-block encryption mode presented in the 2003
-paper "A Parallelizable Enciphering Mode" by Halevi and Rogaway.
+List the contents of a directory
-This makes for determinstic encryption which is what we want - the
-same filename must encrypt to the same thing otherwise we can't find
-it on the cloud storage system.
+ rclone ls remote:directory
-This means that
+Sync `/home/local/directory` to the remote path, deleting any
+excess files in the path.
- * filenames with the same name will encrypt the same
- * filenames which start the same won't have a common prefix
+ rclone sync /home/local/directory remote:directory
-This uses a 32 byte key (256 bits) and a 16 byte (128 bits) IV both of
-which are derived from the user password.
+### --fast-list ###
-After encryption they are written out using a modified version of
-standard `base32` encoding as described in RFC4648. The standard
-encoding is modified in two ways:
+This remote supports `--fast-list` which allows you to use fewer
+transactions in exchange for more memory. See the [rclone
+docs](/docs/#fast-list) for more details.
- * it becomes lower case (no-one likes upper case filenames!)
- * we strip the padding character `=`
+### Modified time ###
-`base32` is used rather than the more efficient `base64` so rclone can be
-used on case insensitive remotes (eg Windows, Amazon Drive).
+Modified times are supported and are stored accurate to 1 ns in custom
+metadata called `rclone_modified` in RFC3339 with nanoseconds format.
-### Key derivation ###
+### MD5 checksums ###
-Rclone uses `scrypt` with parameters `N=16384, r=8, p=1` with a an
-optional user supplied salt (password2) to derive the 32+32+16 = 80
-bytes of key material required. If the user doesn't supply a salt
-then rclone uses an internal one.
+MD5 checksums are natively supported by Yandex Disk.
-`scrypt` makes it impractical to mount a dictionary attack on rclone
-encrypted data. For full protection agains this you should always use
-a salt.
+### Emptying Trash ###
+
+If you wish to empty your trash you can use the `rclone cleanup remote:`
+command which will permanently delete all your trashed files. This command
+does not take any path arguments.
Local Filesystem
-------------------------------------------
@@ -5997,17 +7157,11 @@ $ rclone -L ls /tmp/a
6 b/one
```
-#### --no-local-unicode-normalization ####
-
-By default rclone normalizes (NFC) the unicode representation of filenames and
-directories. This flag disables that normalization and uses the same
-representation as the local filesystem.
+#### --local-no-unicode-normalization ####
-This can be useful if you need to retain the local unicode representation and
-you are using a cloud provider which supports unnormalized names (e.g. S3 or ACD).
-
-This should also work with any provider if you are using crypt and have file
-name encryption (the default) or obfuscation turned on.
+This flag is deprecated now. Rclone no longer normalizes unicode file
+names, but it compares them with unicode normalization in the sync
+routine instead.
#### --one-file-system, -x ####
@@ -6050,9 +7204,80 @@ filesystem.
where it isn't supported (eg Windows) it will not appear as an valid
flag.
+#### --skip-links ####
+
+This flag disables warning messages on skipped symlinks or junction
+points, as you explicitly acknowledge that they should be skipped.
+
Changelog
---------
+ * v1.38 - 2017-09-30
+ * New backends
+ * Azure Blob Storage (thanks Andrei Dragomir)
+ * Box
+ * Onedrive for Business (thanks Oliver Heyme)
+ * QingStor from QingCloud (thanks wuyu)
+ * New commands
+ * `rcat` - read from standard input and stream upload
+ * `tree` - shows a nicely formatted recursive listing
+ * `cryptdecode` - decode crypted file names (thanks ishuah)
+ * `config show` - print the config file
+ * `config file` - print the config file location
+ * New Features
+ * Empty directories are deleted on `sync`
+ * `dedupe` - implement merging of duplicate directories
+ * `check` and `cryptcheck` made more consistent and use less memory
+ * `cleanup` for remaining remotes (thanks ishuah)
+ * `--immutable` for ensuring that files don't change (thanks Jacob McNamee)
+ * `--user-agent` option (thanks Alex McGrath Kraak)
+ * `--disable` flag to disable optional features
+ * `--bind` flag for choosing the local addr on outgoing connections
+ * Support for zsh auto-completion (thanks bpicode)
+ * Stop normalizing file names but do a normalized compare in `sync`
+ * Compile
+ * Update to using go1.9 as the default go version
+ * Remove snapd build due to maintenance problems
+ * Bug Fixes
+ * Improve retriable error detection which makes multipart uploads better
+ * Make `check` obey `--ignore-size`
+ * Fix bwlimit toggle in conjunction with schedules (thanks cbruegg)
+ * `config` ensures newly written config is on the same mount
+ * Local
+ * Revert to copy when moving file across file system boundaries
+ * `--skip-links` to suppress symlink warnings (thanks Zhiming Wang)
+ * Mount
+ * Re-use `rcat` internals to support uploads from all remotes
+ * Dropbox
+ * Fix "entry doesn't belong in directory" error
+ * Stop using deprecated API methods
+ * Swift
+ * Fix server side copy to empty container with `--fast-list`
+ * Google Drive
+ * Change the default for `--drive-use-trash` to `true`
+ * S3
+ * Set session token when using STS (thanks Girish Ramakrishnan)
+ * Glacier docs and error messages (thanks Jan Varho)
+ * Read 1000 (not 1024) items in dir listings to fix Wasabi
+ * Backblaze B2
+ * Fix SHA1 mismatch when downloading files with no SHA1
+ * Calculate missing hashes on the fly instead of spooling
+ * `--b2-hard-delete` to permanently delete (not hide) files (thanks John Papandriopoulos)
+ * Hubic
+ * Fix creating containers - no longer have to use the `default` container
+ * Swift
+ * Optionally configure from a standard set of OpenStack environment vars
+ * Add `endpoint_type` config
+ * Google Cloud Storage
+ * Fix bucket creation to work with limited permission users
+ * SFTP
+ * Implement connection pooling for multiple ssh connections
+ * Limit new connections per second
+ * Add support for MD5 and SHA1 hashes where available (thanks Christian Brüggemann)
+ * HTTP
+ * Fix URL encoding issues
+ * Fix directories with `:` in
+ * Fix panic with URL encoded content
* v1.37 - 2017-07-22
* New backends
* FTP - thanks to Antonio Messina
@@ -6066,7 +7291,7 @@ Changelog
* This allows remotes to list recursively if they can
* This uses less transactions (important if you pay for them)
* This may or may not be quicker
- * This will user more memory as it has to hold the listing in memory
+ * This will use more memory as it has to hold the listing in memory
* --old-sync-method deprecated - the remaining uses are covered by --fast-list
* This involved a major re-write of all the listing code
* Add --tpslimit and --tpslimit-burst to limit transactions per second
@@ -6926,6 +8151,21 @@ fix is to install the Word viewer and the Microsoft Office
Compatibility Pack for Word, Excel, and PowerPoint 2007 and later
versions' file formats
+### tcp lookup some.domain.com no such host ###
+
+This happens when rclone cannot resolve a domain. Please check that
+your DNS setup is generally working, e.g.
+
+```
+# both should print a long list of possible IP addresses
+dig www.googleapis.com # resolve using your default DNS
+dig www.googleapis.com @8.8.8.8 # resolve with Google's DNS server
+```
+
+If you are using `systemd-resolved` (default on Arch Linux), ensure it
+is at version 233 or higher. Previous releases contain a bug which
+causes not all domains to be resolved properly.
+
License
-------
@@ -7038,6 +8278,22 @@ Contributors
* sainaen <[email protected]>
* Yaroslav Halchenko <[email protected]>
+ * John Papandriopoulos <[email protected]>
+ * Zhiming Wang <[email protected]>
+ * Andy Pilate <[email protected]>
+ * Oliver Heyme <[email protected]>
+ * Andrei Dragomir <[email protected]>
+ * Christian Brüggemann <[email protected]>
+ * Alex McGrath Kraak <[email protected]>
+ * bpicode <[email protected]>
+ * Daniel Jagszent <[email protected]>
+ * Josiah White <[email protected]>
+ * Ishuah Kariuki <[email protected]> <[email protected]>
+ * Jan Varho <[email protected]>
+ * Girish Ramakrishnan <[email protected]>
+ * LingMan <[email protected]>
+ * Jacob McNamee <[email protected]>
# Contact the rclone project #
diff --git a/MANUAL.txt b/MANUAL.txt
index 5c45cfd02..53b0a1fdb 100644
--- a/MANUAL.txt
+++ b/MANUAL.txt
@@ -1,6 +1,6 @@
rclone(1) User Manual
Nick Craig-Wood
-Jul 22, 2017
+Sep 30, 2017
@@ -10,21 +10,32 @@ RCLONE
[Logo]
Rclone is a command line program to sync files and directories to and
-from
+from:
-- Google Drive
+- Amazon Drive
- Amazon S3
-- Openstack Swift / Rackspace cloud files / Memset Memstore
+- Backblaze B2
+- Box
+- Ceph
+- Dreamhost
- Dropbox
+- FTP
- Google Cloud Storage
-- Amazon Drive
-- Microsoft OneDrive
+- Google Drive
+- HTTP
- Hubic
-- Backblaze B2
-- Yandex Disk
+- Memset Memstore
+- Microsoft Azure Blob Storage
+- Microsoft OneDrive
+- Minio
+- OVH
+- Openstack Swift
+- Oracle Cloud Storage
+- QingStor
+- Rackspace Cloud Files
- SFTP
-- FTP
-- HTTP
+- Wasabi
+- Yandex Disk
- The local filesystem
Features
@@ -104,8 +115,12 @@ Unzip the download and cd to the extracted folder.
Move rclone to your $PATH. You will be prompted for your password.
+ sudo mkdir -p /usr/local/bin
sudo mv rclone /usr/local/bin/
+(the mkdir command is safe to run, even if the directory already
+exists).
+
Remove the leftover files.
cd .. && rm -rf rclone-*-osx-amd64 rclone-current-osx-amd64.zip
@@ -143,62 +158,6 @@ Instructions
- rclone
-Installation with snap
-
-Quickstart
-
-- install Snapd on your distro using the instructions below
-- sudo snap install rclone --classic
-- Run rclone config to setup. See rclone config docs for more details.
-
-See below for how to install snapd if it isn't already installed
-
-Arch
-
- sudo pacman -S snapd
-
-enable the snapd systemd service:
-
- sudo systemctl enable --now snapd.socket
-
-Debian / Ubuntu
-
- sudo apt install snapd
-
-Fedora
-
- sudo dnf copr enable zyga/snapcore
- sudo dnf install snapd
-
-enable the snapd systemd service:
-
- sudo systemctl enable --now snapd.service
-
-SELinux support is in beta, so currently:
-
- sudo setenforce 0
-
-to persist, edit /etc/selinux/config to set SELINUX=permissive and
-reboot.
-
-Gentoo
-
-Install the gentoo-snappy overlay.
-
-OpenEmbedded/Yocto
-
-Install the snap meta layer.
-
-openSUSE
-
- sudo zypper addrepo https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_42.2/ snappy
- sudo zypper install snapd
-
-OpenWrt
-
-Enable the snap-openwrt feed.
-
-
Configure
First, you'll need to configure rclone. As the object storage systems
@@ -213,21 +172,24 @@ option:
See the following for detailed instructions for
-- Google Drive
+- Amazon Drive
- Amazon S3
-- Swift / Rackspace Cloudfiles / Memset Memstore
+- Backblaze B2
+- Box
+- Crypt - to encrypt other remotes
- Dropbox
+- FTP
- Google Cloud Storage
-- Local filesystem
-- Amazon Drive
-- Backblaze B2
+- Google Drive
+- HTTP
- Hubic
+- Microsoft Azure Blob Storage
- Microsoft OneDrive
-- Yandex Disk
+- Openstack Swift / Rackspace Cloudfiles / Memset Memstore
+- QingStor
- SFTP
-- FTP
-- HTTP
-- Crypt - to encrypt other remotes
+- Yandex Disk
+- The local filesystem
Usage
@@ -260,9 +222,21 @@ Enter an interactive configuration session.
Synopsis
-Enter an interactive configuration session.
+rclone config enters an interactive configuration sessions where you can
+setup new remotes and manage existing ones. You may also set or remove a
+password to protect your configuration.
- rclone config
+Additional functions:
+
+- rclone config edit – same as above
+- rclone config file – show path of configuration file in use
+- rclone config show – print (decrypted) config file
+
+ rclone config [function] [flags]
+
+Options
+
+ -h, --help help for config
rclone copy
@@ -309,7 +283,11 @@ source or destination.
See the --no-traverse option for controlling whether rclone lists the
destination directory or not.
- rclone copy source:path dest:path
+ rclone copy source:path dest:path [flags]
+
+Options
+
+ -h, --help help for copy
rclone sync
@@ -337,7 +315,11 @@ extended explanation in the copy command above if unsure.
If dest:path doesn't exist, it is created and the source:path contents
go there.
- rclone sync source:path dest:path
+ rclone sync source:path dest:path [flags]
+
+Options
+
+ -h, --help help for sync
rclone move
@@ -362,7 +344,11 @@ then delete the original (if no errors on copy) in source:path.
IMPORTANT: Since this can cause data loss, test first with the --dry-run
flag.
- rclone move source:path dest:path
+ rclone move source:path dest:path [flags]
+
+Options
+
+ -h, --help help for move
rclone delete
@@ -388,7 +374,11 @@ Then delete
That reads "delete everything with a minimum size of 100 MB", hence
delete all files bigger than 100MBytes.
- rclone delete remote:path
+ rclone delete remote:path [flags]
+
+Options
+
+ -h, --help help for delete
rclone purge
@@ -401,7 +391,11 @@ Remove the path and all of its contents. Note that this does not obey
include/exclude filters - everything will be removed. Use delete if you
want to selectively delete files.
- rclone purge remote:path
+ rclone purge remote:path [flags]
+
+Options
+
+ -h, --help help for purge
rclone mkdir
@@ -412,7 +406,11 @@ Synopsis
Make the path if it doesn't already exist.
- rclone mkdir remote:path
+ rclone mkdir remote:path [flags]
+
+Options
+
+ -h, --help help for mkdir
rclone rmdir
@@ -424,7 +422,11 @@ Synopsis
Remove the path. Note that you can't remove a path with objects in it,
use purge for that.
- rclone rmdir remote:path
+ rclone rmdir remote:path [flags]
+
+Options
+
+ -h, --help help for rmdir
rclone check
@@ -450,6 +452,7 @@ the data.
Options
--download Check by downloading rather than with hash.
+ -h, --help help for check
rclone ls
@@ -460,7 +463,11 @@ Synopsis
List all the objects in the path with size and path.
- rclone ls remote:path
+ rclone ls remote:path [flags]
+
+Options
+
+ -h, --help help for ls
rclone lsd
@@ -471,7 +478,11 @@ Synopsis
List all directories/containers/buckets in the path.
- rclone lsd remote:path
+ rclone lsd remote:path [flags]
+
+Options
+
+ -h, --help help for lsd
rclone lsl
@@ -482,7 +493,11 @@ Synopsis
List all the objects path with modification time, size and path.
- rclone lsl remote:path
+ rclone lsl remote:path [flags]
+
+Options
+
+ -h, --help help for lsl
rclone md5sum
@@ -494,7 +509,11 @@ Synopsis
Produces an md5sum file for all the objects in the path. This is in the
same format as the standard md5sum tool produces.
- rclone md5sum remote:path
+ rclone md5sum remote:path [flags]
+
+Options
+
+ -h, --help help for md5sum
rclone sha1sum
@@ -506,7 +525,11 @@ Synopsis
Produces an sha1sum file for all the objects in the path. This is in the
same format as the standard sha1sum tool produces.
- rclone sha1sum remote:path
+ rclone sha1sum remote:path [flags]
+
+Options
+
+ -h, --help help for sha1sum
rclone size
@@ -517,7 +540,11 @@ Synopsis
Prints the total size and number of objects in remote:path.
- rclone size remote:path
+ rclone size remote:path [flags]
+
+Options
+
+ -h, --help help for size
rclone version
@@ -528,7 +555,11 @@ Synopsis
Show the version number.
- rclone version
+ rclone version [flags]
+
+Options
+
+ -h, --help help for version
rclone cleanup
@@ -540,7 +571,11 @@ Synopsis
Clean up the remote if possible. Empty the trash or delete old file
versions. Not supported by all remotes.
- rclone cleanup remote:path
+ rclone cleanup remote:path [flags]
+
+Options
+
+ -h, --help help for cleanup
rclone dedupe
@@ -549,10 +584,14 @@ Interactively find duplicate files delete/rename them.
Synopsis
-By default dedup interactively finds duplicate files and offers to
+By default dedupe interactively finds duplicate files and offers to
delete all but one or rename them to be different. Only useful with
Google Drive which can have duplicate file names.
+In the first pass it will merge directories with the same name. It will
+do this iteratively until all the identical directories have been
+merged.
+
The dedupe command will delete all but one of any identical (same
md5sum) files it finds without confirmation. This means that for most
duplicated files the dedupe command will not be interactive. You can use
@@ -636,6 +675,7 @@ Or
Options
--dedupe-mode string Dedupe mode interactive|skip|first|newest|oldest|rename. (default "interactive")
+ -h, --help help for dedupe
rclone authorize
@@ -647,7 +687,11 @@ Synopsis
Remote authorization. Used to authorize a remote or headless rclone from
a machine with a browser - use as instructed by rclone config.
- rclone authorize
+ rclone authorize [flags]
+
+Options
+
+ -h, --help help for authorize
rclone cat
@@ -682,6 +726,7 @@ Options
--count int Only print N characters. (default -1)
--discard Discard the output instead of printing.
--head int Only print the first N characters.
+ -h, --help help for cat
--offset int Start printing at offset N (or from end if -ve).
--tail int Only print the last N characters.
@@ -717,7 +762,11 @@ This will:
This doesn't transfer unchanged files, testing by size and modification
time or MD5SUM. It doesn't delete files from the destination.
- rclone copyto source:path dest:path
+ rclone copyto source:path dest:path [flags]
+
+Options
+
+ -h, --help help for copyto
rclone cryptcheck
@@ -749,7 +798,31 @@ files in remote:path.
After it has run it will log the status of the encryptedremote:.
- rclone cryptcheck remote:path cryptedremote:path
+ rclone cryptcheck remote:path cryptedremote:path [flags]
+
+Options
+
+ -h, --help help for cryptcheck
+
+
+rclone cryptdecode
+
+Cryptdecode returns unencrypted file names.
+
+Synopsis
+
+rclone cryptdecode returns unencrypted file names when provided with a
+list of encrypted file names. List limit is 10 items.
+
+use it like this
+
+ rclone cryptdecode encryptedremote: encryptedfilename1 encryptedfilename2
+
+ rclone cryptdecode encryptedremote: encryptedfilename [flags]
+
+Options
+
+ -h, --help help for cryptdecode
rclone dbhashsum
@@ -762,11 +835,29 @@ Produces a Dropbox hash file for all the objects in the path. The hashes
are calculated according to Dropbox content hash rules. The output is in
the same format as md5sum and sha1sum.
- rclone dbhashsum remote:path
+ rclone dbhashsum remote:path [flags]
+
+Options
+
+ -h, --help help for dbhashsum
rclone genautocomplete
+Output completion script for a given shell.
+
+Synopsis
+
+Generates a shell completion script for rclone. Run with --help to list
+the supported shells.
+
+Options
+
+ -h, --help help for genautocomplete
+
+
+rclone genautocomplete bash
+
Output bash completion script for rclone.
Synopsis
@@ -776,7 +867,7 @@ Generates a bash shell autocompletion script for rclone.
This writes to /etc/bash_completion.d/rclone by default so will probably
need to be run with sudo or as root, eg
- sudo rclone genautocomplete
+ sudo rclone genautocomplete bash
Logout and login again to use the autocompletion scripts, or source them
directly
@@ -785,7 +876,38 @@ directly
If you supply a command line argument the script will be written there.
- rclone genautocomplete [output_file]
+ rclone genautocomplete bash [output_file] [flags]
+
+Options
+
+ -h, --help help for bash
+
+
+rclone genautocomplete zsh
+
+Output zsh completion script for rclone.
+
+Synopsis
+
+Generates a zsh autocompletion script for rclone.
+
+This writes to /usr/share/zsh/vendor-completions/_rclone by default so
+will probably need to be run with sudo or as root, eg
+
+ sudo rclone genautocomplete zsh
+
+Logout and login again to use the autocompletion scripts, or source them
+directly
+
+ autoload -U compinit && compinit
+
+If you supply a command line argument the script will be written there.
+
+ rclone genautocomplete zsh [output_file] [flags]
+
+Options
+
+ -h, --help help for zsh
rclone gendocs
@@ -819,6 +941,7 @@ When uses with the -l flag it lists the types too.
Options
+ -h, --help help for listremotes
-l, --long Show the type as well as names.
@@ -853,6 +976,7 @@ can be processed line by line as each item is written one to a line.
Options
--hash Include hashes in the output (may take longer).
+ -h, --help help for lsjson
--no-modtime Don't read the modification time (can speed things up).
-R, --recursive Recurse into the listing.
@@ -891,6 +1015,30 @@ manually with
# OS X
umount /path/to/local/mount
+Installing on Windows
+
+To run rclone mount on Windows, you will need to download and install
+WinFsp.
+
+WinFsp is an open source Windows File System Proxy which makes it easy
+to write user space file systems for Windows. It provides a FUSE
+emulation layer which rclone uses combination with cgofuse. Both of
+these packages are by Bill Zissimopoulos who was very helpful during the
+implementation of rclone mount for Windows.
+
+Windows caveats
+
+Note that drives created as Administrator are not visible by other
+accounts (including the account that was elevated as Administrator). So
+if you start a Windows drive from an Administrative Command Prompt and
+then try to access the same drive from Explorer (which does not run as
+Administrator), you will not be able to see the new drive.
+
+The easiest way around this is to start the drive from a normal command
+prompt. It is also possible to start a drive from the SYSTEM account
+(using the WinFsp.Launcher infrastructure) which creates drives
+accessible for everyone on the system.
+
Limitations
This can only write files seqentially, it can only seek when reading.
@@ -934,13 +1082,6 @@ rclone instance is running, you can reset the cache like this:
kill -SIGHUP $(pidof rclone)
-Bugs
-
-- All the remotes should work for read, but some may not for write
- - those which need to know the size in advance won't - eg B2
- - maybe should pass in size as -1 to mean work it out
- - Or put in an an upload cache to cache the files on disk first
-
rclone mount remote:path /path/to/mountpoint [flags]
Options
@@ -953,6 +1094,7 @@ Options
--dir-cache-time duration Time to cache directory entries for. (default 5m0s)
--fuse-flag stringArray Flags or arguments to be passed direct to libfuse/WinFsp. Repeat if required.
--gid uint32 Override the gid field set by the filesystem. (default 502)
+ -h, --help help for mount
--max-read-ahead int The number of bytes that can be prefetched for sequential reads. (default 128k)
--no-checksum Don't compare checksums on up/download.
--no-modtime Don't read/write the modification time (can speed things up).
@@ -999,7 +1141,11 @@ time or MD5SUM. src will be deleted on successful transfer.
IMPORTANT: Since this can cause data loss, test first with the --dry-run
flag.
- rclone moveto source:path dest:path
+ rclone moveto source:path dest:path [flags]
+
+Options
+
+ -h, --help help for moveto
rclone ncdu
@@ -1032,7 +1178,11 @@ This an homage to the ncdu tool but for rclone remotes. It is missing
lots of features at the moment, most importantly deleting files, but is
useful as it stands.
- rclone ncdu remote:path
+ rclone ncdu remote:path [flags]
+
+Options
+
+ -h, --help help for ncdu
rclone obscure
@@ -1043,7 +1193,46 @@ Synopsis
Obscure password for use in the rclone.conf
- rclone obscure password
+ rclone obscure password [flags]
+
+Options
+
+ -h, --help help for obscure
+
+
+rclone rcat
+
+Copies standard input to file on remote.
+
+Synopsis
+
+rclone rcat reads from standard input (stdin) and copies it to a single
+remote file.
+
+ echo "hello world" | rclone rcat remote:path/to/file
+ ffmpeg - | rclone rcat --checksum remote:path/to/file
+
+If the remote file already exists, it will be overwritten.
+
+rcat will try to upload small files in a single request, which is
+usually more efficient than the streaming/chunked upload endpoints,
+which use multiple requests. Exact behaviour depends on the remote. What
+is considered a small file may be set through --streaming-upload-cutoff.
+Uploading only starts after the cutoff is reached or if the file ends
+before that. The data must fit into RAM. The cutoff needs to be small
+enough to adhere the limits of your remote, please see there. Generally
+speaking, setting this cutoff too high will decrease your performance.
+
+Note that the upload can also not be retried because the data is not
+kept around until the upload succeeds. If you need to transfer a lot of
+data, you're better off caching locally and then rclone move it to the
+destination.
+
+ rclone rcat remote:path [flags]
+
+Options
+
+ -h, --help help for rcat
rclone rmdirs
@@ -1059,7 +1248,67 @@ it has nothing in.
This is useful for tidying up remotes that rclone has left a lot of
empty directories in.
- rclone rmdirs remote:path
+ rclone rmdirs remote:path [flags]
+
+Options
+
+ -h, --help help for rmdirs
+
+
+rclone tree
+
+List the contents of the remote in a tree like fashion.
+
+Synopsis
+
+rclone tree lists the contents of a remote in a similar way to the unix
+tree command.
+
+For example
+
+ $ rclone tree remote:path
+ /
+ ├── file1
+ ├── file2
+ ├── file3
+ └── subdir
+ ├── file4
+ └── file5
+
+ 1 directories, 5 files
+
+You can use any of the filtering options with the tree command (eg
+--include and --exclude). You can also use --fast-list.
+
+The tree command has many options for controlling the listing which are
+compatible with the tree command. Note that not all of them have short
+options as they conflict with rclone's short options.
+
+ rclone tree remote:path [flags]
+
+Options
+
+ -a, --all All files are listed (list . files too).
+ -C, --color Turn colorization on always.
+ -d, --dirs-only List directories only.
+ --dirsfirst List directories before files (-U disables).
+ --full-path Print the full path prefix for each file.
+ -h, --help help for tree
+ --human Print the size in a more human readable way.
+ --level int Descend only level directories deep.
+ -D, --modtime Print the date of last modification.
+ -i, --noindent Don't print indentation lines.
+ --noreport Turn off file/directory count at end of tree listing.
+ -o, --output string Output to file instead of stdout.
+ -p, --protections Print the protections for each file.
+ -Q, --quote Quote filenames with double quotes.
+ -s, --size Print the size in bytes of each file.
+ --sort string Select sort: name,version,size,mtime,ctime.
+ --sort-ctime Sort files by last status change time.
+ -t, --sort-modtime Sort files by last modification time.
+ -r, --sort-reverse Reverse the order of the sort.
+ -U, --unsorted Leave files unsorted.
+ --version Sort files alphanumerically by version.
Copying single files
@@ -1214,6 +1463,13 @@ If running rclone from a script you might want to use today's date as
the directory name passed to --backup-dir to store the old files, or you
might want to pass --suffix with today's date.
+--bind string
+
+Local address to bind to for outgoing connections. This can be an IPv4
+address (1.2.3.4), an IPv6 address (1234::789A) or host name. If the
+host name doesn't resolve or resoves to more than one IP address it will
+give an error.
+
--bwlimit=BANDWIDTH_SPEC
This option controls the bandwidth limit. Limits can be specified in two
@@ -1323,6 +1579,26 @@ Mode to run dedupe command in. One of interactive, skip, first, newest,
oldest, rename. The default is interactive. See the dedupe command for
more information as to what these options mean.
+--disable FEATURE,FEATURE,...
+
+This disables a comma separated list of optional features. For example
+to disable server side move and server side copy use:
+
+ --disable move,copy
+
+The features can be put in in any case.
+
+To see a list of which features can be disabled use:
+
+ --disable help
+
+See the overview features and optional features to get an idea of which
+feature does what.
+
+This flag can be useful for debugging and in exceptional circumstances
+(eg Google Drive limiting the total volume of Server Side Copies to
+100GB/day).
+
-n, --dry-run
Do a trial run with no permanent changes. Use this to see what rclone
@@ -1370,6 +1646,26 @@ Normally rclone would skip any files that have the same modification
time and are the same size (or have the same checksum if using
--checksum).
+--immutable
+
+Treat source and destination files as immutable and disallow
+modification.
+
+With this option set, files will be created and deleted as requested,
+but existing files will never be updated. If an existing file does not
+match between the source and destination, rclone will give the error
+Source and destination exist but do not match: immutable file modified.
+
+Note that only commands which transfer files (e.g. sync, copy, move) are
+affected by this behavior, and only modification is disallowed. Files
+may still be deleted explicitly (e.g. delete, purge) or implicitly (e.g.
+sync, move). Use copy --immutable if it is desired to avoid deletion as
+well as modification.
+
+This can be useful as an additional layer of protection for immutable or
+append-only data sets (notably backup archives), where modification
+implies corruption and should not be propagated.
+
--log-file=FILE
Log all of rclone's output to FILE. This is not active by default. This
@@ -1796,6 +2092,9 @@ be very verbose. Useful for debugging only.
Dump HTTP headers and bodies - may contain sensitive info. Can be very
verbose. Useful for debugging only.
+Note that the bodies are buffered in memory so don't use this for
+enormous files.
+
--dump-filters
Dump the filters to the output. Useful to see exactly what include and
@@ -2319,11 +2618,13 @@ processed in.
Prepare a file like this filter-file.txt
- # a sample exclude rule file
+ # a sample filter rule file
- secret*.jpg
+ *.jpg
+ *.png
+ file2.avi
+ - /dir/Trash/**
+ + /dir/**
# exclude everything else
- *
@@ -2331,8 +2632,10 @@ Then use as --filter-from filter-file.txt. The rules are processed in
the order that they are defined.
This example will include all jpg and png files, exclude any files
-matching secret*.jpg and include file2.avi. Everything else will be
-excluded from the sync.
+matching secret*.jpg and include file2.avi. It will also include
+everything in the directory dir at the root of the sync, except
+dir/Trash which it will exclude. Everything else will be excluded from
+the sync.
--files-from - Read list of source-file names
@@ -2485,36 +2788,42 @@ Features
Here is an overview of the major features of each cloud storage system.
- Name Hash ModTime Case Insensitive Duplicate Files MIME Type
- ---------------------- ---------- --------- ------------------ ----------------- -----------
- Google Drive MD5 Yes No Yes R/W
- Amazon S3 MD5 Yes No No R/W
- Openstack Swift MD5 Yes No No R/W
- Dropbox DBHASH † Yes Yes No -
- Google Cloud Storage MD5 Yes No No R/W
- Amazon Drive MD5 No Yes No R
- Microsoft OneDrive SHA1 Yes Yes No R
- Hubic MD5 Yes No No R/W
- Backblaze B2 SHA1 Yes No No R/W
- Yandex Disk MD5 Yes No No R/W
- SFTP - Yes Depends No -
- FTP - No Yes No -
- HTTP - No Yes No R
- The local filesystem All Yes Depends No -
+ Name Hash ModTime Case Insensitive Duplicate Files MIME Type
+ ------------------------------ ------------- --------- ------------------ ----------------- -----------
+ Amazon Drive MD5 No Yes No R
+ Amazon S3 MD5 Yes No No R/W
+ Backblaze B2 SHA1 Yes No No R/W
+ Box SHA1 Yes Yes No -
+ Dropbox DBHASH † Yes Yes No -
+ FTP - No No No -
+ Google Cloud Storage MD5 Yes No No R/W
+ Google Drive MD5 Yes No Yes R/W
+ HTTP - No No No R
+ Hubic MD5 Yes No No R/W
+ Microsoft Azure Blob Storage MD5 Yes No No R/W
+ Microsoft OneDrive SHA1 Yes Yes No R
+ Openstack Swift MD5 Yes No No R/W
+ QingStor MD5 No No No R/W
+ SFTP MD5, SHA1 ‡ Yes Depends No -
+ Yandex Disk MD5 Yes No No R/W
+ The local filesystem All Yes Depends No -
Hash
-The cloud storage system supports various hash types of the objects.
-The hashes are used when transferring data as an integrity check and can
-be specifically used with the --checksum flag in syncs and in the check
+The cloud storage system supports various hash types of the objects. The
+hashes are used when transferring data as an integrity check and can be
+specifically used with the --checksum flag in syncs and in the check
command.
-To use the checksum checks between filesystems they must support a
-common hash type.
+To use the verify checksums when transferring between cloud storage
+systems they must support a common hash type.
† Note that Dropbox supports its own custom hash. This is an SHA256 sum
of all the 4MB block SHA256s.
+‡ SFTP supports checksums if the same login has shell access and md5sum
+or sha1sum as well as echo are in the remote's PATH.
+
ModTime
The cloud storage system supports setting modification times on objects.
@@ -2578,22 +2887,25 @@ All the remotes support a basic set of features, but there are some
optional features supported by some remotes used to make some operations
more efficient.
- Name Purge Copy Move DirMove CleanUp ListR
- ---------------------- ------- ------ ------ --------- --------- -------
- Google Drive Yes Yes Yes Yes No #575 No
- Amazon S3 No Yes No No No Yes
- Openstack Swift Yes † Yes No No No Yes
- Dropbox Yes Yes Yes Yes No #575 No
- Google Cloud Storage Yes Yes No No No Yes
- Amazon Drive Yes No Yes Yes No #575 No
- Microsoft OneDrive Yes Yes Yes No #197 No #575 No
- Hubic Yes † Yes No No No Yes
- Backblaze B2 No No No No Yes Yes
- Yandex Disk Yes No No No No #575 Yes
- SFTP No No Yes Yes No No
- FTP No No Yes Yes No No
- HTTP No No No No No No
- The local filesystem Yes No Yes Yes No No
+ Name Purge Copy Move DirMove CleanUp ListR StreamUpload
+ ------------------------------ ------- ------ ------ --------- --------- ------- --------------
+ Amazon Drive Yes No Yes Yes No #575 No No
+ Amazon S3 No Yes No No No Yes Yes
+ Backblaze B2 No No No No Yes Yes Yes
+ Box Yes Yes Yes Yes No #575 No Yes
+ Dropbox Yes Yes Yes Yes No #575 No Yes
+ FTP No No Yes Yes No No Yes
+ Google Cloud Storage Yes Yes No No No Yes Yes
+ Google Drive Yes Yes Yes Yes Yes No Yes
+ HTTP No No No No No No No
+ Hubic Yes † Yes No No No Yes Yes
+ Microsoft Azure Blob Storage Yes Yes No No No Yes No
+ Microsoft OneDrive Yes Yes Yes No #197 No #575 No No
+ Openstack Swift Yes † Yes No No No Yes Yes
+ QingStor No Yes No No No Yes No
+ SFTP No No Yes Yes No No Yes
+ Yandex Disk Yes No No No Yes Yes Yes
+ The local filesystem Yes No Yes Yes No No Yes
Purge
@@ -2642,24 +2954,46 @@ The remote supports a recursive list to list all the contents beneath a
directory quickly. This enables the --fast-list flag to work. See the
rclone docs for more details.
+StreamUpload
-Google Drive
+Some remotes allow files to be uploaded without knowing the file size in
+advance. This allows certain operations to work without spooling the
+file to local disk first, e.g. rclone rcat.
-Paths are specified as drive:path
-Drive paths may be as deep as required, eg drive:directory/subdirectory.
+Amazon Drive
-The initial setup for drive involves getting a token from Google drive
-which you need to do in your browser. rclone config walks you through
-it.
+Paths are specified as remote:path
-Here is an example of how to make a remote called remote. First run:
+Paths may be as deep as required, eg remote:directory/subdirectory.
- rclone config
+The initial setup for Amazon Drive involves getting a token from Amazon
+which you need to do in your browser. rclone config walks you through
+it.
-This will guide you through an interactive setup process:
+The configuration process for Amazon Drive may involve using an oauth
+proxy. This is used to keep the Amazon credentials out of the source
+code. The proxy runs in Google's very secure App Engine environment and
+doesn't store any credentials which pass through it.
- No remotes found - make a new one
+NB rclone doesn't not currently have its own Amazon Drive credentials
+(see the forum for why) so you will either need to have your own
+client_id and client_secret with Amazon Drive, or use a a third party
+ouath proxy in which case you will need to enter client_id,
+client_secret, auth_url and token_url.
+
+Note also if you are not using Amazon's auth_url and token_url, (ie you
+filled in something for those) then if setting up on a remote machine
+you can only use the copying the config method of configuration -
+rclone authorize will not work.
+
+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:
+
+ No remotes found - make a new one
n) New remote
r) Rename remote
c) Copy remote
@@ -2697,15 +3031,20 @@ This will guide you through an interactive setup process:
\ "sftp"
14 / Yandex Disk
\ "yandex"
- Storage> 8
- Google Application Client Id - leave blank normally.
- client_id>
- Google Application Client Secret - leave blank normally.
- client_secret>
+ Storage> 1
+ Amazon Application Client Id - required.
+ client_id> your client ID goes here
+ Amazon Application Client Secret - required.
+ client_secret> your client secret goes here
+ Auth server URL - leave blank to use Amazon's.
+ auth_url> Optional auth URL
+ Token server url - leave blank to use Amazon's.
+ token_url> Optional token URL
Remote config
+ Make sure your Redirect URL is set to "http://127.0.0.1:53682/" in your custom config.
Use auto config?
* Say Y if not sure
- * Say N if you are working on a remote or headless machine or Y didn't work
+ * Say N if you are working on a remote or headless machine
y) Yes
n) No
y/n> y
@@ -2713,352 +3052,134 @@ This will guide you through an interactive setup process:
Log in and authorize rclone for access
Waiting for code...
Got code
- Configure this as a team drive?
- y) Yes
- n) No
- y/n> n
--------------------
[remote]
- client_id =
- client_secret =
- token = {"AccessToken":"xxxx.x.xxxxx_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"1/xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx","Expiry":"2014-03-16T13:57:58.955387075Z","Extra":null}
+ client_id = your client ID goes here
+ client_secret = your client secret goes here
+ auth_url = Optional auth URL
+ token_url = Optional token URL
+ token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxx","token_type":"bearer","refresh_token":"xxxxxxxxxxxxxxxxxx","expiry":"2015-09-06T16:07:39.658438471+01:00"}
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
+See the remote setup docs for how to set it up on a machine with no
+Internet browser available.
+
Note that rclone runs a webserver on your local machine to collect the
-token as returned from Google if you use auto config mode. This only
-runs from the moment it opens your browser to the moment you get back
-the verification code. This is on http://127.0.0.1:53682/ and this it
-may require you to unblock it temporarily if you are running a host
-firewall, or use manual mode.
+token as returned from Amazon. This only runs from the moment it opens
+your browser to the moment you get back the verification code. This is
+on http://127.0.0.1:53682/ and this it may require you to unblock it
+temporarily if you are running a host firewall.
-You can then use it like this,
+Once configured you can then use rclone like this,
-List directories in top level of your drive
+List directories in top level of your Amazon Drive
rclone lsd remote:
-List all the files in your drive
+List all the files in your Amazon Drive
rclone ls remote:
-To copy a local directory to a drive directory called backup
+To copy a local directory to an Amazon Drive directory called backup
rclone copy /home/source remote:backup
-Team drives
-
-If you want to configure the remote to point to a Google Team Drive then
-answer y to the question Configure this as a team drive?.
-
-This will fetch the list of Team Drives from google and allow you to
-configure which one you want to use. You can also type in a team drive
-ID if you prefer.
-
-For example:
-
- Configure this as a team drive?
- y) Yes
- n) No
- y/n> y
- Fetching team drive list...
- Choose a number from below, or type in your own value
- 1 / Rclone Test
- \ "xxxxxxxxxxxxxxxxxxxx"
- 2 / Rclone Test 2
- \ "yyyyyyyyyyyyyyyyyyyy"
- 3 / Rclone Test 3
- \ "zzzzzzzzzzzzzzzzzzzz"
- Enter a Team Drive ID> 1
- --------------------
- [remote]
- client_id =
- client_secret =
- token = {"AccessToken":"xxxx.x.xxxxx_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"1/xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx","Expiry":"2014-03-16T13:57:58.955387075Z","Extra":null}
- team_drive = xxxxxxxxxxxxxxxxxxxx
- --------------------
- y) Yes this is OK
- e) Edit this remote
- d) Delete this remote
- y/e/d> y
-
-Modified time
-
-Google drive stores modification times accurate to 1 ms.
+Modified time and MD5SUMs
-Revisions
+Amazon Drive doesn't allow modification times to be changed via the API
+so these won't be accurate or used for syncing.
-Google drive stores revisions of files. When you upload a change to an
-existing file to google drive using rclone it will create a new revision
-of that file.
+It does store MD5SUMs so for a more accurate sync, you can use the
+--checksum flag.
-Revisions follow the standard google policy which at time of writing was
+Deleting files
-- They are deleted after 30 days or 100 revisions (whatever
- comes first).
-- They do not count towards a user storage quota.
+Any files you delete with rclone will end up in the trash. Amazon don't
+provide an API to permanently delete files, nor to empty the trash, so
+you will have to do that with one of Amazon's apps or via the Amazon
+Drive website. As of November 17, 2016, files are automatically deleted
+by Amazon from the trash after 30 days.
-Deleting files
+Using with non .com Amazon accounts
-By default rclone will delete files permanently when requested. If
-sending them to the trash is required instead then use the
---drive-use-trash flag.
+Let's say you usually use amazon.co.uk. When you authenticate with
+rclone it will take you to an amazon.com page to log in. Your
+amazon.co.uk email and password should work here just fine.
Specific options
Here are the command line options specific to this cloud storage system.
---drive-auth-owner-only
-
-Only consider files owned by the authenticated user.
-
---drive-chunk-size=SIZE
-
-Upload chunk size. Must a power of 2 >= 256k. Default value is 8 MB.
-
-Making this larger will improve performance, but note that each chunk is
-buffered in memory one per transfer.
-
-Reducing this will reduce memory usage but decrease performance.
-
---drive-auth-owner-only
+--acd-templink-threshold=SIZE
-Only consider files owned by the authenticated user.
+Files this size or more will be downloaded via their tempLink. This is
+to work around a problem with Amazon Drive which blocks downloads of
+files bigger than about 10GB. The default for this is 9GB which
+shouldn't need to be changed.
---drive-formats
+To download files above this threshold, rclone requests a tempLink which
+downloads the file through a temporary URL directly from the underlying
+S3 storage.
-Google documents can only be exported from Google drive. When rclone
-downloads a Google doc it chooses a format to download depending upon
-this setting.
+--acd-upload-wait-per-gb=TIME
-By default the formats are docx,xlsx,pptx,svg which are a sensible
-default for an editable document.
+Sometimes Amazon Drive gives an error when a file has been fully
+uploaded but the file appears anyway after a little while. This happens
+sometimes for files over 1GB in size and nearly every time for files
+bigger than 10GB. This parameter controls the time rclone waits for the
+file to appear.
-When choosing a format, rclone runs down the list provided in order and
-chooses the first file format the doc can be exported as from the list.
-If the file can't be exported to a format on the formats list, then
-rclone will choose a format from the default list.
+The default value for this parameter is 3 minutes per GB, so by default
+it will wait 3 minutes for every GB uploaded to see if the file appears.
-If you prefer an archive copy then you might use --drive-formats pdf, or
-if you prefer openoffice/libreoffice formats you might use
---drive-formats ods,odt,odp.
+You can disable this feature by setting it to 0. This may cause conflict
+errors as rclone retries the failed upload but the file will most likely
+appear correctly eventually.
-Note that rclone adds the extension to the google doc, so if it is
-calles My Spreadsheet on google docs, it will be exported as
-My Spreadsheet.xlsx or My Spreadsheet.pdf etc.
+These values were determined empirically by observing lots of uploads of
+big files for a range of file sizes.
-Here are the possible extensions with their corresponding mime types.
+Upload with the -v flag to see more info about what rclone is doing in
+this situation.
- -------------------------------------
- Extension Mime Type Description
- ---------- ------------ -------------
- csv text/csv Standard CSV
- format for
- Spreadsheets
+Limitations
- doc application/ Micosoft
- msword Office
- Document
+Note that Amazon Drive is case insensitive so you can't have a file
+called "Hello.doc" and one called "hello.doc".
- docx application/ Microsoft
- vnd.openxmlf Office
- ormats-offic Document
- edocument.wo
- rdprocessing
- ml.document
+Amazon Drive has rate limiting so you may notice errors in the sync (429
+errors). rclone will automatically retry the sync up to 3 times by
+default (see --retries flag) which should hopefully work around this
+problem.
- epub application/ E-book format
- epub+zip
+Amazon Drive has an internal limit of file sizes that can be uploaded to
+the service. This limit is not officially published, but all files
+larger than this will fail.
- html text/html An HTML
- Document
+At the time of writing (Jan 2016) is in the area of 50GB per file. This
+means that larger files are likely to fail.
- jpg image/jpeg A JPEG Image
- File
+Unfortunately there is no way for rclone to see that this failure is
+because of file size, so it will retry the operation, as any other
+failure. To avoid this problem, use --max-size 50000M option to limit
+the maximum size of uploaded files. Note that --max-size does not split
+files into segments, it only ignores files over this size.
- odp application/ Openoffice
- vnd.oasis.op Presentation
- endocument.p
- resentation
- ods application/ Openoffice
- vnd.oasis.op Spreadsheet
- endocument.s
- preadsheet
+Amazon S3
- ods application/ Openoffice
- x-vnd.oasis. Spreadsheet
- opendocument
- .spreadsheet
+Paths are specified as remote:bucket (or remote: for the lsd command.)
+You may put subdirectories in too, eg remote:bucket/path/to/dir.
- odt application/ Openoffice
- vnd.oasis.op Document
- endocument.t
- ext
+Here is an example of making an s3 configuration. First run
- pdf application/ Adobe PDF
- pdf Format
+ rclone config
- png image/png PNG Image
- Format
-
- pptx application/ Microsoft
- vnd.openxmlf Office
- ormats-offic Powerpoint
- edocument.pr
- esentationml
- .presentatio
- n
-
- rtf application/ Rich Text
- rtf Format
-
- svg image/svg+xm Scalable
- l Vector
- Graphics
- Format
-
- tsv text/tab-sep Standard TSV
- arated-value format for
- s spreadsheets
-
- txt text/plain Plain Text
-
- xls application/ Microsoft
- vnd.ms-excel Office
- Spreadsheet
-
- xlsx application/ Microsoft
- vnd.openxmlf Office
- ormats-offic Spreadsheet
- edocument.sp
- readsheetml.
- sheet
-
- zip application/ A ZIP file of
- zip HTML, Images
- CSS
- -------------------------------------
-
---drive-list-chunk int
-
-Size of listing chunk 100-1000. 0 to disable. (default 1000)
-
---drive-shared-with-me
-
-Only show files that are shared with me
-
---drive-skip-gdocs
-
-Skip google documents in all listings. If given, gdocs practically
-become invisible to rclone.
-
---drive-trashed-only
-
-Only show files that are in the trash. This will show trashed files in
-their original directory structure.
-
---drive-upload-cutoff=SIZE
-
-File size cutoff for switching to chunked upload. Default is 8 MB.
-
---drive-use-trash
-
-Send files to the trash instead of deleting permanently. Defaults to
-off, namely deleting files permanently.
-
-Limitations
-
-Drive has quite a lot of rate limiting. This causes rclone to be limited
-to transferring about 2 files per second only. Individual files may be
-transferred much faster at 100s of MBytes/s but lots of small files can
-take a long time.
-
-Duplicated files
-
-Sometimes, for no reason I've been able to track down, drive will
-duplicate a file that rclone uploads. Drive unlike all the other remotes
-can have duplicated files.
-
-Duplicated files cause problems with the syncing and you will see
-messages in the log about duplicates.
-
-Use rclone dedupe to fix duplicated files.
-
-Note that this isn't just a problem with rclone, even Google Photos on
-Android duplicates files on drive sometimes.
-
-Rclone appears to be re-copying files it shouldn't
-
-There are two possible reasons for rclone to recopy files which haven't
-changed to Google Drive.
-
-The first is the duplicated file issue above - run rclone dedupe and
-check your logs for duplicate object or directory messages.
-
-The second is that sometimes Google reports different sizes for the
-Google Docs exports which will cause rclone to re-download Google Docs
-for no apparent reason. --ignore-size is a not very satisfactory
-work-around for this if it is causing you a lot of problems.
-
-Google docs downloads sometimes fail with "Failed to copy: read X bytes expecting Y"
-
-This is the same problem as above. Google reports the google doc is one
-size, but rclone downloads a different size. Work-around with the
---ignore-size flag or wait for rclone to retry the download which it
-will.
-
-Making your own client_id
-
-When you use rclone with Google drive in its default configuration you
-are using rclone's client_id. This is shared between all the rclone
-users. There is a global rate limit on the number of queries per second
-that each client_id can do set by Google. rclone already has a high
-quota and I will continue to make sure it is high enough by contacting
-Google.
-
-However you might find you get better performance making your own
-client_id if you are a heavy user. Or you may not depending on exactly
-how Google have been raising rclone's rate limit.
-
-Here is how to create your own Google Drive client ID for rclone:
-
-1. Log into the Google API Console with your Google account. It doesn't
- matter what Google account you use. (It need not be the same account
- as the Google Drive you want to access)
-
-2. Select a project or create a new project.
-
-3. Under Overview, Google APIs, Google Apps APIs, click "Drive API",
- then "Enable".
-
-4. Click "Credentials" in the left-side panel (not "Go to credentials",
- which opens the wizard), then "Create credentials", then "OAuth
- client ID". It will prompt you to set the OAuth consent screen
- product name, if you haven't set one already.
-
-5. Choose an application type of "other", and click "Create". (the
- default name is fine)
-
-6. It will show you a client ID and client secret. Use these values in
- rclone config to add a new remote or edit an existing remote.
-
-(Thanks to @balazer on github for these instructions.)
-
-
-Amazon S3
-
-Paths are specified as remote:bucket (or remote: for the lsd command.)
-You may put subdirectories in too, eg remote:bucket/path/to/dir.
-
-Here is an example of making an s3 configuration. First run
-
- rclone config
-
-This will guide you through an interactive setup process.
+This will guide you through an interactive setup process.
No remotes found - make a new one
n) New remote
@@ -3283,12 +3404,14 @@ order of precedence:
- Directly in the rclone configuration file (as configured by
rclone config)
-- set access_key_id and secret_access_key
+- set access_key_id and secret_access_key. session_token can be
+ optionally set when using AWS STS.
- Runtime configuration:
- set env_auth to true in the config file
- Exporting the following environment variables before running rclone
- Access Key ID: AWS_ACCESS_KEY_ID or AWS_ACCESS_KEY
- Secret Access Key: AWS_SECRET_ACCESS_KEY or AWS_SECRET_KEY
+ - Session Token: AWS_SESSION_TOKEN
- Running rclone on an EC2 instance with an IAM role
If none of these option actually end up providing rclone with AWS
@@ -3340,6 +3463,17 @@ Notes on above:
For reference, here's an Ansible script that will generate one or more
buckets that will work with rclone sync.
+Glacier
+
+You can transition objects to glacier storage using a lifecycle policy.
+The bucket can still be synced or copied into normally, but if rclone
+tries to access the data you will see an error like below.
+
+ 2017/09/11 19:07:43 Failed to sync: failed to open source object: Object in GLACIER, restore first: path/to/file
+
+In this case you need to restore the object(s) in question before using
+rclone.
+
Specific options
Here are the command line options specific to this cloud storage system.
@@ -3498,29 +3632,134 @@ So once set up, for example to copy files into a bucket
rclone copy /path/to/files minio:bucket
+Wasabi
-Swift
+Wasabi is a cloud-based object storage service for a broad range of
+applications and use cases. Wasabi is designed for individuals and
+organizations that require a high-performance, reliable, and secure data
+storage infrastructure at minimal cost.
-Swift refers to Openstack Object Storage. Commercial implementations of
-that being:
+Wasabi provides an S3 interface which can be configured for use with
+rclone like this.
-- Rackspace Cloud Files
-- Memset Memstore
+ No remotes found - make a new one
+ n) New remote
+ s) Set configuration password
+ n/s> n
+ name> wasabi
+ Type of storage to configure.
+ Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ "amazon cloud drive"
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ "s3"
+ [snip]
+ Storage> s3
+ Get AWS credentials from runtime (environment variables or EC2 meta data if no env vars). Only applies if access_key_id and secret_access_key is blank.
+ Choose a number from below, or type in your own value
+ 1 / Enter AWS credentials in the next step
+ \ "false"
+ 2 / Get AWS credentials from the environment (env vars or IAM)
+ \ "true"
+ env_auth> 1
+ AWS Access Key ID - leave blank for anonymous access or runtime credentials.
+ access_key_id> YOURACCESSKEY
+ AWS Secret Access Key (password) - leave blank for anonymous access or runtime credentials.
+ secret_access_key> YOURSECRETACCESSKEY
+ Region to connect to.
+ Choose a number from below, or type in your own value
+ / The default endpoint - a good choice if you are unsure.
+ 1 | US Region, Northern Virginia or Pacific Northwest.
+ | Leave location constraint empty.
+ \ "us-east-1"
+ [snip]
+ region> us-east-1
+ Endpoint for S3 API.
+ Leave blank if using AWS to use the default endpoint for the region.
+ Specify if using an S3 clone such as Ceph.
+ endpoint> s3.wasabisys.com
+ Location constraint - must be set to match the Region. Used when creating buckets only.
+ Choose a number from below, or type in your own value
+ 1 / Empty for US Region, Northern Virginia or Pacific Northwest.
+ \ ""
+ [snip]
+ location_constraint>
+ Canned ACL used when creating buckets and/or storing objects in S3.
+ For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
+ Choose a number from below, or type in your own value
+ 1 / Owner gets FULL_CONTROL. No one else has access rights (default).
+ \ "private"
+ [snip]
+ acl>
+ The server-side encryption algorithm used when storing this object in S3.
+ Choose a number from below, or type in your own value
+ 1 / None
+ \ ""
+ 2 / AES256
+ \ "AES256"
+ server_side_encryption>
+ The storage class to use when storing objects in S3.
+ Choose a number from below, or type in your own value
+ 1 / Default
+ \ ""
+ 2 / Standard storage class
+ \ "STANDARD"
+ 3 / Reduced redundancy storage class
+ \ "REDUCED_REDUNDANCY"
+ 4 / Standard Infrequent Access storage class
+ \ "STANDARD_IA"
+ storage_class>
+ Remote config
+ --------------------
+ [wasabi]
+ env_auth = false
+ access_key_id = YOURACCESSKEY
+ secret_access_key = YOURSECRETACCESSKEY
+ region = us-east-1
+ endpoint = s3.wasabisys.com
+ location_constraint =
+ acl =
+ server_side_encryption =
+ storage_class =
+ --------------------
+ y) Yes this is OK
+ e) Edit this remote
+ d) Delete this remote
+ y/e/d> y
-Paths are specified as remote:container (or remote: for the lsd
-command.) You may put subdirectories in too, eg
-remote:container/path/to/dir.
+This will leave the config file looking like this.
-Here is an example of making a swift configuration. First run
+ [wasabi]
+ env_auth = false
+ access_key_id = YOURACCESSKEY
+ secret_access_key = YOURSECRETACCESSKEY
+ region = us-east-1
+ endpoint = s3.wasabisys.com
+ location_constraint =
+ acl =
+ server_side_encryption =
+ storage_class =
+
+
+Backblaze B2
+
+B2 is Backblaze's cloud storage system.
+
+Paths are specified as remote:bucket (or remote: for the lsd command.)
+You may put subdirectories in too, eg remote:bucket/path/to/dir.
+
+Here is an example of making a b2 configuration. First run
rclone config
-This will guide you through an interactive setup process.
+This will guide you through an interactive setup process. You will need
+your account number (a short hex number) and key (a long hex number)
+which you can get from the b2 control panel.
No remotes found - make a new one
n) New remote
- s) Set configuration password
- n/s> n
+ q) Quit config
+ n/q> n
name> remote
Type of storage to configure.
Choose a number from below, or type in your own value
@@ -3550,50 +3789,19 @@ This will guide you through an interactive setup process.
\ "sftp"
13 / Yandex Disk
\ "yandex"
- Storage> 11
- User name to log in.
- user> user_name
- API key or password.
- key> password_or_api_key
- Authentication URL for server.
- Choose a number from below, or type in your own value
- 1 / Rackspace US
- \ "https://auth.api.rackspacecloud.com/v1.0"
- 2 / Rackspace UK
- \ "https://lon.auth.api.rackspacecloud.com/v1.0"
- 3 / Rackspace v2
- \ "https://identity.api.rackspacecloud.com/v2.0"
- 4 / Memset Memstore UK
- \ "https://auth.storage.memset.com/v1.0"
- 5 / Memset Memstore UK v2
- \ "https://auth.storage.memset.com/v2.0"
- 6 / OVH
- \ "https://auth.cloud.ovh.net/v2.0"
- auth> 1
- User domain - optional (v3 auth)
- domain> Default
- Tenant name - optional for v1 auth, required otherwise
- tenant> tenant_name
- Tenant domain - optional (v3 auth)
- tenant_domain>
- Region name - optional
- region>
- Storage URL - optional
- storage_url>
- AuthVersion - optional - set to (1,2,3) if your auth URL has no version
- auth_version>
+ Storage> 3
+ Account ID
+ account> 123456789abc
+ Application Key
+ key> 0123456789abcdef0123456789abcdef0123456789
+ Endpoint for the service - leave blank normally.
+ endpoint>
Remote config
--------------------
[remote]
- user = user_name
- key = password_or_api_key
- auth = https://auth.api.rackspacecloud.com/v1.0
- domain = Default
- tenant =
- tenant_domain =
- region =
- storage_url =
- auth_version =
+ account = 123456789abc
+ key = 0123456789abcdef0123456789abcdef0123456789
+ endpoint =
--------------------
y) Yes this is OK
e) Edit this remote
@@ -3602,51 +3810,22 @@ This will guide you through an interactive setup process.
This remote is called remote and can now be used like this
-See all containers
+See all buckets
rclone lsd remote:
-Make a new container
-
- rclone mkdir remote:container
-
-List the contents of a container
-
- rclone ls remote:container
-
-Sync /home/local/directory to the remote container, deleting any excess
-files in the container.
-
- rclone sync /home/local/directory remote:container
-
-Configuration from an Openstack credentials file
+Make a new bucket
-An Opentstack credentials file typically looks something something like
-this (without the comments)
+ rclone mkdir remote:bucket
- export OS_AUTH_URL=https://a.provider.net/v2.0
- export OS_TENANT_ID=ffffffffffffffffffffffffffffffff
- export OS_TENANT_NAME="1234567890123456"
- export OS_USERNAME="123abc567xy"
- echo "Please enter your OpenStack Password: "
- read -sr OS_PASSWORD_INPUT
- export OS_PASSWORD=$OS_PASSWORD_INPUT
- export OS_REGION_NAME="SBG1"
- if [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi
+List the contents of a bucket
-The config file needs to look something like this where $OS_USERNAME
-represents the value of the OS_USERNAME variable - 123abc567xy in the
-example above.
+ rclone ls remote:bucket
- [remote]
- type = swift
- user = $OS_USERNAME
- key = $OS_PASSWORD
- auth = $OS_AUTH_URL
- tenant = $OS_TENANT_NAME
+Sync /home/local/directory to the remote bucket, deleting any excess
+files in the bucket.
-Note that you may (or may not) need to set region too - try without
-first.
+ rclone sync /home/local/directory remote:bucket
--fast-list
@@ -3654,180 +3833,202 @@ This remote supports --fast-list which allows you to use fewer
transactions in exchange for more memory. See the rclone docs for more
details.
-Specific options
+Modified time
-Here are the command line options specific to this cloud storage system.
+The modified time is stored as metadata on the object as
+X-Bz-Info-src_last_modified_millis as milliseconds since 1970-01-01 in
+the Backblaze standard. Other tools should be able to use this as a
+modified time.
---swift-chunk-size=SIZE
+Modified times are used in syncing and are fully supported except in the
+case of updating a modification time on an existing object. In this case
+the object will be uploaded again as B2 doesn't have an API method to
+set the modification time independent of doing an upload.
-Above this size files will be chunked into a _segments container. The
-default for this is 5GB which is its maximum value.
+SHA1 checksums
-Modified time
+The SHA1 checksums of the files are checked on upload and download and
+will be used in the syncing process.
-The modified time is stored as metadata on the object as
-X-Object-Meta-Mtime as floating point since the epoch accurate to 1 ns.
+Large files which are uploaded in chunks will store their SHA1 on the
+object as X-Bz-Info-large_file_sha1 as recommended by Backblaze.
-This is a defacto standard (used in the official python-swiftclient
-amongst others) for storing the modification time for an object.
+Transfers
-Limitations
+Backblaze recommends that you do lots of transfers simultaneously for
+maximum speed. In tests from my SSD equiped laptop the optimum setting
+is about --transfers 32 though higher numbers may be used for a slight
+speed improvement. The optimum number for you may vary depending on your
+hardware, how big the files are, how much you want to load your
+computer, etc. The default of --transfers 4 is definitely too low for
+Backblaze B2 though.
-The Swift API doesn't return a correct MD5SUM for segmented files
-(Dynamic or Static Large Objects) so rclone won't check or use the
-MD5SUM for these.
+Note that uploading big files (bigger than 200 MB by default) will use a
+96 MB RAM buffer by default. There can be at most --transfers of these
+in use at any moment, so this sets the upper limit on the memory used.
-Troubleshooting
+Versions
-Rclone gives Failed to create file system for "remote:": Bad Request
+When rclone uploads a new version of a file it creates a new version of
+it. Likewise when you delete a file, the old version will be marked
+hidden and still be available. Conversely, you may opt in to a "hard
+delete" of files with the --b2-hard-delete flag which would permanently
+remove the file instead of hiding it.
-Due to an oddity of the underlying swift library, it gives a "Bad
-Request" error rather than a more sensible error when the authentication
-fails for Swift.
+Old versions of files, where available, are visible using the
+--b2-versions flag.
-So this most likely means your username / password is wrong. You can
-investigate further with the --dump-bodies flag.
+If you wish to remove all the old versions then you can use the
+rclone cleanup remote:bucket command which will delete all the old
+versions of files, leaving the current ones intact. You can also supply
+a path and only old versions under that path will be deleted, eg
+rclone cleanup remote:bucket/path/to/stuff.
-This may also be caused by specifying the region when you shouldn't have
-(eg OVH).
+When you purge a bucket, the current and the old versions will be
+deleted then the bucket will be deleted.
-Rclone gives Failed to create file system: Response didn't have storage storage url and auth token
+However delete will cause the current versions of the files to become
+hidden old versions.
-This is most likely caused by forgetting to specify your tenant when
-setting up a swift remote.
+Here is a session showing the listing and and retreival of an old
+version followed by a cleanup of the old versions.
+Show current version and all the versions with --b2-versions flag.
-Dropbox
+ $ rclone -q ls b2:cleanup-test
+ 9 one.txt
-Paths are specified as remote:path
+ $ rclone -q --b2-versions ls b2:cleanup-test
+ 9 one.txt
+ 8 one-v2016-07-04-141032-000.txt
+ 16 one-v2016-07-04-141003-000.txt
+ 15 one-v2016-07-02-155621-000.txt
-Dropbox paths may be as deep as required, eg
-remote:directory/subdirectory.
+Retreive an old verson
-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.
+ $ rclone -q --b2-versions copy b2:cleanup-test/one-v2016-07-04-141003-000.txt /tmp
-Here is an example of how to make a remote called remote. First run:
+ $ ls -l /tmp/one-v2016-07-04-141003-000.txt
+ -rw-rw-r-- 1 ncw ncw 16 Jul 2 17:46 /tmp/one-v2016-07-04-141003-000.txt
- rclone config
+Clean up all the old versions and show that they've gone.
-This will guide you through an interactive setup process:
+ $ rclone -q cleanup b2:cleanup-test
- n) New remote
- d) Delete remote
- q) Quit config
- e/n/d/q> n
- name> remote
- Type of storage to configure.
- Choose a number from below, or type in your own value
- 1 / Amazon Drive
- \ "amazon cloud drive"
- 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
- \ "s3"
- 3 / Backblaze B2
- \ "b2"
- 4 / Dropbox
- \ "dropbox"
- 5 / Encrypt/Decrypt a remote
- \ "crypt"
- 6 / Google Cloud Storage (this is not Google Drive)
- \ "google cloud storage"
- 7 / Google Drive
- \ "drive"
- 8 / Hubic
- \ "hubic"
- 9 / Local Disk
- \ "local"
- 10 / Microsoft OneDrive
- \ "onedrive"
- 11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
- \ "swift"
- 12 / SSH/SFTP Connection
- \ "sftp"
- 13 / Yandex Disk
- \ "yandex"
- Storage> 4
- Dropbox App Key - leave blank normally.
- app_key>
- Dropbox App Secret - leave blank normally.
- app_secret>
- Remote config
- Please visit:
- https://www.dropbox.com/1/oauth2/authorize?client_id=XXXXXXXXXXXXXXX&response_type=code
- Enter the code: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXXXXXXXX
- --------------------
- [remote]
- app_key =
- app_secret =
- token = XXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXX_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- --------------------
- y) Yes this is OK
- e) Edit this remote
- d) Delete this remote
- y/e/d> y
+ $ rclone -q ls b2:cleanup-test
+ 9 one.txt
-You can then use it like this,
+ $ rclone -q --b2-versions ls b2:cleanup-test
+ 9 one.txt
-List directories in top level of your dropbox
+Data usage
- rclone lsd remote:
+It is useful to know how many requests are sent to the server in
+different scenarios.
-List all the files in your dropbox
+All copy commands send the following 4 requests:
- rclone ls remote:
+ /b2api/v1/b2_authorize_account
+ /b2api/v1/b2_create_bucket
+ /b2api/v1/b2_list_buckets
+ /b2api/v1/b2_list_file_names
-To copy a local directory to a dropbox directory called backup
+The b2_list_file_names request will be sent once for every 1k files in
+the remote path, providing the checksum and modification time of the
+listed files. As of version 1.33 issue #818 causes extra requests to be
+sent when using B2 with Crypt. When a copy operation does not require
+any files to be uploaded, no more requests will be sent.
- rclone copy /home/source remote:backup
+Uploading files that do not require chunking, will send 2 requests per
+file upload:
-Modified time and Hashes
+ /b2api/v1/b2_get_upload_url
+ /b2api/v1/b2_upload_file/
-Dropbox supports modified times, but the only way to set a modification
-time is to re-upload the file.
+Uploading files requiring chunking, will send 2 requests (one each to
+start and finish the upload) and another 2 requests for each chunk:
-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.
+ /b2api/v1/b2_start_large_file
+ /b2api/v1/b2_get_upload_part_url
+ /b2api/v1/b2_upload_part/
+ /b2api/v1/b2_finish_large_file
-Dropbox supports its own hash type which is checked for all transfers.
+B2 with crypt
+
+When using B2 with crypt files are encrypted into a temporary location
+and streamed from there. This is required to calculate the encrypted
+file's checksum before beginning the upload. On Windows the %TMPDIR%
+environment variable is used as the temporary location. If the file
+requires chunking, both the chunking and encryption will take place in
+memory.
Specific options
Here are the command line options specific to this cloud storage system.
---dropbox-chunk-size=SIZE
+--b2-chunk-size valuee=SIZE
-Upload chunk size. Max 150M. The default is 128MB. Note that this isn't
-buffered into memory.
+When uploading large files chunk the file into this size. Note that
+these chunks are buffered in memory and there might a maximum of
+--transfers chunks in progress at once. 5,000,000 Bytes is the minimim
+size (default 96M).
-Limitations
+--b2-upload-cutoff=SIZE
-Note that Dropbox is case insensitive so you can't have a file called
-"Hello.doc" and one called "hello.doc".
+Cutoff for switching to chunked upload (default 190.735 MiB == 200 MB).
+Files above this size will be uploaded in chunks of --b2-chunk-size.
-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. 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.
+This value should be set no larger than 4.657GiB (== 5GB) as this is the
+largest file size that can be uploaded.
-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 dropbox:dir followed by an
-rclone rmdir dropbox:dir.
+--b2-test-mode=FLAG
+
+This is for debugging purposes only.
+Setting FLAG to one of the strings below will cause b2 to return
+specific errors for debugging purposes.
-Google Cloud Storage
+- fail_some_uploads
+- expire_some_account_authorization_tokens
+- force_cap_exceeded
-Paths are specified as remote:bucket (or remote: for the lsd command.)
-You may put subdirectories in too, eg remote:bucket/path/to/dir.
+These will be set in the X-Bz-Test-Mode header which is documented in
+the b2 integrations checklist.
-The initial setup for google cloud storage involves getting a token from
-Google Cloud Storage which you need to do in your browser. rclone config
-walks you through it.
+--b2-versions
+
+When set rclone will show and act on older versions of files. For
+example
+
+Listing without --b2-versions
+
+ $ rclone -q ls b2:cleanup-test
+ 9 one.txt
+
+And with
+
+ $ rclone -q --b2-versions ls b2:cleanup-test
+ 9 one.txt
+ 8 one-v2016-07-04-141032-000.txt
+ 16 one-v2016-07-04-141003-000.txt
+ 15 one-v2016-07-02-155621-000.txt
+
+Showing that the current version is unchanged but older versions can be
+seen. These have the UTC date that they were uploaded to the server to
+the nearest millisecond appended to them.
+
+Note that when using --b2-versions no file write operations are
+permitted, so you can't upload files or delete them.
+
+
+Box
+
+Paths are specified as remote:path
+
+Paths may be as deep as required, eg remote:directory/subdirectory.
+
+The initial setup for Box involves getting a token from Box 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:
@@ -3835,10 +4036,11 @@ Here is an example of how to make a remote called remote. First run:
This will guide you through an interactive setup process:
+ No remotes found - make a new one
n) New remote
- d) Delete remote
+ s) Set configuration password
q) Quit config
- e/n/d/q> n
+ n/s/q> n
name> remote
Type of storage to configure.
Choose a number from below, or type in your own value
@@ -3848,113 +4050,41 @@ This will guide you through an interactive setup process:
\ "s3"
3 / Backblaze B2
\ "b2"
- 4 / Dropbox
+ 4 / Box
+ \ "box"
+ 5 / Dropbox
\ "dropbox"
- 5 / Encrypt/Decrypt a remote
+ 6 / Encrypt/Decrypt a remote
\ "crypt"
- 6 / Google Cloud Storage (this is not Google Drive)
+ 7 / FTP Connection
+ \ "ftp"
+ 8 / Google Cloud Storage (this is not Google Drive)
\ "google cloud storage"
- 7 / Google Drive
+ 9 / Google Drive
\ "drive"
- 8 / Hubic
+ 10 / Hubic
\ "hubic"
- 9 / Local Disk
+ 11 / Local Disk
\ "local"
- 10 / Microsoft OneDrive
+ 12 / Microsoft OneDrive
\ "onedrive"
- 11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ 13 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
\ "swift"
- 12 / SSH/SFTP Connection
+ 14 / SSH/SFTP Connection
\ "sftp"
- 13 / Yandex Disk
+ 15 / Yandex Disk
\ "yandex"
- Storage> 6
- Google Application Client Id - leave blank normally.
- client_id>
- Google Application Client Secret - leave blank normally.
- client_secret>
- Project number optional - needed only for list/create/delete buckets - see your developer console.
- project_number> 12345678
- Service Account Credentials JSON file path - needed only if you want use SA instead of interactive login.
- service_account_file>
- Access Control List for new objects.
- Choose a number from below, or type in your own value
- 1 / Object owner gets OWNER access, and all Authenticated Users get READER access.
- \ "authenticatedRead"
- 2 / Object owner gets OWNER access, and project team owners get OWNER access.
- \ "bucketOwnerFullControl"
- 3 / Object owner gets OWNER access, and project team owners get READER access.
- \ "bucketOwnerRead"
- 4 / Object owner gets OWNER access [default if left blank].
- \ "private"
- 5 / Object owner gets OWNER access, and project team members get access according to their roles.
- \ "projectPrivate"
- 6 / Object owner gets OWNER access, and all Users get READER access.
- \ "publicRead"
- object_acl> 4
- Access Control List for new buckets.
- Choose a number from below, or type in your own value
- 1 / Project team owners get OWNER access, and all Authenticated Users get READER access.
- \ "authenticatedRead"
- 2 / Project team owners get OWNER access [default if left blank].
- \ "private"
- 3 / Project team members get access according to their roles.
- \ "projectPrivate"
- 4 / Project team owners get OWNER access, and all Users get READER access.
- \ "publicRead"
- 5 / Project team owners get OWNER access, and all Users get WRITER access.
- \ "publicReadWrite"
- bucket_acl> 2
- Location for the newly created buckets.
- Choose a number from below, or type in your own value
- 1 / Empty for default location (US).
- \ ""
- 2 / Multi-regional location for Asia.
- \ "asia"
- 3 / Multi-regional location for Europe.
- \ "eu"
- 4 / Multi-regional location for United States.
- \ "us"
- 5 / Taiwan.
- \ "asia-east1"
- 6 / Tokyo.
- \ "asia-northeast1"
- 7 / Singapore.
- \ "asia-southeast1"
- 8 / Sydney.
- \ "australia-southeast1"
- 9 / Belgium.
- \ "europe-west1"
- 10 / London.
- \ "europe-west2"
- 11 / Iowa.
- \ "us-central1"
- 12 / South Carolina.
- \ "us-east1"
- 13 / Northern Virginia.
- \ "us-east4"
- 14 / Oregon.
- \ "us-west1"
- location> 12
- The storage class to use when storing objects in Google Cloud Storage.
- Choose a number from below, or type in your own value
- 1 / Default
- \ ""
- 2 / Multi-regional storage class
- \ "MULTI_REGIONAL"
- 3 / Regional storage class
- \ "REGIONAL"
- 4 / Nearline storage class
- \ "NEARLINE"
- 5 / Coldline storage class
- \ "COLDLINE"
- 6 / Durable reduced availability storage class
- \ "DURABLE_REDUCED_AVAILABILITY"
- storage_class> 5
+ 16 / http Connection
+ \ "http"
+ Storage> box
+ Box App Client Id - leave blank normally.
+ client_id>
+ Box App Client Secret - leave blank normally.
+ client_secret>
Remote config
Use auto config?
* Say Y if not sure
- * Say N if you are working on a remote or headless machine or Y didn't work
+ * Say N if you are working on a remote or headless machine
y) Yes
n) No
y/n> y
@@ -3964,158 +4094,100 @@ This will guide you through an interactive setup process:
Got code
--------------------
[remote]
- type = google cloud storage
- client_id =
- client_secret =
- token = {"AccessToken":"xxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"x/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxx","Expiry":"2014-07-17T20:49:14.929208288+01:00","Extra":null}
- project_number = 12345678
- object_acl = private
- bucket_acl = private
+ client_id =
+ client_secret =
+ token = {"access_token":"XXX","token_type":"bearer","refresh_token":"XXX","expiry":"XXX"}
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
+See the remote setup docs for how to set it up on a machine with no
+Internet browser available.
+
Note that rclone runs a webserver on your local machine to collect the
-token as returned from Google if you use auto config mode. This only
-runs from the moment it opens your browser to the moment you get back
-the verification code. This is on http://127.0.0.1:53682/ and this it
-may require you to unblock it temporarily if you are running a host
-firewall, or use manual mode.
+token as returned from Box. This only runs from the moment it opens your
+browser to the moment you get back the verification code. This is on
+http://127.0.0.1:53682/ and this it may require you to unblock it
+temporarily if you are running a host firewall.
-This remote is called remote and can now be used like this
+Once configured you can then use rclone like this,
-See all the buckets in your project
+List directories in top level of your Box
rclone lsd remote:
-Make a new bucket
-
- rclone mkdir remote:bucket
-
-List the contents of a bucket
+List all the files in your Box
- rclone ls remote:bucket
+ rclone ls remote:
-Sync /home/local/directory to the remote bucket, deleting any excess
-files in the bucket.
+To copy a local directory to an Box directory called backup
- rclone sync /home/local/directory remote:bucket
+ rclone copy /home/source remote:backup
-Service Account support
+Invalid refresh token
-You can set up rclone with Google Cloud Storage in an unattended mode,
-i.e. not tied to a specific end-user Google account. This is useful when
-you want to synchronise files onto machines that don't have actively
-logged-in users, for example build machines.
+According to the box docs:
-To get credentials for Google Cloud Platform IAM Service Accounts,
-please head to the Service Account section of the Google Developer
-Console. Service Accounts behave just like normal User permissions in
-Google Cloud Storage ACLs, so you can limit their access (e.g. make them
-read only). After creating an account, a JSON file containing the
-Service Account's credentials will be downloaded onto your machines.
-These credentials are what rclone will use for authentication.
+ Each refresh_token is valid for one use in 60 days.
-To use a Service Account instead of OAuth2 token flow, enter the path to
-your Service Account credentials at the service_account_file prompt and
-rclone won't use the browser based authentication flow.
+This means that if you
---fast-list
+- Don't use the box remote for 60 days
+- Copy the config file with a box refresh token in and use it in two
+ places
+- Get an error on a token refresh
-This remote supports --fast-list which allows you to use fewer
-transactions in exchange for more memory. See the rclone docs for more
-details.
+then rclone will return an error which includes the text
+Invalid refresh token.
-Modified time
+To fix this you will need to use oauth2 again to update the refresh
+token. You can use the methods in the remote setup docs, bearing in mind
+that if you use the copy the config file method, you should not use that
+remote on the computer you did the authentication on.
-Google google cloud storage stores md5sums natively and rclone stores
-modification times as metadata on the object, under the "mtime" key in
-RFC3339 format accurate to 1ns.
+Here is how to do it.
+ $ rclone config
+ Current remotes:
-Amazon Drive
+ Name Type
+ ==== ====
+ remote box
-Paths are specified as remote:path
-
-Paths may be as deep as required, eg remote:directory/subdirectory.
-
-The initial setup for Amazon Drive involves getting a token from Amazon
-which you need to do in your browser. rclone config walks you through
-it.
-
-The configuration process for Amazon Drive may involve using an oauth
-proxy. This is used to keep the Amazon credentials out of the source
-code. The proxy runs in Google's very secure App Engine environment and
-doesn't store any credentials which pass through it.
-
-NB rclone doesn't not currently have its own Amazon Drive credentials
-(see the forum for why) so you will either need to have your own
-client_id and client_secret with Amazon Drive, or use a a third party
-ouath proxy in which case you will need to enter client_id,
-client_secret, auth_url and token_url.
-
-Note also if you are not using Amazon's auth_url and token_url, (ie you
-filled in something for those) then if setting up on a remote machine
-you can only use the copying the config method of configuration -
-rclone authorize will not work.
-
-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:
-
- No remotes found - make a new one
+ e) Edit existing remote
n) New remote
+ d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
- n/r/c/s/q> n
- name> remote
- Type of storage to configure.
- Choose a number from below, or type in your own value
- 1 / Amazon Drive
- \ "amazon cloud drive"
- 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
- \ "s3"
- 3 / Backblaze B2
- \ "b2"
- 4 / Dropbox
- \ "dropbox"
- 5 / Encrypt/Decrypt a remote
- \ "crypt"
- 6 / FTP Connection
- \ "ftp"
- 7 / Google Cloud Storage (this is not Google Drive)
- \ "google cloud storage"
- 8 / Google Drive
- \ "drive"
- 9 / Hubic
- \ "hubic"
- 10 / Local Disk
- \ "local"
- 11 / Microsoft OneDrive
- \ "onedrive"
- 12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
- \ "swift"
- 13 / SSH/SFTP Connection
- \ "sftp"
- 14 / Yandex Disk
- \ "yandex"
- Storage> 1
- Amazon Application Client Id - required.
- client_id> your client ID goes here
- Amazon Application Client Secret - required.
- client_secret> your client secret goes here
- Auth server URL - leave blank to use Amazon's.
- auth_url> Optional auth URL
- Token server url - leave blank to use Amazon's.
- token_url> Optional token URL
+ e/n/d/r/c/s/q> e
+ Choose a number from below, or type in an existing value
+ 1 > remote
+ remote> remote
+ --------------------
+ [remote]
+ type = box
+ token = {"access_token":"XXX","token_type":"bearer","refresh_token":"XXX","expiry":"2017-07-08T23:40:08.059167677+01:00"}
+ --------------------
+ Edit remote
+ Value "client_id" = ""
+ Edit? (y/n)>
+ y) Yes
+ n) No
+ y/n> n
+ Value "client_secret" = ""
+ Edit? (y/n)>
+ y) Yes
+ n) No
+ y/n> n
Remote config
- Make sure your Redirect URL is set to "http://127.0.0.1:53682/" in your custom config.
+ Already have a token - refresh?
+ y) Yes
+ n) No
+ y/n> y
Use auto config?
* Say Y if not sure
* Say N if you are working on a remote or headless machine
@@ -4128,143 +4200,79 @@ This will guide you through an interactive setup process:
Got code
--------------------
[remote]
- client_id = your client ID goes here
- client_secret = your client secret goes here
- auth_url = Optional auth URL
- token_url = Optional token URL
- token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxx","token_type":"bearer","refresh_token":"xxxxxxxxxxxxxxxxxx","expiry":"2015-09-06T16:07:39.658438471+01:00"}
+ type = box
+ token = {"access_token":"YYY","token_type":"bearer","refresh_token":"YYY","expiry":"2017-07-23T12:22:29.259137901+01:00"}
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
-See the remote setup docs for how to set it up on a machine with no
-Internet browser available.
-
-Note that rclone runs a webserver on your local machine to collect the
-token as returned from Amazon. This only runs from the moment it opens
-your browser to the moment you get back the verification code. This is
-on http://127.0.0.1:53682/ and this it may require you to unblock it
-temporarily if you are running a host firewall.
-
-Once configured you can then use rclone like this,
-
-List directories in top level of your Amazon Drive
-
- rclone lsd remote:
-
-List all the files in your Amazon Drive
-
- rclone ls remote:
-
-To copy a local directory to an Amazon Drive directory called backup
+Modified time and hashes
- rclone copy /home/source remote:backup
+Box allows modification times to be set on objects accurate to 1 second.
+These will be used to detect whether objects need syncing or not.
-Modified time and MD5SUMs
+One drive supports SHA1 type hashes, so you can use the --checksum flag.
-Amazon Drive doesn't allow modification times to be changed via the API
-so these won't be accurate or used for syncing.
+Transfers
-It does store MD5SUMs so for a more accurate sync, you can use the
---checksum flag.
+For files above 50MB rclone will use a chunked transfer. Rclone will
+upload up to --transfers chunks at the same time (shared among all the
+multipart uploads). Chunks are buffered in memory and are normally 8MB
+so increasing --transfers will increase memory use.
Deleting files
-Any files you delete with rclone will end up in the trash. Amazon don't
-provide an API to permanently delete files, nor to empty the trash, so
-you will have to do that with one of Amazon's apps or via the Amazon
-Drive website. As of November 17, 2016, files are automatically deleted
-by Amazon from the trash after 30 days.
-
-Using with non .com Amazon accounts
-
-Let's say you usually use amazon.co.uk. When you authenticate with
-rclone it will take you to an amazon.com page to log in. Your
-amazon.co.uk email and password should work here just fine.
+Depending on the enterprise settings for your user, the item will either
+be actually deleted from Box or moved to the trash.
Specific options
Here are the command line options specific to this cloud storage system.
---acd-templink-threshold=SIZE
-
-Files this size or more will be downloaded via their tempLink. This is
-to work around a problem with Amazon Drive which blocks downloads of
-files bigger than about 10GB. The default for this is 9GB which
-shouldn't need to be changed.
-
-To download files above this threshold, rclone requests a tempLink which
-downloads the file through a temporary URL directly from the underlying
-S3 storage.
-
---acd-upload-wait-per-gb=TIME
-
-Sometimes Amazon Drive gives an error when a file has been fully
-uploaded but the file appears anyway after a little while. This happens
-sometimes for files over 1GB in size and nearly every time for files
-bigger than 10GB. This parameter controls the time rclone waits for the
-file to appear.
-
-The default value for this parameter is 3 minutes per GB, so by default
-it will wait 3 minutes for every GB uploaded to see if the file appears.
+--box-upload-cutoff=SIZE
-You can disable this feature by setting it to 0. This may cause conflict
-errors as rclone retries the failed upload but the file will most likely
-appear correctly eventually.
-
-These values were determined empirically by observing lots of uploads of
-big files for a range of file sizes.
-
-Upload with the -v flag to see more info about what rclone is doing in
-this situation.
+Cutoff for switching to chunked upload - must be >= 50MB. The default is
+50MB.
Limitations
-Note that Amazon Drive is case insensitive so you can't have a file
-called "Hello.doc" and one called "hello.doc".
-
-Amazon Drive has rate limiting so you may notice errors in the sync (429
-errors). rclone will automatically retry the sync up to 3 times by
-default (see --retries flag) which should hopefully work around this
-problem.
-
-Amazon Drive has an internal limit of file sizes that can be uploaded to
-the service. This limit is not officially published, but all files
-larger than this will fail.
-
-At the time of writing (Jan 2016) is in the area of 50GB per file. This
-means that larger files are likely to fail.
-
-Unfortunately there is no way for rclone to see that this failure is
-because of file size, so it will retry the operation, as any other
-failure. To avoid this problem, use --max-size 50000M option to limit
-the maximum size of uploaded files. Note that --max-size does not split
-files into segments, it only ignores files over this size.
+Note that Box is case insensitive so you can't have a file called
+"Hello.doc" and one called "hello.doc".
+Box file names can't have the \ character in. rclone maps this to and
+from an identical looking unicode equivalent \.
-Microsoft OneDrive
+Box only supports filenames up to 255 characters in length.
-Paths are specified as remote:path
-Paths may be as deep as required, eg remote:directory/subdirectory.
+Crypt
-The initial setup for OneDrive involves getting a token from Microsoft
-which you need to do in your browser. rclone config walks you through
-it.
+The crypt remote encrypts and decrypts another remote.
-Here is an example of how to make a remote called remote. First run:
+To use it first set up the underlying remote following the config
+instructions for that remote. You can also use a local pathname instead
+of a remote which will encrypt and decrypt from that directory which
+might be useful for encrypting onto a USB stick for example.
- rclone config
+First check your chosen remote is working - we'll call it remote:path in
+these docs. Note that anything inside remote:path will be encrypted and
+anything outside won't. This means that if you are using a bucket based
+remote (eg S3, B2, swift) then you should probably put the bucket in the
+remote s3:bucket. If you just use s3: then rclone will make encrypted
+bucket names too (if using file name encryption) which may or may not be
+what you want.
-This will guide you through an interactive setup process:
+Now configure crypt using rclone config. We will call this one secret to
+differentiate it from the remote.
No remotes found - make a new one
n) New remote
s) Set configuration password
- n/s> n
- name> remote
+ q) Quit config
+ n/s/q> n
+ name> secret
Type of storage to configure.
Choose a number from below, or type in your own value
1 / Amazon Drive
@@ -4293,113 +4301,1233 @@ This will guide you through an interactive setup process:
\ "sftp"
13 / Yandex Disk
\ "yandex"
- Storage> 10
- Microsoft App Client Id - leave blank normally.
- client_id>
- Microsoft App Client Secret - leave blank normally.
- client_secret>
- Remote config
- Use auto config?
- * Say Y if not sure
- * Say N if you are working on a remote or headless machine
+ Storage> 5
+ Remote to encrypt/decrypt.
+ Normally should contain a ':' and a path, eg "myremote:path/to/dir",
+ "myremote:bucket" or maybe "myremote:" (not recommended).
+ remote> remote:path
+ How to encrypt the filenames.
+ Choose a number from below, or type in your own value
+ 1 / Don't encrypt the file names. Adds a ".bin" extension only.
+ \ "off"
+ 2 / Encrypt the filenames see the docs for the details.
+ \ "standard"
+ 3 / Very simple filename obfuscation.
+ \ "obfuscate"
+ filename_encryption> 2
+ Password or pass phrase for encryption.
+ y) Yes type in my own password
+ g) Generate random password
+ y/g> y
+ Enter the password:
+ password:
+ Confirm the password:
+ password:
+ Password or pass phrase for salt. Optional but recommended.
+ Should be different to the previous password.
+ y) Yes type in my own password
+ g) Generate random password
+ n) No leave this optional password blank
+ y/g/n> g
+ Password strength in bits.
+ 64 is just about memorable
+ 128 is secure
+ 1024 is the maximum
+ Bits> 128
+ Your password is: JAsJvRcgR-_veXNfy_sGmQ
+ Use this password?
y) Yes
n) No
y/n> y
- If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
+ Remote config
+ --------------------
+ [secret]
+ remote = remote:path
+ filename_encryption = standard
+ password = *** ENCRYPTED ***
+ password2 = *** ENCRYPTED ***
+ --------------------
+ y) Yes this is OK
+ e) Edit this remote
+ d) Delete this remote
+ y/e/d> y
+
+IMPORTANT The password is stored in the config file is lightly obscured
+so it isn't immediately obvious what it is. It is in no way secure
+unless you use config file encryption.
+
+A long passphrase is recommended, or you can use a random one. Note that
+if you reconfigure rclone with the same passwords/passphrases elsewhere
+it will be compatible - all the secrets used are derived from those two
+passwords/passphrases.
+
+Note that rclone does not encrypt
+
+- file length - this can be calcuated within 16 bytes
+- modification time - used for syncing
+
+
+Specifying the remote
+
+In normal use, make sure the remote has a : in. If you specify the
+remote without a : then rclone will use a local directory of that name.
+So if you use a remote of /path/to/secret/files then rclone will encrypt
+stuff to that directory. If you use a remote of name then rclone will
+put files in a directory called name in the current directory.
+
+If you specify the remote as remote:path/to/dir then rclone will store
+encrypted files in path/to/dir on the remote. If you are using file name
+encryption, then when you save files to secret:subdir/subfile this will
+store them in the unencrypted path path/to/dir but the subdir/subpath
+bit will be encrypted.
+
+Note that unless you want encrypted bucket names (which are difficult to
+manage because you won't know what directory they represent in web
+interfaces etc), you should probably specify a bucket, eg
+remote:secretbucket when using bucket based remotes such as S3, Swift,
+Hubic, B2, GCS.
+
+
+Example
+
+To test I made a little directory of files using "standard" file name
+encryption.
+
+ plaintext/
+ ├── file0.txt
+ ├── file1.txt
+ └── subdir
+ ├── file2.txt
+ ├── file3.txt
+ └── subsubdir
+ └── file4.txt
+
+Copy these to the remote and list them back
+
+ $ rclone -q copy plaintext secret:
+ $ rclone -q ls secret:
+ 7 file1.txt
+ 6 file0.txt
+ 8 subdir/file2.txt
+ 10 subdir/subsubdir/file4.txt
+ 9 subdir/file3.txt
+
+Now see what that looked like when encrypted
+
+ $ rclone -q ls remote:path
+ 55 hagjclgavj2mbiqm6u6cnjjqcg
+ 54 v05749mltvv1tf4onltun46gls
+ 57 86vhrsv86mpbtd3a0akjuqslj8/dlj7fkq4kdq72emafg7a7s41uo
+ 58 86vhrsv86mpbtd3a0akjuqslj8/7uu829995du6o42n32otfhjqp4/b9pausrfansjth5ob3jkdqd4lc
+ 56 86vhrsv86mpbtd3a0akjuqslj8/8njh1sk437gttmep3p70g81aps
+
+Note that this retains the directory structure which means you can do
+this
+
+ $ rclone -q ls secret:subdir
+ 8 file2.txt
+ 9 file3.txt
+ 10 subsubdir/file4.txt
+
+If don't use file name encryption then the remote will look like this -
+note the .bin extensions added to prevent the cloud provider attempting
+to interpret the data.
+
+ $ rclone -q ls remote:path
+ 54 file0.txt.bin
+ 57 subdir/file3.txt.bin
+ 56 subdir/file2.txt.bin
+ 58 subdir/subsubdir/file4.txt.bin
+ 55 file1.txt.bin
+
+File name encryption modes
+
+Here are some of the features of the file name encryption modes
+
+Off
+
+- doesn't hide file names or directory structure
+- allows for longer file names (~246 characters)
+- can use sub paths and copy single files
+
+Standard
+
+- file names encrypted
+- file names can't be as long (~156 characters)
+- can use sub paths and copy single files
+- directory structure visibile
+- identical files names will have identical uploaded names
+- can use shortcuts to shorten the directory recursion
+
+Obfuscation
+
+This is a simple "rotate" of the filename, with each file having a rot
+distance based on the filename. We store the distance at the beginning
+of the filename. So a file called "hello" may become "53.jgnnq"
+
+This is not a strong encryption of filenames, but it may stop automated
+scanning tools from picking up on filename patterns. As such it's an
+intermediate between "off" and "standard". The advantage is that it
+allows for longer path segment names.
+
+There is a possibility with some unicode based filenames that the
+obfuscation is weak and may map lower case characters to upper case
+equivalents. You can not rely on this for strong protection.
+
+- file names very lightly obfuscated
+- file names can be longer than standard encryption
+- can use sub paths and copy single files
+- directory structure visibile
+- identical files names will have identical uploaded names
+
+Cloud storage systems have various limits on file name length and total
+path length which you are more likely to hit using "Standard" file name
+encryption. If you keep your file names to below 156 characters in
+length then you should be OK on all providers.
+
+There may be an even more secure file name encryption mode in the future
+which will address the long file name problem.
+
+Modified time and hashes
+
+Crypt stores modification times using the underlying remote so support
+depends on that.
+
+Hashes are not stored for crypt. However the data integrity is protected
+by an extremely strong crypto authenticator.
+
+Note that you should use the rclone cryptcheck command to check the
+integrity of a crypted remote instead of rclone check which can't check
+the checksums properly.
+
+Specific options
+
+Here are the command line options specific to this cloud storage system.
+
+--crypt-show-mapping
+
+If this flag is set then for each file that the remote is asked to list,
+it will log (at level INFO) a line stating the decrypted file name and
+the encrypted file name.
+
+This is so you can work out which encrypted names are which decrypted
+names just in case you need to do something with the encrypted file
+names, or for debugging purposes.
+
+
+Backing up a crypted remote
+
+If you wish to backup a crypted remote, it it recommended that you use
+rclone sync on the encrypted files, and make sure the passwords are the
+same in the new encrypted remote.
+
+This will have the following advantages
+
+- rclone sync will check the checksums while copying
+- you can use rclone check between the encrypted remotes
+- you don't decrypt and encrypt unecessarily
+
+For example, let's say you have your original remote at remote: with the
+encrypted version at eremote: with path remote:crypt. You would then set
+up the new remote remote2: and then the encrypted version eremote2: with
+path remote2:crypt using the same passwords as eremote:.
+
+To sync the two remotes you would do
+
+ rclone sync remote:crypt remote2:crypt
+
+And to check the integrity you would do
+
+ rclone check remote:crypt remote2:crypt
+
+
+File formats
+
+File encryption
+
+Files are encrypted 1:1 source file to destination object. The file has
+a header and is divided into chunks.
+
+Header
+
+- 8 bytes magic string RCLONE\x00\x00
+- 24 bytes Nonce (IV)
+
+The initial nonce is generated from the operating systems crypto strong
+random number genrator. The nonce is incremented for each chunk read
+making sure each nonce is unique for each block written. The chance of a
+nonce being re-used is miniscule. If you wrote an exabyte of data (10¹⁸
+bytes) you would have a probability of approximately 2×10⁻³² of re-using
+a nonce.
+
+Chunk
+
+Each chunk will contain 64kB of data, except for the last one which may
+have less data. The data chunk is in standard NACL secretbox format.
+Secretbox uses XSalsa20 and Poly1305 to encrypt and authenticate
+messages.
+
+Each chunk contains:
+
+- 16 Bytes of Poly1305 authenticator
+- 1 - 65536 bytes XSalsa20 encrypted data
+
+64k chunk size was chosen as the best performing chunk size (the
+authenticator takes too much time below this and the performance drops
+off due to cache effects above this). Note that these chunks are
+buffered in memory so they can't be too big.
+
+This uses a 32 byte (256 bit key) key derived from the user password.
+
+Examples
+
+1 byte file will encrypt to
+
+- 32 bytes header
+- 17 bytes data chunk
+
+49 bytes total
+
+1MB (1048576 bytes) file will encrypt to
+
+- 32 bytes header
+- 16 chunks of 65568 bytes
+
+1049120 bytes total (a 0.05% overhead). This is the overhead for big
+files.
+
+Name encryption
+
+File names are encrypted segment by segment - the path is broken up into
+/ separated strings and these are encrypted individually.
+
+File segments are padded using using PKCS#7 to a multiple of 16 bytes
+before encryption.
+
+They are then encrypted with EME using AES with 256 bit key. EME
+(ECB-Mix-ECB) is a wide-block encryption mode presented in the 2003
+paper "A Parallelizable Enciphering Mode" by Halevi and Rogaway.
+
+This makes for determinstic encryption which is what we want - the same
+filename must encrypt to the same thing otherwise we can't find it on
+the cloud storage system.
+
+This means that
+
+- filenames with the same name will encrypt the same
+- filenames which start the same won't have a common prefix
+
+This uses a 32 byte key (256 bits) and a 16 byte (128 bits) IV both of
+which are derived from the user password.
+
+After encryption they are written out using a modified version of
+standard base32 encoding as described in RFC4648. The standard encoding
+is modified in two ways:
+
+- it becomes lower case (no-one likes upper case filenames!)
+- we strip the padding character =
+
+base32 is used rather than the more efficient base64 so rclone can be
+used on case insensitive remotes (eg Windows, Amazon Drive).
+
+Key derivation
+
+Rclone uses scrypt with parameters N=16384, r=8, p=1 with a an optional
+user supplied salt (password2) to derive the 32+32+16 = 80 bytes of key
+material required. If the user doesn't supply a salt then rclone uses an
+internal one.
+
+scrypt makes it impractical to mount a dictionary attack on rclone
+encrypted data. For full protection agains this you should always use a
+salt.
+
+
+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
+ Type of storage to configure.
+ Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ "amazon cloud drive"
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ "s3"
+ 3 / Backblaze B2
+ \ "b2"
+ 4 / Dropbox
+ \ "dropbox"
+ 5 / Encrypt/Decrypt a remote
+ \ "crypt"
+ 6 / Google Cloud Storage (this is not Google Drive)
+ \ "google cloud storage"
+ 7 / Google Drive
+ \ "drive"
+ 8 / Hubic
+ \ "hubic"
+ 9 / Local Disk
+ \ "local"
+ 10 / Microsoft OneDrive
+ \ "onedrive"
+ 11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ \ "swift"
+ 12 / SSH/SFTP Connection
+ \ "sftp"
+ 13 / Yandex Disk
+ \ "yandex"
+ Storage> 4
+ Dropbox App Key - leave blank normally.
+ app_key>
+ Dropbox App Secret - leave blank normally.
+ app_secret>
+ Remote config
+ Please visit:
+ https://www.dropbox.com/1/oauth2/authorize?client_id=XXXXXXXXXXXXXXX&response_type=code
+ Enter the code: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXXXXXXXX
+ --------------------
+ [remote]
+ app_key =
+ app_secret =
+ 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
+
+Modified time and Hashes
+
+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.
+
+Dropbox supports its own hash type which is checked for all transfers.
+
+Specific options
+
+Here are the command line options specific to this cloud storage system.
+
+--dropbox-chunk-size=SIZE
+
+Upload chunk size. Max 150M. The default is 128MB. Note that this isn't
+buffered into memory.
+
+Limitations
+
+Note that Dropbox is case insensitive so you can't have a file called
+"Hello.doc" and one called "hello.doc".
+
+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. 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.
+
+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 dropbox:dir followed by an
+rclone rmdir dropbox:dir.
+
+
+FTP
+
+FTP is the File Transfer Protocol. FTP support is provided using the
+github.com/jlaffaye/ftp package.
+
+Here is an example of making an FTP configuration. First run
+
+ rclone config
+
+This will guide you through an interactive setup process. An FTP remote
+only needs a host together with and a username and a password. With
+anonymous FTP server, you will need to use anonymous as username and
+your email address as the password.
+
+ No remotes found - make a new one
+ n) New remote
+ r) Rename remote
+ c) Copy remote
+ s) Set configuration password
+ q) Quit config
+ n/r/c/s/q> n
+ name> remote
+ Type of storage to configure.
+ Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ "amazon cloud drive"
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ "s3"
+ 3 / Backblaze B2
+ \ "b2"
+ 4 / Dropbox
+ \ "dropbox"
+ 5 / Encrypt/Decrypt a remote
+ \ "crypt"
+ 6 / FTP Connection
+ \ "ftp"
+ 7 / Google Cloud Storage (this is not Google Drive)
+ \ "google cloud storage"
+ 8 / Google Drive
+ \ "drive"
+ 9 / Hubic
+ \ "hubic"
+ 10 / Local Disk
+ \ "local"
+ 11 / Microsoft OneDrive
+ \ "onedrive"
+ 12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ \ "swift"
+ 13 / SSH/SFTP Connection
+ \ "sftp"
+ 14 / Yandex Disk
+ \ "yandex"
+ Storage> ftp
+ FTP host to connect to
+ Choose a number from below, or type in your own value
+ 1 / Connect to ftp.example.com
+ \ "ftp.example.com"
+ host> ftp.example.com
+ FTP username, leave blank for current username, ncw
+ user>
+ FTP port, leave blank to use default (21)
+ port>
+ FTP password
+ y) Yes type in my own password
+ g) Generate random password
+ y/g> y
+ Enter the password:
+ password:
+ Confirm the password:
+ password:
+ Remote config
+ --------------------
+ [remote]
+ host = ftp.example.com
+ user =
+ port =
+ pass = *** ENCRYPTED ***
+ --------------------
+ y) Yes this is OK
+ e) Edit this remote
+ d) Delete this remote
+ y/e/d> y
+
+This remote is called remote and can now be used like this
+
+See all directories in the home directory
+
+ rclone lsd remote:
+
+Make a new directory
+
+ rclone mkdir remote:path/to/directory
+
+List the contents of a directory
+
+ rclone ls remote:path/to/directory
+
+Sync /home/local/directory to the remote directory, deleting any excess
+files in the directory.
+
+ rclone sync /home/local/directory remote:directory
+
+Modified time
+
+FTP does not support modified times. Any times you see on the server
+will be time of upload.
+
+Checksums
+
+FTP does not support any checksums.
+
+Limitations
+
+Note that since FTP isn't HTTP based the following flags don't work with
+it: --dump-headers, --dump-bodies, --dump-auth
+
+Note that --timeout isn't supported (but --contimeout is).
+
+Note that --bind isn't supported.
+
+FTP could support server side move but doesn't yet.
+
+
+Google Cloud Storage
+
+Paths are specified as remote:bucket (or remote: for the lsd command.)
+You may put subdirectories in too, eg remote:bucket/path/to/dir.
+
+The initial setup for google cloud storage involves getting a token from
+Google Cloud Storage 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
+ Type of storage to configure.
+ Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ "amazon cloud drive"
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ "s3"
+ 3 / Backblaze B2
+ \ "b2"
+ 4 / Dropbox
+ \ "dropbox"
+ 5 / Encrypt/Decrypt a remote
+ \ "crypt"
+ 6 / Google Cloud Storage (this is not Google Drive)
+ \ "google cloud storage"
+ 7 / Google Drive
+ \ "drive"
+ 8 / Hubic
+ \ "hubic"
+ 9 / Local Disk
+ \ "local"
+ 10 / Microsoft OneDrive
+ \ "onedrive"
+ 11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ \ "swift"
+ 12 / SSH/SFTP Connection
+ \ "sftp"
+ 13 / Yandex Disk
+ \ "yandex"
+ Storage> 6
+ Google Application Client Id - leave blank normally.
+ client_id>
+ Google Application Client Secret - leave blank normally.
+ client_secret>
+ Project number optional - needed only for list/create/delete buckets - see your developer console.
+ project_number> 12345678
+ Service Account Credentials JSON file path - needed only if you want use SA instead of interactive login.
+ service_account_file>
+ Access Control List for new objects.
+ Choose a number from below, or type in your own value
+ 1 / Object owner gets OWNER access, and all Authenticated Users get READER access.
+ \ "authenticatedRead"
+ 2 / Object owner gets OWNER access, and project team owners get OWNER access.
+ \ "bucketOwnerFullControl"
+ 3 / Object owner gets OWNER access, and project team owners get READER access.
+ \ "bucketOwnerRead"
+ 4 / Object owner gets OWNER access [default if left blank].
+ \ "private"
+ 5 / Object owner gets OWNER access, and project team members get access according to their roles.
+ \ "projectPrivate"
+ 6 / Object owner gets OWNER access, and all Users get READER access.
+ \ "publicRead"
+ object_acl> 4
+ Access Control List for new buckets.
+ Choose a number from below, or type in your own value
+ 1 / Project team owners get OWNER access, and all Authenticated Users get READER access.
+ \ "authenticatedRead"
+ 2 / Project team owners get OWNER access [default if left blank].
+ \ "private"
+ 3 / Project team members get access according to their roles.
+ \ "projectPrivate"
+ 4 / Project team owners get OWNER access, and all Users get READER access.
+ \ "publicRead"
+ 5 / Project team owners get OWNER access, and all Users get WRITER access.
+ \ "publicReadWrite"
+ bucket_acl> 2
+ Location for the newly created buckets.
+ Choose a number from below, or type in your own value
+ 1 / Empty for default location (US).
+ \ ""
+ 2 / Multi-regional location for Asia.
+ \ "asia"
+ 3 / Multi-regional location for Europe.
+ \ "eu"
+ 4 / Multi-regional location for United States.
+ \ "us"
+ 5 / Taiwan.
+ \ "asia-east1"
+ 6 / Tokyo.
+ \ "asia-northeast1"
+ 7 / Singapore.
+ \ "asia-southeast1"
+ 8 / Sydney.
+ \ "australia-southeast1"
+ 9 / Belgium.
+ \ "europe-west1"
+ 10 / London.
+ \ "europe-west2"
+ 11 / Iowa.
+ \ "us-central1"
+ 12 / South Carolina.
+ \ "us-east1"
+ 13 / Northern Virginia.
+ \ "us-east4"
+ 14 / Oregon.
+ \ "us-west1"
+ location> 12
+ The storage class to use when storing objects in Google Cloud Storage.
+ Choose a number from below, or type in your own value
+ 1 / Default
+ \ ""
+ 2 / Multi-regional storage class
+ \ "MULTI_REGIONAL"
+ 3 / Regional storage class
+ \ "REGIONAL"
+ 4 / Nearline storage class
+ \ "NEARLINE"
+ 5 / Coldline storage class
+ \ "COLDLINE"
+ 6 / Durable reduced availability storage class
+ \ "DURABLE_REDUCED_AVAILABILITY"
+ storage_class> 5
+ Remote config
+ Use auto config?
+ * Say Y if not sure
+ * Say N if you are working on a remote or headless machine or Y didn't work
+ y) Yes
+ n) No
+ y/n> y
+ If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
+ Log in and authorize rclone for access
+ Waiting for code...
+ Got code
+ --------------------
+ [remote]
+ type = google cloud storage
+ client_id =
+ client_secret =
+ token = {"AccessToken":"xxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"x/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxx","Expiry":"2014-07-17T20:49:14.929208288+01:00","Extra":null}
+ project_number = 12345678
+ object_acl = private
+ bucket_acl = private
+ --------------------
+ y) Yes this is OK
+ e) Edit this remote
+ d) Delete this remote
+ y/e/d> y
+
+Note that rclone runs a webserver on your local machine to collect the
+token as returned from Google if you use auto config mode. This only
+runs from the moment it opens your browser to the moment you get back
+the verification code. This is on http://127.0.0.1:53682/ and this it
+may require you to unblock it temporarily if you are running a host
+firewall, or use manual mode.
+
+This remote is called remote and can now be used like this
+
+See all the buckets in your project
+
+ rclone lsd remote:
+
+Make a new bucket
+
+ rclone mkdir remote:bucket
+
+List the contents of a bucket
+
+ rclone ls remote:bucket
+
+Sync /home/local/directory to the remote bucket, deleting any excess
+files in the bucket.
+
+ rclone sync /home/local/directory remote:bucket
+
+Service Account support
+
+You can set up rclone with Google Cloud Storage in an unattended mode,
+i.e. not tied to a specific end-user Google account. This is useful when
+you want to synchronise files onto machines that don't have actively
+logged-in users, for example build machines.
+
+To get credentials for Google Cloud Platform IAM Service Accounts,
+please head to the Service Account section of the Google Developer
+Console. Service Accounts behave just like normal User permissions in
+Google Cloud Storage ACLs, so you can limit their access (e.g. make them
+read only). After creating an account, a JSON file containing the
+Service Account's credentials will be downloaded onto your machines.
+These credentials are what rclone will use for authentication.
+
+To use a Service Account instead of OAuth2 token flow, enter the path to
+your Service Account credentials at the service_account_file prompt and
+rclone won't use the browser based authentication flow.
+
+--fast-list
+
+This remote supports --fast-list which allows you to use fewer
+transactions in exchange for more memory. See the rclone docs for more
+details.
+
+Modified time
+
+Google google cloud storage stores md5sums natively and rclone stores
+modification times as metadata on the object, under the "mtime" key in
+RFC3339 format accurate to 1ns.
+
+
+Google Drive
+
+Paths are specified as drive:path
+
+Drive paths may be as deep as required, eg drive:directory/subdirectory.
+
+The initial setup for drive involves getting a token from Google drive
+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:
+
+ No remotes found - make a new one
+ n) New remote
+ r) Rename remote
+ c) Copy remote
+ s) Set configuration password
+ q) Quit config
+ n/r/c/s/q> n
+ name> remote
+ Type of storage to configure.
+ Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ "amazon cloud drive"
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ "s3"
+ 3 / Backblaze B2
+ \ "b2"
+ 4 / Dropbox
+ \ "dropbox"
+ 5 / Encrypt/Decrypt a remote
+ \ "crypt"
+ 6 / FTP Connection
+ \ "ftp"
+ 7 / Google Cloud Storage (this is not Google Drive)
+ \ "google cloud storage"
+ 8 / Google Drive
+ \ "drive"
+ 9 / Hubic
+ \ "hubic"
+ 10 / Local Disk
+ \ "local"
+ 11 / Microsoft OneDrive
+ \ "onedrive"
+ 12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ \ "swift"
+ 13 / SSH/SFTP Connection
+ \ "sftp"
+ 14 / Yandex Disk
+ \ "yandex"
+ Storage> 8
+ Google Application Client Id - leave blank normally.
+ client_id>
+ Google Application Client Secret - leave blank normally.
+ client_secret>
+ Remote config
+ Use auto config?
+ * Say Y if not sure
+ * Say N if you are working on a remote or headless machine or Y didn't work
+ y) Yes
+ n) No
+ y/n> y
+ If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
Log in and authorize rclone for access
Waiting for code...
Got code
+ Configure this as a team drive?
+ y) Yes
+ n) No
+ y/n> n
--------------------
[remote]
client_id =
client_secret =
- token = {"access_token":"XXXXXX"}
+ token = {"AccessToken":"xxxx.x.xxxxx_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"1/xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx","Expiry":"2014-03-16T13:57:58.955387075Z","Extra":null}
+ --------------------
+ y) Yes this is OK
+ e) Edit this remote
+ d) Delete this remote
+ y/e/d> y
+
+Note that rclone runs a webserver on your local machine to collect the
+token as returned from Google if you use auto config mode. This only
+runs from the moment it opens your browser to the moment you get back
+the verification code. This is on http://127.0.0.1:53682/ and this it
+may require you to unblock it temporarily if you are running a host
+firewall, or use manual mode.
+
+You can then use it like this,
+
+List directories in top level of your drive
+
+ rclone lsd remote:
+
+List all the files in your drive
+
+ rclone ls remote:
+
+To copy a local directory to a drive directory called backup
+
+ rclone copy /home/source remote:backup
+
+Team drives
+
+If you want to configure the remote to point to a Google Team Drive then
+answer y to the question Configure this as a team drive?.
+
+This will fetch the list of Team Drives from google and allow you to
+configure which one you want to use. You can also type in a team drive
+ID if you prefer.
+
+For example:
+
+ Configure this as a team drive?
+ y) Yes
+ n) No
+ y/n> y
+ Fetching team drive list...
+ Choose a number from below, or type in your own value
+ 1 / Rclone Test
+ \ "xxxxxxxxxxxxxxxxxxxx"
+ 2 / Rclone Test 2
+ \ "yyyyyyyyyyyyyyyyyyyy"
+ 3 / Rclone Test 3
+ \ "zzzzzzzzzzzzzzzzzzzz"
+ Enter a Team Drive ID> 1
+ --------------------
+ [remote]
+ client_id =
+ client_secret =
+ token = {"AccessToken":"xxxx.x.xxxxx_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"1/xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx","Expiry":"2014-03-16T13:57:58.955387075Z","Extra":null}
+ team_drive = xxxxxxxxxxxxxxxxxxxx
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
-See the remote setup docs for how to set it up on a machine with no
-Internet browser available.
+Modified time
+
+Google drive stores modification times accurate to 1 ms.
+
+Revisions
+
+Google drive stores revisions of files. When you upload a change to an
+existing file to google drive using rclone it will create a new revision
+of that file.
+
+Revisions follow the standard google policy which at time of writing was
+
+- They are deleted after 30 days or 100 revisions (whatever
+ comes first).
+- They do not count towards a user storage quota.
+
+Deleting files
+
+By default rclone will send all files to the trash when deleting files.
+If deleting them permanently is required then use the
+--drive-use-trash=false flag, or set the equivalent environment
+variable.
+
+Emptying trash
+
+If you wish to empty your trash you can use the rclone cleanup remote:
+command which will permanently delete all your trashed files. This
+command does not take any path arguments.
+
+Specific options
+
+Here are the command line options specific to this cloud storage system.
+
+--drive-auth-owner-only
+
+Only consider files owned by the authenticated user.
+
+--drive-chunk-size=SIZE
+
+Upload chunk size. Must a power of 2 >= 256k. Default value is 8 MB.
+
+Making this larger will improve performance, but note that each chunk is
+buffered in memory one per transfer.
+
+Reducing this will reduce memory usage but decrease performance.
+
+--drive-formats
+
+Google documents can only be exported from Google drive. When rclone
+downloads a Google doc it chooses a format to download depending upon
+this setting.
+
+By default the formats are docx,xlsx,pptx,svg which are a sensible
+default for an editable document.
+
+When choosing a format, rclone runs down the list provided in order and
+chooses the first file format the doc can be exported as from the list.
+If the file can't be exported to a format on the formats list, then
+rclone will choose a format from the default list.
+
+If you prefer an archive copy then you might use --drive-formats pdf, or
+if you prefer openoffice/libreoffice formats you might use
+--drive-formats ods,odt,odp.
+
+Note that rclone adds the extension to the google doc, so if it is
+calles My Spreadsheet on google docs, it will be exported as
+My Spreadsheet.xlsx or My Spreadsheet.pdf etc.
+
+Here are the possible extensions with their corresponding mime types.
+
+ -------------------------------------
+ Extension Mime Type Description
+ ---------- ------------ -------------
+ csv text/csv Standard CSV
+ format for
+ Spreadsheets
+
+ doc application/ Micosoft
+ msword Office
+ Document
+
+ docx application/ Microsoft
+ vnd.openxmlf Office
+ ormats-offic Document
+ edocument.wo
+ rdprocessing
+ ml.document
+
+ epub application/ E-book format
+ epub+zip
+
+ html text/html An HTML
+ Document
+
+ jpg image/jpeg A JPEG Image
+ File
+
+ odp application/ Openoffice
+ vnd.oasis.op Presentation
+ endocument.p
+ resentation
+
+ ods application/ Openoffice
+ vnd.oasis.op Spreadsheet
+ endocument.s
+ preadsheet
+
+ ods application/ Openoffice
+ x-vnd.oasis. Spreadsheet
+ opendocument
+ .spreadsheet
+
+ odt application/ Openoffice
+ vnd.oasis.op Document
+ endocument.t
+ ext
+
+ pdf application/ Adobe PDF
+ pdf Format
+
+ png image/png PNG Image
+ Format
+
+ pptx application/ Microsoft
+ vnd.openxmlf Office
+ ormats-offic Powerpoint
+ edocument.pr
+ esentationml
+ .presentatio
+ n
+
+ rtf application/ Rich Text
+ rtf Format
+
+ svg image/svg+xm Scalable
+ l Vector
+ Graphics
+ Format
+
+ tsv text/tab-sep Standard TSV
+ arated-value format for
+ s spreadsheets
+
+ txt text/plain Plain Text
+
+ xls application/ Microsoft
+ vnd.ms-excel Office
+ Spreadsheet
+
+ xlsx application/ Microsoft
+ vnd.openxmlf Office
+ ormats-offic Spreadsheet
+ edocument.sp
+ readsheetml.
+ sheet
+
+ zip application/ A ZIP file of
+ zip HTML, Images
+ CSS
+ -------------------------------------
+
+--drive-list-chunk int
+
+Size of listing chunk 100-1000. 0 to disable. (default 1000)
+
+--drive-shared-with-me
+
+Only show files that are shared with me
+
+--drive-skip-gdocs
+
+Skip google documents in all listings. If given, gdocs practically
+become invisible to rclone.
-Note that rclone runs a webserver on your local machine to collect the
-token as returned from Microsoft. This only runs from the moment it
-opens your browser to the moment you get back the verification code.
-This is on http://127.0.0.1:53682/ and this it may require you to
-unblock it temporarily if you are running a host firewall.
+--drive-trashed-only
-Once configured you can then use rclone like this,
+Only show files that are in the trash. This will show trashed files in
+their original directory structure.
-List directories in top level of your OneDrive
+--drive-upload-cutoff=SIZE
- rclone lsd remote:
+File size cutoff for switching to chunked upload. Default is 8 MB.
-List all the files in your OneDrive
+--drive-use-trash
- rclone ls remote:
+Controls whether files are sent to the trash or deleted permanently.
+Defaults to true, namely sending files to the trash. Use
+--drive-use-trash=false to delete files permanently instead.
-To copy a local directory to an OneDrive directory called backup
+Limitations
- rclone copy /home/source remote:backup
+Drive has quite a lot of rate limiting. This causes rclone to be limited
+to transferring about 2 files per second only. Individual files may be
+transferred much faster at 100s of MBytes/s but lots of small files can
+take a long time.
-Modified time and hashes
+Server side copies are also subject to a separate rate limit. If you see
+User rate limit exceeded errors, wait at least 24 hours and retry. You
+can disable server side copies with --disable copy to download and
+upload the files if you prefer.
-OneDrive allows modification times to be set on objects accurate to 1
-second. These will be used to detect whether objects need syncing or
-not.
+Duplicated files
-One drive supports SHA1 type hashes, so you can use --checksum flag.
+Sometimes, for no reason I've been able to track down, drive will
+duplicate a file that rclone uploads. Drive unlike all the other remotes
+can have duplicated files.
-Deleting files
+Duplicated files cause problems with the syncing and you will see
+messages in the log about duplicates.
-Any files you delete with rclone will end up in the trash. Microsoft
-doesn't provide an API to permanently delete files, nor to empty the
-trash, so you will have to do that with one of Microsoft's apps or via
-the OneDrive website.
+Use rclone dedupe to fix duplicated files.
-Specific options
+Note that this isn't just a problem with rclone, even Google Photos on
+Android duplicates files on drive sometimes.
-Here are the command line options specific to this cloud storage system.
+Rclone appears to be re-copying files it shouldn't
---onedrive-chunk-size=SIZE
+There are two possible reasons for rclone to recopy files which haven't
+changed to Google Drive.
-Above this size files will be chunked - must be multiple of 320k. The
-default is 10MB. Note that the chunks will be buffered into memory.
+The first is the duplicated file issue above - run rclone dedupe and
+check your logs for duplicate object or directory messages.
---onedrive-upload-cutoff=SIZE
+The second is that sometimes Google reports different sizes for the
+Google Docs exports which will cause rclone to re-download Google Docs
+for no apparent reason. --ignore-size is a not very satisfactory
+work-around for this if it is causing you a lot of problems.
-Cutoff for switching to chunked upload - must be <= 100MB. The default
-is 10MB.
+Google docs downloads sometimes fail with "Failed to copy: read X bytes expecting Y"
-Limitations
+This is the same problem as above. Google reports the google doc is one
+size, but rclone downloads a different size. Work-around with the
+--ignore-size flag or wait for rclone to retry the download which it
+will.
-Note that OneDrive is case insensitive so you can't have a file called
-"Hello.doc" and one called "hello.doc".
+Making your own client_id
-Rclone only supports your default OneDrive, and doesn't work with One
-Drive for business. Both these issues may be fixed at some point
-depending on user demand!
+When you use rclone with Google drive in its default configuration you
+are using rclone's client_id. This is shared between all the rclone
+users. There is a global rate limit on the number of queries per second
+that each client_id can do set by Google. rclone already has a high
+quota and I will continue to make sure it is high enough by contacting
+Google.
-There are quite a few characters that can't be in OneDrive file names.
-These can't occur on Windows platforms, but on non-Windows platforms
-they are common. Rclone will map these names to and from an identical
-looking unicode equivalent. For example if a file has a ? in it will be
-mapped to ? instead.
+However you might find you get better performance making your own
+client_id if you are a heavy user. Or you may not depending on exactly
+how Google have been raising rclone's rate limit.
-The largest allowed file size is 10GiB (10,737,418,240 bytes).
+Here is how to create your own Google Drive client ID for rclone:
+1. Log into the Google API Console with your Google account. It doesn't
+ matter what Google account you use. (It need not be the same account
+ as the Google Drive you want to access)
-Hubic
+2. Select a project or create a new project.
-Paths are specified as remote:path
+3. Under Overview, Google APIs, Google Apps APIs, click "Drive API",
+ then "Enable".
-Paths are specified as remote:container (or remote: for the lsd
-command.) You may put subdirectories in too, eg
-remote:container/path/to/dir.
+4. Click "Credentials" in the left-side panel (not "Go to credentials",
+ which opens the wizard), then "Create credentials", then "OAuth
+ client ID". It will prompt you to set the OAuth consent screen
+ product name, if you haven't set one already.
-The initial setup for Hubic involves getting a token from Hubic which
-you need to do in your browser. rclone config walks you through it.
+5. Choose an application type of "other", and click "Create". (the
+ default name is fine)
+
+6. It will show you a client ID and client secret. Use these values in
+ rclone config to add a new remote or edit an existing remote.
+
+(Thanks to @balazer on github for these instructions.)
+
+
+HTTP
+
+The HTTP remote is a read only remote for reading files of a webserver.
+The webserver should provide file listings which rclone will read and
+turn into a remote. This has been tested with common webservers such as
+Apache/Nginx/Caddy and will likely work with file listings from most web
+servers. (If it doesn't then please file an issue, or send a pull
+request!)
+
+Paths are specified as remote: or remote:path/to/dir.
Here is an example of how to make a remote called remote. First run:
@@ -4407,9 +5535,11 @@ Here is an example of how to make a remote called remote. First run:
This will guide you through an interactive setup process:
+ No remotes found - make a new one
n) New remote
s) Set configuration password
- n/s> n
+ q) Quit config
+ n/s/q> n
name> remote
Type of storage to configure.
Choose a number from below, or type in your own value
@@ -4423,123 +5553,117 @@ This will guide you through an interactive setup process:
\ "dropbox"
5 / Encrypt/Decrypt a remote
\ "crypt"
- 6 / Google Cloud Storage (this is not Google Drive)
+ 6 / FTP Connection
+ \ "ftp"
+ 7 / Google Cloud Storage (this is not Google Drive)
\ "google cloud storage"
- 7 / Google Drive
+ 8 / Google Drive
\ "drive"
- 8 / Hubic
+ 9 / Hubic
\ "hubic"
- 9 / Local Disk
+ 10 / Local Disk
\ "local"
- 10 / Microsoft OneDrive
+ 11 / Microsoft OneDrive
\ "onedrive"
- 11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ 12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
\ "swift"
- 12 / SSH/SFTP Connection
+ 13 / SSH/SFTP Connection
\ "sftp"
- 13 / Yandex Disk
+ 14 / Yandex Disk
\ "yandex"
- Storage> 8
- Hubic Client Id - leave blank normally.
- client_id>
- Hubic Client Secret - leave blank normally.
- client_secret>
+ 15 / http Connection
+ \ "http"
+ Storage> http
+ URL of http host to connect to
+ Choose a number from below, or type in your own value
+ 1 / Connect to example.com
+ \ "https://example.com"
+ url> https://beta.rclone.org
Remote config
- Use auto config?
- * Say Y if not sure
- * Say N if you are working on a remote or headless machine
- y) Yes
- n) No
- y/n> y
- If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
- Log in and authorize rclone for access
- Waiting for code...
- Got code
--------------------
[remote]
- client_id =
- client_secret =
- token = {"access_token":"XXXXXX"}
+ url = https://beta.rclone.org
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
+ Current remotes:
-See the remote setup docs for how to set it up on a machine with no
-Internet browser available.
+ Name Type
+ ==== ====
+ remote http
-Note that rclone runs a webserver on your local machine to collect the
-token as returned from Hubic. This only runs from the moment it opens
-your browser to the moment you get back the verification code. This is
-on http://127.0.0.1:53682/ and this it may require you to unblock it
-temporarily if you are running a host firewall.
+ 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> q
-Once configured you can then use rclone like this,
+This remote is called remote and can now be used like this
-List containers in the top level of your Hubic
+See all the top level directories
rclone lsd remote:
-List all the files in your Hubic
+List the contents of a directory
- rclone ls remote:
+ rclone ls remote:directory
-To copy a local directory to an Hubic directory called backup
+Sync the remote directory to /home/local/directory, deleting any excess
+files.
- rclone copy /home/source remote:backup
+ rclone sync remote:directory /home/local/directory
-If you want the directory to be visible in the official _Hubic browser_,
-you need to copy your files to the default directory
+Read only
- rclone copy /home/source remote:default/backup
+This remote is read only - you can't upload files to an HTTP server.
---fast-list
+Modified time
-This remote supports --fast-list which allows you to use fewer
-transactions in exchange for more memory. See the rclone docs for more
-details.
+Most HTTP servers store time accurate to 1 second.
-Modified time
+Checksum
-The modified time is stored as metadata on the object as
-X-Object-Meta-Mtime as floating point since the epoch accurate to 1 ns.
+No checksums are stored.
-This is a defacto standard (used in the official python-swiftclient
-amongst others) for storing the modification time for an object.
+Usage without a config file
-Note that Hubic wraps the Swift backend, so most of the properties of
-are the same.
+Note that since only two environment variable need to be set, it is easy
+to use without a config file like this.
-Limitations
+ RCLONE_CONFIG_ZZ_TYPE=http RCLONE_CONFIG_ZZ_URL=https://beta.rclone.org rclone lsd zz:
-This uses the normal OpenStack Swift mechanism to refresh the Swift API
-credentials and ignores the expires field returned by the Hubic API.
+Or if you prefer
-The Swift API doesn't return a correct MD5SUM for segmented files
-(Dynamic or Static Large Objects) so rclone won't check or use the
-MD5SUM for these.
+ export RCLONE_CONFIG_ZZ_TYPE=http
+ export RCLONE_CONFIG_ZZ_URL=https://beta.rclone.org
+ rclone lsd zz:
-Backblaze B2
+Hubic
-B2 is Backblaze's cloud storage system.
+Paths are specified as remote:path
-Paths are specified as remote:bucket (or remote: for the lsd command.)
-You may put subdirectories in too, eg remote:bucket/path/to/dir.
+Paths are specified as remote:container (or remote: for the lsd
+command.) You may put subdirectories in too, eg
+remote:container/path/to/dir.
-Here is an example of making a b2 configuration. First run
+The initial setup for Hubic involves getting a token from Hubic which
+you need to do in your browser. rclone config walks you through it.
- rclone config
+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. You will need
-your account number (a short hex number) and key (a long hex number)
-which you can get from the b2 control panel.
+This will guide you through an interactive setup process:
- No remotes found - make a new one
n) New remote
- q) Quit config
- n/q> n
+ s) Set configuration password
+ n/s> n
name> remote
Type of storage to configure.
Choose a number from below, or type in your own value
@@ -4569,43 +5693,60 @@ which you can get from the b2 control panel.
\ "sftp"
13 / Yandex Disk
\ "yandex"
- Storage> 3
- Account ID
- account> 123456789abc
- Application Key
- key> 0123456789abcdef0123456789abcdef0123456789
- Endpoint for the service - leave blank normally.
- endpoint>
+ Storage> 8
+ Hubic Client Id - leave blank normally.
+ client_id>
+ Hubic Client Secret - leave blank normally.
+ client_secret>
Remote config
+ Use auto config?
+ * Say Y if not sure
+ * Say N if you are working on a remote or headless machine
+ y) Yes
+ n) No
+ y/n> y
+ If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
+ Log in and authorize rclone for access
+ Waiting for code...
+ Got code
--------------------
[remote]
- account = 123456789abc
- key = 0123456789abcdef0123456789abcdef0123456789
- endpoint =
+ client_id =
+ client_secret =
+ token = {"access_token":"XXXXXX"}
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
-This remote is called remote and can now be used like this
+See the remote setup docs for how to set it up on a machine with no
+Internet browser available.
-See all buckets
+Note that rclone runs a webserver on your local machine to collect the
+token as returned from Hubic. This only runs from the moment it opens
+your browser to the moment you get back the verification code. This is
+on http://127.0.0.1:53682/ and this it may require you to unblock it
+temporarily if you are running a host firewall.
+
+Once configured you can then use rclone like this,
+
+List containers in the top level of your Hubic
rclone lsd remote:
-Make a new bucket
+List all the files in your Hubic
- rclone mkdir remote:bucket
+ rclone ls remote:
-List the contents of a bucket
+To copy a local directory to an Hubic directory called backup
- rclone ls remote:bucket
+ rclone copy /home/source remote:backup
-Sync /home/local/directory to the remote bucket, deleting any excess
-files in the bucket.
+If you want the directory to be visible in the official _Hubic browser_,
+you need to copy your files to the default directory
- rclone sync /home/local/directory remote:bucket
+ rclone copy /home/source remote:default/backup
--fast-list
@@ -4616,205 +5757,42 @@ details.
Modified time
The modified time is stored as metadata on the object as
-X-Bz-Info-src_last_modified_millis as milliseconds since 1970-01-01 in
-the Backblaze standard. Other tools should be able to use this as a
-modified time.
-
-Modified times are used in syncing and are fully supported except in the
-case of updating a modification time on an existing object. In this case
-the object will be uploaded again as B2 doesn't have an API method to
-set the modification time independent of doing an upload.
-
-SHA1 checksums
-
-The SHA1 checksums of the files are checked on upload and download and
-will be used in the syncing process.
-
-Large files which are uploaded in chunks will store their SHA1 on the
-object as X-Bz-Info-large_file_sha1 as recommended by Backblaze.
-
-Transfers
-
-Backblaze recommends that you do lots of transfers simultaneously for
-maximum speed. In tests from my SSD equiped laptop the optimum setting
-is about --transfers 32 though higher numbers may be used for a slight
-speed improvement. The optimum number for you may vary depending on your
-hardware, how big the files are, how much you want to load your
-computer, etc. The default of --transfers 4 is definitely too low for
-Backblaze B2 though.
-
-Note that uploading big files (bigger than 200 MB by default) will use a
-96 MB RAM buffer by default. There can be at most --transfers of these
-in use at any moment, so this sets the upper limit on the memory used.
-
-Versions
-
-When rclone uploads a new version of a file it creates a new version of
-it. Likewise when you delete a file, the old version will still be
-available.
-
-Old versions of files are visible using the --b2-versions flag.
-
-If you wish to remove all the old versions then you can use the
-rclone cleanup remote:bucket command which will delete all the old
-versions of files, leaving the current ones intact. You can also supply
-a path and only old versions under that path will be deleted, eg
-rclone cleanup remote:bucket/path/to/stuff.
-
-When you purge a bucket, the current and the old versions will be
-deleted then the bucket will be deleted.
-
-However delete will cause the current versions of the files to become
-hidden old versions.
-
-Here is a session showing the listing and and retreival of an old
-version followed by a cleanup of the old versions.
-
-Show current version and all the versions with --b2-versions flag.
-
- $ rclone -q ls b2:cleanup-test
- 9 one.txt
-
- $ rclone -q --b2-versions ls b2:cleanup-test
- 9 one.txt
- 8 one-v2016-07-04-141032-000.txt
- 16 one-v2016-07-04-141003-000.txt
- 15 one-v2016-07-02-155621-000.txt
-
-Retreive an old verson
-
- $ rclone -q --b2-versions copy b2:cleanup-test/one-v2016-07-04-141003-000.txt /tmp
-
- $ ls -l /tmp/one-v2016-07-04-141003-000.txt
- -rw-rw-r-- 1 ncw ncw 16 Jul 2 17:46 /tmp/one-v2016-07-04-141003-000.txt
-
-Clean up all the old versions and show that they've gone.
-
- $ rclone -q cleanup b2:cleanup-test
-
- $ rclone -q ls b2:cleanup-test
- 9 one.txt
-
- $ rclone -q --b2-versions ls b2:cleanup-test
- 9 one.txt
-
-Data usage
-
-It is useful to know how many requests are sent to the server in
-different scenarios.
-
-All copy commands send the following 4 requests:
-
- /b2api/v1/b2_authorize_account
- /b2api/v1/b2_create_bucket
- /b2api/v1/b2_list_buckets
- /b2api/v1/b2_list_file_names
-
-The b2_list_file_names request will be sent once for every 1k files in
-the remote path, providing the checksum and modification time of the
-listed files. As of version 1.33 issue #818 causes extra requests to be
-sent when using B2 with Crypt. When a copy operation does not require
-any files to be uploaded, no more requests will be sent.
-
-Uploading files that do not require chunking, will send 2 requests per
-file upload:
-
- /b2api/v1/b2_get_upload_url
- /b2api/v1/b2_upload_file/
-
-Uploading files requiring chunking, will send 2 requests (one each to
-start and finish the upload) and another 2 requests for each chunk:
-
- /b2api/v1/b2_start_large_file
- /b2api/v1/b2_get_upload_part_url
- /b2api/v1/b2_upload_part/
- /b2api/v1/b2_finish_large_file
-
-B2 with crypt
-
-When using B2 with crypt files are encrypted into a temporary location
-and streamed from there. This is required to calculate the encrypted
-file's checksum before beginning the upload. On Windows the %TMPDIR%
-environment variable is used as the temporary location. If the file
-requires chunking, both the chunking and encryption will take place in
-memory.
-
-Specific options
-
-Here are the command line options specific to this cloud storage system.
-
---b2-chunk-size valuee=SIZE
-
-When uploading large files chunk the file into this size. Note that
-these chunks are buffered in memory and there might a maximum of
---transfers chunks in progress at once. 5,000,000 Bytes is the minimim
-size (default 96M).
-
---b2-upload-cutoff=SIZE
-
-Cutoff for switching to chunked upload (default 190.735 MiB == 200 MB).
-Files above this size will be uploaded in chunks of --b2-chunk-size.
-
-This value should be set no larger than 4.657GiB (== 5GB) as this is the
-largest file size that can be uploaded.
-
---b2-test-mode=FLAG
-
-This is for debugging purposes only.
-
-Setting FLAG to one of the strings below will cause b2 to return
-specific errors for debugging purposes.
-
-- fail_some_uploads
-- expire_some_account_authorization_tokens
-- force_cap_exceeded
-
-These will be set in the X-Bz-Test-Mode header which is documented in
-the b2 integrations checklist.
-
---b2-versions
-
-When set rclone will show and act on older versions of files. For
-example
-
-Listing without --b2-versions
-
- $ rclone -q ls b2:cleanup-test
- 9 one.txt
+X-Object-Meta-Mtime as floating point since the epoch accurate to 1 ns.
-And with
+This is a defacto standard (used in the official python-swiftclient
+amongst others) for storing the modification time for an object.
- $ rclone -q --b2-versions ls b2:cleanup-test
- 9 one.txt
- 8 one-v2016-07-04-141032-000.txt
- 16 one-v2016-07-04-141003-000.txt
- 15 one-v2016-07-02-155621-000.txt
+Note that Hubic wraps the Swift backend, so most of the properties of
+are the same.
-Showing that the current version is unchanged but older versions can be
-seen. These have the UTC date that they were uploaded to the server to
-the nearest millisecond appended to them.
+Limitations
-Note that when using --b2-versions no file write operations are
-permitted, so you can't upload files or delete them.
+This uses the normal OpenStack Swift mechanism to refresh the Swift API
+credentials and ignores the expires field returned by the Hubic API.
+The Swift API doesn't return a correct MD5SUM for segmented files
+(Dynamic or Static Large Objects) so rclone won't check or use the
+MD5SUM for these.
-Yandex Disk
-Yandex Disk is a cloud storage solution created by Yandex.
+Microsoft Azure Blob Storage
-Yandex paths may be as deep as required, eg
-remote:directory/subdirectory.
+Paths are specified as remote:container (or remote: for the lsd
+command.) You may put subdirectories in too, eg
+remote:container/path/to/dir.
-Here is an example of making a yandex configuration. First run
+Here is an example of making a Microsoft Azure Blob Storage
+configuration. For a remote called remote. First run:
- rclone config
+ rclone config
This will guide you through an interactive setup process:
No remotes found - make a new one
n) New remote
s) Set configuration password
- n/s> n
+ q) Quit config
+ n/s/q> n
name> remote
Type of storage to configure.
Choose a number from below, or type in your own value
@@ -4824,80 +5802,69 @@ This will guide you through an interactive setup process:
\ "s3"
3 / Backblaze B2
\ "b2"
- 4 / Dropbox
+ 4 / Box
+ \ "box"
+ 5 / Dropbox
\ "dropbox"
- 5 / Encrypt/Decrypt a remote
+ 6 / Encrypt/Decrypt a remote
\ "crypt"
- 6 / Google Cloud Storage (this is not Google Drive)
+ 7 / FTP Connection
+ \ "ftp"
+ 8 / Google Cloud Storage (this is not Google Drive)
\ "google cloud storage"
- 7 / Google Drive
+ 9 / Google Drive
\ "drive"
- 8 / Hubic
+ 10 / Hubic
\ "hubic"
- 9 / Local Disk
+ 11 / Local Disk
\ "local"
- 10 / Microsoft OneDrive
+ 12 / Microsoft Azure Blob Storage
+ \ "azureblob"
+ 13 / Microsoft OneDrive
\ "onedrive"
- 11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ 14 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
\ "swift"
- 12 / SSH/SFTP Connection
+ 15 / SSH/SFTP Connection
\ "sftp"
- 13 / Yandex Disk
+ 16 / Yandex Disk
\ "yandex"
- Storage> 13
- Yandex Client Id - leave blank normally.
- client_id>
- Yandex Client Secret - leave blank normally.
- client_secret>
+ 17 / http Connection
+ \ "http"
+ Storage> azureblob
+ Storage Account Name
+ account> account_name
+ Storage Account Key
+ key> base64encodedkey==
+ Endpoint for the service - leave blank normally.
+ endpoint>
Remote config
- Use auto config?
- * Say Y if not sure
- * Say N if you are working on a remote or headless machine
- y) Yes
- n) No
- y/n> y
- If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
- Log in and authorize rclone for access
- Waiting for code...
- Got code
--------------------
[remote]
- client_id =
- client_secret =
- token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"bearer","expiry":"2016-12-29T12:27:11.362788025Z"}
+ account = account_name
+ key = base64encodedkey==
+ endpoint =
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
-See the remote setup docs for how to set it up on a machine with no
-Internet browser available.
-
-Note that rclone runs a webserver on your local machine to collect the
-token as returned from Yandex Disk. This only runs from the moment it
-opens your browser to the moment you get back the verification code.
-This is on http://127.0.0.1:53682/ and this it may require you to
-unblock it temporarily if you are running a host firewall.
-
-Once configured you can then use rclone like this,
-
-See top level directories
+See all containers
rclone lsd remote:
-Make a new directory
+Make a new container
- rclone mkdir remote:directory
+ rclone mkdir remote:container
-List the contents of a directory
+List the contents of a container
- rclone ls remote:directory
+ rclone ls remote:container
-Sync /home/local/directory to the remote path, deleting any excess files
-in the path.
+Sync /home/local/directory to the remote container, deleting any excess
+files in the container.
- rclone sync /home/local/directory remote:directory
+ rclone sync /home/local/directory remote:container
--fast-list
@@ -4907,35 +5874,78 @@ details.
Modified time
-Modified times are supported and are stored accurate to 1 ns in custom
-metadata called rclone_modified in RFC3339 with nanoseconds format.
+The modified time is stored as metadata on the object with the mtime
+key. It is stored using RFC3339 Format time with nanosecond precision.
+The metadata is supplied during directory listings so there is no
+overhead to using it.
-MD5 checksums
+Hashes
-MD5 checksums are natively supported by Yandex Disk.
+MD5 hashes are stored with blobs. However blobs that were uploaded in
+chunks only have an MD5 if the source remote was capable of MD5 hashes,
+eg the local disk.
+Multipart uploads
-SFTP
+Rclone supports multipart uploads with Azure Blob storage. Files bigger
+than 256MB will be uploaded using chunked upload by default.
-SFTP is the Secure (or SSH) File Transfer Protocol.
+The files will be uploaded in parallel in 4MB chunks (by default). Note
+that these chunks are buffered in memory and there may be up to
+--transfers of them being uploaded at once.
-It runs over SSH v2 and is standard with most modern SSH installations.
+Files can't be split into more than 50,000 chunks so by default, so the
+largest file that can be uploaded with 4MB chunk size is 195GB. Above
+this rclone will double the chunk size until it creates less than 50,000
+chunks. By default this will mean a maximum file size of 3.2TB can be
+uploaded. This can be raised to 5TB using --azureblob-chunk-size 100M.
-Paths are specified as remote:path. If the path does not begin with a /
-it is relative to the home directory of the user. An empty path remote:
-refers to the users home directory.
+Note that rclone doesn't commit the block list until the end of the
+upload which means that there is a limit of 9.5TB of multipart uploads
+in progress as Azure won't allow more than that amount of uncommitted
+blocks.
-Here is an example of making a SFTP configuration. First run
+Specific options
- rclone config
+Here are the command line options specific to this cloud storage system.
-This will guide you through an interactive setup process.
+--azureblob-upload-cutoff=SIZE
+
+Cutoff for switching to chunked upload - must be <= 256MB. The default
+is 256MB.
+
+--azureblob-chunk-size=SIZE
+
+Upload chunk size. Default 4MB. Note that this is stored in memory and
+there may be up to --transfers chunks stored at once in memory. This can
+be at most 100MB.
+
+Limitations
+
+MD5 sums are only uploaded with chunked files if the source has an MD5
+sum. This will always be the case for a local to azure copy.
+
+
+Microsoft OneDrive
+
+Paths are specified as remote:path
+
+Paths may be as deep as required, eg remote:directory/subdirectory.
+
+The initial setup for OneDrive involves getting a token from Microsoft
+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:
No remotes found - make a new one
n) New remote
s) Set configuration password
- q) Quit config
- n/s/q> n
+ n/s> n
name> remote
Type of storage to configure.
Choose a number from below, or type in your own value
@@ -4949,137 +5959,148 @@ This will guide you through an interactive setup process.
\ "dropbox"
5 / Encrypt/Decrypt a remote
\ "crypt"
- 6 / FTP Connection
- \ "ftp"
- 7 / Google Cloud Storage (this is not Google Drive)
+ 6 / Google Cloud Storage (this is not Google Drive)
\ "google cloud storage"
- 8 / Google Drive
+ 7 / Google Drive
\ "drive"
- 9 / Hubic
+ 8 / Hubic
\ "hubic"
- 10 / Local Disk
+ 9 / Local Disk
\ "local"
- 11 / Microsoft OneDrive
+ 10 / Microsoft OneDrive
\ "onedrive"
- 12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ 11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
\ "swift"
- 13 / SSH/SFTP Connection
+ 12 / SSH/SFTP Connection
\ "sftp"
- 14 / Yandex Disk
+ 13 / Yandex Disk
\ "yandex"
- 15 / http Connection
- \ "http"
- Storage> sftp
- SSH host to connect to
- Choose a number from below, or type in your own value
- 1 / Connect to example.com
- \ "example.com"
- host> example.com
- SSH username, leave blank for current username, ncw
- user> sftpuser
- SSH port, leave blank to use default (22)
- port>
- SSH password, leave blank to use ssh-agent.
- y) Yes type in my own password
- g) Generate random password
- n) No leave this optional password blank
- y/g/n> n
- Path to unencrypted PEM-encoded private key file, leave blank to use ssh-agent.
- key_file>
+ Storage> 10
+ Microsoft App Client Id - leave blank normally.
+ client_id>
+ Microsoft App Client Secret - leave blank normally.
+ client_secret>
Remote config
+ Choose OneDrive account type?
+ * Say b for a OneDrive business account
+ * Say p for a personal OneDrive account
+ b) Business
+ p) Personal
+ b/p> p
+ Use auto config?
+ * Say Y if not sure
+ * Say N if you are working on a remote or headless machine
+ y) Yes
+ n) No
+ y/n> y
+ If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
+ Log in and authorize rclone for access
+ Waiting for code...
+ Got code
--------------------
[remote]
- host = example.com
- user = sftpuser
- port =
- pass =
- key_file =
+ client_id =
+ client_secret =
+ token = {"access_token":"XXXXXX"}
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
-This remote is called remote and can now be used like this
-
-See all directories in the home directory
+See the remote setup docs for how to set it up on a machine with no
+Internet browser available.
- rclone lsd remote:
+Note that rclone runs a webserver on your local machine to collect the
+token as returned from Microsoft. This only runs from the moment it
+opens your browser to the moment you get back the verification code.
+This is on http://127.0.0.1:53682/ and this it may require you to
+unblock it temporarily if you are running a host firewall.
-Make a new directory
+Once configured you can then use rclone like this,
- rclone mkdir remote:path/to/directory
+List directories in top level of your OneDrive
-List the contents of a directory
+ rclone lsd remote:
- rclone ls remote:path/to/directory
+List all the files in your OneDrive
-Sync /home/local/directory to the remote directory, deleting any excess
-files in the directory.
+ rclone ls remote:
- rclone sync /home/local/directory remote:directory
+To copy a local directory to an OneDrive directory called backup
-SSH Authentication
+ rclone copy /home/source remote:backup
-The SFTP remote supports 3 authentication methods
+OneDrive for Business
-- Password
-- Key file
-- ssh-agent
+There is additional support for OneDrive for Business. Select "b" when
+ask
-Key files should be unencrypted PEM-encoded private key files. For
-instance /home/$USER/.ssh/id_rsa.
+ Choose OneDrive account type?
+ * Say b for a OneDrive business account
+ * Say p for a personal OneDrive account
+ b) Business
+ p) Personal
+ b/p>
-If you don't specify pass or key_file then it will attempt to contact an
-ssh-agent.
+After that rclone requires an authentication of your account. The
+application will first authenticate your account, then query the
+OneDrive resource URL and do a second (silent) authentication for this
+resource URL.
-ssh-agent on macOS
+Modified time and hashes
-Note that there seem to be various problems with using an ssh-agent on
-macOS due to recent changes in the OS. The most effective work-around
-seems to be to start an ssh-agent in each session, eg
+OneDrive allows modification times to be set on objects accurate to 1
+second. These will be used to detect whether objects need syncing or
+not.
- eval `ssh-agent -s` && ssh-add -A
+One drive supports SHA1 type hashes, so you can use --checksum flag.
-And then at the end of the session
+Deleting files
- eval `ssh-agent -k`
+Any files you delete with rclone will end up in the trash. Microsoft
+doesn't provide an API to permanently delete files, nor to empty the
+trash, so you will have to do that with one of Microsoft's apps or via
+the OneDrive website.
-These commands can be used in scripts of course.
+Specific options
-Modified time
+Here are the command line options specific to this cloud storage system.
-Modified times are stored on the server to 1 second precision.
+--onedrive-chunk-size=SIZE
-Modified times are used in syncing and are fully supported.
+Above this size files will be chunked - must be multiple of 320k. The
+default is 10MB. Note that the chunks will be buffered into memory.
-Limitations
+--onedrive-upload-cutoff=SIZE
-SFTP does not support any checksums.
+Cutoff for switching to chunked upload - must be <= 100MB. The default
+is 10MB.
-The only ssh agent supported under Windows is Putty's pagent.
+Limitations
-SFTP isn't supported under plan9 until this issue is fixed.
+Note that OneDrive is case insensitive so you can't have a file called
+"Hello.doc" and one called "hello.doc".
-Note that since SFTP isn't HTTP based the following flags don't work
-with it: --dump-headers, --dump-bodies, --dump-auth
+There are quite a few characters that can't be in OneDrive file names.
+These can't occur on Windows platforms, but on non-Windows platforms
+they are common. Rclone will map these names to and from an identical
+looking unicode equivalent. For example if a file has a ? in it will be
+mapped to ? instead.
-Note that --timeout isn't supported (but --contimeout is).
+The largest allowed file size is 10GiB (10,737,418,240 bytes).
-FTP
+QingStor
-FTP is the File Transfer Protocol. FTP support is provided using the
-github.com/jlaffaye/ftp package.
+Paths are specified as remote:bucket (or remote: for the lsd command.)
+You may put subdirectories in too, eg remote:bucket/path/to/dir.
-Here is an example of making an FTP configuration. First run
+Here is an example of making an QingStor configuration. First run
rclone config
-This will guide you through an interactive setup process. An FTP remote
-only needs a host together with and a username and a password. With
-anonymous FTP server, you will need to use anonymous as username and
-your email address as the password.
+This will guide you through an interactive setup process.
No remotes found - make a new one
n) New remote
@@ -5101,7 +6122,7 @@ your email address as the password.
\ "dropbox"
5 / Encrypt/Decrypt a remote
\ "crypt"
- 6 / FTP Connection
+ 6 / FTP Connection
\ "ftp"
7 / Google Cloud Storage (this is not Google Drive)
\ "google cloud storage"
@@ -5115,35 +6136,48 @@ your email address as the password.
\ "onedrive"
12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
\ "swift"
- 13 / SSH/SFTP Connection
+ 13 / QingStor Object Storage
+ \ "qingstor"
+ 14 / SSH/SFTP Connection
\ "sftp"
- 14 / Yandex Disk
+ 15 / Yandex Disk
\ "yandex"
- Storage> ftp
- FTP host to connect to
+ Storage> 13
+ Get QingStor credentials from runtime. Only applies if access_key_id and secret_access_key is blank.
Choose a number from below, or type in your own value
- 1 / Connect to ftp.example.com
- \ "ftp.example.com"
- host> ftp.example.com
- FTP username, leave blank for current username, ncw
- user>
- FTP port, leave blank to use default (21)
- port>
- FTP password
- y) Yes type in my own password
- g) Generate random password
- y/g> y
- Enter the password:
- password:
- Confirm the password:
- password:
+ 1 / Enter QingStor credentials in the next step
+ \ "false"
+ 2 / Get QingStor credentials from the environment (env vars or IAM)
+ \ "true"
+ env_auth> 1
+ QingStor Access Key ID - leave blank for anonymous access or runtime credentials.
+ access_key_id> access_key
+ QingStor Secret Access Key (password) - leave blank for anonymous access or runtime credentials.
+ secret_access_key> secret_key
+ Enter a endpoint URL to connection QingStor API.
+ Leave blank will use the default value "https://qingstor.com:443"
+ endpoint>
+ Zone connect to. Default is "pek3a".
+ Choose a number from below, or type in your own value
+ / The Beijing (China) Three Zone
+ 1 | Needs location constraint pek3a.
+ \ "pek3a"
+ / The Shanghai (China) First Zone
+ 2 | Needs location constraint sh1a.
+ \ "sh1a"
+ zone> 1
+ Number of connnection retry.
+ Leave blank will use the default value "3".
+ connection_retries>
Remote config
--------------------
[remote]
- host = ftp.example.com
- user =
- port =
- pass = *** ENCRYPTED ***
+ env_auth = false
+ access_key_id = access_key
+ secret_access_key = secret_key
+ endpoint =
+ zone = pek3a
+ connection_retries =
--------------------
y) Yes this is OK
e) Edit this remote
@@ -5152,58 +6186,76 @@ your email address as the password.
This remote is called remote and can now be used like this
-See all directories in the home directory
+See all buckets
rclone lsd remote:
-Make a new directory
+Make a new bucket
- rclone mkdir remote:path/to/directory
+ rclone mkdir remote:bucket
-List the contents of a directory
+List the contents of a bucket
- rclone ls remote:path/to/directory
+ rclone ls remote:bucket
-Sync /home/local/directory to the remote directory, deleting any excess
-files in the directory.
+Sync /home/local/directory to the remote bucket, deleting any excess
+files in the bucket.
- rclone sync /home/local/directory remote:directory
+ rclone sync /home/local/directory remote:bucket
-Modified time
+--fast-list
-FTP does not support modified times. Any times you see on the server
-will be time of upload.
+This remote supports --fast-list which allows you to use fewer
+transactions in exchange for more memory. See the rclone docs for more
+details.
-Checksums
+Multipart uploads
-FTP does not support any checksums.
+rclone supports multipart uploads with QingStor which means that it can
+upload files bigger than 5GB. Note that files uploaded with multipart
+upload don't have an MD5SUM.
-Limitations
+Buckets and Zone
-Note that since FTP isn't HTTP based the following flags don't work with
-it: --dump-headers, --dump-bodies, --dump-auth
+With QingStor you can list buckets (rclone lsd) using any zone, but you
+can only access the content of a bucket from the zone it was created in.
+If you attempt to access a bucket from the wrong zone, you will get an
+error, incorrect zone, the bucket is not in 'XXX' zone.
-Note that --timeout isn't supported (but --contimeout is).
+Authentication
-FTP could support server side move but doesn't yet.
+There are two ways to supply rclone with a set of QingStor credentials.
+In order of precedence:
+- Directly in the rclone configuration file (as configured by
+ rclone config)
+- set access_key_id and secret_access_key
+- Runtime configuration:
+- set env_auth to true in the config file
+- Exporting the following environment variables before running rclone
+ - Access Key ID: QS_ACCESS_KEY_ID or QS_ACCESS_KEY
+ - Secret Access Key: QS_SECRET_ACCESS_KEY or QS_SECRET_KEY
-HTTP
-The HTTP remote is a read only remote for reading files of a webserver.
-The webserver should provide file listings which rclone will read and
-turn into a remote. This has been tested with common webservers such as
-Apache/Nginx/Caddy and will likely work with file listings from most web
-servers. (If it doesn't then please file an issue, or send a pull
-request!)
+Swift
-Paths are specified as remote: or remote:path/to/dir.
+Swift refers to Openstack Object Storage. Commercial implementations of
+that being:
-Here is an example of how to make a remote called remote. First run:
+- Rackspace Cloud Files
+- Memset Memstore
+- OVH Object Storage
+- Oracle Cloud Storage
- rclone config
+Paths are specified as remote:container (or remote: for the lsd
+command.) You may put subdirectories in too, eg
+remote:container/path/to/dir.
-This will guide you through an interactive setup process:
+Here is an example of making a swift configuration. First run
+
+ rclone config
+
+This will guide you through an interactive setup process.
No remotes found - make a new one
n) New remote
@@ -5219,127 +6271,245 @@ This will guide you through an interactive setup process:
\ "s3"
3 / Backblaze B2
\ "b2"
- 4 / Dropbox
+ 4 / Box
+ \ "box"
+ 5 / Dropbox
\ "dropbox"
- 5 / Encrypt/Decrypt a remote
+ 6 / Encrypt/Decrypt a remote
\ "crypt"
- 6 / FTP Connection
+ 7 / FTP Connection
\ "ftp"
- 7 / Google Cloud Storage (this is not Google Drive)
+ 8 / Google Cloud Storage (this is not Google Drive)
\ "google cloud storage"
- 8 / Google Drive
+ 9 / Google Drive
\ "drive"
- 9 / Hubic
+ 10 / Hubic
\ "hubic"
- 10 / Local Disk
+ 11 / Local Disk
\ "local"
- 11 / Microsoft OneDrive
+ 12 / Microsoft Azure Blob Storage
+ \ "azureblob"
+ 13 / Microsoft OneDrive
\ "onedrive"
- 12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ 14 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
\ "swift"
- 13 / SSH/SFTP Connection
+ 15 / QingClound Object Storage
+ \ "qingstor"
+ 16 / SSH/SFTP Connection
\ "sftp"
- 14 / Yandex Disk
+ 17 / Yandex Disk
\ "yandex"
- 15 / http Connection
+ 18 / http Connection
\ "http"
- Storage> http
- URL of http host to connect to
+ Storage> swift
+ Get swift credentials from environment variables in standard OpenStack form.
Choose a number from below, or type in your own value
- 1 / Connect to example.com
- \ "https://example.com"
- url> https://beta.rclone.org
+ 1 / Enter swift credentials in the next step
+ \ "false"
+ 2 / Get swift credentials from environment vars. Leave other fields blank if using this.
+ \ "true"
+ env_auth> 1
+ User name to log in.
+ user> user_name
+ API key or password.
+ key> password_or_api_key
+ Authentication URL for server.
+ Choose a number from below, or type in your own value
+ 1 / Rackspace US
+ \ "https://auth.api.rackspacecloud.com/v1.0"
+ 2 / Rackspace UK
+ \ "https://lon.auth.api.rackspacecloud.com/v1.0"
+ 3 / Rackspace v2
+ \ "https://identity.api.rackspacecloud.com/v2.0"
+ 4 / Memset Memstore UK
+ \ "https://auth.storage.memset.com/v1.0"
+ 5 / Memset Memstore UK v2
+ \ "https://auth.storage.memset.com/v2.0"
+ 6 / OVH
+ \ "https://auth.cloud.ovh.net/v2.0"
+ auth> 1
+ User domain - optional (v3 auth)
+ domain> Default
+ Tenant name - optional for v1 auth, required otherwise
+ tenant> tenant_name
+ Tenant domain - optional (v3 auth)
+ tenant_domain>
+ Region name - optional
+ region>
+ Storage URL - optional
+ storage_url>
+ AuthVersion - optional - set to (1,2,3) if your auth URL has no version
+ auth_version>
+ Endpoint type to choose from the service catalogue
+ Choose a number from below, or type in your own value
+ 1 / Public (default, choose this if not sure)
+ \ "public"
+ 2 / Internal (use internal service net)
+ \ "internal"
+ 3 / Admin
+ \ "admin"
+ endpoint_type>
Remote config
--------------------
[remote]
- url = https://beta.rclone.org
+ env_auth = false
+ user = user_name
+ key = password_or_api_key
+ auth = https://auth.api.rackspacecloud.com/v1.0
+ domain = Default
+ tenant =
+ tenant_domain =
+ region =
+ storage_url =
+ auth_version =
+ endpoint_type =
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
- Current remotes:
-
- Name Type
- ==== ====
- remote http
-
- 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> q
This remote is called remote and can now be used like this
-See all the top level directories
+See all containers
rclone lsd remote:
-List the contents of a directory
+Make a new container
- rclone ls remote:directory
+ rclone mkdir remote:container
-Sync the remote directory to /home/local/directory, deleting any excess
-files.
+List the contents of a container
- rclone sync remote:directory /home/local/directory
+ rclone ls remote:container
-Read only
+Sync /home/local/directory to the remote container, deleting any excess
+files in the container.
-This remote is read only - you can't upload files to an HTTP server.
+ rclone sync /home/local/directory remote:container
+
+Configuration from an Openstack credentials file
+
+An Opentstack credentials file typically looks something something like
+this (without the comments)
+
+ export OS_AUTH_URL=https://a.provider.net/v2.0
+ export OS_TENANT_ID=ffffffffffffffffffffffffffffffff
+ export OS_TENANT_NAME="1234567890123456"
+ export OS_USERNAME="123abc567xy"
+ echo "Please enter your OpenStack Password: "
+ read -sr OS_PASSWORD_INPUT
+ export OS_PASSWORD=$OS_PASSWORD_INPUT
+ export OS_REGION_NAME="SBG1"
+ if [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi
+
+The config file needs to look something like this where $OS_USERNAME
+represents the value of the OS_USERNAME variable - 123abc567xy in the
+example above.
+
+ [remote]
+ type = swift
+ user = $OS_USERNAME
+ key = $OS_PASSWORD
+ auth = $OS_AUTH_URL
+ tenant = $OS_TENANT_NAME
+
+Note that you may (or may not) need to set region too - try without
+first.
+
+Configuration from the environment
+
+If you prefer you can configure rclone to use swift using a standard set
+of OpenStack environment variables.
+
+When you run through the config, make sure you choose true for env_auth
+and leave everything else blank.
+
+rclone will then set any empty config parameters from the enviroment
+using standard OpenStack environment variables. There is a list of the
+variables in the docs for the swift library.
+
+Using rclone without a config file
+
+You can use rclone with swift without a config file, if desired, like
+this:
+
+ source openstack-credentials-file
+ export RCLONE_CONFIG_MYREMOTE_TYPE=swift
+ export RCLONE_CONFIG_MYREMOTE_ENV_AUTH=true
+ rclone lsd myremote:
+
+--fast-list
+
+This remote supports --fast-list which allows you to use fewer
+transactions in exchange for more memory. See the rclone docs for more
+details.
+
+Specific options
+
+Here are the command line options specific to this cloud storage system.
+
+--swift-chunk-size=SIZE
+
+Above this size files will be chunked into a _segments container. The
+default for this is 5GB which is its maximum value.
Modified time
-Most HTTP servers store time accurate to 1 second.
+The modified time is stored as metadata on the object as
+X-Object-Meta-Mtime as floating point since the epoch accurate to 1 ns.
+
+This is a defacto standard (used in the official python-swiftclient
+amongst others) for storing the modification time for an object.
+
+Limitations
+
+The Swift API doesn't return a correct MD5SUM for segmented files
+(Dynamic or Static Large Objects) so rclone won't check or use the
+MD5SUM for these.
+
+Troubleshooting
+
+Rclone gives Failed to create file system for "remote:": Bad Request
-Checksum
+Due to an oddity of the underlying swift library, it gives a "Bad
+Request" error rather than a more sensible error when the authentication
+fails for Swift.
-No checksums are stored.
+So this most likely means your username / password is wrong. You can
+investigate further with the --dump-bodies flag.
-Usage without a config file
+This may also be caused by specifying the region when you shouldn't have
+(eg OVH).
-Note that since only two environment variable need to be set, it is easy
-to use without a config file like this.
+Rclone gives Failed to create file system: Response didn't have storage storage url and auth token
- RCLONE_CONFIG_ZZ_TYPE=http RCLONE_CONFIG_ZZ_URL=https://beta.rclone.org rclone lsd zz:
+This is most likely caused by forgetting to specify your tenant when
+setting up a swift remote.
-Or if you prefer
- export RCLONE_CONFIG_ZZ_TYPE=http
- export RCLONE_CONFIG_ZZ_URL=https://beta.rclone.org
- rclone lsd zz:
+SFTP
+SFTP is the Secure (or SSH) File Transfer Protocol.
-Crypt
+It runs over SSH v2 and is standard with most modern SSH installations.
-The crypt remote encrypts and decrypts another remote.
+Paths are specified as remote:path. If the path does not begin with a /
+it is relative to the home directory of the user. An empty path remote:
+refers to the users home directory.
-To use it first set up the underlying remote following the config
-instructions for that remote. You can also use a local pathname instead
-of a remote which will encrypt and decrypt from that directory which
-might be useful for encrypting onto a USB stick for example.
+Here is an example of making a SFTP configuration. First run
-First check your chosen remote is working - we'll call it remote:path in
-these docs. Note that anything inside remote:path will be encrypted and
-anything outside won't. This means that if you are using a bucket based
-remote (eg S3, B2, swift) then you should probably put the bucket in the
-remote s3:bucket. If you just use s3: then rclone will make encrypted
-bucket names too (if using file name encryption) which may or may not be
-what you want.
+ rclone config
-Now configure crypt using rclone config. We will call this one secret to
-differentiate it from the remote.
+This will guide you through an interactive setup process.
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
- n/s/q> n
- name> secret
+ n/s/q> n
+ name> remote
Type of storage to configure.
Choose a number from below, or type in your own value
1 / Amazon Drive
@@ -5352,361 +6522,246 @@ differentiate it from the remote.
\ "dropbox"
5 / Encrypt/Decrypt a remote
\ "crypt"
- 6 / Google Cloud Storage (this is not Google Drive)
+ 6 / FTP Connection
+ \ "ftp"
+ 7 / Google Cloud Storage (this is not Google Drive)
\ "google cloud storage"
- 7 / Google Drive
+ 8 / Google Drive
\ "drive"
- 8 / Hubic
+ 9 / Hubic
\ "hubic"
- 9 / Local Disk
+ 10 / Local Disk
\ "local"
- 10 / Microsoft OneDrive
+ 11 / Microsoft OneDrive
\ "onedrive"
- 11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ 12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
\ "swift"
- 12 / SSH/SFTP Connection
+ 13 / SSH/SFTP Connection
\ "sftp"
- 13 / Yandex Disk
+ 14 / Yandex Disk
\ "yandex"
- Storage> 5
- Remote to encrypt/decrypt.
- Normally should contain a ':' and a path, eg "myremote:path/to/dir",
- "myremote:bucket" or maybe "myremote:" (not recommended).
- remote> remote:path
- How to encrypt the filenames.
+ 15 / http Connection
+ \ "http"
+ Storage> sftp
+ SSH host to connect to
Choose a number from below, or type in your own value
- 1 / Don't encrypt the file names. Adds a ".bin" extension only.
- \ "off"
- 2 / Encrypt the filenames see the docs for the details.
- \ "standard"
- 3 / Very simple filename obfuscation.
- \ "obfuscate"
- filename_encryption> 2
- Password or pass phrase for encryption.
- y) Yes type in my own password
- g) Generate random password
- y/g> y
- Enter the password:
- password:
- Confirm the password:
- password:
- Password or pass phrase for salt. Optional but recommended.
- Should be different to the previous password.
+ 1 / Connect to example.com
+ \ "example.com"
+ host> example.com
+ SSH username, leave blank for current username, ncw
+ user> sftpuser
+ SSH port, leave blank to use default (22)
+ port>
+ SSH password, leave blank to use ssh-agent.
y) Yes type in my own password
g) Generate random password
n) No leave this optional password blank
- y/g/n> g
- Password strength in bits.
- 64 is just about memorable
- 128 is secure
- 1024 is the maximum
- Bits> 128
- Your password is: JAsJvRcgR-_veXNfy_sGmQ
- Use this password?
- y) Yes
- n) No
- y/n> y
+ y/g/n> n
+ Path to unencrypted PEM-encoded private key file, leave blank to use ssh-agent.
+ key_file>
Remote config
--------------------
- [secret]
- remote = remote:path
- filename_encryption = standard
- password = *** ENCRYPTED ***
- password2 = *** ENCRYPTED ***
+ [remote]
+ host = example.com
+ user = sftpuser
+ port =
+ pass =
+ key_file =
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
-IMPORTANT The password is stored in the config file is lightly obscured
-so it isn't immediately obvious what it is. It is in no way secure
-unless you use config file encryption.
-
-A long passphrase is recommended, or you can use a random one. Note that
-if you reconfigure rclone with the same passwords/passphrases elsewhere
-it will be compatible - all the secrets used are derived from those two
-passwords/passphrases.
-
-Note that rclone does not encrypt
-
-- file length - this can be calcuated within 16 bytes
-- modification time - used for syncing
-
-
-Specifying the remote
-
-In normal use, make sure the remote has a : in. If you specify the
-remote without a : then rclone will use a local directory of that name.
-So if you use a remote of /path/to/secret/files then rclone will encrypt
-stuff to that directory. If you use a remote of name then rclone will
-put files in a directory called name in the current directory.
-
-If you specify the remote as remote:path/to/dir then rclone will store
-encrypted files in path/to/dir on the remote. If you are using file name
-encryption, then when you save files to secret:subdir/subfile this will
-store them in the unencrypted path path/to/dir but the subdir/subpath
-bit will be encrypted.
-
-Note that unless you want encrypted bucket names (which are difficult to
-manage because you won't know what directory they represent in web
-interfaces etc), you should probably specify a bucket, eg
-remote:secretbucket when using bucket based remotes such as S3, Swift,
-Hubic, B2, GCS.
-
-
-Example
-
-To test I made a little directory of files using "standard" file name
-encryption.
-
- plaintext/
- ├── file0.txt
- ├── file1.txt
- └── subdir
- ├── file2.txt
- ├── file3.txt
- └── subsubdir
- └── file4.txt
-
-Copy these to the remote and list them back
-
- $ rclone -q copy plaintext secret:
- $ rclone -q ls secret:
- 7 file1.txt
- 6 file0.txt
- 8 subdir/file2.txt
- 10 subdir/subsubdir/file4.txt
- 9 subdir/file3.txt
-
-Now see what that looked like when encrypted
-
- $ rclone -q ls remote:path
- 55 hagjclgavj2mbiqm6u6cnjjqcg
- 54 v05749mltvv1tf4onltun46gls
- 57 86vhrsv86mpbtd3a0akjuqslj8/dlj7fkq4kdq72emafg7a7s41uo
- 58 86vhrsv86mpbtd3a0akjuqslj8/7uu829995du6o42n32otfhjqp4/b9pausrfansjth5ob3jkdqd4lc
- 56 86vhrsv86mpbtd3a0akjuqslj8/8njh1sk437gttmep3p70g81aps
-
-Note that this retains the directory structure which means you can do
-this
-
- $ rclone -q ls secret:subdir
- 8 file2.txt
- 9 file3.txt
- 10 subsubdir/file4.txt
-
-If don't use file name encryption then the remote will look like this -
-note the .bin extensions added to prevent the cloud provider attempting
-to interpret the data.
-
- $ rclone -q ls remote:path
- 54 file0.txt.bin
- 57 subdir/file3.txt.bin
- 56 subdir/file2.txt.bin
- 58 subdir/subsubdir/file4.txt.bin
- 55 file1.txt.bin
-
-File name encryption modes
-
-Here are some of the features of the file name encryption modes
-
-Off
-
-- doesn't hide file names or directory structure
-- allows for longer file names (~246 characters)
-- can use sub paths and copy single files
-
-Standard
-
-- file names encrypted
-- file names can't be as long (~156 characters)
-- can use sub paths and copy single files
-- directory structure visibile
-- identical files names will have identical uploaded names
-- can use shortcuts to shorten the directory recursion
-
-Obfuscation
-
-This is a simple "rotate" of the filename, with each file having a rot
-distance based on the filename. We store the distance at the beginning
-of the filename. So a file called "hello" may become "53.jgnnq"
-
-This is not a strong encryption of filenames, but it may stop automated
-scanning tools from picking up on filename patterns. As such it's an
-intermediate between "off" and "standard". The advantage is that it
-allows for longer path segment names.
-
-There is a possibility with some unicode based filenames that the
-obfuscation is weak and may map lower case characters to upper case
-equivalents. You can not rely on this for strong protection.
-
-- file names very lightly obfuscated
-- file names can be longer than standard encryption
-- can use sub paths and copy single files
-- directory structure visibile
-- identical files names will have identical uploaded names
+This remote is called remote and can now be used like this
-Cloud storage systems have various limits on file name length and total
-path length which you are more likely to hit using "Standard" file name
-encryption. If you keep your file names to below 156 characters in
-length then you should be OK on all providers.
+See all directories in the home directory
-There may be an even more secure file name encryption mode in the future
-which will address the long file name problem.
+ rclone lsd remote:
-Modified time and hashes
+Make a new directory
-Crypt stores modification times using the underlying remote so support
-depends on that.
+ rclone mkdir remote:path/to/directory
-Hashes are not stored for crypt. However the data integrity is protected
-by an extremely strong crypto authenticator.
+List the contents of a directory
-Note that you should use the rclone cryptcheck command to check the
-integrity of a crypted remote instead of rclone check which can't check
-the checksums properly.
+ rclone ls remote:path/to/directory
-Specific options
+Sync /home/local/directory to the remote directory, deleting any excess
+files in the directory.
-Here are the command line options specific to this cloud storage system.
+ rclone sync /home/local/directory remote:directory
---crypt-show-mapping
+SSH Authentication
-If this flag is set then for each file that the remote is asked to list,
-it will log (at level INFO) a line stating the decrypted file name and
-the encrypted file name.
+The SFTP remote supports 3 authentication methods
-This is so you can work out which encrypted names are which decrypted
-names just in case you need to do something with the encrypted file
-names, or for debugging purposes.
+- Password
+- Key file
+- ssh-agent
+Key files should be unencrypted PEM-encoded private key files. For
+instance /home/$USER/.ssh/id_rsa.
-Backing up a crypted remote
+If you don't specify pass or key_file then it will attempt to contact an
+ssh-agent.
-If you wish to backup a crypted remote, it it recommended that you use
-rclone sync on the encrypted files, and make sure the passwords are the
-same in the new encrypted remote.
+ssh-agent on macOS
-This will have the following advantages
+Note that there seem to be various problems with using an ssh-agent on
+macOS due to recent changes in the OS. The most effective work-around
+seems to be to start an ssh-agent in each session, eg
-- rclone sync will check the checksums while copying
-- you can use rclone check between the encrypted remotes
-- you don't decrypt and encrypt unecessarily
+ eval `ssh-agent -s` && ssh-add -A
-For example, let's say you have your original remote at remote: with the
-encrypted version at eremote: with path remote:crypt. You would then set
-up the new remote remote2: and then the encrypted version eremote2: with
-path remote2:crypt using the same passwords as eremote:.
+And then at the end of the session
-To sync the two remotes you would do
+ eval `ssh-agent -k`
- rclone sync remote:crypt remote2:crypt
+These commands can be used in scripts of course.
-And to check the integrity you would do
+Modified time
- rclone check remote:crypt remote2:crypt
+Modified times are stored on the server to 1 second precision.
+Modified times are used in syncing and are fully supported.
-File formats
+Limitations
-File encryption
+SFTP supports checksums if the same login has shell access and md5sum or
+sha1sum as well as echo are in the remote's PATH.
-Files are encrypted 1:1 source file to destination object. The file has
-a header and is divided into chunks.
+The only ssh agent supported under Windows is Putty's pagent.
-Header
+SFTP isn't supported under plan9 until this issue is fixed.
-- 8 bytes magic string RCLONE\x00\x00
-- 24 bytes Nonce (IV)
+Note that since SFTP isn't HTTP based the following flags don't work
+with it: --dump-headers, --dump-bodies, --dump-auth
-The initial nonce is generated from the operating systems crypto strong
-random number genrator. The nonce is incremented for each chunk read
-making sure each nonce is unique for each block written. The chance of a
-nonce being re-used is miniscule. If you wrote an exabyte of data (10¹⁸
-bytes) you would have a probability of approximately 2×10⁻³² of re-using
-a nonce.
+Note that --timeout isn't supported (but --contimeout is).
-Chunk
-Each chunk will contain 64kB of data, except for the last one which may
-have less data. The data chunk is in standard NACL secretbox format.
-Secretbox uses XSalsa20 and Poly1305 to encrypt and authenticate
-messages.
+Yandex Disk
-Each chunk contains:
+Yandex Disk is a cloud storage solution created by Yandex.
-- 16 Bytes of Poly1305 authenticator
-- 1 - 65536 bytes XSalsa20 encrypted data
+Yandex paths may be as deep as required, eg
+remote:directory/subdirectory.
-64k chunk size was chosen as the best performing chunk size (the
-authenticator takes too much time below this and the performance drops
-off due to cache effects above this). Note that these chunks are
-buffered in memory so they can't be too big.
+Here is an example of making a yandex configuration. First run
-This uses a 32 byte (256 bit key) key derived from the user password.
+ rclone config
-Examples
+This will guide you through an interactive setup process:
-1 byte file will encrypt to
+ No remotes found - make a new one
+ n) New remote
+ s) Set configuration password
+ n/s> n
+ name> remote
+ Type of storage to configure.
+ Choose a number from below, or type in your own value
+ 1 / Amazon Drive
+ \ "amazon cloud drive"
+ 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
+ \ "s3"
+ 3 / Backblaze B2
+ \ "b2"
+ 4 / Dropbox
+ \ "dropbox"
+ 5 / Encrypt/Decrypt a remote
+ \ "crypt"
+ 6 / Google Cloud Storage (this is not Google Drive)
+ \ "google cloud storage"
+ 7 / Google Drive
+ \ "drive"
+ 8 / Hubic
+ \ "hubic"
+ 9 / Local Disk
+ \ "local"
+ 10 / Microsoft OneDrive
+ \ "onedrive"
+ 11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
+ \ "swift"
+ 12 / SSH/SFTP Connection
+ \ "sftp"
+ 13 / Yandex Disk
+ \ "yandex"
+ Storage> 13
+ Yandex Client Id - leave blank normally.
+ client_id>
+ Yandex Client Secret - leave blank normally.
+ client_secret>
+ Remote config
+ Use auto config?
+ * Say Y if not sure
+ * Say N if you are working on a remote or headless machine
+ y) Yes
+ n) No
+ y/n> y
+ If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
+ Log in and authorize rclone for access
+ Waiting for code...
+ Got code
+ --------------------
+ [remote]
+ client_id =
+ client_secret =
+ token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"bearer","expiry":"2016-12-29T12:27:11.362788025Z"}
+ --------------------
+ y) Yes this is OK
+ e) Edit this remote
+ d) Delete this remote
+ y/e/d> y
-- 32 bytes header
-- 17 bytes data chunk
+See the remote setup docs for how to set it up on a machine with no
+Internet browser available.
-49 bytes total
+Note that rclone runs a webserver on your local machine to collect the
+token as returned from Yandex Disk. This only runs from the moment it
+opens your browser to the moment you get back the verification code.
+This is on http://127.0.0.1:53682/ and this it may require you to
+unblock it temporarily if you are running a host firewall.
-1MB (1048576 bytes) file will encrypt to
+Once configured you can then use rclone like this,
-- 32 bytes header
-- 16 chunks of 65568 bytes
+See top level directories
-1049120 bytes total (a 0.05% overhead). This is the overhead for big
-files.
+ rclone lsd remote:
-Name encryption
+Make a new directory
-File names are encrypted segment by segment - the path is broken up into
-/ separated strings and these are encrypted individually.
+ rclone mkdir remote:directory
-File segments are padded using using PKCS#7 to a multiple of 16 bytes
-before encryption.
+List the contents of a directory
-They are then encrypted with EME using AES with 256 bit key. EME
-(ECB-Mix-ECB) is a wide-block encryption mode presented in the 2003
-paper "A Parallelizable Enciphering Mode" by Halevi and Rogaway.
+ rclone ls remote:directory
-This makes for determinstic encryption which is what we want - the same
-filename must encrypt to the same thing otherwise we can't find it on
-the cloud storage system.
+Sync /home/local/directory to the remote path, deleting any excess files
+in the path.
-This means that
+ rclone sync /home/local/directory remote:directory
-- filenames with the same name will encrypt the same
-- filenames which start the same won't have a common prefix
+--fast-list
-This uses a 32 byte key (256 bits) and a 16 byte (128 bits) IV both of
-which are derived from the user password.
+This remote supports --fast-list which allows you to use fewer
+transactions in exchange for more memory. See the rclone docs for more
+details.
-After encryption they are written out using a modified version of
-standard base32 encoding as described in RFC4648. The standard encoding
-is modified in two ways:
+Modified time
-- it becomes lower case (no-one likes upper case filenames!)
-- we strip the padding character =
+Modified times are supported and are stored accurate to 1 ns in custom
+metadata called rclone_modified in RFC3339 with nanoseconds format.
-base32 is used rather than the more efficient base64 so rclone can be
-used on case insensitive remotes (eg Windows, Amazon Drive).
+MD5 checksums
-Key derivation
+MD5 checksums are natively supported by Yandex Disk.
-Rclone uses scrypt with parameters N=16384, r=8, p=1 with a an optional
-user supplied salt (password2) to derive the 32+32+16 = 80 bytes of key
-material required. If the user doesn't supply a salt then rclone uses an
-internal one.
+Emptying Trash
-scrypt makes it impractical to mount a dictionary attack on rclone
-encrypted data. For full protection agains this you should always use a
-salt.
+If you wish to empty your trash you can use the rclone cleanup remote:
+command which will permanently delete all your trashed files. This
+command does not take any path arguments.
Local Filesystem
@@ -5814,18 +6869,11 @@ and
6 b/two
6 b/one
---no-local-unicode-normalization
-
-By default rclone normalizes (NFC) the unicode representation of
-filenames and directories. This flag disables that normalization and
-uses the same representation as the local filesystem.
+--local-no-unicode-normalization
-This can be useful if you need to retain the local unicode
-representation and you are using a cloud provider which supports
-unnormalized names (e.g. S3 or ACD).
-
-This should also work with any provider if you are using crypt and have
-file name encryption (the default) or obfuscation turned on.
+This flag is deprecated now. Rclone no longer normalizes unicode file
+names, but it compares them with unicode normalization in the sync
+routine instead.
--one-file-system, -x
@@ -5861,9 +6909,87 @@ mount to the same device as being on the same filesystem.
NB This flag is only available on Unix based systems. On systems where
it isn't supported (eg Windows) it will not appear as an valid flag.
+--skip-links
+
+This flag disables warning messages on skipped symlinks or junction
+points, as you explicitly acknowledge that they should be skipped.
+
Changelog
+- v1.38 - 2017-09-30
+ - New backends
+ - Azure Blob Storage (thanks Andrei Dragomir)
+ - Box
+ - Onedrive for Business (thanks Oliver Heyme)
+ - QingStor from QingCloud (thanks wuyu)
+ - New commands
+ - rcat - read from standard input and stream upload
+ - tree - shows a nicely formatted recursive listing
+ - cryptdecode - decode crypted file names (thanks ishuah)
+ - config show - print the config file
+ - config file - print the config file location
+ - New Features
+ - Empty directories are deleted on sync
+ - dedupe - implement merging of duplicate directories
+ - check and cryptcheck made more consistent and use less memory
+ - cleanup for remaining remotes (thanks ishuah)
+ - --immutable for ensuring that files don't change (thanks
+ Jacob McNamee)
+ - --user-agent option (thanks Alex McGrath Kraak)
+ - --disable flag to disable optional features
+ - --bind flag for choosing the local addr on outgoing connections
+ - Support for zsh auto-completion (thanks bpicode)
+ - Stop normalizing file names but do a normalized compare in sync
+ - Compile
+ - Update to using go1.9 as the default go version
+ - Remove snapd build due to maintenance problems
+ - Bug Fixes
+ - Improve retriable error detection which makes multipart uploads
+ better
+ - Make check obey --ignore-size
+ - Fix bwlimit toggle in conjunction with schedules
+ (thanks cbruegg)
+ - config ensures newly written config is on the same mount
+ - Local
+ - Revert to copy when moving file across file system boundaries
+ - --skip-links to suppress symlink warnings (thanks Zhiming Wang)
+ - Mount
+ - Re-use rcat internals to support uploads from all remotes
+ - Dropbox
+ - Fix "entry doesn't belong in directory" error
+ - Stop using deprecated API methods
+ - Swift
+ - Fix server side copy to empty container with --fast-list
+ - Google Drive
+ - Change the default for --drive-use-trash to true
+ - S3
+ - Set session token when using STS (thanks Girish Ramakrishnan)
+ - Glacier docs and error messages (thanks Jan Varho)
+ - Read 1000 (not 1024) items in dir listings to fix Wasabi
+ - Backblaze B2
+ - Fix SHA1 mismatch when downloading files with no SHA1
+ - Calculate missing hashes on the fly instead of spooling
+ - --b2-hard-delete to permanently delete (not hide) files (thanks
+ John Papandriopoulos)
+ - Hubic
+ - Fix creating containers - no longer have to use the default
+ container
+ - Swift
+ - Optionally configure from a standard set of OpenStack
+ environment vars
+ - Add endpoint_type config
+ - Google Cloud Storage
+ - Fix bucket creation to work with limited permission users
+ - SFTP
+ - Implement connection pooling for multiple ssh connections
+ - Limit new connections per second
+ - Add support for MD5 and SHA1 hashes where available (thanks
+ Christian Brüggemann)
+ - HTTP
+ - Fix URL encoding issues
+ - Fix directories with : in
+ - Fix panic with URL encoded content
- v1.37 - 2017-07-22
- New backends
- FTP - thanks to Antonio Messina
@@ -5879,7 +7005,7 @@ Changelog
- This allows remotes to list recursively if they can
- This uses less transactions (important if you pay for them)
- This may or may not be quicker
- - This will user more memory as it has to hold the listing in
+ - This will use more memory as it has to hold the listing in
memory
- --old-sync-method deprecated - the remaining uses are
covered by --fast-list
@@ -6837,6 +7963,19 @@ is to install the Word viewer and the Microsoft Office Compatibility
Pack for Word, Excel, and PowerPoint 2007 and later versions' file
formats
+tcp lookup some.domain.com no such host
+
+This happens when rclone cannot resolve a domain. Please check that your
+DNS setup is generally working, e.g.
+
+ # both should print a long list of possible IP addresses
+ dig www.googleapis.com # resolve using your default DNS
+ dig www.googleapis.com @8.8.8.8 # resolve with Google's DNS server
+
+If you are using systemd-resolved (default on Arch Linux), ensure it is
+at version 233 or higher. Previous releases contain a bug which causes
+not all domains to be resolved properly.
+
License
@@ -6947,6 +8086,22 @@ Contributors
- Yaroslav Halchenko [email protected]
+- John Papandriopoulos [email protected]
+- Zhiming Wang [email protected]
+- Andy Pilate [email protected]
+- Oliver Heyme [email protected]
+- Andrei Dragomir [email protected]
+- Christian Brüggemann [email protected]
+- Alex McGrath Kraak [email protected]
+- Daniel Jagszent [email protected]
+- Josiah White [email protected]
+- Jan Varho [email protected]
+- Girish Ramakrishnan [email protected]
+- Jacob McNamee [email protected]
diff --git a/docs/content/changelog.md b/docs/content/changelog.md
index da9b46c15..b0e6d9b48 100644
--- a/docs/content/changelog.md
+++ b/docs/content/changelog.md
@@ -1,12 +1,78 @@
---
title: "Documentation"
description: "Rclone Changelog"
-date: "2017-07-22"
+date: "2017-09-30"
---
Changelog
---------
+ * v1.38 - 2017-09-30
+ * New backends
+ * Azure Blob Storage (thanks Andrei Dragomir)
+ * Box
+ * Onedrive for Business (thanks Oliver Heyme)
+ * QingStor from QingCloud (thanks wuyu)
+ * New commands
+ * `rcat` - read from standard input and stream upload
+ * `tree` - shows a nicely formatted recursive listing
+ * `cryptdecode` - decode crypted file names (thanks ishuah)
+ * `config show` - print the config file
+ * `config file` - print the config file location
+ * New Features
+ * Empty directories are deleted on `sync`
+ * `dedupe` - implement merging of duplicate directories
+ * `check` and `cryptcheck` made more consistent and use less memory
+ * `cleanup` for remaining remotes (thanks ishuah)
+ * `--immutable` for ensuring that files don't change (thanks Jacob McNamee)
+ * `--user-agent` option (thanks Alex McGrath Kraak)
+ * `--disable` flag to disable optional features
+ * `--bind` flag for choosing the local addr on outgoing connections
+ * Support for zsh auto-completion (thanks bpicode)
+ * Stop normalizing file names but do a normalized compare in `sync`
+ * Compile
+ * Update to using go1.9 as the default go version
+ * Remove snapd build due to maintenance problems
+ * Bug Fixes
+ * Improve retriable error detection which makes multipart uploads better
+ * Make `check` obey `--ignore-size`
+ * Fix bwlimit toggle in conjunction with schedules (thanks cbruegg)
+ * `config` ensures newly written config is on the same mount
+ * Local
+ * Revert to copy when moving file across file system boundaries
+ * `--skip-links` to suppress symlink warnings (thanks Zhiming Wang)
+ * Mount
+ * Re-use `rcat` internals to support uploads from all remotes
+ * Dropbox
+ * Fix "entry doesn't belong in directory" error
+ * Stop using deprecated API methods
+ * Swift
+ * Fix server side copy to empty container with `--fast-list`
+ * Google Drive
+ * Change the default for `--drive-use-trash` to `true`
+ * S3
+ * Set session token when using STS (thanks Girish Ramakrishnan)
+ * Glacier docs and error messages (thanks Jan Varho)
+ * Read 1000 (not 1024) items in dir listings to fix Wasabi
+ * Backblaze B2
+ * Fix SHA1 mismatch when downloading files with no SHA1
+ * Calculate missing hashes on the fly instead of spooling
+ * `--b2-hard-delete` to permanently delete (not hide) files (thanks John Papandriopoulos)
+ * Hubic
+ * Fix creating containers - no longer have to use the `default` container
+ * Swift
+ * Optionally configure from a standard set of OpenStack environment vars
+ * Add `endpoint_type` config
+ * Google Cloud Storage
+ * Fix bucket creation to work with limited permission users
+ * SFTP
+ * Implement connection pooling for multiple ssh connections
+ * Limit new connections per second
+ * Add support for MD5 and SHA1 hashes where available (thanks Christian Brüggemann)
+ * HTTP
+ * Fix URL encoding issues
+ * Fix directories with `:` in
+ * Fix panic with URL encoded content
* v1.37 - 2017-07-22
* New backends
* FTP - thanks to Antonio Messina
diff --git a/docs/content/commands/rclone.md b/docs/content/commands/rclone.md
index e2df05c73..05a725c21 100644
--- a/docs/content/commands/rclone.md
+++ b/docs/content/commands/rclone.md
@@ -1,12 +1,12 @@
---
-date: 2017-08-20T10:49:45+02:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone"
slug: rclone
url: /commands/rclone/
---
## rclone
-Sync files and directories to and from local and remote object stores - v1.37
+Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
### Synopsis
@@ -15,19 +15,22 @@ Sync files and directories to and from local and remote object stores - v1.37
Rclone is a command line program to sync files and directories to and
from various cloud storage systems and using file transfer services, such as:
- * Google Drive
+ * Amazon Drive
* Amazon S3
- * Openstack Swift / Rackspace cloud files / Memset Memstore
+ * Backblaze B2
+ * Box
* Dropbox
+ * FTP
* Google Cloud Storage
- * Amazon Drive
- * Microsoft OneDrive
+ * Google Drive
+ * HTTP
* Hubic
- * Backblaze B2
- * Yandex Disk
+ * Microsoft Azure Blob Storage
+ * Microsoft OneDrive
+ * Openstack Swift / Rackspace cloud files / Memset Memstore
+ * QingStor
* SFTP
- * FTP
- * HTTP
+ * Yandex Disk
* The local filesystem
Features
@@ -56,11 +59,16 @@ rclone [flags]
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -74,6 +82,7 @@ rclone [flags]
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -82,7 +91,7 @@ rclone [flags]
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -97,10 +106,12 @@ rclone [flags]
--filter-from stringArray Read filtering patterns from a file
--gcs-location string Default location for buckets (us|eu|asia|us-central1|us-east1|us-east4|us-west1|asia-east1|asia-noetheast1|asia-southeast1|australia-southeast1|europe-west1|europe-west2).
--gcs-storage-class string Default storage class for buckets (MULTI_REGIONAL|REGIONAL|STANDARD|NEARLINE|COLDLINE|DURABLE_REDUCED_AVAILABILITY).
+ -h, --help help for rclone
--ignore-checksum Skip post copy check of checksums.
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -127,9 +138,11 @@ rclone [flags]
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -140,6 +153,7 @@ rclone [flags]
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
-V, --version Print the version number
```
@@ -153,6 +167,7 @@ rclone [flags]
* [rclone copy](/commands/rclone_copy/) - Copy files from source to dest, skipping already copied
* [rclone copyto](/commands/rclone_copyto/) - Copy files from source to dest, skipping already copied
* [rclone cryptcheck](/commands/rclone_cryptcheck/) - Cryptcheck checks the integrity of a crypted remote.
+* [rclone cryptdecode](/commands/rclone_cryptdecode/) - Cryptdecode returns unencrypted file names.
* [rclone dbhashsum](/commands/rclone_dbhashsum/) - Produces a Dropbbox hash file for all the objects in the path.
* [rclone dedupe](/commands/rclone_dedupe/) - Interactively find duplicate files delete/rename them.
* [rclone delete](/commands/rclone_delete/) - Remove the contents of path.
@@ -171,11 +186,13 @@ rclone [flags]
* [rclone ncdu](/commands/rclone_ncdu/) - Explore a remote with a text based user interface.
* [rclone obscure](/commands/rclone_obscure/) - Obscure password for use in the rclone.conf
* [rclone purge](/commands/rclone_purge/) - Remove the path and all of its contents.
+* [rclone rcat](/commands/rclone_rcat/) - Copies standard input to file on remote.
* [rclone rmdir](/commands/rclone_rmdir/) - Remove the path if empty.
* [rclone rmdirs](/commands/rclone_rmdirs/) - Remove empty directories under the path.
* [rclone sha1sum](/commands/rclone_sha1sum/) - Produces an sha1sum file for all the objects in the path.
* [rclone size](/commands/rclone_size/) - Prints the total size and number of objects in remote:path.
* [rclone sync](/commands/rclone_sync/) - Make source and dest identical, modifying destination only.
+* [rclone tree](/commands/rclone_tree/) - List the contents of the remote in a tree like fashion.
* [rclone version](/commands/rclone_version/) - Show the version number.
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_authorize.md b/docs/content/commands/rclone_authorize.md
index 394b239c7..28a3aeafb 100644
--- a/docs/content/commands/rclone_authorize.md
+++ b/docs/content/commands/rclone_authorize.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone authorize"
slug: rclone_authorize
url: /commands/rclone_authorize/
@@ -17,7 +17,13 @@ rclone from a machine with a browser - use as instructed by
rclone config.
```
-rclone authorize
+rclone authorize [flags]
+```
+
+### Options
+
+```
+ -h, --help help for authorize
```
### Options inherited from parent commands
@@ -26,11 +32,16 @@ rclone authorize
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -44,6 +55,7 @@ rclone authorize
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -52,7 +64,7 @@ rclone authorize
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -71,6 +83,7 @@ rclone authorize
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -97,9 +110,11 @@ rclone authorize
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -110,10 +125,11 @@ rclone authorize
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_cat.md b/docs/content/commands/rclone_cat.md
index e743491db..0aa3bb47f 100644
--- a/docs/content/commands/rclone_cat.md
+++ b/docs/content/commands/rclone_cat.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone cat"
slug: rclone_cat
url: /commands/rclone_cat/
@@ -42,6 +42,7 @@ rclone cat remote:path [flags]
--count int Only print N characters. (default -1)
--discard Discard the output instead of printing.
--head int Only print the first N characters.
+ -h, --help help for cat
--offset int Start printing at offset N (or from end if -ve).
--tail int Only print the last N characters.
```
@@ -52,11 +53,16 @@ rclone cat remote:path [flags]
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -70,6 +76,7 @@ rclone cat remote:path [flags]
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -78,7 +85,7 @@ rclone cat remote:path [flags]
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -97,6 +104,7 @@ rclone cat remote:path [flags]
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -123,9 +131,11 @@ rclone cat remote:path [flags]
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -136,10 +146,11 @@ rclone cat remote:path [flags]
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_check.md b/docs/content/commands/rclone_check.md
index 1a8414cad..4c7531ddd 100644
--- a/docs/content/commands/rclone_check.md
+++ b/docs/content/commands/rclone_check.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone check"
slug: rclone_check
url: /commands/rclone_check/
@@ -33,6 +33,7 @@ rclone check source:path dest:path [flags]
```
--download Check by downloading rather than with hash.
+ -h, --help help for check
```
### Options inherited from parent commands
@@ -41,11 +42,16 @@ rclone check source:path dest:path [flags]
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -59,6 +65,7 @@ rclone check source:path dest:path [flags]
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -67,7 +74,7 @@ rclone check source:path dest:path [flags]
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -86,6 +93,7 @@ rclone check source:path dest:path [flags]
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -112,9 +120,11 @@ rclone check source:path dest:path [flags]
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -125,10 +135,11 @@ rclone check source:path dest:path [flags]
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_cleanup.md b/docs/content/commands/rclone_cleanup.md
index af771ad07..a057e88bf 100644
--- a/docs/content/commands/rclone_cleanup.md
+++ b/docs/content/commands/rclone_cleanup.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone cleanup"
slug: rclone_cleanup
url: /commands/rclone_cleanup/
@@ -17,7 +17,13 @@ versions. Not supported by all remotes.
```
-rclone cleanup remote:path
+rclone cleanup remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for cleanup
```
### Options inherited from parent commands
@@ -26,11 +32,16 @@ rclone cleanup remote:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -44,6 +55,7 @@ rclone cleanup remote:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -52,7 +64,7 @@ rclone cleanup remote:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -71,6 +83,7 @@ rclone cleanup remote:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -97,9 +110,11 @@ rclone cleanup remote:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -110,10 +125,11 @@ rclone cleanup remote:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_config.md b/docs/content/commands/rclone_config.md
index 399c28d99..1fa2f4199 100644
--- a/docs/content/commands/rclone_config.md
+++ b/docs/content/commands/rclone_config.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone config"
slug: rclone_config
url: /commands/rclone_config/
@@ -11,10 +11,26 @@ Enter an interactive configuration session.
### Synopsis
-Enter an interactive configuration session.
+`rclone config`
+ enters an interactive configuration sessions where you can setup
+new remotes and manage existing ones. You may also set or remove a password to
+protect your configuration.
+
+Additional functions:
+
+ * `rclone config edit` – same as above
+ * `rclone config file` – show path of configuration file in use
+ * `rclone config show` – print (decrypted) config file
+
+
+```
+rclone config [function] [flags]
+```
+
+### Options
```
-rclone config
+ -h, --help help for config
```
### Options inherited from parent commands
@@ -23,11 +39,16 @@ rclone config
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -41,6 +62,7 @@ rclone config
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -49,7 +71,7 @@ rclone config
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -68,6 +90,7 @@ rclone config
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -94,9 +117,11 @@ rclone config
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -107,10 +132,11 @@ rclone config
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_copy.md b/docs/content/commands/rclone_copy.md
index 453be7085..f9f2e7fdb 100644
--- a/docs/content/commands/rclone_copy.md
+++ b/docs/content/commands/rclone_copy.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone copy"
slug: rclone_copy
url: /commands/rclone_copy/
@@ -53,7 +53,13 @@ the destination directory or not.
```
-rclone copy source:path dest:path
+rclone copy source:path dest:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for copy
```
### Options inherited from parent commands
@@ -62,11 +68,16 @@ rclone copy source:path dest:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -80,6 +91,7 @@ rclone copy source:path dest:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -88,7 +100,7 @@ rclone copy source:path dest:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -107,6 +119,7 @@ rclone copy source:path dest:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -133,9 +146,11 @@ rclone copy source:path dest:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -146,10 +161,11 @@ rclone copy source:path dest:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_copyto.md b/docs/content/commands/rclone_copyto.md
index 2cb9bf1f2..d5444cb5d 100644
--- a/docs/content/commands/rclone_copyto.md
+++ b/docs/content/commands/rclone_copyto.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone copyto"
slug: rclone_copyto
url: /commands/rclone_copyto/
@@ -40,7 +40,13 @@ destination.
```
-rclone copyto source:path dest:path
+rclone copyto source:path dest:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for copyto
```
### Options inherited from parent commands
@@ -49,11 +55,16 @@ rclone copyto source:path dest:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -67,6 +78,7 @@ rclone copyto source:path dest:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -75,7 +87,7 @@ rclone copyto source:path dest:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -94,6 +106,7 @@ rclone copyto source:path dest:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -120,9 +133,11 @@ rclone copyto source:path dest:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -133,10 +148,11 @@ rclone copyto source:path dest:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_cryptcheck.md b/docs/content/commands/rclone_cryptcheck.md
index 7072be5b2..a15f742ac 100644
--- a/docs/content/commands/rclone_cryptcheck.md
+++ b/docs/content/commands/rclone_cryptcheck.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone cryptcheck"
slug: rclone_cryptcheck
url: /commands/rclone_cryptcheck/
@@ -37,7 +37,13 @@ After it has run it will log the status of the encryptedremote:.
```
-rclone cryptcheck remote:path cryptedremote:path
+rclone cryptcheck remote:path cryptedremote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for cryptcheck
```
### Options inherited from parent commands
@@ -46,11 +52,16 @@ rclone cryptcheck remote:path cryptedremote:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -64,6 +75,7 @@ rclone cryptcheck remote:path cryptedremote:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -72,7 +84,7 @@ rclone cryptcheck remote:path cryptedremote:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -91,6 +103,7 @@ rclone cryptcheck remote:path cryptedremote:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -117,9 +130,11 @@ rclone cryptcheck remote:path cryptedremote:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -130,10 +145,11 @@ rclone cryptcheck remote:path cryptedremote:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_cryptdecode.md b/docs/content/commands/rclone_cryptdecode.md
new file mode 100644
index 000000000..dc462542e
--- /dev/null
+++ b/docs/content/commands/rclone_cryptdecode.md
@@ -0,0 +1,139 @@
+---
+date: 2017-09-30T14:20:12+01:00
+title: "rclone cryptdecode"
+slug: rclone_cryptdecode
+url: /commands/rclone_cryptdecode/
+---
+## rclone cryptdecode
+
+Cryptdecode returns unencrypted file names.
+
+### Synopsis
+
+
+
+rclone cryptdecode returns unencrypted file names when provided with
+a list of encrypted file names. List limit is 10 items.
+
+use it like this
+
+ rclone cryptdecode encryptedremote: encryptedfilename1 encryptedfilename2
+
+
+```
+rclone cryptdecode encryptedremote: encryptedfilename [flags]
+```
+
+### Options
+
+```
+ -h, --help help for cryptdecode
+```
+
+### Options inherited from parent commands
+
+```
+ --acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
+ --acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
+ --ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
+ --b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
+ --b2-test-mode string A flag string for X-Bz-Test-Mode header.
+ --b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
+ --b2-versions Include old versions in directory listings.
+ --backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
+ --buffer-size int Buffer size when copying files. (default 16M)
+ --bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
+ --checkers int Number of checkers to run in parallel. (default 8)
+ -c, --checksum Skip based on checksum & size, not mod-time & size
+ --config string Config file. (default "/home/ncw/.rclone.conf")
+ --contimeout duration Connect timeout (default 1m0s)
+ -L, --copy-links Follow symlinks and copy the pointed to item.
+ --cpuprofile string Write cpu profile to file
+ --crypt-show-mapping For all files listed show how the names encrypt.
+ --delete-after When synchronizing, delete files on destination after transfering
+ --delete-before When synchronizing, delete files on destination before transfering
+ --delete-during When synchronizing, delete files during transfer (default)
+ --delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
+ --drive-auth-owner-only Only consider files owned by the authenticated user.
+ --drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
+ --drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
+ --drive-list-chunk int Size of listing chunk 100-1000. 0 to disable. (default 1000)
+ --drive-shared-with-me Only show files that are shared with me
+ --drive-skip-gdocs Skip google documents in all listings.
+ --drive-trashed-only Only show files that are in the trash
+ --drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
+ --dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
+ -n, --dry-run Do a trial run with no permanent changes
+ --dump-auth Dump HTTP headers with auth info
+ --dump-bodies Dump HTTP headers and bodies - may contain sensitive info
+ --dump-filters Dump the filters to the output
+ --dump-headers Dump HTTP headers - may contain sensitive info
+ --exclude stringArray Exclude files matching pattern
+ --exclude-from stringArray Read exclude patterns from file
+ --fast-list Use recursive list if available. Uses more memory but fewer transactions.
+ --files-from stringArray Read list of source-file names from file
+ -f, --filter stringArray Add a file-filtering rule
+ --filter-from stringArray Read filtering patterns from a file
+ --gcs-location string Default location for buckets (us|eu|asia|us-central1|us-east1|us-east4|us-west1|asia-east1|asia-noetheast1|asia-southeast1|australia-southeast1|europe-west1|europe-west2).
+ --gcs-storage-class string Default storage class for buckets (MULTI_REGIONAL|REGIONAL|STANDARD|NEARLINE|COLDLINE|DURABLE_REDUCED_AVAILABILITY).
+ --ignore-checksum Skip post copy check of checksums.
+ --ignore-existing Skip all files that exist on destination
+ --ignore-size Ignore size when skipping use mod-time or checksum.
+ -I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
+ --include stringArray Include files matching pattern
+ --include-from stringArray Read include patterns from file
+ --local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
+ --log-file string Log everything to this file
+ --log-level string Log level DEBUG|INFO|NOTICE|ERROR (default "NOTICE")
+ --low-level-retries int Number of low level retries to do. (default 10)
+ --max-age string Don't transfer any file older than this in s or suffix ms|s|m|h|d|w|M|y
+ --max-depth int If set limits the recursion depth to this. (default -1)
+ --max-size int Don't transfer any file larger than this in k or suffix b|k|M|G (default off)
+ --memprofile string Write memory profile to file
+ --min-age string Don't transfer any file younger than this in s or suffix ms|s|m|h|d|w|M|y
+ --min-size int Don't transfer any file smaller than this in k or suffix b|k|M|G (default off)
+ --modify-window duration Max time diff to be considered the same (default 1ns)
+ --no-check-certificate Do not verify the server SSL certificate. Insecure.
+ --no-gzip-encoding Don't set Accept-Encoding: gzip.
+ --no-traverse Don't traverse destination file system on copy.
+ --no-update-modtime Don't update destination mod-time if files identical.
+ --old-sync-method Deprecated - use --fast-list instead
+ -x, --one-file-system Don't cross filesystem boundaries.
+ --onedrive-chunk-size int Above this size files will be chunked - must be multiple of 320k. (default 10M)
+ --onedrive-upload-cutoff int Cutoff for switching to chunked upload - must be <= 100MB (default 10M)
+ -q, --quiet Print as little stuff as possible
+ --retries int Retry operations this many times if they fail (default 3)
+ --s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
+ --s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
+ --size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
+ --stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
+ --stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
+ --stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
+ --suffix string Suffix for use with --backup-dir.
+ --swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
+ --syslog Use Syslog for logging
+ --syslog-facility string Facility for syslog, eg KERN,USER,... (default "DAEMON")
+ --timeout duration IO idle timeout (default 5m0s)
+ --tpslimit float Limit HTTP transactions per second to this.
+ --tpslimit-burst int Max burst of transactions for --tpslimit. (default 1)
+ --track-renames When synchronizing, track file renames and do a server side move if possible
+ --transfers int Number of file transfers to run in parallel. (default 4)
+ -u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
+ -v, --verbose count[=-1] Print lots more stuff (repeat for more)
+```
+
+### SEE ALSO
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
+
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_dbhashsum.md b/docs/content/commands/rclone_dbhashsum.md
index a6dcf1654..ad345f760 100644
--- a/docs/content/commands/rclone_dbhashsum.md
+++ b/docs/content/commands/rclone_dbhashsum.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone dbhashsum"
slug: rclone_dbhashsum
url: /commands/rclone_dbhashsum/
@@ -19,7 +19,13 @@ The output is in the same format as md5sum and sha1sum.
```
-rclone dbhashsum remote:path
+rclone dbhashsum remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for dbhashsum
```
### Options inherited from parent commands
@@ -28,11 +34,16 @@ rclone dbhashsum remote:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -46,6 +57,7 @@ rclone dbhashsum remote:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -54,7 +66,7 @@ rclone dbhashsum remote:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -73,6 +85,7 @@ rclone dbhashsum remote:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -99,9 +112,11 @@ rclone dbhashsum remote:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -112,10 +127,11 @@ rclone dbhashsum remote:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_dedupe.md b/docs/content/commands/rclone_dedupe.md
index f2e0c3893..e57828460 100644
--- a/docs/content/commands/rclone_dedupe.md
+++ b/docs/content/commands/rclone_dedupe.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone dedupe"
slug: rclone_dedupe
url: /commands/rclone_dedupe/
@@ -12,10 +12,14 @@ Interactively find duplicate files delete/rename them.
-By default `dedup` interactively finds duplicate files and offers to
+By default `dedupe` interactively finds duplicate files and offers to
delete all but one or rename them to be different. Only useful with
Google Drive which can have duplicate file names.
+In the first pass it will merge directories with the same name. It
+will do this iteratively until all the identical directories have been
+merged.
+
The `dedupe` command will delete all but one of any identical (same
md5sum) files it finds without confirmation. This means that for most
duplicated files the `dedupe` command will not be interactive. You
@@ -96,6 +100,7 @@ rclone dedupe [mode] remote:path [flags]
```
--dedupe-mode string Dedupe mode interactive|skip|first|newest|oldest|rename. (default "interactive")
+ -h, --help help for dedupe
```
### Options inherited from parent commands
@@ -104,11 +109,16 @@ rclone dedupe [mode] remote:path [flags]
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -122,6 +132,7 @@ rclone dedupe [mode] remote:path [flags]
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -130,7 +141,7 @@ rclone dedupe [mode] remote:path [flags]
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -149,6 +160,7 @@ rclone dedupe [mode] remote:path [flags]
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -175,9 +187,11 @@ rclone dedupe [mode] remote:path [flags]
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -188,10 +202,11 @@ rclone dedupe [mode] remote:path [flags]
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_delete.md b/docs/content/commands/rclone_delete.md
index 5e7159dde..294a44a3a 100644
--- a/docs/content/commands/rclone_delete.md
+++ b/docs/content/commands/rclone_delete.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone delete"
slug: rclone_delete
url: /commands/rclone_delete/
@@ -31,7 +31,13 @@ delete all files bigger than 100MBytes.
```
-rclone delete remote:path
+rclone delete remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for delete
```
### Options inherited from parent commands
@@ -40,11 +46,16 @@ rclone delete remote:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -58,6 +69,7 @@ rclone delete remote:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -66,7 +78,7 @@ rclone delete remote:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -85,6 +97,7 @@ rclone delete remote:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -111,9 +124,11 @@ rclone delete remote:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -124,10 +139,11 @@ rclone delete remote:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_genautocomplete.md b/docs/content/commands/rclone_genautocomplete.md
index f519a45dd..94679da68 100644
--- a/docs/content/commands/rclone_genautocomplete.md
+++ b/docs/content/commands/rclone_genautocomplete.md
@@ -1,5 +1,5 @@
---
-date: 2017-08-20T10:49:45+02:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone genautocomplete"
slug: rclone_genautocomplete
url: /commands/rclone_genautocomplete/
@@ -28,11 +28,16 @@ Run with --help to list the supported shells.
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -46,6 +51,7 @@ Run with --help to list the supported shells.
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -54,7 +60,7 @@ Run with --help to list the supported shells.
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -73,6 +79,7 @@ Run with --help to list the supported shells.
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -99,9 +106,11 @@ Run with --help to list the supported shells.
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -112,12 +121,13 @@ Run with --help to list the supported shells.
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37-099-gb78ecb15-zsh-completion
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
* [rclone genautocomplete bash](/commands/rclone_genautocomplete_bash/) - Output bash completion script for rclone.
* [rclone genautocomplete zsh](/commands/rclone_genautocomplete_zsh/) - Output zsh completion script for rclone.
-###### Auto generated by spf13/cobra on 20-Aug-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_genautocomplete_bash.md b/docs/content/commands/rclone_genautocomplete_bash.md
index 1c36655a0..7bb7c9eac 100644
--- a/docs/content/commands/rclone_genautocomplete_bash.md
+++ b/docs/content/commands/rclone_genautocomplete_bash.md
@@ -1,5 +1,5 @@
---
-date: 2017-08-20T10:49:45+02:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone genautocomplete bash"
slug: rclone_genautocomplete_bash
url: /commands/rclone_genautocomplete_bash/
@@ -44,11 +44,16 @@ rclone genautocomplete bash [output_file] [flags]
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -62,6 +67,7 @@ rclone genautocomplete bash [output_file] [flags]
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -70,7 +76,7 @@ rclone genautocomplete bash [output_file] [flags]
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -89,6 +95,7 @@ rclone genautocomplete bash [output_file] [flags]
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -115,9 +122,11 @@ rclone genautocomplete bash [output_file] [flags]
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -128,10 +137,11 @@ rclone genautocomplete bash [output_file] [flags]
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
* [rclone genautocomplete](/commands/rclone_genautocomplete/) - Output completion script for a given shell.
-###### Auto generated by spf13/cobra on 20-Aug-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_genautocomplete_zsh.md b/docs/content/commands/rclone_genautocomplete_zsh.md
index 0b1c6bf2b..ca5871f3e 100644
--- a/docs/content/commands/rclone_genautocomplete_zsh.md
+++ b/docs/content/commands/rclone_genautocomplete_zsh.md
@@ -1,5 +1,5 @@
---
-date: 2017-08-20T10:49:45+02:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone genautocomplete zsh"
slug: rclone_genautocomplete_zsh
url: /commands/rclone_genautocomplete_zsh/
@@ -44,11 +44,16 @@ rclone genautocomplete zsh [output_file] [flags]
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -62,6 +67,7 @@ rclone genautocomplete zsh [output_file] [flags]
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -70,7 +76,7 @@ rclone genautocomplete zsh [output_file] [flags]
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -89,6 +95,7 @@ rclone genautocomplete zsh [output_file] [flags]
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -115,9 +122,11 @@ rclone genautocomplete zsh [output_file] [flags]
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -128,10 +137,11 @@ rclone genautocomplete zsh [output_file] [flags]
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
* [rclone genautocomplete](/commands/rclone_genautocomplete/) - Output completion script for a given shell.
-###### Auto generated by spf13/cobra on 20-Aug-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_gendocs.md b/docs/content/commands/rclone_gendocs.md
index e6b45d528..ff532937f 100644
--- a/docs/content/commands/rclone_gendocs.md
+++ b/docs/content/commands/rclone_gendocs.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone gendocs"
slug: rclone_gendocs
url: /commands/rclone_gendocs/
@@ -32,11 +32,16 @@ rclone gendocs output_directory [flags]
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -50,6 +55,7 @@ rclone gendocs output_directory [flags]
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -58,7 +64,7 @@ rclone gendocs output_directory [flags]
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -77,6 +83,7 @@ rclone gendocs output_directory [flags]
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -103,9 +110,11 @@ rclone gendocs output_directory [flags]
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -116,10 +125,11 @@ rclone gendocs output_directory [flags]
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_listremotes.md b/docs/content/commands/rclone_listremotes.md
index 15b1a2d0e..e0e014557 100644
--- a/docs/content/commands/rclone_listremotes.md
+++ b/docs/content/commands/rclone_listremotes.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone listremotes"
slug: rclone_listremotes
url: /commands/rclone_listremotes/
@@ -24,6 +24,7 @@ rclone listremotes [flags]
### Options
```
+ -h, --help help for listremotes
-l, --long Show the type as well as names.
```
@@ -33,11 +34,16 @@ rclone listremotes [flags]
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -51,6 +57,7 @@ rclone listremotes [flags]
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -59,7 +66,7 @@ rclone listremotes [flags]
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -78,6 +85,7 @@ rclone listremotes [flags]
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -104,9 +112,11 @@ rclone listremotes [flags]
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -117,10 +127,11 @@ rclone listremotes [flags]
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_ls.md b/docs/content/commands/rclone_ls.md
index 7bcaa89c1..363dc48b3 100644
--- a/docs/content/commands/rclone_ls.md
+++ b/docs/content/commands/rclone_ls.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone ls"
slug: rclone_ls
url: /commands/rclone_ls/
@@ -14,7 +14,13 @@ List all the objects in the path with size and path.
List all the objects in the path with size and path.
```
-rclone ls remote:path
+rclone ls remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for ls
```
### Options inherited from parent commands
@@ -23,11 +29,16 @@ rclone ls remote:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -41,6 +52,7 @@ rclone ls remote:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -49,7 +61,7 @@ rclone ls remote:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -68,6 +80,7 @@ rclone ls remote:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -94,9 +107,11 @@ rclone ls remote:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -107,10 +122,11 @@ rclone ls remote:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_lsd.md b/docs/content/commands/rclone_lsd.md
index 4957775ee..771550b20 100644
--- a/docs/content/commands/rclone_lsd.md
+++ b/docs/content/commands/rclone_lsd.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone lsd"
slug: rclone_lsd
url: /commands/rclone_lsd/
@@ -14,7 +14,13 @@ List all directories/containers/buckets in the path.
List all directories/containers/buckets in the path.
```
-rclone lsd remote:path
+rclone lsd remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for lsd
```
### Options inherited from parent commands
@@ -23,11 +29,16 @@ rclone lsd remote:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -41,6 +52,7 @@ rclone lsd remote:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -49,7 +61,7 @@ rclone lsd remote:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -68,6 +80,7 @@ rclone lsd remote:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -94,9 +107,11 @@ rclone lsd remote:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -107,10 +122,11 @@ rclone lsd remote:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_lsjson.md b/docs/content/commands/rclone_lsjson.md
index ec5e73613..438789e58 100644
--- a/docs/content/commands/rclone_lsjson.md
+++ b/docs/content/commands/rclone_lsjson.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone lsjson"
slug: rclone_lsjson
url: /commands/rclone_lsjson/
@@ -46,6 +46,7 @@ rclone lsjson remote:path [flags]
```
--hash Include hashes in the output (may take longer).
+ -h, --help help for lsjson
--no-modtime Don't read the modification time (can speed things up).
-R, --recursive Recurse into the listing.
```
@@ -56,11 +57,16 @@ rclone lsjson remote:path [flags]
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -74,6 +80,7 @@ rclone lsjson remote:path [flags]
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -82,7 +89,7 @@ rclone lsjson remote:path [flags]
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -101,6 +108,7 @@ rclone lsjson remote:path [flags]
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -127,9 +135,11 @@ rclone lsjson remote:path [flags]
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -140,10 +150,11 @@ rclone lsjson remote:path [flags]
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_lsl.md b/docs/content/commands/rclone_lsl.md
index 28f258596..130c4a456 100644
--- a/docs/content/commands/rclone_lsl.md
+++ b/docs/content/commands/rclone_lsl.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone lsl"
slug: rclone_lsl
url: /commands/rclone_lsl/
@@ -14,7 +14,13 @@ List all the objects path with modification time, size and path.
List all the objects path with modification time, size and path.
```
-rclone lsl remote:path
+rclone lsl remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for lsl
```
### Options inherited from parent commands
@@ -23,11 +29,16 @@ rclone lsl remote:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -41,6 +52,7 @@ rclone lsl remote:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -49,7 +61,7 @@ rclone lsl remote:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -68,6 +80,7 @@ rclone lsl remote:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -94,9 +107,11 @@ rclone lsl remote:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -107,10 +122,11 @@ rclone lsl remote:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_md5sum.md b/docs/content/commands/rclone_md5sum.md
index ef4e8329a..c040f10a5 100644
--- a/docs/content/commands/rclone_md5sum.md
+++ b/docs/content/commands/rclone_md5sum.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone md5sum"
slug: rclone_md5sum
url: /commands/rclone_md5sum/
@@ -17,7 +17,13 @@ is in the same format as the standard md5sum tool produces.
```
-rclone md5sum remote:path
+rclone md5sum remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for md5sum
```
### Options inherited from parent commands
@@ -26,11 +32,16 @@ rclone md5sum remote:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -44,6 +55,7 @@ rclone md5sum remote:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -52,7 +64,7 @@ rclone md5sum remote:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -71,6 +83,7 @@ rclone md5sum remote:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -97,9 +110,11 @@ rclone md5sum remote:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -110,10 +125,11 @@ rclone md5sum remote:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_mkdir.md b/docs/content/commands/rclone_mkdir.md
index 837a3b8e9..ab8028bba 100644
--- a/docs/content/commands/rclone_mkdir.md
+++ b/docs/content/commands/rclone_mkdir.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone mkdir"
slug: rclone_mkdir
url: /commands/rclone_mkdir/
@@ -14,7 +14,13 @@ Make the path if it doesn't already exist.
Make the path if it doesn't already exist.
```
-rclone mkdir remote:path
+rclone mkdir remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for mkdir
```
### Options inherited from parent commands
@@ -23,11 +29,16 @@ rclone mkdir remote:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -41,6 +52,7 @@ rclone mkdir remote:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -49,7 +61,7 @@ rclone mkdir remote:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -68,6 +80,7 @@ rclone mkdir remote:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -94,9 +107,11 @@ rclone mkdir remote:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -107,10 +122,11 @@ rclone mkdir remote:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_mount.md b/docs/content/commands/rclone_mount.md
index 2b8c96abb..3144dc5a1 100644
--- a/docs/content/commands/rclone_mount.md
+++ b/docs/content/commands/rclone_mount.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone mount"
slug: rclone_mount
url: /commands/rclone_mount/
@@ -39,6 +39,34 @@ When that happens, it is the user's responsibility to stop the mount manually wi
# OS X
umount /path/to/local/mount
+### Installing on Windows ###
+
+To run rclone mount on Windows, you will need to
+download and install [WinFsp](http://www.secfs.net/winfsp/).
+
+WinFsp is an [open source](https://github.com/billziss-gh/winfsp)
+Windows File System Proxy which makes it easy to write user space file
+systems for Windows. It provides a FUSE emulation layer which rclone
+uses combination with
+[cgofuse](https://github.com/billziss-gh/cgofuse). Both of these
+packages are by Bill Zissimopoulos who was very helpful during the
+implementation of rclone mount for Windows.
+
+#### Windows caveats ####
+
+Note that drives created as Administrator are not visible by other
+accounts (including the account that was elevated as
+Administrator). So if you start a Windows drive from an Administrative
+Command Prompt and then try to access the same drive from Explorer
+(which does not run as Administrator), you will not be able to see the
+new drive.
+
+The easiest way around this is to start the drive from a normal
+command prompt. It is also possible to start a drive from the SYSTEM
+account (using [the WinFsp.Launcher
+infrastructure](https://github.com/billziss-gh/winfsp/wiki/WinFsp-Service-Architecture))
+which creates drives accessible for everyone on the system.
+
### Limitations ###
This can only write files seqentially, it can only seek when reading.
@@ -84,13 +112,6 @@ like this:
kill -SIGHUP $(pidof rclone)
-### Bugs ###
-
- * All the remotes should work for read, but some may not for write
- * those which need to know the size in advance won't - eg B2
- * maybe should pass in size as -1 to mean work it out
- * Or put in an an upload cache to cache the files on disk first
-
```
rclone mount remote:path /path/to/mountpoint [flags]
@@ -107,6 +128,7 @@ rclone mount remote:path /path/to/mountpoint [flags]
--dir-cache-time duration Time to cache directory entries for. (default 5m0s)
--fuse-flag stringArray Flags or arguments to be passed direct to libfuse/WinFsp. Repeat if required.
--gid uint32 Override the gid field set by the filesystem. (default 502)
+ -h, --help help for mount
--max-read-ahead int The number of bytes that can be prefetched for sequential reads. (default 128k)
--no-checksum Don't compare checksums on up/download.
--no-modtime Don't read/write the modification time (can speed things up).
@@ -125,11 +147,16 @@ rclone mount remote:path /path/to/mountpoint [flags]
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -143,6 +170,7 @@ rclone mount remote:path /path/to/mountpoint [flags]
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -151,7 +179,7 @@ rclone mount remote:path /path/to/mountpoint [flags]
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -170,6 +198,7 @@ rclone mount remote:path /path/to/mountpoint [flags]
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -196,9 +225,11 @@ rclone mount remote:path /path/to/mountpoint [flags]
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -209,10 +240,11 @@ rclone mount remote:path /path/to/mountpoint [flags]
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_move.md b/docs/content/commands/rclone_move.md
index 5c827c8d3..1524d8e01 100644
--- a/docs/content/commands/rclone_move.md
+++ b/docs/content/commands/rclone_move.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone move"
slug: rclone_move
url: /commands/rclone_move/
@@ -31,7 +31,13 @@ into `dest:path` then delete the original (if no errors on copy) in
```
-rclone move source:path dest:path
+rclone move source:path dest:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for move
```
### Options inherited from parent commands
@@ -40,11 +46,16 @@ rclone move source:path dest:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -58,6 +69,7 @@ rclone move source:path dest:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -66,7 +78,7 @@ rclone move source:path dest:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -85,6 +97,7 @@ rclone move source:path dest:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -111,9 +124,11 @@ rclone move source:path dest:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -124,10 +139,11 @@ rclone move source:path dest:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_moveto.md b/docs/content/commands/rclone_moveto.md
index fc1054f19..834d6d683 100644
--- a/docs/content/commands/rclone_moveto.md
+++ b/docs/content/commands/rclone_moveto.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone moveto"
slug: rclone_moveto
url: /commands/rclone_moveto/
@@ -43,7 +43,13 @@ transfer.
```
-rclone moveto source:path dest:path
+rclone moveto source:path dest:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for moveto
```
### Options inherited from parent commands
@@ -52,11 +58,16 @@ rclone moveto source:path dest:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -70,6 +81,7 @@ rclone moveto source:path dest:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -78,7 +90,7 @@ rclone moveto source:path dest:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -97,6 +109,7 @@ rclone moveto source:path dest:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -123,9 +136,11 @@ rclone moveto source:path dest:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -136,10 +151,11 @@ rclone moveto source:path dest:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_ncdu.md b/docs/content/commands/rclone_ncdu.md
index 080bb3120..acb91d4a9 100644
--- a/docs/content/commands/rclone_ncdu.md
+++ b/docs/content/commands/rclone_ncdu.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone ncdu"
slug: rclone_ncdu
url: /commands/rclone_ncdu/
@@ -38,7 +38,13 @@ importantly deleting files, but is useful as it stands.
```
-rclone ncdu remote:path
+rclone ncdu remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for ncdu
```
### Options inherited from parent commands
@@ -47,11 +53,16 @@ rclone ncdu remote:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -65,6 +76,7 @@ rclone ncdu remote:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -73,7 +85,7 @@ rclone ncdu remote:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -92,6 +104,7 @@ rclone ncdu remote:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -118,9 +131,11 @@ rclone ncdu remote:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -131,10 +146,11 @@ rclone ncdu remote:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_obscure.md b/docs/content/commands/rclone_obscure.md
index 71cd631ec..2930e6498 100644
--- a/docs/content/commands/rclone_obscure.md
+++ b/docs/content/commands/rclone_obscure.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone obscure"
slug: rclone_obscure
url: /commands/rclone_obscure/
@@ -14,7 +14,13 @@ Obscure password for use in the rclone.conf
Obscure password for use in the rclone.conf
```
-rclone obscure password
+rclone obscure password [flags]
+```
+
+### Options
+
+```
+ -h, --help help for obscure
```
### Options inherited from parent commands
@@ -23,11 +29,16 @@ rclone obscure password
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -41,6 +52,7 @@ rclone obscure password
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -49,7 +61,7 @@ rclone obscure password
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -68,6 +80,7 @@ rclone obscure password
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -94,9 +107,11 @@ rclone obscure password
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -107,10 +122,11 @@ rclone obscure password
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_purge.md b/docs/content/commands/rclone_purge.md
index 88a7e9ef8..90882aa9a 100644
--- a/docs/content/commands/rclone_purge.md
+++ b/docs/content/commands/rclone_purge.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone purge"
slug: rclone_purge
url: /commands/rclone_purge/
@@ -18,7 +18,13 @@ you want to selectively delete files.
```
-rclone purge remote:path
+rclone purge remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for purge
```
### Options inherited from parent commands
@@ -27,11 +33,16 @@ rclone purge remote:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -45,6 +56,7 @@ rclone purge remote:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -53,7 +65,7 @@ rclone purge remote:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -72,6 +84,7 @@ rclone purge remote:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -98,9 +111,11 @@ rclone purge remote:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -111,10 +126,11 @@ rclone purge remote:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_rcat.md b/docs/content/commands/rclone_rcat.md
new file mode 100644
index 000000000..c549cf2cc
--- /dev/null
+++ b/docs/content/commands/rclone_rcat.md
@@ -0,0 +1,154 @@
+---
+date: 2017-09-30T14:20:12+01:00
+title: "rclone rcat"
+slug: rclone_rcat
+url: /commands/rclone_rcat/
+---
+## rclone rcat
+
+Copies standard input to file on remote.
+
+### Synopsis
+
+
+
+rclone rcat reads from standard input (stdin) and copies it to a
+single remote file.
+
+ echo "hello world" | rclone rcat remote:path/to/file
+ ffmpeg - | rclone rcat --checksum remote:path/to/file
+
+If the remote file already exists, it will be overwritten.
+
+rcat will try to upload small files in a single request, which is
+usually more efficient than the streaming/chunked upload endpoints,
+which use multiple requests. Exact behaviour depends on the remote.
+What is considered a small file may be set through
+`--streaming-upload-cutoff`. Uploading only starts after
+the cutoff is reached or if the file ends before that. The data
+must fit into RAM. The cutoff needs to be small enough to adhere
+the limits of your remote, please see there. Generally speaking,
+setting this cutoff too high will decrease your performance.
+
+Note that the upload can also not be retried because the data is
+not kept around until the upload succeeds. If you need to transfer
+a lot of data, you're better off caching locally and then
+`rclone move` it to the destination.
+
+```
+rclone rcat remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for rcat
+```
+
+### Options inherited from parent commands
+
+```
+ --acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
+ --acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
+ --ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
+ --b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
+ --b2-test-mode string A flag string for X-Bz-Test-Mode header.
+ --b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
+ --b2-versions Include old versions in directory listings.
+ --backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
+ --buffer-size int Buffer size when copying files. (default 16M)
+ --bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
+ --checkers int Number of checkers to run in parallel. (default 8)
+ -c, --checksum Skip based on checksum & size, not mod-time & size
+ --config string Config file. (default "/home/ncw/.rclone.conf")
+ --contimeout duration Connect timeout (default 1m0s)
+ -L, --copy-links Follow symlinks and copy the pointed to item.
+ --cpuprofile string Write cpu profile to file
+ --crypt-show-mapping For all files listed show how the names encrypt.
+ --delete-after When synchronizing, delete files on destination after transfering
+ --delete-before When synchronizing, delete files on destination before transfering
+ --delete-during When synchronizing, delete files during transfer (default)
+ --delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
+ --drive-auth-owner-only Only consider files owned by the authenticated user.
+ --drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
+ --drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
+ --drive-list-chunk int Size of listing chunk 100-1000. 0 to disable. (default 1000)
+ --drive-shared-with-me Only show files that are shared with me
+ --drive-skip-gdocs Skip google documents in all listings.
+ --drive-trashed-only Only show files that are in the trash
+ --drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
+ --dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
+ -n, --dry-run Do a trial run with no permanent changes
+ --dump-auth Dump HTTP headers with auth info
+ --dump-bodies Dump HTTP headers and bodies - may contain sensitive info
+ --dump-filters Dump the filters to the output
+ --dump-headers Dump HTTP headers - may contain sensitive info
+ --exclude stringArray Exclude files matching pattern
+ --exclude-from stringArray Read exclude patterns from file
+ --fast-list Use recursive list if available. Uses more memory but fewer transactions.
+ --files-from stringArray Read list of source-file names from file
+ -f, --filter stringArray Add a file-filtering rule
+ --filter-from stringArray Read filtering patterns from a file
+ --gcs-location string Default location for buckets (us|eu|asia|us-central1|us-east1|us-east4|us-west1|asia-east1|asia-noetheast1|asia-southeast1|australia-southeast1|europe-west1|europe-west2).
+ --gcs-storage-class string Default storage class for buckets (MULTI_REGIONAL|REGIONAL|STANDARD|NEARLINE|COLDLINE|DURABLE_REDUCED_AVAILABILITY).
+ --ignore-checksum Skip post copy check of checksums.
+ --ignore-existing Skip all files that exist on destination
+ --ignore-size Ignore size when skipping use mod-time or checksum.
+ -I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
+ --include stringArray Include files matching pattern
+ --include-from stringArray Read include patterns from file
+ --local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
+ --log-file string Log everything to this file
+ --log-level string Log level DEBUG|INFO|NOTICE|ERROR (default "NOTICE")
+ --low-level-retries int Number of low level retries to do. (default 10)
+ --max-age string Don't transfer any file older than this in s or suffix ms|s|m|h|d|w|M|y
+ --max-depth int If set limits the recursion depth to this. (default -1)
+ --max-size int Don't transfer any file larger than this in k or suffix b|k|M|G (default off)
+ --memprofile string Write memory profile to file
+ --min-age string Don't transfer any file younger than this in s or suffix ms|s|m|h|d|w|M|y
+ --min-size int Don't transfer any file smaller than this in k or suffix b|k|M|G (default off)
+ --modify-window duration Max time diff to be considered the same (default 1ns)
+ --no-check-certificate Do not verify the server SSL certificate. Insecure.
+ --no-gzip-encoding Don't set Accept-Encoding: gzip.
+ --no-traverse Don't traverse destination file system on copy.
+ --no-update-modtime Don't update destination mod-time if files identical.
+ --old-sync-method Deprecated - use --fast-list instead
+ -x, --one-file-system Don't cross filesystem boundaries.
+ --onedrive-chunk-size int Above this size files will be chunked - must be multiple of 320k. (default 10M)
+ --onedrive-upload-cutoff int Cutoff for switching to chunked upload - must be <= 100MB (default 10M)
+ -q, --quiet Print as little stuff as possible
+ --retries int Retry operations this many times if they fail (default 3)
+ --s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
+ --s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
+ --size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
+ --stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
+ --stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
+ --stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
+ --suffix string Suffix for use with --backup-dir.
+ --swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
+ --syslog Use Syslog for logging
+ --syslog-facility string Facility for syslog, eg KERN,USER,... (default "DAEMON")
+ --timeout duration IO idle timeout (default 5m0s)
+ --tpslimit float Limit HTTP transactions per second to this.
+ --tpslimit-burst int Max burst of transactions for --tpslimit. (default 1)
+ --track-renames When synchronizing, track file renames and do a server side move if possible
+ --transfers int Number of file transfers to run in parallel. (default 4)
+ -u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
+ -v, --verbose count[=-1] Print lots more stuff (repeat for more)
+```
+
+### SEE ALSO
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
+
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_rmdir.md b/docs/content/commands/rclone_rmdir.md
index c1318c5d8..f0180cf54 100644
--- a/docs/content/commands/rclone_rmdir.md
+++ b/docs/content/commands/rclone_rmdir.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone rmdir"
slug: rclone_rmdir
url: /commands/rclone_rmdir/
@@ -16,7 +16,13 @@ Remove the path. Note that you can't remove a path with
objects in it, use purge for that.
```
-rclone rmdir remote:path
+rclone rmdir remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for rmdir
```
### Options inherited from parent commands
@@ -25,11 +31,16 @@ rclone rmdir remote:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -43,6 +54,7 @@ rclone rmdir remote:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -51,7 +63,7 @@ rclone rmdir remote:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -70,6 +82,7 @@ rclone rmdir remote:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -96,9 +109,11 @@ rclone rmdir remote:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -109,10 +124,11 @@ rclone rmdir remote:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_rmdirs.md b/docs/content/commands/rclone_rmdirs.md
index 130eb59d5..1afaf7092 100644
--- a/docs/content/commands/rclone_rmdirs.md
+++ b/docs/content/commands/rclone_rmdirs.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone rmdirs"
slug: rclone_rmdirs
url: /commands/rclone_rmdirs/
@@ -21,7 +21,13 @@ empty directories in.
```
-rclone rmdirs remote:path
+rclone rmdirs remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for rmdirs
```
### Options inherited from parent commands
@@ -30,11 +36,16 @@ rclone rmdirs remote:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -48,6 +59,7 @@ rclone rmdirs remote:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -56,7 +68,7 @@ rclone rmdirs remote:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -75,6 +87,7 @@ rclone rmdirs remote:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -101,9 +114,11 @@ rclone rmdirs remote:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -114,10 +129,11 @@ rclone rmdirs remote:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_sha1sum.md b/docs/content/commands/rclone_sha1sum.md
index 775781424..6806b0a7c 100644
--- a/docs/content/commands/rclone_sha1sum.md
+++ b/docs/content/commands/rclone_sha1sum.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone sha1sum"
slug: rclone_sha1sum
url: /commands/rclone_sha1sum/
@@ -17,7 +17,13 @@ is in the same format as the standard sha1sum tool produces.
```
-rclone sha1sum remote:path
+rclone sha1sum remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for sha1sum
```
### Options inherited from parent commands
@@ -26,11 +32,16 @@ rclone sha1sum remote:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -44,6 +55,7 @@ rclone sha1sum remote:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -52,7 +64,7 @@ rclone sha1sum remote:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -71,6 +83,7 @@ rclone sha1sum remote:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -97,9 +110,11 @@ rclone sha1sum remote:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -110,10 +125,11 @@ rclone sha1sum remote:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_size.md b/docs/content/commands/rclone_size.md
index a067a5623..5996722e9 100644
--- a/docs/content/commands/rclone_size.md
+++ b/docs/content/commands/rclone_size.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone size"
slug: rclone_size
url: /commands/rclone_size/
@@ -14,7 +14,13 @@ Prints the total size and number of objects in remote:path.
Prints the total size and number of objects in remote:path.
```
-rclone size remote:path
+rclone size remote:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for size
```
### Options inherited from parent commands
@@ -23,11 +29,16 @@ rclone size remote:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -41,6 +52,7 @@ rclone size remote:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -49,7 +61,7 @@ rclone size remote:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -68,6 +80,7 @@ rclone size remote:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -94,9 +107,11 @@ rclone size remote:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -107,10 +122,11 @@ rclone size remote:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_sync.md b/docs/content/commands/rclone_sync.md
index 1ac675e12..dcf59b5fe 100644
--- a/docs/content/commands/rclone_sync.md
+++ b/docs/content/commands/rclone_sync.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone sync"
slug: rclone_sync
url: /commands/rclone_sync/
@@ -33,7 +33,13 @@ go there.
```
-rclone sync source:path dest:path
+rclone sync source:path dest:path [flags]
+```
+
+### Options
+
+```
+ -h, --help help for sync
```
### Options inherited from parent commands
@@ -42,11 +48,16 @@ rclone sync source:path dest:path
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -60,6 +71,7 @@ rclone sync source:path dest:path
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -68,7 +80,7 @@ rclone sync source:path dest:path
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -87,6 +99,7 @@ rclone sync source:path dest:path
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -113,9 +126,11 @@ rclone sync source:path dest:path
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -126,10 +141,11 @@ rclone sync source:path dest:path
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_tree.md b/docs/content/commands/rclone_tree.md
new file mode 100644
index 000000000..b978036bd
--- /dev/null
+++ b/docs/content/commands/rclone_tree.md
@@ -0,0 +1,175 @@
+---
+date: 2017-09-30T14:20:12+01:00
+title: "rclone tree"
+slug: rclone_tree
+url: /commands/rclone_tree/
+---
+## rclone tree
+
+List the contents of the remote in a tree like fashion.
+
+### Synopsis
+
+
+
+rclone tree lists the contents of a remote in a similar way to the
+unix tree command.
+
+For example
+
+ $ rclone tree remote:path
+ /
+ ├── file1
+ ├── file2
+ ├── file3
+ └── subdir
+ ├── file4
+ └── file5
+
+ 1 directories, 5 files
+
+You can use any of the filtering options with the tree command (eg
+--include and --exclude). You can also use --fast-list.
+
+The tree command has many options for controlling the listing which
+are compatible with the tree command. Note that not all of them have
+short options as they conflict with rclone's short options.
+
+
+```
+rclone tree remote:path [flags]
+```
+
+### Options
+
+```
+ -a, --all All files are listed (list . files too).
+ -C, --color Turn colorization on always.
+ -d, --dirs-only List directories only.
+ --dirsfirst List directories before files (-U disables).
+ --full-path Print the full path prefix for each file.
+ -h, --help help for tree
+ --human Print the size in a more human readable way.
+ --level int Descend only level directories deep.
+ -D, --modtime Print the date of last modification.
+ -i, --noindent Don't print indentation lines.
+ --noreport Turn off file/directory count at end of tree listing.
+ -o, --output string Output to file instead of stdout.
+ -p, --protections Print the protections for each file.
+ -Q, --quote Quote filenames with double quotes.
+ -s, --size Print the size in bytes of each file.
+ --sort string Select sort: name,version,size,mtime,ctime.
+ --sort-ctime Sort files by last status change time.
+ -t, --sort-modtime Sort files by last modification time.
+ -r, --sort-reverse Reverse the order of the sort.
+ -U, --unsorted Leave files unsorted.
+ --version Sort files alphanumerically by version.
+```
+
+### Options inherited from parent commands
+
+```
+ --acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
+ --acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
+ --ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
+ --b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
+ --b2-test-mode string A flag string for X-Bz-Test-Mode header.
+ --b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
+ --b2-versions Include old versions in directory listings.
+ --backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
+ --buffer-size int Buffer size when copying files. (default 16M)
+ --bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
+ --checkers int Number of checkers to run in parallel. (default 8)
+ -c, --checksum Skip based on checksum & size, not mod-time & size
+ --config string Config file. (default "/home/ncw/.rclone.conf")
+ --contimeout duration Connect timeout (default 1m0s)
+ -L, --copy-links Follow symlinks and copy the pointed to item.
+ --cpuprofile string Write cpu profile to file
+ --crypt-show-mapping For all files listed show how the names encrypt.
+ --delete-after When synchronizing, delete files on destination after transfering
+ --delete-before When synchronizing, delete files on destination before transfering
+ --delete-during When synchronizing, delete files during transfer (default)
+ --delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
+ --drive-auth-owner-only Only consider files owned by the authenticated user.
+ --drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
+ --drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
+ --drive-list-chunk int Size of listing chunk 100-1000. 0 to disable. (default 1000)
+ --drive-shared-with-me Only show files that are shared with me
+ --drive-skip-gdocs Skip google documents in all listings.
+ --drive-trashed-only Only show files that are in the trash
+ --drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
+ --dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
+ -n, --dry-run Do a trial run with no permanent changes
+ --dump-auth Dump HTTP headers with auth info
+ --dump-bodies Dump HTTP headers and bodies - may contain sensitive info
+ --dump-filters Dump the filters to the output
+ --dump-headers Dump HTTP headers - may contain sensitive info
+ --exclude stringArray Exclude files matching pattern
+ --exclude-from stringArray Read exclude patterns from file
+ --fast-list Use recursive list if available. Uses more memory but fewer transactions.
+ --files-from stringArray Read list of source-file names from file
+ -f, --filter stringArray Add a file-filtering rule
+ --filter-from stringArray Read filtering patterns from a file
+ --gcs-location string Default location for buckets (us|eu|asia|us-central1|us-east1|us-east4|us-west1|asia-east1|asia-noetheast1|asia-southeast1|australia-southeast1|europe-west1|europe-west2).
+ --gcs-storage-class string Default storage class for buckets (MULTI_REGIONAL|REGIONAL|STANDARD|NEARLINE|COLDLINE|DURABLE_REDUCED_AVAILABILITY).
+ --ignore-checksum Skip post copy check of checksums.
+ --ignore-existing Skip all files that exist on destination
+ --ignore-size Ignore size when skipping use mod-time or checksum.
+ -I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
+ --include stringArray Include files matching pattern
+ --include-from stringArray Read include patterns from file
+ --local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
+ --log-file string Log everything to this file
+ --log-level string Log level DEBUG|INFO|NOTICE|ERROR (default "NOTICE")
+ --low-level-retries int Number of low level retries to do. (default 10)
+ --max-age string Don't transfer any file older than this in s or suffix ms|s|m|h|d|w|M|y
+ --max-depth int If set limits the recursion depth to this. (default -1)
+ --max-size int Don't transfer any file larger than this in k or suffix b|k|M|G (default off)
+ --memprofile string Write memory profile to file
+ --min-age string Don't transfer any file younger than this in s or suffix ms|s|m|h|d|w|M|y
+ --min-size int Don't transfer any file smaller than this in k or suffix b|k|M|G (default off)
+ --modify-window duration Max time diff to be considered the same (default 1ns)
+ --no-check-certificate Do not verify the server SSL certificate. Insecure.
+ --no-gzip-encoding Don't set Accept-Encoding: gzip.
+ --no-traverse Don't traverse destination file system on copy.
+ --no-update-modtime Don't update destination mod-time if files identical.
+ --old-sync-method Deprecated - use --fast-list instead
+ -x, --one-file-system Don't cross filesystem boundaries.
+ --onedrive-chunk-size int Above this size files will be chunked - must be multiple of 320k. (default 10M)
+ --onedrive-upload-cutoff int Cutoff for switching to chunked upload - must be <= 100MB (default 10M)
+ -q, --quiet Print as little stuff as possible
+ --retries int Retry operations this many times if they fail (default 3)
+ --s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
+ --s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
+ --size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
+ --stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
+ --stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
+ --stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
+ --suffix string Suffix for use with --backup-dir.
+ --swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
+ --syslog Use Syslog for logging
+ --syslog-facility string Facility for syslog, eg KERN,USER,... (default "DAEMON")
+ --timeout duration IO idle timeout (default 5m0s)
+ --tpslimit float Limit HTTP transactions per second to this.
+ --tpslimit-burst int Max burst of transactions for --tpslimit. (default 1)
+ --track-renames When synchronizing, track file renames and do a server side move if possible
+ --transfers int Number of file transfers to run in parallel. (default 4)
+ -u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
+ -v, --verbose count[=-1] Print lots more stuff (repeat for more)
+```
+
+### SEE ALSO
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
+
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/content/commands/rclone_version.md b/docs/content/commands/rclone_version.md
index 38ae5a4ed..615ae8482 100644
--- a/docs/content/commands/rclone_version.md
+++ b/docs/content/commands/rclone_version.md
@@ -1,5 +1,5 @@
---
-date: 2017-07-22T18:15:25+01:00
+date: 2017-09-30T14:20:12+01:00
title: "rclone version"
slug: rclone_version
url: /commands/rclone_version/
@@ -14,7 +14,13 @@ Show the version number.
Show the version number.
```
-rclone version
+rclone version [flags]
+```
+
+### Options
+
+```
+ -h, --help help for version
```
### Options inherited from parent commands
@@ -23,11 +29,16 @@ rclone version
--acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
--acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
--ask-password Allow prompt for password for encrypted configuration. (default true)
+ --azureblob-chunk-size int Upload chunk size. Must fit in memory. (default 4M)
+ --azureblob-upload-cutoff int Cutoff for switching to chunked upload (default 256M)
--b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
+ --b2-hard-delete Permanently delete files on remote removal, otherwise hide files.
--b2-test-mode string A flag string for X-Bz-Test-Mode header.
--b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
--b2-versions Include old versions in directory listings.
--backup-dir string Make backups into hierarchy based in DIR.
+ --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name.
+ --box-upload-cutoff int Cutoff for switching to multipart upload (default 50M)
--buffer-size int Buffer size when copying files. (default 16M)
--bwlimit BwTimetable Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
--checkers int Number of checkers to run in parallel. (default 8)
@@ -41,6 +52,7 @@ rclone version
--delete-before When synchronizing, delete files on destination before transfering
--delete-during When synchronizing, delete files during transfer (default)
--delete-excluded Delete files on dest excluded from sync
+ --disable string Disable a comma separated list of features. Use help to see a list.
--drive-auth-owner-only Only consider files owned by the authenticated user.
--drive-chunk-size int Upload chunk size. Must a power of 2 >= 256k. (default 8M)
--drive-formats string Comma separated list of preferred formats for downloading Google docs. (default "docx,xlsx,pptx,svg")
@@ -49,7 +61,7 @@ rclone version
--drive-skip-gdocs Skip google documents in all listings.
--drive-trashed-only Only show files that are in the trash
--drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of deleting permanently.
+ --drive-use-trash Send files to the trash instead of deleting permanently. (default true)
--dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
-n, --dry-run Do a trial run with no permanent changes
--dump-auth Dump HTTP headers with auth info
@@ -68,6 +80,7 @@ rclone version
--ignore-existing Skip all files that exist on destination
--ignore-size Ignore size when skipping use mod-time or checksum.
-I, --ignore-times Don't skip files that match size and time - transfer all files
+ --immutable Do not modify files. Fail if existing files have been modified.
--include stringArray Include files matching pattern
--include-from stringArray Read include patterns from file
--local-no-unicode-normalization Don't apply unicode normalization to paths and filenames
@@ -94,9 +107,11 @@ rclone version
--s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
--s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
--size-only Skip based on size only, not mod-time or checksum
+ --skip-links Don't warn about skipped symlinks.
--stats duration Interval between printing stats, e.g 500ms, 60s, 5m. (0 to disable) (default 1m0s)
--stats-log-level string Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
--stats-unit string Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
+ --streaming-upload-cutoff int Cutoff for switching to chunked upload if file size is unknown. Upload starts after reaching cutoff or when file ends. (default 100k)
--suffix string Suffix for use with --backup-dir.
--swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
--syslog Use Syslog for logging
@@ -107,10 +122,11 @@ rclone version
--track-renames When synchronizing, track file renames and do a server side move if possible
--transfers int Number of file transfers to run in parallel. (default 4)
-u, --update Skip files that are newer on the destination.
+ --user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.38-001-gda4e1b84")
-v, --verbose count[=-1] Print lots more stuff (repeat for more)
```
### SEE ALSO
-* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.37
+* [rclone](/commands/rclone/) - Sync files and directories to and from local and remote object stores - v1.38-001-gda4e1b84
-###### Auto generated by spf13/cobra on 22-Jul-2017
+###### Auto generated by spf13/cobra on 30-Sep-2017
diff --git a/docs/layouts/shortcodes/version.html b/docs/layouts/shortcodes/version.html
index 5281a274b..f3e194118 100644
--- a/docs/layouts/shortcodes/version.html
+++ b/docs/layouts/shortcodes/version.html
@@ -1 +1 @@
-v1.37
+v1.38
\ No newline at end of file
diff --git a/fs/version.go b/fs/version.go
index d8bdba2fc..b1744b0f1 100644
--- a/fs/version.go
+++ b/fs/version.go
@@ -1,4 +1,4 @@
package fs
// Version of rclone
-var Version = "v1.37-DEV"
+var Version = "v1.38"
diff --git a/rclone.1 b/rclone.1
index f126ba139..d04013702 100644
--- a/rclone.1
+++ b/rclone.1
@@ -1,40 +1,62 @@
.\"t
.\" Automatically generated by Pandoc 1.17.2
.\"
-.TH "rclone" "1" "Jul 22, 2017" "User Manual" ""
+.TH "rclone" "1" "Sep 30, 2017" "User Manual" ""
.hy
.SH Rclone
.PP
[IMAGE: Logo (https://rclone.org/img/rclone-120x120.png)] (https://rclone.org/)
.PP
Rclone is a command line program to sync files and directories to and
-from
+from:
.IP \[bu] 2
-Google Drive
+Amazon Drive
.IP \[bu] 2
Amazon S3
.IP \[bu] 2
-Openstack Swift / Rackspace cloud files / Memset Memstore
+Backblaze B2
+.IP \[bu] 2
+Box
+.IP \[bu] 2
+Ceph
+.IP \[bu] 2
+Dreamhost
.IP \[bu] 2
Dropbox
.IP \[bu] 2
+FTP
+.IP \[bu] 2
Google Cloud Storage
.IP \[bu] 2
-Amazon Drive
+Google Drive
.IP \[bu] 2
-Microsoft OneDrive
+HTTP
.IP \[bu] 2
Hubic
.IP \[bu] 2
-Backblaze B2
+Memset Memstore
.IP \[bu] 2
-Yandex Disk
+Microsoft Azure Blob Storage
+.IP \[bu] 2
+Microsoft OneDrive
+.IP \[bu] 2
+Minio
+.IP \[bu] 2
+OVH
+.IP \[bu] 2
+Openstack Swift
+.IP \[bu] 2
+Oracle Cloud Storage
+.IP \[bu] 2
+QingStor
+.IP \[bu] 2
+Rackspace Cloud Files
.IP \[bu] 2
SFTP
.IP \[bu] 2
-FTP
+Wasabi
.IP \[bu] 2
-HTTP
+Yandex Disk
.IP \[bu] 2
The local filesystem
.PP
@@ -153,10 +175,14 @@ You will be prompted for your password.
.IP
.nf
\f[C]
+sudo\ mkdir\ \-p\ /usr/local/bin
sudo\ mv\ rclone\ /usr/local/bin/
\f[]
.fi
.PP
+(the \f[C]mkdir\f[] command is safe to run, even if the directory
+already exists).
+.PP
Remove the leftover files.
.IP
.nf
@@ -212,85 +238,6 @@ add the role to the hosts you want rclone installed to:
\ \ \ \ \ \ \ \ \ \ \-\ rclone
\f[]
.fi
-.SS Installation with snap
-.SS Quickstart
-.IP \[bu] 2
-install Snapd on your distro using the instructions below
-.IP \[bu] 2
-sudo snap install rclone \-\-classic
-.IP \[bu] 2
-Run \f[C]rclone\ config\f[] to setup.
-See rclone config docs (https://rclone.org/docs/) for more details.
-.PP
-See below for how to install snapd if it isn\[aq]t already installed
-.SS Arch
-.IP
-.nf
-\f[C]
-sudo\ pacman\ \-S\ snapd
-\f[]
-.fi
-.PP
-enable the snapd systemd service:
-.IP
-.nf
-\f[C]
-sudo\ systemctl\ enable\ \-\-now\ snapd.socket
-\f[]
-.fi
-.SS Debian / Ubuntu
-.IP
-.nf
-\f[C]
-sudo\ apt\ install\ snapd
-\f[]
-.fi
-.SS Fedora
-.IP
-.nf
-\f[C]
-sudo\ dnf\ copr\ enable\ zyga/snapcore
-sudo\ dnf\ install\ snapd
-\f[]
-.fi
-.PP
-enable the snapd systemd service:
-.IP
-.nf
-\f[C]
-sudo\ systemctl\ enable\ \-\-now\ snapd.service
-\f[]
-.fi
-.PP
-SELinux support is in beta, so currently:
-.IP
-.nf
-\f[C]
-sudo\ setenforce\ 0
-\f[]
-.fi
-.PP
-to persist, edit \f[C]/etc/selinux/config\f[] to set
-\f[C]SELINUX=permissive\f[] and reboot.
-.SS Gentoo
-.PP
-Install the gentoo\-snappy
-overlay (https://github.com/zyga/gentoo-snappy).
-.SS OpenEmbedded/Yocto
-.PP
-Install the snap meta
-layer (https://github.com/morphis/meta-snappy/blob/master/README.md).
-.SS openSUSE
-.IP
-.nf
-\f[C]
-sudo\ zypper\ addrepo\ https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_42.2/\ snappy
-sudo\ zypper\ install\ snapd
-\f[]
-.fi
-.SS OpenWrt
-.PP
-Enable the snap\-openwrt feed.
.SS Configure
.PP
First, you\[aq]ll need to configure rclone.
@@ -310,36 +257,42 @@ rclone\ config
.PP
See the following for detailed instructions for
.IP \[bu] 2
-Google Drive (https://rclone.org/drive/)
+Amazon Drive (https://rclone.org/amazonclouddrive/)
.IP \[bu] 2
Amazon S3 (https://rclone.org/s3/)
.IP \[bu] 2
-Swift / Rackspace Cloudfiles / Memset
-Memstore (https://rclone.org/swift/)
+Backblaze B2 (https://rclone.org/b2/)
+.IP \[bu] 2
+Box (https://rclone.org/box/)
+.IP \[bu] 2
+Crypt (https://rclone.org/crypt/) \- to encrypt other remotes
.IP \[bu] 2
Dropbox (https://rclone.org/dropbox/)
.IP \[bu] 2
-Google Cloud Storage (https://rclone.org/googlecloudstorage/)
+FTP (https://rclone.org/ftp/)
.IP \[bu] 2
-Local filesystem (https://rclone.org/local/)
+Google Cloud Storage (https://rclone.org/googlecloudstorage/)
.IP \[bu] 2
-Amazon Drive (https://rclone.org/amazonclouddrive/)
+Google Drive (https://rclone.org/drive/)
.IP \[bu] 2
-Backblaze B2 (https://rclone.org/b2/)
+HTTP (https://rclone.org/http/)
.IP \[bu] 2
Hubic (https://rclone.org/hubic/)
.IP \[bu] 2
+Microsoft Azure Blob Storage (https://rclone.org/azureblob/)
+.IP \[bu] 2
Microsoft OneDrive (https://rclone.org/onedrive/)
.IP \[bu] 2
-Yandex Disk (https://rclone.org/yandex/)
+Openstack Swift / Rackspace Cloudfiles / Memset
+Memstore (https://rclone.org/swift/)
.IP \[bu] 2
-SFTP (https://rclone.org/sftp/)
+QingStor (https://rclone.org/qingstor/)
.IP \[bu] 2
-FTP (https://rclone.org/ftp/)
+SFTP (https://rclone.org/sftp/)
.IP \[bu] 2
-HTTP (https://rclone.org/http/)
+Yandex Disk (https://rclone.org/yandex/)
.IP \[bu] 2
-Crypt (https://rclone.org/crypt/) \- to encrypt other remotes
+The local filesystem (https://rclone.org/local/)
.SS Usage
.PP
Rclone syncs a directory tree from one storage system to another.
@@ -374,11 +327,29 @@ rclone\ sync\ /local/path\ remote:path\ #\ syncs\ /local/path\ to\ the\ remote
Enter an interactive configuration session.
.SS Synopsis
.PP
-Enter an interactive configuration session.
+\f[C]rclone\ config\f[] enters an interactive configuration sessions
+where you can setup new remotes and manage existing ones.
+You may also set or remove a password to protect your configuration.
+.PP
+Additional functions:
+.IP \[bu] 2
+\f[C]rclone\ config\ edit\f[] \[en] same as above
+.IP \[bu] 2
+\f[C]rclone\ config\ file\f[] \[en] show path of configuration file in
+use
+.IP \[bu] 2
+\f[C]rclone\ config\ show\f[] \[en] print (decrypted) config file
.IP
.nf
\f[C]
-rclone\ config
+rclone\ config\ [function]\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ config
\f[]
.fi
.SS rclone copy
@@ -444,7 +415,14 @@ lists the destination directory or not.
.IP
.nf
\f[C]
-rclone\ copy\ source:path\ dest:path
+rclone\ copy\ source:path\ dest:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ copy
\f[]
.fi
.SS rclone sync
@@ -475,7 +453,14 @@ contents go there.
.IP
.nf
\f[C]
-rclone\ sync\ source:path\ dest:path
+rclone\ sync\ source:path\ dest:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ sync
\f[]
.fi
.SS rclone move
@@ -502,7 +487,14 @@ original (if no errors on copy) in \f[C]source:path\f[].
.IP
.nf
\f[C]
-rclone\ move\ source:path\ dest:path
+rclone\ move\ source:path\ dest:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ move
\f[]
.fi
.SS rclone delete
@@ -538,7 +530,14 @@ delete all files bigger than 100MBytes.
.IP
.nf
\f[C]
-rclone\ delete\ remote:path
+rclone\ delete\ remote:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ delete
\f[]
.fi
.SS rclone purge
@@ -553,7 +552,14 @@ Use \f[C]delete\f[] if you want to selectively delete files.
.IP
.nf
\f[C]
-rclone\ purge\ remote:path
+rclone\ purge\ remote:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ purge
\f[]
.fi
.SS rclone mkdir
@@ -565,7 +571,14 @@ Make the path if it doesn\[aq]t already exist.
.IP
.nf
\f[C]
-rclone\ mkdir\ remote:path
+rclone\ mkdir\ remote:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ mkdir
\f[]
.fi
.SS rclone rmdir
@@ -579,7 +592,14 @@ that.
.IP
.nf
\f[C]
-rclone\ rmdir\ remote:path
+rclone\ rmdir\ remote:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ rmdir
\f[]
.fi
.SS rclone check
@@ -611,6 +631,7 @@ rclone\ check\ source:path\ dest:path\ [flags]
.nf
\f[C]
\ \ \ \ \ \ \-\-download\ \ \ Check\ by\ downloading\ rather\ than\ with\ hash.
+\ \ \-h,\ \-\-help\ \ \ \ \ \ \ help\ for\ check
\f[]
.fi
.SS rclone ls
@@ -622,7 +643,14 @@ List all the objects in the path with size and path.
.IP
.nf
\f[C]
-rclone\ ls\ remote:path
+rclone\ ls\ remote:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ ls
\f[]
.fi
.SS rclone lsd
@@ -634,7 +662,14 @@ List all directories/containers/buckets in the path.
.IP
.nf
\f[C]
-rclone\ lsd\ remote:path
+rclone\ lsd\ remote:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ lsd
\f[]
.fi
.SS rclone lsl
@@ -646,7 +681,14 @@ List all the objects path with modification time, size and path.
.IP
.nf
\f[C]
-rclone\ lsl\ remote:path
+rclone\ lsl\ remote:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ lsl
\f[]
.fi
.SS rclone md5sum
@@ -659,7 +701,14 @@ This is in the same format as the standard md5sum tool produces.
.IP
.nf
\f[C]
-rclone\ md5sum\ remote:path
+rclone\ md5sum\ remote:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ md5sum
\f[]
.fi
.SS rclone sha1sum
@@ -672,7 +721,14 @@ This is in the same format as the standard sha1sum tool produces.
.IP
.nf
\f[C]
-rclone\ sha1sum\ remote:path
+rclone\ sha1sum\ remote:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ sha1sum
\f[]
.fi
.SS rclone size
@@ -684,7 +740,14 @@ Prints the total size and number of objects in remote:path.
.IP
.nf
\f[C]
-rclone\ size\ remote:path
+rclone\ size\ remote:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ size
\f[]
.fi
.SS rclone version
@@ -696,7 +759,14 @@ Show the version number.
.IP
.nf
\f[C]
-rclone\ version
+rclone\ version\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ version
\f[]
.fi
.SS rclone cleanup
@@ -710,7 +780,14 @@ Not supported by all remotes.
.IP
.nf
\f[C]
-rclone\ cleanup\ remote:path
+rclone\ cleanup\ remote:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ cleanup
\f[]
.fi
.SS rclone dedupe
@@ -718,10 +795,14 @@ rclone\ cleanup\ remote:path
Interactively find duplicate files delete/rename them.
.SS Synopsis
.PP
-By default \f[C]dedup\f[] interactively finds duplicate files and offers
-to delete all but one or rename them to be different.
+By default \f[C]dedupe\f[] interactively finds duplicate files and
+offers to delete all but one or rename them to be different.
Only useful with Google Drive which can have duplicate file names.
.PP
+In the first pass it will merge directories with the same name.
+It will do this iteratively until all the identical directories have
+been merged.
+.PP
The \f[C]dedupe\f[] command will delete all but one of any identical
(same md5sum) files it finds without confirmation.
This means that for most duplicated files the \f[C]dedupe\f[] command
@@ -837,6 +918,7 @@ rclone\ dedupe\ [mode]\ remote:path\ [flags]
.nf
\f[C]
\ \ \ \ \ \ \-\-dedupe\-mode\ string\ \ \ Dedupe\ mode\ interactive|skip|first|newest|oldest|rename.\ (default\ "interactive")
+\ \ \-h,\ \-\-help\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ help\ for\ dedupe
\f[]
.fi
.SS rclone authorize
@@ -850,7 +932,14 @@ browser \- use as instructed by rclone config.
.IP
.nf
\f[C]
-rclone\ authorize
+rclone\ authorize\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ authorize
\f[]
.fi
.SS rclone cat
@@ -902,6 +991,7 @@ rclone\ cat\ remote:path\ [flags]
\ \ \ \ \ \ \-\-count\ int\ \ \ \ Only\ print\ N\ characters.\ (default\ \-1)
\ \ \ \ \ \ \-\-discard\ \ \ \ \ \ Discard\ the\ output\ instead\ of\ printing.
\ \ \ \ \ \ \-\-head\ int\ \ \ \ \ Only\ print\ the\ first\ N\ characters.
+\ \ \-h,\ \-\-help\ \ \ \ \ \ \ \ \ help\ for\ cat
\ \ \ \ \ \ \-\-offset\ int\ \ \ Start\ printing\ at\ offset\ N\ (or\ from\ end\ if\ \-ve).
\ \ \ \ \ \ \-\-tail\ int\ \ \ \ \ Only\ print\ the\ last\ N\ characters.
\f[]
@@ -947,7 +1037,14 @@ It doesn\[aq]t delete files from the destination.
.IP
.nf
\f[C]
-rclone\ copyto\ source:path\ dest:path
+rclone\ copyto\ source:path\ dest:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ copyto
\f[]
.fi
.SS rclone cryptcheck
@@ -988,7 +1085,43 @@ After it has run it will log the status of the encryptedremote:.
.IP
.nf
\f[C]
-rclone\ cryptcheck\ remote:path\ cryptedremote:path
+rclone\ cryptcheck\ remote:path\ cryptedremote:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ cryptcheck
+\f[]
+.fi
+.SS rclone cryptdecode
+.PP
+Cryptdecode returns unencrypted file names.
+.SS Synopsis
+.PP
+rclone cryptdecode returns unencrypted file names when provided with a
+list of encrypted file names.
+List limit is 10 items.
+.PP
+use it like this
+.IP
+.nf
+\f[C]
+rclone\ cryptdecode\ encryptedremote:\ encryptedfilename1\ encryptedfilename2
+\f[]
+.fi
+.IP
+.nf
+\f[C]
+rclone\ cryptdecode\ encryptedremote:\ encryptedfilename\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ cryptdecode
\f[]
.fi
.SS rclone dbhashsum
@@ -1003,11 +1136,32 @@ The output is in the same format as md5sum and sha1sum.
.IP
.nf
\f[C]
-rclone\ dbhashsum\ remote:path
+rclone\ dbhashsum\ remote:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ dbhashsum
\f[]
.fi
.SS rclone genautocomplete
.PP
+Output completion script for a given shell.
+.SS Synopsis
+.PP
+Generates a shell completion script for rclone.
+Run with \-\-help to list the supported shells.
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ genautocomplete
+\f[]
+.fi
+.SS rclone genautocomplete bash
+.PP
Output bash completion script for rclone.
.SS Synopsis
.PP
@@ -1018,7 +1172,7 @@ need to be run with sudo or as root, eg
.IP
.nf
\f[C]
-sudo\ rclone\ genautocomplete
+sudo\ rclone\ genautocomplete\ bash
\f[]
.fi
.PP
@@ -1035,10 +1189,56 @@ If you supply a command line argument the script will be written there.
.IP
.nf
\f[C]
-rclone\ genautocomplete\ [output_file]
+rclone\ genautocomplete\ bash\ [output_file]\ [flags]
\f[]
.fi
-.SS rclone gendocs
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ bash
+\f[]
+.fi
+.SS rclone genautocomplete zsh
+.PP
+Output zsh completion script for rclone.
+.SS Synopsis
+.PP
+Generates a zsh autocompletion script for rclone.
+.PP
+This writes to /usr/share/zsh/vendor\-completions/_rclone by default so
+will probably need to be run with sudo or as root, eg
+.IP
+.nf
+\f[C]
+sudo\ rclone\ genautocomplete\ zsh
+\f[]
+.fi
+.PP
+Logout and login again to use the autocompletion scripts, or source them
+directly
+.IP
+.nf
+\f[C]
+autoload\ \-U\ compinit\ &&\ compinit
+\f[]
+.fi
+.PP
+If you supply a command line argument the script will be written there.
+.IP
+.nf
+\f[C]
+rclone\ genautocomplete\ zsh\ [output_file]\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ zsh
+\f[]
+.fi
+.SS rclone gendocs
.PP
Output markdown docs for rclone to the directory supplied.
.SS Synopsis
@@ -1078,6 +1278,7 @@ rclone\ listremotes\ [flags]
.IP
.nf
\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ listremotes
\ \ \-l,\ \-\-long\ \ \ Show\ the\ type\ as\ well\ as\ names.
\f[]
.fi
@@ -1117,6 +1318,7 @@ rclone\ lsjson\ remote:path\ [flags]
.nf
\f[C]
\ \ \ \ \ \ \-\-hash\ \ \ \ \ \ \ \ \ Include\ hashes\ in\ the\ output\ (may\ take\ longer).
+\ \ \-h,\ \-\-help\ \ \ \ \ \ \ \ \ help\ for\ lsjson
\ \ \ \ \ \ \-\-no\-modtime\ \ \ Don\[aq]t\ read\ the\ modification\ time\ (can\ speed\ things\ up).
\ \ \-R,\ \-\-recursive\ \ \ \ Recurse\ into\ the\ listing.
\f[]
@@ -1166,6 +1368,32 @@ fusermount\ \-u\ /path/to/local/mount
umount\ /path/to/local/mount
\f[]
.fi
+.SS Installing on Windows
+.PP
+To run rclone mount on Windows, you will need to download and install
+WinFsp (http://www.secfs.net/winfsp/).
+.PP
+WinFsp is an open source (https://github.com/billziss-gh/winfsp) Windows
+File System Proxy which makes it easy to write user space file systems
+for Windows.
+It provides a FUSE emulation layer which rclone uses combination with
+cgofuse (https://github.com/billziss-gh/cgofuse).
+Both of these packages are by Bill Zissimopoulos who was very helpful
+during the implementation of rclone mount for Windows.
+.SS Windows caveats
+.PP
+Note that drives created as Administrator are not visible by other
+accounts (including the account that was elevated as Administrator).
+So if you start a Windows drive from an Administrative Command Prompt
+and then try to access the same drive from Explorer (which does not run
+as Administrator), you will not be able to see the new drive.
+.PP
+The easiest way around this is to start the drive from a normal command
+prompt.
+It is also possible to start a drive from the SYSTEM account (using the
+WinFsp.Launcher
+infrastructure (https://github.com/billziss-gh/winfsp/wiki/WinFsp-Service-Architecture))
+which creates drives accessible for everyone on the system.
.SS Limitations
.PP
This can only write files seqentially, it can only seek when reading.
@@ -1215,17 +1443,6 @@ like this:
kill\ \-SIGHUP\ $(pidof\ rclone)
\f[]
.fi
-.SS Bugs
-.IP \[bu] 2
-All the remotes should work for read, but some may not for write
-.RS 2
-.IP \[bu] 2
-those which need to know the size in advance won\[aq]t \- eg B2
-.IP \[bu] 2
-maybe should pass in size as \-1 to mean work it out
-.IP \[bu] 2
-Or put in an an upload cache to cache the files on disk first
-.RE
.IP
.nf
\f[C]
@@ -1244,6 +1461,7 @@ rclone\ mount\ remote:path\ /path/to/mountpoint\ [flags]
\ \ \ \ \ \ \-\-dir\-cache\-time\ duration\ \ \ Time\ to\ cache\ directory\ entries\ for.\ (default\ 5m0s)
\ \ \ \ \ \ \-\-fuse\-flag\ stringArray\ \ \ \ \ Flags\ or\ arguments\ to\ be\ passed\ direct\ to\ libfuse/WinFsp.\ Repeat\ if\ required.
\ \ \ \ \ \ \-\-gid\ uint32\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Override\ the\ gid\ field\ set\ by\ the\ filesystem.\ (default\ 502)
+\ \ \-h,\ \-\-help\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ help\ for\ mount
\ \ \ \ \ \ \-\-max\-read\-ahead\ int\ \ \ \ \ \ \ \ The\ number\ of\ bytes\ that\ can\ be\ prefetched\ for\ sequential\ reads.\ (default\ 128k)
\ \ \ \ \ \ \-\-no\-checksum\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Don\[aq]t\ compare\ checksums\ on\ up/download.
\ \ \ \ \ \ \-\-no\-modtime\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Don\[aq]t\ read/write\ the\ modification\ time\ (can\ speed\ things\ up).
@@ -1300,7 +1518,14 @@ src will be deleted on successful transfer.
.IP
.nf
\f[C]
-rclone\ moveto\ source:path\ dest:path
+rclone\ moveto\ source:path\ dest:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ moveto
\f[]
.fi
.SS rclone ncdu
@@ -1340,7 +1565,14 @@ files, but is useful as it stands.
.IP
.nf
\f[C]
-rclone\ ncdu\ remote:path
+rclone\ ncdu\ remote:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ ncdu
\f[]
.fi
.SS rclone obscure
@@ -1352,7 +1584,62 @@ Obscure password for use in the rclone.conf
.IP
.nf
\f[C]
-rclone\ obscure\ password
+rclone\ obscure\ password\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ obscure
+\f[]
+.fi
+.SS rclone rcat
+.PP
+Copies standard input to file on remote.
+.SS Synopsis
+.PP
+rclone rcat reads from standard input (stdin) and copies it to a single
+remote file.
+.IP
+.nf
+\f[C]
+echo\ "hello\ world"\ |\ rclone\ rcat\ remote:path/to/file
+ffmpeg\ \-\ |\ rclone\ rcat\ \-\-checksum\ remote:path/to/file
+\f[]
+.fi
+.PP
+If the remote file already exists, it will be overwritten.
+.PP
+rcat will try to upload small files in a single request, which is
+usually more efficient than the streaming/chunked upload endpoints,
+which use multiple requests.
+Exact behaviour depends on the remote.
+What is considered a small file may be set through
+\f[C]\-\-streaming\-upload\-cutoff\f[].
+Uploading only starts after the cutoff is reached or if the file ends
+before that.
+The data must fit into RAM.
+The cutoff needs to be small enough to adhere the limits of your remote,
+please see there.
+Generally speaking, setting this cutoff too high will decrease your
+performance.
+.PP
+Note that the upload can also not be retried because the data is not
+kept around until the upload succeeds.
+If you need to transfer a lot of data, you\[aq]re better off caching
+locally and then \f[C]rclone\ move\f[] it to the destination.
+.IP
+.nf
+\f[C]
+rclone\ rcat\ remote:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ rcat
\f[]
.fi
.SS rclone rmdirs
@@ -1369,7 +1656,80 @@ empty directories in.
.IP
.nf
\f[C]
-rclone\ rmdirs\ remote:path
+rclone\ rmdirs\ remote:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-h,\ \-\-help\ \ \ help\ for\ rmdirs
+\f[]
+.fi
+.SS rclone tree
+.PP
+List the contents of the remote in a tree like fashion.
+.SS Synopsis
+.PP
+rclone tree lists the contents of a remote in a similar way to the unix
+tree command.
+.PP
+For example
+.IP
+.nf
+\f[C]
+$\ rclone\ tree\ remote:path
+/
+├──\ file1
+├──\ file2
+├──\ file3
+└──\ subdir
+\ \ \ \ ├──\ file4
+\ \ \ \ └──\ file5
+
+1\ directories,\ 5\ files
+\f[]
+.fi
+.PP
+You can use any of the filtering options with the tree command (eg
+\-\-include and \-\-exclude).
+You can also use \-\-fast\-list.
+.PP
+The tree command has many options for controlling the listing which are
+compatible with the tree command.
+Note that not all of them have short options as they conflict with
+rclone\[aq]s short options.
+.IP
+.nf
+\f[C]
+rclone\ tree\ remote:path\ [flags]
+\f[]
+.fi
+.SS Options
+.IP
+.nf
+\f[C]
+\ \ \-a,\ \-\-all\ \ \ \ \ \ \ \ \ \ \ \ \ All\ files\ are\ listed\ (list\ .\ files\ too).
+\ \ \-C,\ \-\-color\ \ \ \ \ \ \ \ \ \ \ Turn\ colorization\ on\ always.
+\ \ \-d,\ \-\-dirs\-only\ \ \ \ \ \ \ List\ directories\ only.
+\ \ \ \ \ \ \-\-dirsfirst\ \ \ \ \ \ \ List\ directories\ before\ files\ (\-U\ disables).
+\ \ \ \ \ \ \-\-full\-path\ \ \ \ \ \ \ Print\ the\ full\ path\ prefix\ for\ each\ file.
+\ \ \-h,\ \-\-help\ \ \ \ \ \ \ \ \ \ \ \ help\ for\ tree
+\ \ \ \ \ \ \-\-human\ \ \ \ \ \ \ \ \ \ \ Print\ the\ size\ in\ a\ more\ human\ readable\ way.
+\ \ \ \ \ \ \-\-level\ int\ \ \ \ \ \ \ Descend\ only\ level\ directories\ deep.
+\ \ \-D,\ \-\-modtime\ \ \ \ \ \ \ \ \ Print\ the\ date\ of\ last\ modification.
+\ \ \-i,\ \-\-noindent\ \ \ \ \ \ \ \ Don\[aq]t\ print\ indentation\ lines.
+\ \ \ \ \ \ \-\-noreport\ \ \ \ \ \ \ \ Turn\ off\ file/directory\ count\ at\ end\ of\ tree\ listing.
+\ \ \-o,\ \-\-output\ string\ \ \ Output\ to\ file\ instead\ of\ stdout.
+\ \ \-p,\ \-\-protections\ \ \ \ \ Print\ the\ protections\ for\ each\ file.
+\ \ \-Q,\ \-\-quote\ \ \ \ \ \ \ \ \ \ \ Quote\ filenames\ with\ double\ quotes.
+\ \ \-s,\ \-\-size\ \ \ \ \ \ \ \ \ \ \ \ Print\ the\ size\ in\ bytes\ of\ each\ file.
+\ \ \ \ \ \ \-\-sort\ string\ \ \ \ \ Select\ sort:\ name,version,size,mtime,ctime.
+\ \ \ \ \ \ \-\-sort\-ctime\ \ \ \ \ \ Sort\ files\ by\ last\ status\ change\ time.
+\ \ \-t,\ \-\-sort\-modtime\ \ \ \ Sort\ files\ by\ last\ modification\ time.
+\ \ \-r,\ \-\-sort\-reverse\ \ \ \ Reverse\ the\ order\ of\ the\ sort.
+\ \ \-U,\ \-\-unsorted\ \ \ \ \ \ \ \ Leave\ files\ unsorted.
+\ \ \ \ \ \ \-\-version\ \ \ \ \ \ \ \ \ Sort\ files\ alphanumerically\ by\ version.
\f[]
.fi
.SS Copying single files
@@ -1573,6 +1933,13 @@ If running rclone from a script you might want to use today\[aq]s date
as the directory name passed to \f[C]\-\-backup\-dir\f[] to store the
old files, or you might want to pass \f[C]\-\-suffix\f[] with
today\[aq]s date.
+.SS \-\-bind string
+.PP
+Local address to bind to for outgoing connections.
+This can be an IPv4 address (1.2.3.4), an IPv6 address (1234::789A) or
+host name.
+If the host name doesn\[aq]t resolve or resoves to more than one IP
+address it will give an error.
.SS \-\-bwlimit=BANDWIDTH_SPEC
.PP
This option controls the bandwidth limit.
@@ -1695,6 +2062,34 @@ One of \f[C]interactive\f[], \f[C]skip\f[], \f[C]first\f[],
The default is \f[C]interactive\f[].
See the dedupe command for more information as to what these options
mean.
+.SS \-\-disable FEATURE,FEATURE,...
+.PP
+This disables a comma separated list of optional features.
+For example to disable server side move and server side copy use:
+.IP
+.nf
+\f[C]
+\-\-disable\ move,copy
+\f[]
+.fi
+.PP
+The features can be put in in any case.
+.PP
+To see a list of which features can be disabled use:
+.IP
+.nf
+\f[C]
+\-\-disable\ help
+\f[]
+.fi
+.PP
+See the overview features (/overview/#features) and optional
+features (/overview/#optional-features) to get an idea of which feature
+does what.
+.PP
+This flag can be useful for debugging and in exceptional circumstances
+(eg Google Drive limiting the total volume of Server Side Copies to
+100GB/day).
.SS \-n, \-\-dry\-run
.PP
Do a trial run with no permanent changes.
@@ -1740,6 +2135,29 @@ regardless of the state of files on the destination.
Normally rclone would skip any files that have the same modification
time and are the same size (or have the same checksum if using
\f[C]\-\-checksum\f[]).
+.SS \-\-immutable
+.PP
+Treat source and destination files as immutable and disallow
+modification.
+.PP
+With this option set, files will be created and deleted as requested,
+but existing files will never be updated.
+If an existing file does not match between the source and destination,
+rclone will give the error
+\f[C]Source\ and\ destination\ exist\ but\ do\ not\ match:\ immutable\ file\ modified\f[].
+.PP
+Note that only commands which transfer files (e.g.
+\f[C]sync\f[], \f[C]copy\f[], \f[C]move\f[]) are affected by this
+behavior, and only modification is disallowed.
+Files may still be deleted explicitly (e.g.
+\f[C]delete\f[], \f[C]purge\f[]) or implicitly (e.g.
+\f[C]sync\f[], \f[C]move\f[]).
+Use \f[C]copy\ \-\-immutable\f[] if it is desired to avoid deletion as
+well as modification.
+.PP
+This can be useful as an additional layer of protection for immutable or
+append\-only data sets (notably backup archives), where modification
+implies corruption and should not be propagated.
.SS \-\-log\-file=FILE
.PP
Log all of rclone\[aq]s output to FILE.
@@ -2207,6 +2625,9 @@ Useful for debugging only.
Dump HTTP headers and bodies \- may contain sensitive info.
Can be very verbose.
Useful for debugging only.
+.PP
+Note that the bodies are buffered in memory so don\[aq]t use this for
+enormous files.
.SS \-\-dump\-filters
.PP
Dump the filters to the output.
@@ -2834,11 +3255,13 @@ Prepare a file like this \f[C]filter\-file.txt\f[]
.IP
.nf
\f[C]
-#\ a\ sample\ exclude\ rule\ file
+#\ a\ sample\ filter\ rule\ file
\-\ secret*.jpg
+\ *.jpg
+\ *.png
+\ file2.avi
+\-\ /dir/Trash/**
++\ /dir/**
#\ exclude\ everything\ else
\-\ *
\f[]
@@ -2850,6 +3273,8 @@ The rules are processed in the order that they are defined.
This example will include all \f[C]jpg\f[] and \f[C]png\f[] files,
exclude any files matching \f[C]secret*.jpg\f[] and include
\f[C]file2.avi\f[].
+It will also include everything in the directory \f[C]dir\f[] at the
+root of the sync, except \f[C]dir/Trash\f[] which it will exclude.
Everything else will be excluded from the sync.
.SS \f[C]\-\-files\-from\f[] \- Read list of source\-file names
.PP
@@ -3059,17 +3484,17 @@ MIME Type
T}
_
T{
-Google Drive
+Amazon Drive
T}@T{
MD5
T}@T{
-Yes
-T}@T{
No
T}@T{
Yes
T}@T{
-R/W
+No
+T}@T{
+R
T}
T{
Amazon S3
@@ -3085,9 +3510,9 @@ T}@T{
R/W
T}
T{
-Openstack Swift
+Backblaze B2
T}@T{
-MD5
+SHA1
T}@T{
Yes
T}@T{
@@ -3098,6 +3523,19 @@ T}@T{
R/W
T}
T{
+Box
+T}@T{
+SHA1
+T}@T{
+Yes
+T}@T{
+Yes
+T}@T{
+No
+T}@T{
+\-
+T}
+T{
Dropbox
T}@T{
DBHASH †
@@ -3111,6 +3549,19 @@ T}@T{
\-
T}
T{
+FTP
+T}@T{
+\-
+T}@T{
+No
+T}@T{
+No
+T}@T{
+No
+T}@T{
+\-
+T}
+T{
Google Cloud Storage
T}@T{
MD5
@@ -3124,33 +3575,46 @@ T}@T{
R/W
T}
T{
-Amazon Drive
+Google Drive
T}@T{
MD5
T}@T{
+Yes
+T}@T{
No
T}@T{
Yes
T}@T{
+R/W
+T}
+T{
+HTTP
+T}@T{
+\-
+T}@T{
+No
+T}@T{
+No
+T}@T{
No
T}@T{
R
T}
T{
-Microsoft OneDrive
+Hubic
T}@T{
-SHA1
+MD5
T}@T{
Yes
T}@T{
-Yes
+No
T}@T{
No
T}@T{
-R
+R/W
T}
T{
-Hubic
+Microsoft Azure Blob Storage
T}@T{
MD5
T}@T{
@@ -3163,20 +3627,20 @@ T}@T{
R/W
T}
T{
-Backblaze B2
+Microsoft OneDrive
T}@T{
SHA1
T}@T{
Yes
T}@T{
-No
+Yes
T}@T{
No
T}@T{
-R/W
+R
T}
T{
-Yandex Disk
+Openstack Swift
T}@T{
MD5
T}@T{
@@ -3189,43 +3653,43 @@ T}@T{
R/W
T}
T{
-SFTP
+QingStor
T}@T{
-\-
+MD5
T}@T{
-Yes
+No
T}@T{
-Depends
+No
T}@T{
No
T}@T{
-\-
+R/W
T}
T{
-FTP
-T}@T{
-\-
+SFTP
T}@T{
-No
+MD5, SHA1 ‡
T}@T{
Yes
T}@T{
+Depends
+T}@T{
No
T}@T{
\-
T}
T{
-HTTP
-T}@T{
-\-
+Yandex Disk
T}@T{
-No
+MD5
T}@T{
Yes
T}@T{
No
T}@T{
-R
+No
+T}@T{
+R/W
T}
T{
The local filesystem
@@ -3244,19 +3708,20 @@ T}
.SS Hash
.PP
The cloud storage system supports various hash types of the objects.
-.PD 0
-.P
-.PD
The hashes are used when transferring data as an integrity check and can
be specifically used with the \f[C]\-\-checksum\f[] flag in syncs and in
the \f[C]check\f[] command.
.PP
-To use the checksum checks between filesystems they must support a
-common hash type.
+To use the verify checksums when transferring between cloud storage
+systems they must support a common hash type.
.PP
† Note that Dropbox supports its own custom
hash (https://www.dropbox.com/developers/reference/content-hash).
This is an SHA256 sum of all the 4MB block SHA256s.
+.PP
+‡ SFTP supports checksums if the same login has shell access and
+\f[C]md5sum\f[] or \f[C]sha1sum\f[] as well as \f[C]echo\f[] are in the
+remote\[aq]s PATH.
.SS ModTime
.PP
The cloud storage system supports setting modification times on objects.
@@ -3326,7 +3791,7 @@ more efficient.
.PP
.TS
tab(@);
-l c c c c c c.
+l c c c c c c c.
T{
Name
T}@T{
@@ -3341,14 +3806,16 @@ T}@T{
CleanUp
T}@T{
ListR
+T}@T{
+StreamUpload
T}
_
T{
-Google Drive
+Amazon Drive
T}@T{
Yes
T}@T{
-Yes
+No
T}@T{
Yes
T}@T{
@@ -3357,6 +3824,8 @@ T}@T{
No #575 (https://github.com/ncw/rclone/issues/575)
T}@T{
No
+T}@T{
+No
T}
T{
Amazon S3
@@ -3372,13 +3841,13 @@ T}@T{
No
T}@T{
Yes
+T}@T{
+Yes
T}
T{
-Openstack Swift
-T}@T{
-Yes †
+Backblaze B2
T}@T{
-Yes
+No
T}@T{
No
T}@T{
@@ -3387,9 +3856,13 @@ T}@T{
No
T}@T{
Yes
+T}@T{
+Yes
+T}@T{
+Yes
T}
T{
-Dropbox
+Box
T}@T{
Yes
T}@T{
@@ -3402,39 +3875,62 @@ T}@T{
No #575 (https://github.com/ncw/rclone/issues/575)
T}@T{
No
+T}@T{
+Yes
T}
T{
-Google Cloud Storage
+Dropbox
T}@T{
Yes
T}@T{
Yes
T}@T{
-No
+Yes
T}@T{
-No
+Yes
+T}@T{
+No #575 (https://github.com/ncw/rclone/issues/575)
T}@T{
No
T}@T{
Yes
T}
T{
-Amazon Drive
+FTP
+T}@T{
+No
+T}@T{
+No
T}@T{
Yes
T}@T{
+Yes
+T}@T{
+No
+T}@T{
No
T}@T{
Yes
+T}
+T{
+Google Cloud Storage
T}@T{
Yes
T}@T{
-No #575 (https://github.com/ncw/rclone/issues/575)
+Yes
+T}@T{
+No
+T}@T{
+No
T}@T{
No
+T}@T{
+Yes
+T}@T{
+Yes
T}
T{
-Microsoft OneDrive
+Google Drive
T}@T{
Yes
T}@T{
@@ -3442,9 +3938,28 @@ Yes
T}@T{
Yes
T}@T{
-No #197 (https://github.com/ncw/rclone/issues/197)
+Yes
T}@T{
-No #575 (https://github.com/ncw/rclone/issues/575)
+Yes
+T}@T{
+No
+T}@T{
+Yes
+T}
+T{
+HTTP
+T}@T{
+No
+T}@T{
+No
+T}@T{
+No
+T}@T{
+No
+T}@T{
+No
+T}@T{
+No
T}@T{
No
T}
@@ -3462,9 +3977,15 @@ T}@T{
No
T}@T{
Yes
+T}@T{
+Yes
T}
T{
-Backblaze B2
+Microsoft Azure Blob Storage
+T}@T{
+Yes
+T}@T{
+Yes
T}@T{
No
T}@T{
@@ -3472,14 +3993,31 @@ No
T}@T{
No
T}@T{
+Yes
+T}@T{
No
+T}
+T{
+Microsoft OneDrive
+T}@T{
+Yes
T}@T{
Yes
T}@T{
Yes
+T}@T{
+No #197 (https://github.com/ncw/rclone/issues/197)
+T}@T{
+No #575 (https://github.com/ncw/rclone/issues/575)
+T}@T{
+No
+T}@T{
+No
T}
T{
-Yandex Disk
+Openstack Swift
+T}@T{
+Yes †
T}@T{
Yes
T}@T{
@@ -3489,27 +4027,29 @@ No
T}@T{
No
T}@T{
-No #575 (https://github.com/ncw/rclone/issues/575)
+Yes
T}@T{
Yes
T}
T{
-SFTP
-T}@T{
-No
+QingStor
T}@T{
No
T}@T{
Yes
T}@T{
-Yes
+No
+T}@T{
+No
T}@T{
No
T}@T{
+Yes
+T}@T{
No
T}
T{
-FTP
+SFTP
T}@T{
No
T}@T{
@@ -3522,11 +4062,13 @@ T}@T{
No
T}@T{
No
+T}@T{
+Yes
T}
T{
-HTTP
+Yandex Disk
T}@T{
-No
+Yes
T}@T{
No
T}@T{
@@ -3534,9 +4076,11 @@ No
T}@T{
No
T}@T{
-No
+Yes
T}@T{
-No
+Yes
+T}@T{
+Yes
T}
T{
The local filesystem
@@ -3552,6 +4096,8 @@ T}@T{
No
T}@T{
No
+T}@T{
+Yes
T}
.TE
.SS Purge
@@ -3603,17 +4149,45 @@ The remote supports a recursive list to list all the contents beneath a
directory quickly.
This enables the \f[C]\-\-fast\-list\f[] flag to work.
See the rclone docs (/docs/#fast-list) for more details.
-.SS Google Drive
+.SS StreamUpload
.PP
-Paths are specified as \f[C]drive:path\f[]
+Some remotes allow files to be uploaded without knowing the file size in
+advance.
+This allows certain operations to work without spooling the file to
+local disk first, e.g.
+\f[C]rclone\ rcat\f[].
+.SS Amazon Drive
.PP
-Drive paths may be as deep as required, eg
-\f[C]drive:directory/subdirectory\f[].
+Paths are specified as \f[C]remote:path\f[]
.PP
-The initial setup for drive involves getting a token from Google drive
+Paths may be as deep as required, eg
+\f[C]remote:directory/subdirectory\f[].
+.PP
+The initial setup for Amazon Drive involves getting a token from Amazon
which you need to do in your browser.
\f[C]rclone\ config\f[] walks you through it.
.PP
+The configuration process for Amazon Drive may involve using an oauth
+proxy (https://github.com/ncw/oauthproxy).
+This is used to keep the Amazon credentials out of the source code.
+The proxy runs in Google\[aq]s very secure App Engine environment and
+doesn\[aq]t store any credentials which pass through it.
+.PP
+\f[B]NB\f[] rclone doesn\[aq]t not currently have its own Amazon Drive
+credentials (see the
+forum (https://forum.rclone.org/t/rclone-has-been-banned-from-amazon-drive/)
+for why) so you will either need to have your own \f[C]client_id\f[] and
+\f[C]client_secret\f[] with Amazon Drive, or use a a third party ouath
+proxy in which case you will need to enter \f[C]client_id\f[],
+\f[C]client_secret\f[], \f[C]auth_url\f[] and \f[C]token_url\f[].
+.PP
+Note also if you are not using Amazon\[aq]s \f[C]auth_url\f[] and
+\f[C]token_url\f[], (ie you filled in something for those) then if
+setting up on a remote machine you can only use the copying the config
+method of
+configuration (https://rclone.org/remote_setup/#configuring-by-copying-the-config-file)
+\- \f[C]rclone\ authorize\f[] will not work.
+.PP
Here is an example of how to make a remote called \f[C]remote\f[].
First run:
.IP
@@ -3665,15 +4239,20 @@ Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ \ \ \\\ "sftp"
14\ /\ Yandex\ Disk
\ \ \ \\\ "yandex"
-Storage>\ 8
-Google\ Application\ Client\ Id\ \-\ leave\ blank\ normally.
-client_id>\
-Google\ Application\ Client\ Secret\ \-\ leave\ blank\ normally.
-client_secret>\
+Storage>\ 1
+Amazon\ Application\ Client\ Id\ \-\ required.
+client_id>\ your\ client\ ID\ goes\ here
+Amazon\ Application\ Client\ Secret\ \-\ required.
+client_secret>\ your\ client\ secret\ goes\ here
+Auth\ server\ URL\ \-\ leave\ blank\ to\ use\ Amazon\[aq]s.
+auth_url>\ Optional\ auth\ URL
+Token\ server\ url\ \-\ leave\ blank\ to\ use\ Amazon\[aq]s.
+token_url>\ Optional\ token\ URL
Remote\ config
+Make\ sure\ your\ Redirect\ URL\ is\ set\ to\ "http://127.0.0.1:53682/"\ in\ your\ custom\ config.
Use\ auto\ config?
\ *\ Say\ Y\ if\ not\ sure
-\ *\ Say\ N\ if\ you\ are\ working\ on\ a\ remote\ or\ headless\ machine\ or\ Y\ didn\[aq]t\ work
+\ *\ Say\ N\ if\ you\ are\ working\ on\ a\ remote\ or\ headless\ machine
y)\ Yes
n)\ No
y/n>\ y
@@ -3681,15 +4260,13 @@ If\ your\ browser\ doesn\[aq]t\ open\ automatically\ go\ to\ the\ following\ lin
Log\ in\ and\ authorize\ rclone\ for\ access
Waiting\ for\ code...
Got\ code
-Configure\ this\ as\ a\ team\ drive?
-y)\ Yes
-n)\ No
-y/n>\ n
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[remote]
-client_id\ =\
-client_secret\ =\
-token\ =\ {"AccessToken":"xxxx.x.xxxxx_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"1/xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx","Expiry":"2014\-03\-16T13:57:58.955387075Z","Extra":null}
+client_id\ =\ your\ client\ ID\ goes\ here
+client_secret\ =\ your\ client\ secret\ goes\ here
+auth_url\ =\ Optional\ auth\ URL
+token_url\ =\ Optional\ token\ URL
+token\ =\ {"access_token":"xxxxxxxxxxxxxxxxxxxxxxx","token_type":"bearer","refresh_token":"xxxxxxxxxxxxxxxxxx","expiry":"2015\-09\-06T16:07:39.658438471+01:00"}
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
@@ -3698,17 +4275,19 @@ y/e/d>\ y
\f[]
.fi
.PP
+See the remote setup docs (https://rclone.org/remote_setup/) for how to
+set it up on a machine with no Internet browser available.
+.PP
Note that rclone runs a webserver on your local machine to collect the
-token as returned from Google if you use auto config mode.
+token as returned from Amazon.
This only runs from the moment it opens your browser to the moment you
get back the verification code.
This is on \f[C]http://127.0.0.1:53682/\f[] and this it may require you
-to unblock it temporarily if you are running a host firewall, or use
-manual mode.
+to unblock it temporarily if you are running a host firewall.
.PP
-You can then use it like this,
+Once configured you can then use \f[C]rclone\f[] like this,
.PP
-List directories in top level of your drive
+List directories in top level of your Amazon Drive
.IP
.nf
\f[C]
@@ -3716,7 +4295,7 @@ rclone\ lsd\ remote:
\f[]
.fi
.PP
-List all the files in your drive
+List all the files in your Amazon Drive
.IP
.nf
\f[C]
@@ -3724,391 +4303,652 @@ rclone\ ls\ remote:
\f[]
.fi
.PP
-To copy a local directory to a drive directory called backup
+To copy a local directory to an Amazon Drive directory called backup
.IP
.nf
\f[C]
rclone\ copy\ /home/source\ remote:backup
\f[]
.fi
-.SS Team drives
-.PP
-If you want to configure the remote to point to a Google Team Drive then
-answer \f[C]y\f[] to the question
-\f[C]Configure\ this\ as\ a\ team\ drive?\f[].
-.PP
-This will fetch the list of Team Drives from google and allow you to
-configure which one you want to use.
-You can also type in a team drive ID if you prefer.
-.PP
-For example:
-.IP
-.nf
-\f[C]
-Configure\ this\ as\ a\ team\ drive?
-y)\ Yes
-n)\ No
-y/n>\ y
-Fetching\ team\ drive\ list...
-Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
-\ 1\ /\ Rclone\ Test
-\ \ \ \\\ "xxxxxxxxxxxxxxxxxxxx"
-\ 2\ /\ Rclone\ Test\ 2
-\ \ \ \\\ "yyyyyyyyyyyyyyyyyyyy"
-\ 3\ /\ Rclone\ Test\ 3
-\ \ \ \\\ "zzzzzzzzzzzzzzzzzzzz"
-Enter\ a\ Team\ Drive\ ID>\ 1
-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
-[remote]
-client_id\ =\
-client_secret\ =\
-token\ =\ {"AccessToken":"xxxx.x.xxxxx_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"1/xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx","Expiry":"2014\-03\-16T13:57:58.955387075Z","Extra":null}
-team_drive\ =\ xxxxxxxxxxxxxxxxxxxx
-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
-y)\ Yes\ this\ is\ OK
-e)\ Edit\ this\ remote
-d)\ Delete\ this\ remote
-y/e/d>\ y
-\f[]
-.fi
-.SS Modified time
-.PP
-Google drive stores modification times accurate to 1 ms.
-.SS Revisions
+.SS Modified time and MD5SUMs
.PP
-Google drive stores revisions of files.
-When you upload a change to an existing file to google drive using
-rclone it will create a new revision of that file.
+Amazon Drive doesn\[aq]t allow modification times to be changed via the
+API so these won\[aq]t be accurate or used for syncing.
.PP
-Revisions follow the standard google policy which at time of writing was
-.IP \[bu] 2
-They are deleted after 30 days or 100 revisions (whatever comes first).
-.IP \[bu] 2
-They do not count towards a user storage quota.
+It does store MD5SUMs so for a more accurate sync, you can use the
+\f[C]\-\-checksum\f[] flag.
.SS Deleting files
.PP
-By default rclone will delete files permanently when requested.
-If sending them to the trash is required instead then use the
-\f[C]\-\-drive\-use\-trash\f[] flag.
+Any files you delete with rclone will end up in the trash.
+Amazon don\[aq]t provide an API to permanently delete files, nor to
+empty the trash, so you will have to do that with one of Amazon\[aq]s
+apps or via the Amazon Drive website.
+As of November 17, 2016, files are automatically deleted by Amazon from
+the trash after 30 days.
+.SS Using with non \f[C]\&.com\f[] Amazon accounts
+.PP
+Let\[aq]s say you usually use \f[C]amazon.co.uk\f[].
+When you authenticate with rclone it will take you to an
+\f[C]amazon.com\f[] page to log in.
+Your \f[C]amazon.co.uk\f[] email and password should work here just
+fine.
.SS Specific options
.PP
Here are the command line options specific to this cloud storage system.
-.SS \-\-drive\-auth\-owner\-only
-.PP
-Only consider files owned by the authenticated user.
-.SS \-\-drive\-chunk\-size=SIZE
+.SS \-\-acd\-templink\-threshold=SIZE
.PP
-Upload chunk size.
-Must a power of 2 >= 256k.
-Default value is 8 MB.
-.PP
-Making this larger will improve performance, but note that each chunk is
-buffered in memory one per transfer.
-.PP
-Reducing this will reduce memory usage but decrease performance.
-.SS \-\-drive\-auth\-owner\-only
-.PP
-Only consider files owned by the authenticated user.
-.SS \-\-drive\-formats
+Files this size or more will be downloaded via their \f[C]tempLink\f[].
+This is to work around a problem with Amazon Drive which blocks
+downloads of files bigger than about 10GB.
+The default for this is 9GB which shouldn\[aq]t need to be changed.
.PP
-Google documents can only be exported from Google drive.
-When rclone downloads a Google doc it chooses a format to download
-depending upon this setting.
+To download files above this threshold, rclone requests a
+\f[C]tempLink\f[] which downloads the file through a temporary URL
+directly from the underlying S3 storage.
+.SS \-\-acd\-upload\-wait\-per\-gb=TIME
.PP
-By default the formats are \f[C]docx,xlsx,pptx,svg\f[] which are a
-sensible default for an editable document.
+Sometimes Amazon Drive gives an error when a file has been fully
+uploaded but the file appears anyway after a little while.
+This happens sometimes for files over 1GB in size and nearly every time
+for files bigger than 10GB.
+This parameter controls the time rclone waits for the file to appear.
.PP
-When choosing a format, rclone runs down the list provided in order and
-chooses the first file format the doc can be exported as from the list.
-If the file can\[aq]t be exported to a format on the formats list, then
-rclone will choose a format from the default list.
+The default value for this parameter is 3 minutes per GB, so by default
+it will wait 3 minutes for every GB uploaded to see if the file appears.
.PP
-If you prefer an archive copy then you might use
-\f[C]\-\-drive\-formats\ pdf\f[], or if you prefer
-openoffice/libreoffice formats you might use
-\f[C]\-\-drive\-formats\ ods,odt,odp\f[].
+You can disable this feature by setting it to 0.
+This may cause conflict errors as rclone retries the failed upload but
+the file will most likely appear correctly eventually.
.PP
-Note that rclone adds the extension to the google doc, so if it is
-calles \f[C]My\ Spreadsheet\f[] on google docs, it will be exported as
-\f[C]My\ Spreadsheet.xlsx\f[] or \f[C]My\ Spreadsheet.pdf\f[] etc.
+These values were determined empirically by observing lots of uploads of
+big files for a range of file sizes.
.PP
-Here are the possible extensions with their corresponding mime types.
+Upload with the \f[C]\-v\f[] flag to see more info about what rclone is
+doing in this situation.
+.SS Limitations
.PP
-.TS
-tab(@);
-lw(9.7n) lw(11.7n) lw(12.6n).
-T{
-Extension
-T}@T{
-Mime Type
-T}@T{
-Description
-T}
-_
-T{
-csv
-T}@T{
-text/csv
-T}@T{
-Standard CSV format for Spreadsheets
-T}
-T{
-doc
-T}@T{
-application/msword
-T}@T{
-Micosoft Office Document
-T}
-T{
-docx
-T}@T{
-application/vnd.openxmlformats\-officedocument.wordprocessingml.document
-T}@T{
-Microsoft Office Document
-T}
-T{
-epub
-T}@T{
-application/epub+zip
-T}@T{
-E\-book format
-T}
-T{
-html
-T}@T{
-text/html
-T}@T{
-An HTML Document
-T}
-T{
-jpg
-T}@T{
-image/jpeg
-T}@T{
-A JPEG Image File
-T}
-T{
-odp
-T}@T{
-application/vnd.oasis.opendocument.presentation
-T}@T{
-Openoffice Presentation
-T}
-T{
-ods
-T}@T{
-application/vnd.oasis.opendocument.spreadsheet
-T}@T{
-Openoffice Spreadsheet
-T}
-T{
-ods
-T}@T{
-application/x\-vnd.oasis.opendocument.spreadsheet
-T}@T{
-Openoffice Spreadsheet
-T}
-T{
-odt
-T}@T{
-application/vnd.oasis.opendocument.text
-T}@T{
-Openoffice Document
-T}
-T{
-pdf
-T}@T{
-application/pdf
-T}@T{
-Adobe PDF Format
-T}
-T{
-png
-T}@T{
-image/png
-T}@T{
-PNG Image Format
-T}
-T{
-pptx
-T}@T{
-application/vnd.openxmlformats\-officedocument.presentationml.presentation
-T}@T{
-Microsoft Office Powerpoint
-T}
-T{
-rtf
-T}@T{
-application/rtf
-T}@T{
-Rich Text Format
-T}
-T{
-svg
-T}@T{
-image/svg+xml
-T}@T{
-Scalable Vector Graphics Format
-T}
-T{
-tsv
-T}@T{
-text/tab\-separated\-values
-T}@T{
-Standard TSV format for spreadsheets
-T}
-T{
-txt
-T}@T{
-text/plain
-T}@T{
-Plain Text
-T}
-T{
-xls
-T}@T{
-application/vnd.ms\-excel
-T}@T{
-Microsoft Office Spreadsheet
-T}
-T{
-xlsx
-T}@T{
-application/vnd.openxmlformats\-officedocument.spreadsheetml.sheet
-T}@T{
-Microsoft Office Spreadsheet
-T}
-T{
-zip
-T}@T{
-application/zip
-T}@T{
-A ZIP file of HTML, Images CSS
-T}
-.TE
-.SS \-\-drive\-list\-chunk int
+Note that Amazon Drive is case insensitive so you can\[aq]t have a file
+called "Hello.doc" and one called "hello.doc".
.PP
-Size of listing chunk 100\-1000.
-0 to disable.
-(default 1000)
-.SS \-\-drive\-shared\-with\-me
+Amazon Drive has rate limiting so you may notice errors in the sync (429
+errors).
+rclone will automatically retry the sync up to 3 times by default (see
+\f[C]\-\-retries\f[] flag) which should hopefully work around this
+problem.
.PP
-Only show files that are shared with me
-.SS \-\-drive\-skip\-gdocs
+Amazon Drive has an internal limit of file sizes that can be uploaded to
+the service.
+This limit is not officially published, but all files larger than this
+will fail.
.PP
-Skip google documents in all listings.
-If given, gdocs practically become invisible to rclone.
-.SS \-\-drive\-trashed\-only
+At the time of writing (Jan 2016) is in the area of 50GB per file.
+This means that larger files are likely to fail.
.PP
-Only show files that are in the trash.
-This will show trashed files in their original directory structure.
-.SS \-\-drive\-upload\-cutoff=SIZE
+Unfortunately there is no way for rclone to see that this failure is
+because of file size, so it will retry the operation, as any other
+failure.
+To avoid this problem, use \f[C]\-\-max\-size\ 50000M\f[] option to
+limit the maximum size of uploaded files.
+Note that \f[C]\-\-max\-size\f[] does not split files into segments, it
+only ignores files over this size.
+.SS Amazon S3
.PP
-File size cutoff for switching to chunked upload.
-Default is 8 MB.
-.SS \-\-drive\-use\-trash
+Paths are specified as \f[C]remote:bucket\f[] (or \f[C]remote:\f[] for
+the \f[C]lsd\f[] command.) You may put subdirectories in too, eg
+\f[C]remote:bucket/path/to/dir\f[].
.PP
-Send files to the trash instead of deleting permanently.
-Defaults to off, namely deleting files permanently.
-.SS Limitations
+Here is an example of making an s3 configuration.
+First run
+.IP
+.nf
+\f[C]
+rclone\ config
+\f[]
+.fi
.PP
-Drive has quite a lot of rate limiting.
-This causes rclone to be limited to transferring about 2 files per
-second only.
-Individual files may be transferred much faster at 100s of MBytes/s but
-lots of small files can take a long time.
-.SS Duplicated files
+This will guide you through an interactive setup process.
+.IP
+.nf
+\f[C]
+No\ remotes\ found\ \-\ make\ a\ new\ one
+n)\ New\ remote
+s)\ Set\ configuration\ password
+n/s>\ n
+name>\ remote
+Type\ of\ storage\ to\ configure.
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ 1\ /\ Amazon\ Drive
+\ \ \ \\\ "amazon\ cloud\ drive"
+\ 2\ /\ Amazon\ S3\ (also\ Dreamhost,\ Ceph,\ Minio)
+\ \ \ \\\ "s3"
+\ 3\ /\ Backblaze\ B2
+\ \ \ \\\ "b2"
+\ 4\ /\ Dropbox
+\ \ \ \\\ "dropbox"
+\ 5\ /\ Encrypt/Decrypt\ a\ remote
+\ \ \ \\\ "crypt"
+\ 6\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
+\ \ \ \\\ "google\ cloud\ storage"
+\ 7\ /\ Google\ Drive
+\ \ \ \\\ "drive"
+\ 8\ /\ Hubic
+\ \ \ \\\ "hubic"
+\ 9\ /\ Local\ Disk
+\ \ \ \\\ "local"
+10\ /\ Microsoft\ OneDrive
+\ \ \ \\\ "onedrive"
+11\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
+\ \ \ \\\ "swift"
+12\ /\ SSH/SFTP\ Connection
+\ \ \ \\\ "sftp"
+13\ /\ Yandex\ Disk
+\ \ \ \\\ "yandex"
+Storage>\ 2
+Get\ AWS\ credentials\ from\ runtime\ (environment\ variables\ or\ EC2\ meta\ data\ if\ no\ env\ vars).\ Only\ applies\ if\ access_key_id\ and\ secret_access_key\ is\ blank.
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ 1\ /\ Enter\ AWS\ credentials\ in\ the\ next\ step
+\ \ \ \\\ "false"
+\ 2\ /\ Get\ AWS\ credentials\ from\ the\ environment\ (env\ vars\ or\ IAM)
+\ \ \ \\\ "true"
+env_auth>\ 1
+AWS\ Access\ Key\ ID\ \-\ leave\ blank\ for\ anonymous\ access\ or\ runtime\ credentials.
+access_key_id>\ access_key
+AWS\ Secret\ Access\ Key\ (password)\ \-\ leave\ blank\ for\ anonymous\ access\ or\ runtime\ credentials.
+secret_access_key>\ secret_key
+Region\ to\ connect\ to.
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ \ \ /\ The\ default\ endpoint\ \-\ a\ good\ choice\ if\ you\ are\ unsure.
+\ 1\ |\ US\ Region,\ Northern\ Virginia\ or\ Pacific\ Northwest.
+\ \ \ |\ Leave\ location\ constraint\ empty.
+\ \ \ \\\ "us\-east\-1"
+\ \ \ /\ US\ West\ (Oregon)\ Region
+\ 2\ |\ Needs\ location\ constraint\ us\-west\-2.
+\ \ \ \\\ "us\-west\-2"
+\ \ \ /\ US\ West\ (Northern\ California)\ Region
+\ 3\ |\ Needs\ location\ constraint\ us\-west\-1.
+\ \ \ \\\ "us\-west\-1"
+\ \ \ /\ EU\ (Ireland)\ Region\ Region
+\ 4\ |\ Needs\ location\ constraint\ EU\ or\ eu\-west\-1.
+\ \ \ \\\ "eu\-west\-1"
+\ \ \ /\ EU\ (Frankfurt)\ Region
+\ 5\ |\ Needs\ location\ constraint\ eu\-central\-1.
+\ \ \ \\\ "eu\-central\-1"
+\ \ \ /\ Asia\ Pacific\ (Singapore)\ Region
+\ 6\ |\ Needs\ location\ constraint\ ap\-southeast\-1.
+\ \ \ \\\ "ap\-southeast\-1"
+\ \ \ /\ Asia\ Pacific\ (Sydney)\ Region
+\ 7\ |\ Needs\ location\ constraint\ ap\-southeast\-2.
+\ \ \ \\\ "ap\-southeast\-2"
+\ \ \ /\ Asia\ Pacific\ (Tokyo)\ Region
+\ 8\ |\ Needs\ location\ constraint\ ap\-northeast\-1.
+\ \ \ \\\ "ap\-northeast\-1"
+\ \ \ /\ Asia\ Pacific\ (Seoul)
+\ 9\ |\ Needs\ location\ constraint\ ap\-northeast\-2.
+\ \ \ \\\ "ap\-northeast\-2"
+\ \ \ /\ Asia\ Pacific\ (Mumbai)
+10\ |\ Needs\ location\ constraint\ ap\-south\-1.
+\ \ \ \\\ "ap\-south\-1"
+\ \ \ /\ South\ America\ (Sao\ Paulo)\ Region
+11\ |\ Needs\ location\ constraint\ sa\-east\-1.
+\ \ \ \\\ "sa\-east\-1"
+\ \ \ /\ If\ using\ an\ S3\ clone\ that\ only\ understands\ v2\ signatures
+12\ |\ eg\ Ceph/Dreamhost
+\ \ \ |\ set\ this\ and\ make\ sure\ you\ set\ the\ endpoint.
+\ \ \ \\\ "other\-v2\-signature"
+\ \ \ /\ If\ using\ an\ S3\ clone\ that\ understands\ v4\ signatures\ set\ this
+13\ |\ and\ make\ sure\ you\ set\ the\ endpoint.
+\ \ \ \\\ "other\-v4\-signature"
+region>\ 1
+Endpoint\ for\ S3\ API.
+Leave\ blank\ if\ using\ AWS\ to\ use\ the\ default\ endpoint\ for\ the\ region.
+Specify\ if\ using\ an\ S3\ clone\ such\ as\ Ceph.
+endpoint>
+Location\ constraint\ \-\ must\ be\ set\ to\ match\ the\ Region.\ Used\ when\ creating\ buckets\ only.
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ 1\ /\ Empty\ for\ US\ Region,\ Northern\ Virginia\ or\ Pacific\ Northwest.
+\ \ \ \\\ ""
+\ 2\ /\ US\ West\ (Oregon)\ Region.
+\ \ \ \\\ "us\-west\-2"
+\ 3\ /\ US\ West\ (Northern\ California)\ Region.
+\ \ \ \\\ "us\-west\-1"
+\ 4\ /\ EU\ (Ireland)\ Region.
+\ \ \ \\\ "eu\-west\-1"
+\ 5\ /\ EU\ Region.
+\ \ \ \\\ "EU"
+\ 6\ /\ Asia\ Pacific\ (Singapore)\ Region.
+\ \ \ \\\ "ap\-southeast\-1"
+\ 7\ /\ Asia\ Pacific\ (Sydney)\ Region.
+\ \ \ \\\ "ap\-southeast\-2"
+\ 8\ /\ Asia\ Pacific\ (Tokyo)\ Region.
+\ \ \ \\\ "ap\-northeast\-1"
+\ 9\ /\ Asia\ Pacific\ (Seoul)
+\ \ \ \\\ "ap\-northeast\-2"
+10\ /\ Asia\ Pacific\ (Mumbai)
+\ \ \ \\\ "ap\-south\-1"
+11\ /\ South\ America\ (Sao\ Paulo)\ Region.
+\ \ \ \\\ "sa\-east\-1"
+location_constraint>\ 1
+Canned\ ACL\ used\ when\ creating\ buckets\ and/or\ storing\ objects\ in\ S3.
+For\ more\ info\ visit\ https://docs.aws.amazon.com/AmazonS3/latest/dev/acl\-overview.html#canned\-acl
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ 1\ /\ Owner\ gets\ FULL_CONTROL.\ No\ one\ else\ has\ access\ rights\ (default).
+\ \ \ \\\ "private"
+\ 2\ /\ Owner\ gets\ FULL_CONTROL.\ The\ AllUsers\ group\ gets\ READ\ access.
+\ \ \ \\\ "public\-read"
+\ \ \ /\ Owner\ gets\ FULL_CONTROL.\ The\ AllUsers\ group\ gets\ READ\ and\ WRITE\ access.
+\ 3\ |\ Granting\ this\ on\ a\ bucket\ is\ generally\ not\ recommended.
+\ \ \ \\\ "public\-read\-write"
+\ 4\ /\ Owner\ gets\ FULL_CONTROL.\ The\ AuthenticatedUsers\ group\ gets\ READ\ access.
+\ \ \ \\\ "authenticated\-read"
+\ \ \ /\ Object\ owner\ gets\ FULL_CONTROL.\ Bucket\ owner\ gets\ READ\ access.
+\ 5\ |\ If\ you\ specify\ this\ canned\ ACL\ when\ creating\ a\ bucket,\ Amazon\ S3\ ignores\ it.
+\ \ \ \\\ "bucket\-owner\-read"
+\ \ \ /\ Both\ the\ object\ owner\ and\ the\ bucket\ owner\ get\ FULL_CONTROL\ over\ the\ object.
+\ 6\ |\ If\ you\ specify\ this\ canned\ ACL\ when\ creating\ a\ bucket,\ Amazon\ S3\ ignores\ it.
+\ \ \ \\\ "bucket\-owner\-full\-control"
+acl>\ private
+The\ server\-side\ encryption\ algorithm\ used\ when\ storing\ this\ object\ in\ S3.
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ 1\ /\ None
+\ \ \ \\\ ""
+\ 2\ /\ AES256
+\ \ \ \\\ "AES256"
+server_side_encryption>
+The\ storage\ class\ to\ use\ when\ storing\ objects\ in\ S3.
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ 1\ /\ Default
+\ \ \ \\\ ""
+\ 2\ /\ Standard\ storage\ class
+\ \ \ \\\ "STANDARD"
+\ 3\ /\ Reduced\ redundancy\ storage\ class
+\ \ \ \\\ "REDUCED_REDUNDANCY"
+\ 4\ /\ Standard\ Infrequent\ Access\ storage\ class
+\ \ \ \\\ "STANDARD_IA"
+storage_class>
+Remote\ config
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+[remote]
+env_auth\ =\ false
+access_key_id\ =\ access_key
+secret_access_key\ =\ secret_key
+region\ =\ us\-east\-1
+endpoint\ =
+location_constraint\ =
+acl\ =\ private
+server_side_encryption\ =
+storage_class\ =
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+y)\ Yes\ this\ is\ OK
+e)\ Edit\ this\ remote
+d)\ Delete\ this\ remote
+y/e/d>\ y
+\f[]
+.fi
.PP
-Sometimes, for no reason I\[aq]ve been able to track down, drive will
-duplicate a file that rclone uploads.
-Drive unlike all the other remotes can have duplicated files.
+This remote is called \f[C]remote\f[] and can now be used like this
.PP
-Duplicated files cause problems with the syncing and you will see
-messages in the log about duplicates.
+See all buckets
+.IP
+.nf
+\f[C]
+rclone\ lsd\ remote:
+\f[]
+.fi
.PP
-Use \f[C]rclone\ dedupe\f[] to fix duplicated files.
+Make a new bucket
+.IP
+.nf
+\f[C]
+rclone\ mkdir\ remote:bucket
+\f[]
+.fi
.PP
-Note that this isn\[aq]t just a problem with rclone, even Google Photos
-on Android duplicates files on drive sometimes.
-.SS Rclone appears to be re\-copying files it shouldn\[aq]t
+List the contents of a bucket
+.IP
+.nf
+\f[C]
+rclone\ ls\ remote:bucket
+\f[]
+.fi
.PP
-There are two possible reasons for rclone to recopy files which
-haven\[aq]t changed to Google Drive.
+Sync \f[C]/home/local/directory\f[] to the remote bucket, deleting any
+excess files in the bucket.
+.IP
+.nf
+\f[C]
+rclone\ sync\ /home/local/directory\ remote:bucket
+\f[]
+.fi
+.SS \-\-fast\-list
.PP
-The first is the duplicated file issue above \- run
-\f[C]rclone\ dedupe\f[] and check your logs for duplicate object or
-directory messages.
+This remote supports \f[C]\-\-fast\-list\f[] which allows you to use
+fewer transactions in exchange for more memory.
+See the rclone docs (/docs/#fast-list) for more details.
+.SS Modified time
+.PP
+The modified time is stored as metadata on the object as
+\f[C]X\-Amz\-Meta\-Mtime\f[] as floating point since the epoch accurate
+to 1 ns.
+.SS Multipart uploads
+.PP
+rclone supports multipart uploads with S3 which means that it can upload
+files bigger than 5GB.
+Note that files uploaded with multipart upload don\[aq]t have an MD5SUM.
+.SS Buckets and Regions
+.PP
+With Amazon S3 you can list buckets (\f[C]rclone\ lsd\f[]) using any
+region, but you can only access the content of a bucket from the region
+it was created in.
+If you attempt to access a bucket from the wrong region, you will get an
+error,
+\f[C]incorrect\ region,\ the\ bucket\ is\ not\ in\ \[aq]XXX\[aq]\ region\f[].
+.SS Authentication
+.PP
+There are two ways to supply \f[C]rclone\f[] with a set of AWS
+credentials.
+In order of precedence:
+.IP \[bu] 2
+Directly in the rclone configuration file (as configured by
+\f[C]rclone\ config\f[])
+.IP \[bu] 2
+set \f[C]access_key_id\f[] and \f[C]secret_access_key\f[].
+\f[C]session_token\f[] can be optionally set when using AWS STS.
+.IP \[bu] 2
+Runtime configuration:
+.IP \[bu] 2
+set \f[C]env_auth\f[] to \f[C]true\f[] in the config file
+.IP \[bu] 2
+Exporting the following environment variables before running
+\f[C]rclone\f[]
+.RS 2
+.IP \[bu] 2
+Access Key ID: \f[C]AWS_ACCESS_KEY_ID\f[] or \f[C]AWS_ACCESS_KEY\f[]
+.IP \[bu] 2
+Secret Access Key: \f[C]AWS_SECRET_ACCESS_KEY\f[] or
+\f[C]AWS_SECRET_KEY\f[]
+.IP \[bu] 2
+Session Token: \f[C]AWS_SESSION_TOKEN\f[]
+.RE
+.IP \[bu] 2
+Running \f[C]rclone\f[] on an EC2 instance with an IAM role
+.PP
+If none of these option actually end up providing \f[C]rclone\f[] with
+AWS credentials then S3 interaction will be non\-authenticated (see
+below).
+.SS S3 Permissions
+.PP
+When using the \f[C]sync\f[] subcommand of \f[C]rclone\f[] the following
+minimum permissions are required to be available on the bucket being
+written to:
+.IP \[bu] 2
+\f[C]ListBucket\f[]
+.IP \[bu] 2
+\f[C]DeleteObject\f[]
+.IP \[bu] 2
+\f[C]GetObject\f[]
+.IP \[bu] 2
+\f[C]PutObject\f[]
+.IP \[bu] 2
+\f[C]PutObjectACL\f[]
+.PP
+Example policy:
+.IP
+.nf
+\f[C]
+{
+\ \ \ \ "Version":\ "2012\-10\-17",
+\ \ \ \ "Statement":\ [
+\ \ \ \ \ \ \ \ {
+\ \ \ \ \ \ \ \ \ \ \ \ "Effect":\ "Allow",
+\ \ \ \ \ \ \ \ \ \ \ \ "Principal":\ {
+\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "AWS":\ "arn:aws:iam::USER_SID:user/USER_NAME"
+\ \ \ \ \ \ \ \ \ \ \ \ },
+\ \ \ \ \ \ \ \ \ \ \ \ "Action":\ [
+\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "s3:ListBucket",
+\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "s3:DeleteObject",
+\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "s3:GetObject",
+\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "s3:PutObject",
+\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "s3:PutObjectAcl"
+\ \ \ \ \ \ \ \ \ \ \ \ ],
+\ \ \ \ \ \ \ \ \ \ \ \ "Resource":\ [
+\ \ \ \ \ \ \ \ \ \ \ \ \ \ "arn:aws:s3:::BUCKET_NAME/*",
+\ \ \ \ \ \ \ \ \ \ \ \ \ \ "arn:aws:s3:::BUCKET_NAME"
+\ \ \ \ \ \ \ \ \ \ \ \ ]
+\ \ \ \ \ \ \ \ }
+\ \ \ \ ]
+}
+\f[]
+.fi
+.PP
+Notes on above:
+.IP "1." 3
+This is a policy that can be used when creating bucket.
+It assumes that \f[C]USER_NAME\f[] has been created.
+.IP "2." 3
+The Resource entry must include both resource ARNs, as one implies the
+bucket and the other implies the bucket\[aq]s objects.
+.PP
+For reference, here\[aq]s an Ansible
+script (https://gist.github.com/ebridges/ebfc9042dd7c756cd101cfa807b7ae2b)
+that will generate one or more buckets that will work with
+\f[C]rclone\ sync\f[].
+.SS Glacier
+.PP
+You can transition objects to glacier storage using a lifecycle
+policy (http://docs.aws.amazon.com/AmazonS3/latest/user-guide/create-lifecycle.html).
+The bucket can still be synced or copied into normally, but if rclone
+tries to access the data you will see an error like below.
+.IP
+.nf
+\f[C]
+2017/09/11\ 19:07:43\ Failed\ to\ sync:\ failed\ to\ open\ source\ object:\ Object\ in\ GLACIER,\ restore\ first:\ path/to/file
+\f[]
+.fi
+.PP
+In this case you need to
+restore (http://docs.aws.amazon.com/AmazonS3/latest/user-guide/restore-archived-objects.html)
+the object(s) in question before using rclone.
+.SS Specific options
+.PP
+Here are the command line options specific to this cloud storage system.
+.SS \-\-s3\-acl=STRING
+.PP
+Canned ACL used when creating buckets and/or storing objects in S3.
+.PP
+For more info visit the canned ACL
+docs (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl).
+.SS \-\-s3\-storage\-class=STRING
+.PP
+Storage class to upload new objects with.
+.PP
+Available options include:
+.IP \[bu] 2
+STANDARD \- default storage class
+.IP \[bu] 2
+STANDARD_IA \- for less frequently accessed data (e.g backups)
+.IP \[bu] 2
+REDUCED_REDUNDANCY (only for noncritical, reproducible data, has lower
+redundancy)
+.SS Anonymous access to public buckets
+.PP
+If you want to use rclone to access a public bucket, configure with a
+blank \f[C]access_key_id\f[] and \f[C]secret_access_key\f[].
+Eg
+.IP
+.nf
+\f[C]
+No\ remotes\ found\ \-\ make\ a\ new\ one
+n)\ New\ remote
+q)\ Quit\ config
+n/q>\ n
+name>\ anons3
+What\ type\ of\ source\ is\ it?
+Choose\ a\ number\ from\ below
+\ 1)\ amazon\ cloud\ drive
+\ 2)\ b2
+\ 3)\ drive
+\ 4)\ dropbox
+\ 5)\ google\ cloud\ storage
+\ 6)\ swift
+\ 7)\ hubic
+\ 8)\ local
+\ 9)\ onedrive
+10)\ s3
+11)\ yandex
+type>\ 10
+Get\ AWS\ credentials\ from\ runtime\ (environment\ variables\ or\ EC2\ meta\ data\ if\ no\ env\ vars).\ Only\ applies\ if\ access_key_id\ and\ secret_access_key\ is\ blank.
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ *\ Enter\ AWS\ credentials\ in\ the\ next\ step
+\ 1)\ false
+\ *\ Get\ AWS\ credentials\ from\ the\ environment\ (env\ vars\ or\ IAM)
+\ 2)\ true
+env_auth>\ 1
+AWS\ Access\ Key\ ID\ \-\ leave\ blank\ for\ anonymous\ access\ or\ runtime\ credentials.
+access_key_id>
+AWS\ Secret\ Access\ Key\ (password)\ \-\ leave\ blank\ for\ anonymous\ access\ or\ runtime\ credentials.
+secret_access_key>
+\&...
+\f[]
+.fi
+.PP
+Then use it as normal with the name of the public bucket, eg
+.IP
+.nf
+\f[C]
+rclone\ lsd\ anons3:1000genomes
+\f[]
+.fi
+.PP
+You will be able to list and copy data but not upload it.
+.SS Ceph
+.PP
+Ceph is an object storage system which presents an Amazon S3 interface.
+.PP
+To use rclone with ceph, you need to set the following parameters in the
+config.
+.IP
+.nf
+\f[C]
+access_key_id\ =\ Whatever
+secret_access_key\ =\ Whatever
+endpoint\ =\ https://ceph.endpoint.goes.here/
+region\ =\ other\-v2\-signature
+\f[]
+.fi
+.PP
+Note also that Ceph sometimes puts \f[C]/\f[] in the passwords it gives
+users.
+If you read the secret access key using the command line tools you will
+get a JSON blob with the \f[C]/\f[] escaped as \f[C]\\/\f[].
+Make sure you only write \f[C]/\f[] in the secret access key.
.PP
-The second is that sometimes Google reports different sizes for the
-Google Docs exports which will cause rclone to re\-download Google Docs
-for no apparent reason.
-\f[C]\-\-ignore\-size\f[] is a not very satisfactory work\-around for
-this if it is causing you a lot of problems.
-.SS Google docs downloads sometimes fail with "Failed to copy: read X
-bytes expecting Y"
+Eg the dump from Ceph looks something like this (irrelevant keys
+removed).
+.IP
+.nf
+\f[C]
+{
+\ \ \ \ "user_id":\ "xxx",
+\ \ \ \ "display_name":\ "xxxx",
+\ \ \ \ "keys":\ [
+\ \ \ \ \ \ \ \ {
+\ \ \ \ \ \ \ \ \ \ \ \ "user":\ "xxx",
+\ \ \ \ \ \ \ \ \ \ \ \ "access_key":\ "xxxxxx",
+\ \ \ \ \ \ \ \ \ \ \ \ "secret_key":\ "xxxxxx\\/xxxx"
+\ \ \ \ \ \ \ \ }
+\ \ \ \ ],
+}
+\f[]
+.fi
.PP
-This is the same problem as above.
-Google reports the google doc is one size, but rclone downloads a
-different size.
-Work\-around with the \f[C]\-\-ignore\-size\f[] flag or wait for rclone
-to retry the download which it will.
-.SS Making your own client_id
+Because this is a json dump, it is encoding the \f[C]/\f[] as
+\f[C]\\/\f[], so if you use the secret key as \f[C]xxxxxx/xxxx\f[] it
+will work fine.
+.SS Minio
.PP
-When you use rclone with Google drive in its default configuration you
-are using rclone\[aq]s client_id.
-This is shared between all the rclone users.
-There is a global rate limit on the number of queries per second that
-each client_id can do set by Google.
-rclone already has a high quota and I will continue to make sure it is
-high enough by contacting Google.
+Minio (https://minio.io/) is an object storage server built for cloud
+application developers and devops.
.PP
-However you might find you get better performance making your own
-client_id if you are a heavy user.
-Or you may not depending on exactly how Google have been raising
-rclone\[aq]s rate limit.
+It is very easy to install and provides an S3 compatible server which
+can be used by rclone.
.PP
-Here is how to create your own Google Drive client ID for rclone:
-.IP "1." 3
-Log into the Google API Console (https://console.developers.google.com/)
-with your Google account.
-It doesn\[aq]t matter what Google account you use.
-(It need not be the same account as the Google Drive you want to access)
-.IP "2." 3
-Select a project or create a new project.
-.IP "3." 3
-Under Overview, Google APIs, Google Apps APIs, click "Drive API", then
-"Enable".
-.IP "4." 3
-Click "Credentials" in the left\-side panel (not "Go to credentials",
-which opens the wizard), then "Create credentials", then "OAuth client
-ID".
-It will prompt you to set the OAuth consent screen product name, if you
-haven\[aq]t set one already.
-.IP "5." 3
-Choose an application type of "other", and click "Create".
-(the default name is fine)
-.IP "6." 3
-It will show you a client ID and client secret.
-Use these values in rclone config to add a new remote or edit an
-existing remote.
+To use it, install Minio following the instructions
+here (https://docs.minio.io/docs/minio-quickstart-guide).
.PP
-(Thanks to \@balazer on github for these instructions.)
-.SS Amazon S3
+When it configures itself Minio will print something like this
+.IP
+.nf
+\f[C]
+Endpoint:\ \ http://192.168.1.106:9000\ \ http://172.23.0.1:9000
+AccessKey:\ USWUXHGYZQYFYFFIT3RE
+SecretKey:\ MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
+Region:\ \ \ \ us\-east\-1
+SQS\ ARNs:\ \ arn:minio:sqs:us\-east\-1:1:redis\ arn:minio:sqs:us\-east\-1:2:redis
+
+Browser\ Access:
+\ \ \ http://192.168.1.106:9000\ \ http://172.23.0.1:9000
+
+Command\-line\ Access:\ https://docs.minio.io/docs/minio\-client\-quickstart\-guide
+\ \ \ $\ mc\ config\ host\ add\ myminio\ http://192.168.1.106:9000\ USWUXHGYZQYFYFFIT3RE\ MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
+
+Object\ API\ (Amazon\ S3\ compatible):
+\ \ \ Go:\ \ \ \ \ \ \ \ \ https://docs.minio.io/docs/golang\-client\-quickstart\-guide
+\ \ \ Java:\ \ \ \ \ \ \ https://docs.minio.io/docs/java\-client\-quickstart\-guide
+\ \ \ Python:\ \ \ \ \ https://docs.minio.io/docs/python\-client\-quickstart\-guide
+\ \ \ JavaScript:\ https://docs.minio.io/docs/javascript\-client\-quickstart\-guide
+\ \ \ .NET:\ \ \ \ \ \ \ https://docs.minio.io/docs/dotnet\-client\-quickstart\-guide
+
+Drive\ Capacity:\ 26\ GiB\ Free,\ 165\ GiB\ Total
+\f[]
+.fi
.PP
-Paths are specified as \f[C]remote:bucket\f[] (or \f[C]remote:\f[] for
-the \f[C]lsd\f[] command.) You may put subdirectories in too, eg
-\f[C]remote:bucket/path/to/dir\f[].
+These details need to go into \f[C]rclone\ config\f[] like this.
+Note that it is important to put the region in as stated above.
+.IP
+.nf
+\f[C]
+env_auth>\ 1
+access_key_id>\ USWUXHGYZQYFYFFIT3RE
+secret_access_key>\ MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
+region>\ us\-east\-1
+endpoint>\ http://192.168.1.106:9000
+location_constraint>
+server_side_encryption>
+\f[]
+.fi
.PP
-Here is an example of making an s3 configuration.
-First run
+Which makes the config file look like this
.IP
.nf
\f[C]
-rclone\ config
+[minio]
+env_auth\ =\ false
+access_key_id\ =\ USWUXHGYZQYFYFFIT3RE
+secret_access_key\ =\ MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
+region\ =\ us\-east\-1
+endpoint\ =\ http://192.168.1.106:9000
+location_constraint\ =
+server_side_encryption\ =
\f[]
.fi
.PP
-This will guide you through an interactive setup process.
+So once set up, for example to copy files into a bucket
+.IP
+.nf
+\f[C]
+rclone\ copy\ /path/to/files\ minio:bucket
+\f[]
+.fi
+.SS Wasabi
+.PP
+Wasabi (https://wasabi.com) is a cloud\-based object storage service for
+a broad range of applications and use cases.
+Wasabi is designed for individuals and organizations that require a
+high\-performance, reliable, and secure data storage infrastructure at
+minimal cost.
+.PP
+Wasabi provides an S3 interface which can be configured for use with
+rclone like this.
.IP
.nf
\f[C]
@@ -4116,36 +4956,15 @@ No\ remotes\ found\ \-\ make\ a\ new\ one
n)\ New\ remote
s)\ Set\ configuration\ password
n/s>\ n
-name>\ remote
+name>\ wasabi
Type\ of\ storage\ to\ configure.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ 1\ /\ Amazon\ Drive
\ \ \ \\\ "amazon\ cloud\ drive"
\ 2\ /\ Amazon\ S3\ (also\ Dreamhost,\ Ceph,\ Minio)
\ \ \ \\\ "s3"
-\ 3\ /\ Backblaze\ B2
-\ \ \ \\\ "b2"
-\ 4\ /\ Dropbox
-\ \ \ \\\ "dropbox"
-\ 5\ /\ Encrypt/Decrypt\ a\ remote
-\ \ \ \\\ "crypt"
-\ 6\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
-\ \ \ \\\ "google\ cloud\ storage"
-\ 7\ /\ Google\ Drive
-\ \ \ \\\ "drive"
-\ 8\ /\ Hubic
-\ \ \ \\\ "hubic"
-\ 9\ /\ Local\ Disk
-\ \ \ \\\ "local"
-10\ /\ Microsoft\ OneDrive
-\ \ \ \\\ "onedrive"
-11\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
-\ \ \ \\\ "swift"
-12\ /\ SSH/SFTP\ Connection
-\ \ \ \\\ "sftp"
-13\ /\ Yandex\ Disk
-\ \ \ \\\ "yandex"
-Storage>\ 2
+[snip]
+Storage>\ s3
Get\ AWS\ credentials\ from\ runtime\ (environment\ variables\ or\ EC2\ meta\ data\ if\ no\ env\ vars).\ Only\ applies\ if\ access_key_id\ and\ secret_access_key\ is\ blank.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ 1\ /\ Enter\ AWS\ credentials\ in\ the\ next\ step
@@ -4154,108 +4973,41 @@ Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ \ \ \\\ "true"
env_auth>\ 1
AWS\ Access\ Key\ ID\ \-\ leave\ blank\ for\ anonymous\ access\ or\ runtime\ credentials.
-access_key_id>\ access_key
+access_key_id>\ YOURACCESSKEY
AWS\ Secret\ Access\ Key\ (password)\ \-\ leave\ blank\ for\ anonymous\ access\ or\ runtime\ credentials.
-secret_access_key>\ secret_key
+secret_access_key>\ YOURSECRETACCESSKEY
Region\ to\ connect\ to.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ \ \ /\ The\ default\ endpoint\ \-\ a\ good\ choice\ if\ you\ are\ unsure.
\ 1\ |\ US\ Region,\ Northern\ Virginia\ or\ Pacific\ Northwest.
\ \ \ |\ Leave\ location\ constraint\ empty.
\ \ \ \\\ "us\-east\-1"
-\ \ \ /\ US\ West\ (Oregon)\ Region
-\ 2\ |\ Needs\ location\ constraint\ us\-west\-2.
-\ \ \ \\\ "us\-west\-2"
-\ \ \ /\ US\ West\ (Northern\ California)\ Region
-\ 3\ |\ Needs\ location\ constraint\ us\-west\-1.
-\ \ \ \\\ "us\-west\-1"
-\ \ \ /\ EU\ (Ireland)\ Region\ Region
-\ 4\ |\ Needs\ location\ constraint\ EU\ or\ eu\-west\-1.
-\ \ \ \\\ "eu\-west\-1"
-\ \ \ /\ EU\ (Frankfurt)\ Region
-\ 5\ |\ Needs\ location\ constraint\ eu\-central\-1.
-\ \ \ \\\ "eu\-central\-1"
-\ \ \ /\ Asia\ Pacific\ (Singapore)\ Region
-\ 6\ |\ Needs\ location\ constraint\ ap\-southeast\-1.
-\ \ \ \\\ "ap\-southeast\-1"
-\ \ \ /\ Asia\ Pacific\ (Sydney)\ Region
-\ 7\ |\ Needs\ location\ constraint\ ap\-southeast\-2.
-\ \ \ \\\ "ap\-southeast\-2"
-\ \ \ /\ Asia\ Pacific\ (Tokyo)\ Region
-\ 8\ |\ Needs\ location\ constraint\ ap\-northeast\-1.
-\ \ \ \\\ "ap\-northeast\-1"
-\ \ \ /\ Asia\ Pacific\ (Seoul)
-\ 9\ |\ Needs\ location\ constraint\ ap\-northeast\-2.
-\ \ \ \\\ "ap\-northeast\-2"
-\ \ \ /\ Asia\ Pacific\ (Mumbai)
-10\ |\ Needs\ location\ constraint\ ap\-south\-1.
-\ \ \ \\\ "ap\-south\-1"
-\ \ \ /\ South\ America\ (Sao\ Paulo)\ Region
-11\ |\ Needs\ location\ constraint\ sa\-east\-1.
-\ \ \ \\\ "sa\-east\-1"
-\ \ \ /\ If\ using\ an\ S3\ clone\ that\ only\ understands\ v2\ signatures
-12\ |\ eg\ Ceph/Dreamhost
-\ \ \ |\ set\ this\ and\ make\ sure\ you\ set\ the\ endpoint.
-\ \ \ \\\ "other\-v2\-signature"
-\ \ \ /\ If\ using\ an\ S3\ clone\ that\ understands\ v4\ signatures\ set\ this
-13\ |\ and\ make\ sure\ you\ set\ the\ endpoint.
-\ \ \ \\\ "other\-v4\-signature"
-region>\ 1
+[snip]
+region>\ us\-east\-1
Endpoint\ for\ S3\ API.
Leave\ blank\ if\ using\ AWS\ to\ use\ the\ default\ endpoint\ for\ the\ region.
-Specify\ if\ using\ an\ S3\ clone\ such\ as\ Ceph.
-endpoint>
-Location\ constraint\ \-\ must\ be\ set\ to\ match\ the\ Region.\ Used\ when\ creating\ buckets\ only.
-Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
-\ 1\ /\ Empty\ for\ US\ Region,\ Northern\ Virginia\ or\ Pacific\ Northwest.
-\ \ \ \\\ ""
-\ 2\ /\ US\ West\ (Oregon)\ Region.
-\ \ \ \\\ "us\-west\-2"
-\ 3\ /\ US\ West\ (Northern\ California)\ Region.
-\ \ \ \\\ "us\-west\-1"
-\ 4\ /\ EU\ (Ireland)\ Region.
-\ \ \ \\\ "eu\-west\-1"
-\ 5\ /\ EU\ Region.
-\ \ \ \\\ "EU"
-\ 6\ /\ Asia\ Pacific\ (Singapore)\ Region.
-\ \ \ \\\ "ap\-southeast\-1"
-\ 7\ /\ Asia\ Pacific\ (Sydney)\ Region.
-\ \ \ \\\ "ap\-southeast\-2"
-\ 8\ /\ Asia\ Pacific\ (Tokyo)\ Region.
-\ \ \ \\\ "ap\-northeast\-1"
-\ 9\ /\ Asia\ Pacific\ (Seoul)
-\ \ \ \\\ "ap\-northeast\-2"
-10\ /\ Asia\ Pacific\ (Mumbai)
-\ \ \ \\\ "ap\-south\-1"
-11\ /\ South\ America\ (Sao\ Paulo)\ Region.
-\ \ \ \\\ "sa\-east\-1"
-location_constraint>\ 1
-Canned\ ACL\ used\ when\ creating\ buckets\ and/or\ storing\ objects\ in\ S3.
-For\ more\ info\ visit\ https://docs.aws.amazon.com/AmazonS3/latest/dev/acl\-overview.html#canned\-acl
-Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
-\ 1\ /\ Owner\ gets\ FULL_CONTROL.\ No\ one\ else\ has\ access\ rights\ (default).
-\ \ \ \\\ "private"
-\ 2\ /\ Owner\ gets\ FULL_CONTROL.\ The\ AllUsers\ group\ gets\ READ\ access.
-\ \ \ \\\ "public\-read"
-\ \ \ /\ Owner\ gets\ FULL_CONTROL.\ The\ AllUsers\ group\ gets\ READ\ and\ WRITE\ access.
-\ 3\ |\ Granting\ this\ on\ a\ bucket\ is\ generally\ not\ recommended.
-\ \ \ \\\ "public\-read\-write"
-\ 4\ /\ Owner\ gets\ FULL_CONTROL.\ The\ AuthenticatedUsers\ group\ gets\ READ\ access.
-\ \ \ \\\ "authenticated\-read"
-\ \ \ /\ Object\ owner\ gets\ FULL_CONTROL.\ Bucket\ owner\ gets\ READ\ access.
-\ 5\ |\ If\ you\ specify\ this\ canned\ ACL\ when\ creating\ a\ bucket,\ Amazon\ S3\ ignores\ it.
-\ \ \ \\\ "bucket\-owner\-read"
-\ \ \ /\ Both\ the\ object\ owner\ and\ the\ bucket\ owner\ get\ FULL_CONTROL\ over\ the\ object.
-\ 6\ |\ If\ you\ specify\ this\ canned\ ACL\ when\ creating\ a\ bucket,\ Amazon\ S3\ ignores\ it.
-\ \ \ \\\ "bucket\-owner\-full\-control"
-acl>\ private
+Specify\ if\ using\ an\ S3\ clone\ such\ as\ Ceph.
+endpoint>\ s3.wasabisys.com
+Location\ constraint\ \-\ must\ be\ set\ to\ match\ the\ Region.\ Used\ when\ creating\ buckets\ only.
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ 1\ /\ Empty\ for\ US\ Region,\ Northern\ Virginia\ or\ Pacific\ Northwest.
+\ \ \ \\\ ""
+[snip]
+location_constraint>\
+Canned\ ACL\ used\ when\ creating\ buckets\ and/or\ storing\ objects\ in\ S3.
+For\ more\ info\ visit\ https://docs.aws.amazon.com/AmazonS3/latest/dev/acl\-overview.html#canned\-acl
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ 1\ /\ Owner\ gets\ FULL_CONTROL.\ No\ one\ else\ has\ access\ rights\ (default).
+\ \ \ \\\ "private"
+[snip]
+acl>\
The\ server\-side\ encryption\ algorithm\ used\ when\ storing\ this\ object\ in\ S3.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ 1\ /\ None
\ \ \ \\\ ""
\ 2\ /\ AES256
\ \ \ \\\ "AES256"
-server_side_encryption>
+server_side_encryption>\
The\ storage\ class\ to\ use\ when\ storing\ objects\ in\ S3.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ 1\ /\ Default
@@ -4266,19 +5018,113 @@ Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ \ \ \\\ "REDUCED_REDUNDANCY"
\ 4\ /\ Standard\ Infrequent\ Access\ storage\ class
\ \ \ \\\ "STANDARD_IA"
-storage_class>
+storage_class>\
Remote\ config
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
-[remote]
+[wasabi]
env_auth\ =\ false
-access_key_id\ =\ access_key
-secret_access_key\ =\ secret_key
+access_key_id\ =\ YOURACCESSKEY
+secret_access_key\ =\ YOURSECRETACCESSKEY
+region\ =\ us\-east\-1
+endpoint\ =\ s3.wasabisys.com
+location_constraint\ =\
+acl\ =\
+server_side_encryption\ =\
+storage_class\ =\
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+y)\ Yes\ this\ is\ OK
+e)\ Edit\ this\ remote
+d)\ Delete\ this\ remote
+y/e/d>\ y
+\f[]
+.fi
+.PP
+This will leave the config file looking like this.
+.IP
+.nf
+\f[C]
+[wasabi]
+env_auth\ =\ false
+access_key_id\ =\ YOURACCESSKEY
+secret_access_key\ =\ YOURSECRETACCESSKEY
region\ =\ us\-east\-1
+endpoint\ =\ s3.wasabisys.com
+location_constraint\ =\
+acl\ =\
+server_side_encryption\ =\
+storage_class\ =\
+\f[]
+.fi
+.SS Backblaze B2
+.PP
+B2 is Backblaze\[aq]s cloud storage
+system (https://www.backblaze.com/b2/).
+.PP
+Paths are specified as \f[C]remote:bucket\f[] (or \f[C]remote:\f[] for
+the \f[C]lsd\f[] command.) You may put subdirectories in too, eg
+\f[C]remote:bucket/path/to/dir\f[].
+.PP
+Here is an example of making a b2 configuration.
+First run
+.IP
+.nf
+\f[C]
+rclone\ config
+\f[]
+.fi
+.PP
+This will guide you through an interactive setup process.
+You will need your account number (a short hex number) and key (a long
+hex number) which you can get from the b2 control panel.
+.IP
+.nf
+\f[C]
+No\ remotes\ found\ \-\ make\ a\ new\ one
+n)\ New\ remote
+q)\ Quit\ config
+n/q>\ n
+name>\ remote
+Type\ of\ storage\ to\ configure.
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ 1\ /\ Amazon\ Drive
+\ \ \ \\\ "amazon\ cloud\ drive"
+\ 2\ /\ Amazon\ S3\ (also\ Dreamhost,\ Ceph,\ Minio)
+\ \ \ \\\ "s3"
+\ 3\ /\ Backblaze\ B2
+\ \ \ \\\ "b2"
+\ 4\ /\ Dropbox
+\ \ \ \\\ "dropbox"
+\ 5\ /\ Encrypt/Decrypt\ a\ remote
+\ \ \ \\\ "crypt"
+\ 6\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
+\ \ \ \\\ "google\ cloud\ storage"
+\ 7\ /\ Google\ Drive
+\ \ \ \\\ "drive"
+\ 8\ /\ Hubic
+\ \ \ \\\ "hubic"
+\ 9\ /\ Local\ Disk
+\ \ \ \\\ "local"
+10\ /\ Microsoft\ OneDrive
+\ \ \ \\\ "onedrive"
+11\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
+\ \ \ \\\ "swift"
+12\ /\ SSH/SFTP\ Connection
+\ \ \ \\\ "sftp"
+13\ /\ Yandex\ Disk
+\ \ \ \\\ "yandex"
+Storage>\ 3
+Account\ ID
+account>\ 123456789abc
+Application\ Key
+key>\ 0123456789abcdef0123456789abcdef0123456789
+Endpoint\ for\ the\ service\ \-\ leave\ blank\ normally.
+endpoint>
+Remote\ config
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+[remote]
+account\ =\ 123456789abc
+key\ =\ 0123456789abcdef0123456789abcdef0123456789
endpoint\ =
-location_constraint\ =
-acl\ =\ private
-server_side_encryption\ =
-storage_class\ =
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
@@ -4329,331 +5175,515 @@ See the rclone docs (/docs/#fast-list) for more details.
.SS Modified time
.PP
The modified time is stored as metadata on the object as
-\f[C]X\-Amz\-Meta\-Mtime\f[] as floating point since the epoch accurate
-to 1 ns.
-.SS Multipart uploads
+\f[C]X\-Bz\-Info\-src_last_modified_millis\f[] as milliseconds since
+1970\-01\-01 in the Backblaze standard.
+Other tools should be able to use this as a modified time.
.PP
-rclone supports multipart uploads with S3 which means that it can upload
-files bigger than 5GB.
-Note that files uploaded with multipart upload don\[aq]t have an MD5SUM.
-.SS Buckets and Regions
+Modified times are used in syncing and are fully supported except in the
+case of updating a modification time on an existing object.
+In this case the object will be uploaded again as B2 doesn\[aq]t have an
+API method to set the modification time independent of doing an upload.
+.SS SHA1 checksums
.PP
-With Amazon S3 you can list buckets (\f[C]rclone\ lsd\f[]) using any
-region, but you can only access the content of a bucket from the region
-it was created in.
-If you attempt to access a bucket from the wrong region, you will get an
-error,
-\f[C]incorrect\ region,\ the\ bucket\ is\ not\ in\ \[aq]XXX\[aq]\ region\f[].
-.SS Authentication
+The SHA1 checksums of the files are checked on upload and download and
+will be used in the syncing process.
.PP
-There are two ways to supply \f[C]rclone\f[] with a set of AWS
-credentials.
-In order of precedence:
-.IP \[bu] 2
-Directly in the rclone configuration file (as configured by
-\f[C]rclone\ config\f[])
-.IP \[bu] 2
-set \f[C]access_key_id\f[] and \f[C]secret_access_key\f[]
-.IP \[bu] 2
-Runtime configuration:
-.IP \[bu] 2
-set \f[C]env_auth\f[] to \f[C]true\f[] in the config file
-.IP \[bu] 2
-Exporting the following environment variables before running
-\f[C]rclone\f[]
-.RS 2
-.IP \[bu] 2
-Access Key ID: \f[C]AWS_ACCESS_KEY_ID\f[] or \f[C]AWS_ACCESS_KEY\f[]
-.IP \[bu] 2
-Secret Access Key: \f[C]AWS_SECRET_ACCESS_KEY\f[] or
-\f[C]AWS_SECRET_KEY\f[]
-.RE
-.IP \[bu] 2
-Running \f[C]rclone\f[] on an EC2 instance with an IAM role
+Large files which are uploaded in chunks will store their SHA1 on the
+object as \f[C]X\-Bz\-Info\-large_file_sha1\f[] as recommended by
+Backblaze.
+.SS Transfers
.PP
-If none of these option actually end up providing \f[C]rclone\f[] with
-AWS credentials then S3 interaction will be non\-authenticated (see
-below).
-.SS S3 Permissions
+Backblaze recommends that you do lots of transfers simultaneously for
+maximum speed.
+In tests from my SSD equiped laptop the optimum setting is about
+\f[C]\-\-transfers\ 32\f[] though higher numbers may be used for a
+slight speed improvement.
+The optimum number for you may vary depending on your hardware, how big
+the files are, how much you want to load your computer, etc.
+The default of \f[C]\-\-transfers\ 4\f[] is definitely too low for
+Backblaze B2 though.
.PP
-When using the \f[C]sync\f[] subcommand of \f[C]rclone\f[] the following
-minimum permissions are required to be available on the bucket being
-written to:
-.IP \[bu] 2
-\f[C]ListBucket\f[]
-.IP \[bu] 2
-\f[C]DeleteObject\f[]
-.IP \[bu] 2
-\f[C]GetObject\f[]
-.IP \[bu] 2
-\f[C]PutObject\f[]
-.IP \[bu] 2
-\f[C]PutObjectACL\f[]
+Note that uploading big files (bigger than 200 MB by default) will use a
+96 MB RAM buffer by default.
+There can be at most \f[C]\-\-transfers\f[] of these in use at any
+moment, so this sets the upper limit on the memory used.
+.SS Versions
+.PP
+When rclone uploads a new version of a file it creates a new version of
+it (https://www.backblaze.com/b2/docs/file_versions.html).
+Likewise when you delete a file, the old version will be marked hidden
+and still be available.
+Conversely, you may opt in to a "hard delete" of files with the
+\f[C]\-\-b2\-hard\-delete\f[] flag which would permanently remove the
+file instead of hiding it.
+.PP
+Old versions of files, where available, are visible using the
+\f[C]\-\-b2\-versions\f[] flag.
+.PP
+If you wish to remove all the old versions then you can use the
+\f[C]rclone\ cleanup\ remote:bucket\f[] command which will delete all
+the old versions of files, leaving the current ones intact.
+You can also supply a path and only old versions under that path will be
+deleted, eg \f[C]rclone\ cleanup\ remote:bucket/path/to/stuff\f[].
+.PP
+When you \f[C]purge\f[] a bucket, the current and the old versions will
+be deleted then the bucket will be deleted.
+.PP
+However \f[C]delete\f[] will cause the current versions of the files to
+become hidden old versions.
+.PP
+Here is a session showing the listing and and retreival of an old
+version followed by a \f[C]cleanup\f[] of the old versions.
+.PP
+Show current version and all the versions with \f[C]\-\-b2\-versions\f[]
+flag.
+.IP
+.nf
+\f[C]
+$\ rclone\ \-q\ ls\ b2:cleanup\-test
+\ \ \ \ \ \ \ \ 9\ one.txt
+
+$\ rclone\ \-q\ \-\-b2\-versions\ ls\ b2:cleanup\-test
+\ \ \ \ \ \ \ \ 9\ one.txt
+\ \ \ \ \ \ \ \ 8\ one\-v2016\-07\-04\-141032\-000.txt
+\ \ \ \ \ \ \ 16\ one\-v2016\-07\-04\-141003\-000.txt
+\ \ \ \ \ \ \ 15\ one\-v2016\-07\-02\-155621\-000.txt
+\f[]
+.fi
+.PP
+Retreive an old verson
+.IP
+.nf
+\f[C]
+$\ rclone\ \-q\ \-\-b2\-versions\ copy\ b2:cleanup\-test/one\-v2016\-07\-04\-141003\-000.txt\ /tmp
+
+$\ ls\ \-l\ /tmp/one\-v2016\-07\-04\-141003\-000.txt
+\-rw\-rw\-r\-\-\ 1\ ncw\ ncw\ 16\ Jul\ \ 2\ 17:46\ /tmp/one\-v2016\-07\-04\-141003\-000.txt
+\f[]
+.fi
+.PP
+Clean up all the old versions and show that they\[aq]ve gone.
+.IP
+.nf
+\f[C]
+$\ rclone\ \-q\ cleanup\ b2:cleanup\-test
+
+$\ rclone\ \-q\ ls\ b2:cleanup\-test
+\ \ \ \ \ \ \ \ 9\ one.txt
+
+$\ rclone\ \-q\ \-\-b2\-versions\ ls\ b2:cleanup\-test
+\ \ \ \ \ \ \ \ 9\ one.txt
+\f[]
+.fi
+.SS Data usage
+.PP
+It is useful to know how many requests are sent to the server in
+different scenarios.
+.PP
+All copy commands send the following 4 requests:
+.IP
+.nf
+\f[C]
+/b2api/v1/b2_authorize_account
+/b2api/v1/b2_create_bucket
+/b2api/v1/b2_list_buckets
+/b2api/v1/b2_list_file_names
+\f[]
+.fi
.PP
-Example policy:
+The \f[C]b2_list_file_names\f[] request will be sent once for every 1k
+files in the remote path, providing the checksum and modification time
+of the listed files.
+As of version 1.33 issue #818 (https://github.com/ncw/rclone/issues/818)
+causes extra requests to be sent when using B2 with Crypt.
+When a copy operation does not require any files to be uploaded, no more
+requests will be sent.
+.PP
+Uploading files that do not require chunking, will send 2 requests per
+file upload:
.IP
.nf
\f[C]
-{
-\ \ \ \ "Version":\ "2012\-10\-17",
-\ \ \ \ "Statement":\ [
-\ \ \ \ \ \ \ \ {
-\ \ \ \ \ \ \ \ \ \ \ \ "Effect":\ "Allow",
-\ \ \ \ \ \ \ \ \ \ \ \ "Principal":\ {
-\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "AWS":\ "arn:aws:iam::USER_SID:user/USER_NAME"
-\ \ \ \ \ \ \ \ \ \ \ \ },
-\ \ \ \ \ \ \ \ \ \ \ \ "Action":\ [
-\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "s3:ListBucket",
-\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "s3:DeleteObject",
-\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "s3:GetObject",
-\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "s3:PutObject",
-\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "s3:PutObjectAcl"
-\ \ \ \ \ \ \ \ \ \ \ \ ],
-\ \ \ \ \ \ \ \ \ \ \ \ "Resource":\ [
-\ \ \ \ \ \ \ \ \ \ \ \ \ \ "arn:aws:s3:::BUCKET_NAME/*",
-\ \ \ \ \ \ \ \ \ \ \ \ \ \ "arn:aws:s3:::BUCKET_NAME"
-\ \ \ \ \ \ \ \ \ \ \ \ ]
-\ \ \ \ \ \ \ \ }
-\ \ \ \ ]
-}
+/b2api/v1/b2_get_upload_url
+/b2api/v1/b2_upload_file/
\f[]
.fi
.PP
-Notes on above:
-.IP "1." 3
-This is a policy that can be used when creating bucket.
-It assumes that \f[C]USER_NAME\f[] has been created.
-.IP "2." 3
-The Resource entry must include both resource ARNs, as one implies the
-bucket and the other implies the bucket\[aq]s objects.
+Uploading files requiring chunking, will send 2 requests (one each to
+start and finish the upload) and another 2 requests for each chunk:
+.IP
+.nf
+\f[C]
+/b2api/v1/b2_start_large_file
+/b2api/v1/b2_get_upload_part_url
+/b2api/v1/b2_upload_part/
+/b2api/v1/b2_finish_large_file
+\f[]
+.fi
+.SS B2 with crypt
.PP
-For reference, here\[aq]s an Ansible
-script (https://gist.github.com/ebridges/ebfc9042dd7c756cd101cfa807b7ae2b)
-that will generate one or more buckets that will work with
-\f[C]rclone\ sync\f[].
+When using B2 with \f[C]crypt\f[] files are encrypted into a temporary
+location and streamed from there.
+This is required to calculate the encrypted file\[aq]s checksum before
+beginning the upload.
+On Windows the %TMPDIR% environment variable is used as the temporary
+location.
+If the file requires chunking, both the chunking and encryption will
+take place in memory.
.SS Specific options
.PP
Here are the command line options specific to this cloud storage system.
-.SS \-\-s3\-acl=STRING
+.SS \-\-b2\-chunk\-size valuee=SIZE
.PP
-Canned ACL used when creating buckets and/or storing objects in S3.
+When uploading large files chunk the file into this size.
+Note that these chunks are buffered in memory and there might a maximum
+of \f[C]\-\-transfers\f[] chunks in progress at once.
+5,000,000 Bytes is the minimim size (default 96M).
+.SS \-\-b2\-upload\-cutoff=SIZE
.PP
-For more info visit the canned ACL
-docs (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl).
-.SS \-\-s3\-storage\-class=STRING
+Cutoff for switching to chunked upload (default 190.735 MiB == 200 MB).
+Files above this size will be uploaded in chunks of
+\f[C]\-\-b2\-chunk\-size\f[].
.PP
-Storage class to upload new objects with.
+This value should be set no larger than 4.657GiB (== 5GB) as this is the
+largest file size that can be uploaded.
+.SS \-\-b2\-test\-mode=FLAG
.PP
-Available options include:
+This is for debugging purposes only.
+.PP
+Setting FLAG to one of the strings below will cause b2 to return
+specific errors for debugging purposes.
.IP \[bu] 2
-STANDARD \- default storage class
+\f[C]fail_some_uploads\f[]
.IP \[bu] 2
-STANDARD_IA \- for less frequently accessed data (e.g backups)
+\f[C]expire_some_account_authorization_tokens\f[]
.IP \[bu] 2
-REDUCED_REDUNDANCY (only for noncritical, reproducible data, has lower
-redundancy)
-.SS Anonymous access to public buckets
+\f[C]force_cap_exceeded\f[]
.PP
-If you want to use rclone to access a public bucket, configure with a
-blank \f[C]access_key_id\f[] and \f[C]secret_access_key\f[].
-Eg
+These will be set in the \f[C]X\-Bz\-Test\-Mode\f[] header which is
+documented in the b2 integrations
+checklist (https://www.backblaze.com/b2/docs/integration_checklist.html).
+.SS \-\-b2\-versions
+.PP
+When set rclone will show and act on older versions of files.
+For example
+.PP
+Listing without \f[C]\-\-b2\-versions\f[]
.IP
.nf
\f[C]
-No\ remotes\ found\ \-\ make\ a\ new\ one
-n)\ New\ remote
-q)\ Quit\ config
-n/q>\ n
-name>\ anons3
-What\ type\ of\ source\ is\ it?
-Choose\ a\ number\ from\ below
-\ 1)\ amazon\ cloud\ drive
-\ 2)\ b2
-\ 3)\ drive
-\ 4)\ dropbox
-\ 5)\ google\ cloud\ storage
-\ 6)\ swift
-\ 7)\ hubic
-\ 8)\ local
-\ 9)\ onedrive
-10)\ s3
-11)\ yandex
-type>\ 10
-Get\ AWS\ credentials\ from\ runtime\ (environment\ variables\ or\ EC2\ meta\ data\ if\ no\ env\ vars).\ Only\ applies\ if\ access_key_id\ and\ secret_access_key\ is\ blank.
-Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
-\ *\ Enter\ AWS\ credentials\ in\ the\ next\ step
-\ 1)\ false
-\ *\ Get\ AWS\ credentials\ from\ the\ environment\ (env\ vars\ or\ IAM)
-\ 2)\ true
-env_auth>\ 1
-AWS\ Access\ Key\ ID\ \-\ leave\ blank\ for\ anonymous\ access\ or\ runtime\ credentials.
-access_key_id>
-AWS\ Secret\ Access\ Key\ (password)\ \-\ leave\ blank\ for\ anonymous\ access\ or\ runtime\ credentials.
-secret_access_key>
-\&...
+$\ rclone\ \-q\ ls\ b2:cleanup\-test
+\ \ \ \ \ \ \ \ 9\ one.txt
\f[]
.fi
.PP
-Then use it as normal with the name of the public bucket, eg
+And with
.IP
.nf
\f[C]
-rclone\ lsd\ anons3:1000genomes
+$\ rclone\ \-q\ \-\-b2\-versions\ ls\ b2:cleanup\-test
+\ \ \ \ \ \ \ \ 9\ one.txt
+\ \ \ \ \ \ \ \ 8\ one\-v2016\-07\-04\-141032\-000.txt
+\ \ \ \ \ \ \ 16\ one\-v2016\-07\-04\-141003\-000.txt
+\ \ \ \ \ \ \ 15\ one\-v2016\-07\-02\-155621\-000.txt
\f[]
.fi
.PP
-You will be able to list and copy data but not upload it.
-.SS Ceph
+Showing that the current version is unchanged but older versions can be
+seen.
+These have the UTC date that they were uploaded to the server to the
+nearest millisecond appended to them.
.PP
-Ceph is an object storage system which presents an Amazon S3 interface.
+Note that when using \f[C]\-\-b2\-versions\f[] no file write operations
+are permitted, so you can\[aq]t upload files or delete them.
+.SS Box
.PP
-To use rclone with ceph, you need to set the following parameters in the
-config.
+Paths are specified as \f[C]remote:path\f[]
+.PP
+Paths may be as deep as required, eg
+\f[C]remote:directory/subdirectory\f[].
+.PP
+The initial setup for Box involves getting a token from Box which you
+need to do in your browser.
+\f[C]rclone\ config\f[] walks you through it.
+.PP
+Here is an example of how to make a remote called \f[C]remote\f[].
+First run:
.IP
.nf
\f[C]
-access_key_id\ =\ Whatever
-secret_access_key\ =\ Whatever
-endpoint\ =\ https://ceph.endpoint.goes.here/
-region\ =\ other\-v2\-signature
+\ rclone\ config
\f[]
.fi
.PP
-Note also that Ceph sometimes puts \f[C]/\f[] in the passwords it gives
-users.
-If you read the secret access key using the command line tools you will
-get a JSON blob with the \f[C]/\f[] escaped as \f[C]\\/\f[].
-Make sure you only write \f[C]/\f[] in the secret access key.
-.PP
-Eg the dump from Ceph looks something like this (irrelevant keys
-removed).
+This will guide you through an interactive setup process:
.IP
.nf
\f[C]
-{
-\ \ \ \ "user_id":\ "xxx",
-\ \ \ \ "display_name":\ "xxxx",
-\ \ \ \ "keys":\ [
-\ \ \ \ \ \ \ \ {
-\ \ \ \ \ \ \ \ \ \ \ \ "user":\ "xxx",
-\ \ \ \ \ \ \ \ \ \ \ \ "access_key":\ "xxxxxx",
-\ \ \ \ \ \ \ \ \ \ \ \ "secret_key":\ "xxxxxx\\/xxxx"
-\ \ \ \ \ \ \ \ }
-\ \ \ \ ],
-}
-\f[]
-.fi
-.PP
-Because this is a json dump, it is encoding the \f[C]/\f[] as
-\f[C]\\/\f[], so if you use the secret key as \f[C]xxxxxx/xxxx\f[] it
-will work fine.
-.SS Minio
+No\ remotes\ found\ \-\ make\ a\ new\ one
+n)\ New\ remote
+s)\ Set\ configuration\ password
+q)\ Quit\ config
+n/s/q>\ n
+name>\ remote
+Type\ of\ storage\ to\ configure.
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ 1\ /\ Amazon\ Drive
+\ \ \ \\\ "amazon\ cloud\ drive"
+\ 2\ /\ Amazon\ S3\ (also\ Dreamhost,\ Ceph,\ Minio)
+\ \ \ \\\ "s3"
+\ 3\ /\ Backblaze\ B2
+\ \ \ \\\ "b2"
+\ 4\ /\ Box
+\ \ \ \\\ "box"
+\ 5\ /\ Dropbox
+\ \ \ \\\ "dropbox"
+\ 6\ /\ Encrypt/Decrypt\ a\ remote
+\ \ \ \\\ "crypt"
+\ 7\ /\ FTP\ Connection
+\ \ \ \\\ "ftp"
+\ 8\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
+\ \ \ \\\ "google\ cloud\ storage"
+\ 9\ /\ Google\ Drive
+\ \ \ \\\ "drive"
+10\ /\ Hubic
+\ \ \ \\\ "hubic"
+11\ /\ Local\ Disk
+\ \ \ \\\ "local"
+12\ /\ Microsoft\ OneDrive
+\ \ \ \\\ "onedrive"
+13\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
+\ \ \ \\\ "swift"
+14\ /\ SSH/SFTP\ Connection
+\ \ \ \\\ "sftp"
+15\ /\ Yandex\ Disk
+\ \ \ \\\ "yandex"
+16\ /\ http\ Connection
+\ \ \ \\\ "http"
+Storage>\ box
+Box\ App\ Client\ Id\ \-\ leave\ blank\ normally.
+client_id>\
+Box\ App\ Client\ Secret\ \-\ leave\ blank\ normally.
+client_secret>\
+Remote\ config
+Use\ auto\ config?
+\ *\ Say\ Y\ if\ not\ sure
+\ *\ Say\ N\ if\ you\ are\ working\ on\ a\ remote\ or\ headless\ machine
+y)\ Yes
+n)\ No
+y/n>\ y
+If\ your\ browser\ doesn\[aq]t\ open\ automatically\ go\ to\ the\ following\ link:\ http://127.0.0.1:53682/auth
+Log\ in\ and\ authorize\ rclone\ for\ access
+Waiting\ for\ code...
+Got\ code
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+[remote]
+client_id\ =\
+client_secret\ =\
+token\ =\ {"access_token":"XXX","token_type":"bearer","refresh_token":"XXX","expiry":"XXX"}
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+y)\ Yes\ this\ is\ OK
+e)\ Edit\ this\ remote
+d)\ Delete\ this\ remote
+y/e/d>\ y
+\f[]
+.fi
.PP
-Minio (https://minio.io/) is an object storage server built for cloud
-application developers and devops.
+See the remote setup docs (https://rclone.org/remote_setup/) for how to
+set it up on a machine with no Internet browser available.
.PP
-It is very easy to install and provides an S3 compatible server which
-can be used by rclone.
+Note that rclone runs a webserver on your local machine to collect the
+token as returned from Box.
+This only runs from the moment it opens your browser to the moment you
+get back the verification code.
+This is on \f[C]http://127.0.0.1:53682/\f[] and this it may require you
+to unblock it temporarily if you are running a host firewall.
.PP
-To use it, install Minio following the instructions
-here (https://docs.minio.io/docs/minio-quickstart-guide).
+Once configured you can then use \f[C]rclone\f[] like this,
.PP
-When it configures itself Minio will print something like this
+List directories in top level of your Box
.IP
.nf
\f[C]
-Endpoint:\ \ http://192.168.1.106:9000\ \ http://172.23.0.1:9000
-AccessKey:\ USWUXHGYZQYFYFFIT3RE
-SecretKey:\ MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
-Region:\ \ \ \ us\-east\-1
-SQS\ ARNs:\ \ arn:minio:sqs:us\-east\-1:1:redis\ arn:minio:sqs:us\-east\-1:2:redis
-
-Browser\ Access:
-\ \ \ http://192.168.1.106:9000\ \ http://172.23.0.1:9000
-
-Command\-line\ Access:\ https://docs.minio.io/docs/minio\-client\-quickstart\-guide
-\ \ \ $\ mc\ config\ host\ add\ myminio\ http://192.168.1.106:9000\ USWUXHGYZQYFYFFIT3RE\ MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
-
-Object\ API\ (Amazon\ S3\ compatible):
-\ \ \ Go:\ \ \ \ \ \ \ \ \ https://docs.minio.io/docs/golang\-client\-quickstart\-guide
-\ \ \ Java:\ \ \ \ \ \ \ https://docs.minio.io/docs/java\-client\-quickstart\-guide
-\ \ \ Python:\ \ \ \ \ https://docs.minio.io/docs/python\-client\-quickstart\-guide
-\ \ \ JavaScript:\ https://docs.minio.io/docs/javascript\-client\-quickstart\-guide
-\ \ \ .NET:\ \ \ \ \ \ \ https://docs.minio.io/docs/dotnet\-client\-quickstart\-guide
-
-Drive\ Capacity:\ 26\ GiB\ Free,\ 165\ GiB\ Total
+rclone\ lsd\ remote:
\f[]
.fi
.PP
-These details need to go into \f[C]rclone\ config\f[] like this.
-Note that it is important to put the region in as stated above.
+List all the files in your Box
.IP
.nf
\f[C]
-env_auth>\ 1
-access_key_id>\ USWUXHGYZQYFYFFIT3RE
-secret_access_key>\ MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
-region>\ us\-east\-1
-endpoint>\ http://192.168.1.106:9000
-location_constraint>
-server_side_encryption>
+rclone\ ls\ remote:
\f[]
.fi
.PP
-Which makes the config file look like this
+To copy a local directory to an Box directory called backup
.IP
.nf
\f[C]
-[minio]
-env_auth\ =\ false
-access_key_id\ =\ USWUXHGYZQYFYFFIT3RE
-secret_access_key\ =\ MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
-region\ =\ us\-east\-1
-endpoint\ =\ http://192.168.1.106:9000
-location_constraint\ =
-server_side_encryption\ =
+rclone\ copy\ /home/source\ remote:backup
\f[]
.fi
+.SS Invalid refresh token
.PP
-So once set up, for example to copy files into a bucket
-.IP
-.nf
-\f[C]
-rclone\ copy\ /path/to/files\ minio:bucket
-\f[]
-.fi
-.SS Swift
+According to the box
+docs (https://developer.box.com/v2.0/docs/oauth-20#section-6-using-the-access-and-refresh-tokens):
+.RS
.PP
-Swift refers to Openstack Object
-Storage (https://www.openstack.org/software/openstack-storage/).
-Commercial implementations of that being:
+Each refresh_token is valid for one use in 60 days.
+.RE
+.PP
+This means that if you
.IP \[bu] 2
-Rackspace Cloud Files (https://www.rackspace.com/cloud/files/)
+Don\[aq]t use the box remote for 60 days
.IP \[bu] 2
-Memset Memstore (https://www.memset.com/cloud/storage/)
+Copy the config file with a box refresh token in and use it in two
+places
+.IP \[bu] 2
+Get an error on a token refresh
.PP
-Paths are specified as \f[C]remote:container\f[] (or \f[C]remote:\f[]
-for the \f[C]lsd\f[] command.) You may put subdirectories in too, eg
-\f[C]remote:container/path/to/dir\f[].
+then rclone will return an error which includes the text
+\f[C]Invalid\ refresh\ token\f[].
.PP
-Here is an example of making a swift configuration.
-First run
+To fix this you will need to use oauth2 again to update the refresh
+token.
+You can use the methods in the remote setup
+docs (https://rclone.org/remote_setup/), bearing in mind that if you use
+the copy the config file method, you should not use that remote on the
+computer you did the authentication on.
+.PP
+Here is how to do it.
.IP
.nf
\f[C]
-rclone\ config
+$\ rclone\ config
+Current\ remotes:
+
+Name\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Type
+====\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ====
+remote\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ box
+
+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>\ e
+Choose\ a\ number\ from\ below,\ or\ type\ in\ an\ existing\ value
+\ 1\ >\ remote
+remote>\ remote
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+[remote]
+type\ =\ box
+token\ =\ {"access_token":"XXX","token_type":"bearer","refresh_token":"XXX","expiry":"2017\-07\-08T23:40:08.059167677+01:00"}
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+Edit\ remote
+Value\ "client_id"\ =\ ""
+Edit?\ (y/n)>
+y)\ Yes
+n)\ No
+y/n>\ n
+Value\ "client_secret"\ =\ ""
+Edit?\ (y/n)>
+y)\ Yes
+n)\ No
+y/n>\ n
+Remote\ config
+Already\ have\ a\ token\ \-\ refresh?
+y)\ Yes
+n)\ No
+y/n>\ y
+Use\ auto\ config?
+\ *\ Say\ Y\ if\ not\ sure
+\ *\ Say\ N\ if\ you\ are\ working\ on\ a\ remote\ or\ headless\ machine
+y)\ Yes
+n)\ No
+y/n>\ y
+If\ your\ browser\ doesn\[aq]t\ open\ automatically\ go\ to\ the\ following\ link:\ http://127.0.0.1:53682/auth
+Log\ in\ and\ authorize\ rclone\ for\ access
+Waiting\ for\ code...
+Got\ code
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+[remote]
+type\ =\ box
+token\ =\ {"access_token":"YYY","token_type":"bearer","refresh_token":"YYY","expiry":"2017\-07\-23T12:22:29.259137901+01:00"}
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+y)\ Yes\ this\ is\ OK
+e)\ Edit\ this\ remote
+d)\ Delete\ this\ remote
+y/e/d>\ y
\f[]
.fi
+.SS Modified time and hashes
.PP
-This will guide you through an interactive setup process.
+Box allows modification times to be set on objects accurate to 1 second.
+These will be used to detect whether objects need syncing or not.
+.PP
+One drive supports SHA1 type hashes, so you can use the
+\f[C]\-\-checksum\f[] flag.
+.SS Transfers
+.PP
+For files above 50MB rclone will use a chunked transfer.
+Rclone will upload up to \f[C]\-\-transfers\f[] chunks at the same time
+(shared among all the multipart uploads).
+Chunks are buffered in memory and are normally 8MB so increasing
+\f[C]\-\-transfers\f[] will increase memory use.
+.SS Deleting files
+.PP
+Depending on the enterprise settings for your user, the item will either
+be actually deleted from Box or moved to the trash.
+.SS Specific options
+.PP
+Here are the command line options specific to this cloud storage system.
+.SS \-\-box\-upload\-cutoff=SIZE
+.PP
+Cutoff for switching to chunked upload \- must be >= 50MB.
+The default is 50MB.
+.SS Limitations
+.PP
+Note that Box is case insensitive so you can\[aq]t have a file called
+"Hello.doc" and one called "hello.doc".
+.PP
+Box file names can\[aq]t have the \f[C]\\\f[] character in.
+rclone maps this to and from an identical looking unicode equivalent
+\f[C]\\f[].
+.PP
+Box only supports filenames up to 255 characters in length.
+.SS Crypt
+.PP
+The \f[C]crypt\f[] remote encrypts and decrypts another remote.
+.PP
+To use it first set up the underlying remote following the config
+instructions for that remote.
+You can also use a local pathname instead of a remote which will encrypt
+and decrypt from that directory which might be useful for encrypting
+onto a USB stick for example.
+.PP
+First check your chosen remote is working \- we\[aq]ll call it
+\f[C]remote:path\f[] in these docs.
+Note that anything inside \f[C]remote:path\f[] will be encrypted and
+anything outside won\[aq]t.
+This means that if you are using a bucket based remote (eg S3, B2,
+swift) then you should probably put the bucket in the remote
+\f[C]s3:bucket\f[].
+If you just use \f[C]s3:\f[] then rclone will make encrypted bucket
+names too (if using file name encryption) which may or may not be what
+you want.
+.PP
+Now configure \f[C]crypt\f[] using \f[C]rclone\ config\f[].
+We will call this one \f[C]secret\f[] to differentiate it from the
+\f[C]remote\f[].
.IP
.nf
\f[C]
No\ remotes\ found\ \-\ make\ a\ new\ one
n)\ New\ remote
s)\ Set\ configuration\ password
-n/s>\ n
-name>\ remote
+q)\ Quit\ config
+n/s/q>\ n\ \ \
+name>\ secret
Type\ of\ storage\ to\ configure.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ 1\ /\ Amazon\ Drive
@@ -4682,50 +5712,51 @@ Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ \ \ \\\ "sftp"
13\ /\ Yandex\ Disk
\ \ \ \\\ "yandex"
-Storage>\ 11
-User\ name\ to\ log\ in.
-user>\ user_name
-API\ key\ or\ password.
-key>\ password_or_api_key
-Authentication\ URL\ for\ server.
+Storage>\ 5
+Remote\ to\ encrypt/decrypt.
+Normally\ should\ contain\ a\ \[aq]:\[aq]\ and\ a\ path,\ eg\ "myremote:path/to/dir",
+"myremote:bucket"\ or\ maybe\ "myremote:"\ (not\ recommended).
+remote>\ remote:path
+How\ to\ encrypt\ the\ filenames.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
-\ 1\ /\ Rackspace\ US
-\ \ \ \\\ "https://auth.api.rackspacecloud.com/v1.0"
-\ 2\ /\ Rackspace\ UK
-\ \ \ \\\ "https://lon.auth.api.rackspacecloud.com/v1.0"
-\ 3\ /\ Rackspace\ v2
-\ \ \ \\\ "https://identity.api.rackspacecloud.com/v2.0"
-\ 4\ /\ Memset\ Memstore\ UK
-\ \ \ \\\ "https://auth.storage.memset.com/v1.0"
-\ 5\ /\ Memset\ Memstore\ UK\ v2
-\ \ \ \\\ "https://auth.storage.memset.com/v2.0"
-\ 6\ /\ OVH
-\ \ \ \\\ "https://auth.cloud.ovh.net/v2.0"
-auth>\ 1
-User\ domain\ \-\ optional\ (v3\ auth)
-domain>\ Default
-Tenant\ name\ \-\ optional\ for\ v1\ auth,\ required\ otherwise
-tenant>\ tenant_name
-Tenant\ domain\ \-\ optional\ (v3\ auth)
-tenant_domain>
-Region\ name\ \-\ optional
-region>
-Storage\ URL\ \-\ optional
-storage_url>
-AuthVersion\ \-\ optional\ \-\ set\ to\ (1,2,3)\ if\ your\ auth\ URL\ has\ no\ version
-auth_version>
+\ 1\ /\ Don\[aq]t\ encrypt\ the\ file\ names.\ \ Adds\ a\ ".bin"\ extension\ only.
+\ \ \ \\\ "off"
+\ 2\ /\ Encrypt\ the\ filenames\ see\ the\ docs\ for\ the\ details.
+\ \ \ \\\ "standard"
+\ 3\ /\ Very\ simple\ filename\ obfuscation.
+\ \ \ \\\ "obfuscate"
+filename_encryption>\ 2
+Password\ or\ pass\ phrase\ for\ encryption.
+y)\ Yes\ type\ in\ my\ own\ password
+g)\ Generate\ random\ password
+y/g>\ y
+Enter\ the\ password:
+password:
+Confirm\ the\ password:
+password:
+Password\ or\ pass\ phrase\ for\ salt.\ Optional\ but\ recommended.
+Should\ be\ different\ to\ the\ previous\ password.
+y)\ Yes\ type\ in\ my\ own\ password
+g)\ Generate\ random\ password
+n)\ No\ leave\ this\ optional\ password\ blank
+y/g/n>\ g
+Password\ strength\ in\ bits.
+64\ is\ just\ about\ memorable
+128\ is\ secure
+1024\ is\ the\ maximum
+Bits>\ 128
+Your\ password\ is:\ JAsJvRcgR\-_veXNfy_sGmQ
+Use\ this\ password?
+y)\ Yes
+n)\ No
+y/n>\ y
Remote\ config
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
-[remote]
-user\ =\ user_name
-key\ =\ password_or_api_key
-auth\ =\ https://auth.api.rackspacecloud.com/v1.0
-domain\ =\ Default
-tenant\ =
-tenant_domain\ =
-region\ =
-storage_url\ =
-auth_version\ =
+[secret]
+remote\ =\ remote:path
+filename_encryption\ =\ standard
+password\ =\ ***\ ENCRYPTED\ ***
+password2\ =\ ***\ ENCRYPTED\ ***
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
@@ -4734,118 +5765,337 @@ y/e/d>\ y
\f[]
.fi
.PP
-This remote is called \f[C]remote\f[] and can now be used like this
+\f[B]Important\f[] The password is stored in the config file is lightly
+obscured so it isn\[aq]t immediately obvious what it is.
+It is in no way secure unless you use config file encryption.
+.PP
+A long passphrase is recommended, or you can use a random one.
+Note that if you reconfigure rclone with the same passwords/passphrases
+elsewhere it will be compatible \- all the secrets used are derived from
+those two passwords/passphrases.
+.PP
+Note that rclone does not encrypt
+.IP \[bu] 2
+file length \- this can be calcuated within 16 bytes
+.IP \[bu] 2
+modification time \- used for syncing
+.SS Specifying the remote
+.PP
+In normal use, make sure the remote has a \f[C]:\f[] in.
+If you specify the remote without a \f[C]:\f[] then rclone will use a
+local directory of that name.
+So if you use a remote of \f[C]/path/to/secret/files\f[] then rclone
+will encrypt stuff to that directory.
+If you use a remote of \f[C]name\f[] then rclone will put files in a
+directory called \f[C]name\f[] in the current directory.
+.PP
+If you specify the remote as \f[C]remote:path/to/dir\f[] then rclone
+will store encrypted files in \f[C]path/to/dir\f[] on the remote.
+If you are using file name encryption, then when you save files to
+\f[C]secret:subdir/subfile\f[] this will store them in the unencrypted
+path \f[C]path/to/dir\f[] but the \f[C]subdir/subpath\f[] bit will be
+encrypted.
+.PP
+Note that unless you want encrypted bucket names (which are difficult to
+manage because you won\[aq]t know what directory they represent in web
+interfaces etc), you should probably specify a bucket, eg
+\f[C]remote:secretbucket\f[] when using bucket based remotes such as S3,
+Swift, Hubic, B2, GCS.
+.SS Example
+.PP
+To test I made a little directory of files using "standard" file name
+encryption.
+.IP
+.nf
+\f[C]
+plaintext/
+├──\ file0.txt
+├──\ file1.txt
+└──\ subdir
+\ \ \ \ ├──\ file2.txt
+\ \ \ \ ├──\ file3.txt
+\ \ \ \ └──\ subsubdir
+\ \ \ \ \ \ \ \ └──\ file4.txt
+\f[]
+.fi
+.PP
+Copy these to the remote and list them back
+.IP
+.nf
+\f[C]
+$\ rclone\ \-q\ copy\ plaintext\ secret:
+$\ rclone\ \-q\ ls\ secret:
+\ \ \ \ \ \ \ \ 7\ file1.txt
+\ \ \ \ \ \ \ \ 6\ file0.txt
+\ \ \ \ \ \ \ \ 8\ subdir/file2.txt
+\ \ \ \ \ \ \ 10\ subdir/subsubdir/file4.txt
+\ \ \ \ \ \ \ \ 9\ subdir/file3.txt
+\f[]
+.fi
.PP
-See all containers
+Now see what that looked like when encrypted
.IP
.nf
\f[C]
-rclone\ lsd\ remote:
+$\ rclone\ \-q\ ls\ remote:path
+\ \ \ \ \ \ \ 55\ hagjclgavj2mbiqm6u6cnjjqcg
+\ \ \ \ \ \ \ 54\ v05749mltvv1tf4onltun46gls
+\ \ \ \ \ \ \ 57\ 86vhrsv86mpbtd3a0akjuqslj8/dlj7fkq4kdq72emafg7a7s41uo
+\ \ \ \ \ \ \ 58\ 86vhrsv86mpbtd3a0akjuqslj8/7uu829995du6o42n32otfhjqp4/b9pausrfansjth5ob3jkdqd4lc
+\ \ \ \ \ \ \ 56\ 86vhrsv86mpbtd3a0akjuqslj8/8njh1sk437gttmep3p70g81aps
\f[]
.fi
.PP
-Make a new container
+Note that this retains the directory structure which means you can do
+this
.IP
.nf
\f[C]
-rclone\ mkdir\ remote:container
+$\ rclone\ \-q\ ls\ secret:subdir
+\ \ \ \ \ \ \ \ 8\ file2.txt
+\ \ \ \ \ \ \ \ 9\ file3.txt
+\ \ \ \ \ \ \ 10\ subsubdir/file4.txt
\f[]
.fi
.PP
-List the contents of a container
+If don\[aq]t use file name encryption then the remote will look like
+this \- note the \f[C]\&.bin\f[] extensions added to prevent the cloud
+provider attempting to interpret the data.
.IP
.nf
\f[C]
-rclone\ ls\ remote:container
+$\ rclone\ \-q\ ls\ remote:path
+\ \ \ \ \ \ \ 54\ file0.txt.bin
+\ \ \ \ \ \ \ 57\ subdir/file3.txt.bin
+\ \ \ \ \ \ \ 56\ subdir/file2.txt.bin
+\ \ \ \ \ \ \ 58\ subdir/subsubdir/file4.txt.bin
+\ \ \ \ \ \ \ 55\ file1.txt.bin
\f[]
.fi
+.SS File name encryption modes
.PP
-Sync \f[C]/home/local/directory\f[] to the remote container, deleting
-any excess files in the container.
+Here are some of the features of the file name encryption modes
+.PP
+Off
+.IP \[bu] 2
+doesn\[aq]t hide file names or directory structure
+.IP \[bu] 2
+allows for longer file names (~246 characters)
+.IP \[bu] 2
+can use sub paths and copy single files
+.PP
+Standard
+.IP \[bu] 2
+file names encrypted
+.IP \[bu] 2
+file names can\[aq]t be as long (~156 characters)
+.IP \[bu] 2
+can use sub paths and copy single files
+.IP \[bu] 2
+directory structure visibile
+.IP \[bu] 2
+identical files names will have identical uploaded names
+.IP \[bu] 2
+can use shortcuts to shorten the directory recursion
+.PP
+Obfuscation
+.PP
+This is a simple "rotate" of the filename, with each file having a rot
+distance based on the filename.
+We store the distance at the beginning of the filename.
+So a file called "hello" may become "53.jgnnq"
+.PP
+This is not a strong encryption of filenames, but it may stop automated
+scanning tools from picking up on filename patterns.
+As such it\[aq]s an intermediate between "off" and "standard".
+The advantage is that it allows for longer path segment names.
+.PP
+There is a possibility with some unicode based filenames that the
+obfuscation is weak and may map lower case characters to upper case
+equivalents.
+You can not rely on this for strong protection.
+.IP \[bu] 2
+file names very lightly obfuscated
+.IP \[bu] 2
+file names can be longer than standard encryption
+.IP \[bu] 2
+can use sub paths and copy single files
+.IP \[bu] 2
+directory structure visibile
+.IP \[bu] 2
+identical files names will have identical uploaded names
+.PP
+Cloud storage systems have various limits on file name length and total
+path length which you are more likely to hit using "Standard" file name
+encryption.
+If you keep your file names to below 156 characters in length then you
+should be OK on all providers.
+.PP
+There may be an even more secure file name encryption mode in the future
+which will address the long file name problem.
+.SS Modified time and hashes
+.PP
+Crypt stores modification times using the underlying remote so support
+depends on that.
+.PP
+Hashes are not stored for crypt.
+However the data integrity is protected by an extremely strong crypto
+authenticator.
+.PP
+Note that you should use the \f[C]rclone\ cryptcheck\f[] command to
+check the integrity of a crypted remote instead of
+\f[C]rclone\ check\f[] which can\[aq]t check the checksums properly.
+.SS Specific options
+.PP
+Here are the command line options specific to this cloud storage system.
+.SS \-\-crypt\-show\-mapping
+.PP
+If this flag is set then for each file that the remote is asked to list,
+it will log (at level INFO) a line stating the decrypted file name and
+the encrypted file name.
+.PP
+This is so you can work out which encrypted names are which decrypted
+names just in case you need to do something with the encrypted file
+names, or for debugging purposes.
+.SS Backing up a crypted remote
+.PP
+If you wish to backup a crypted remote, it it recommended that you use
+\f[C]rclone\ sync\f[] on the encrypted files, and make sure the
+passwords are the same in the new encrypted remote.
+.PP
+This will have the following advantages
+.IP \[bu] 2
+\f[C]rclone\ sync\f[] will check the checksums while copying
+.IP \[bu] 2
+you can use \f[C]rclone\ check\f[] between the encrypted remotes
+.IP \[bu] 2
+you don\[aq]t decrypt and encrypt unecessarily
+.PP
+For example, let\[aq]s say you have your original remote at
+\f[C]remote:\f[] with the encrypted version at \f[C]eremote:\f[] with
+path \f[C]remote:crypt\f[].
+You would then set up the new remote \f[C]remote2:\f[] and then the
+encrypted version \f[C]eremote2:\f[] with path \f[C]remote2:crypt\f[]
+using the same passwords as \f[C]eremote:\f[].
+.PP
+To sync the two remotes you would do
.IP
.nf
\f[C]
-rclone\ sync\ /home/local/directory\ remote:container
+rclone\ sync\ remote:crypt\ remote2:crypt
\f[]
.fi
-.SS Configuration from an Openstack credentials file
.PP
-An Opentstack credentials file typically looks something something like
-this (without the comments)
+And to check the integrity you would do
.IP
.nf
\f[C]
-export\ OS_AUTH_URL=https://a.provider.net/v2.0
-export\ OS_TENANT_ID=ffffffffffffffffffffffffffffffff
-export\ OS_TENANT_NAME="1234567890123456"
-export\ OS_USERNAME="123abc567xy"
-echo\ "Please\ enter\ your\ OpenStack\ Password:\ "
-read\ \-sr\ OS_PASSWORD_INPUT
-export\ OS_PASSWORD=$OS_PASSWORD_INPUT
-export\ OS_REGION_NAME="SBG1"
-if\ [\ \-z\ "$OS_REGION_NAME"\ ];\ then\ unset\ OS_REGION_NAME;\ fi
+rclone\ check\ remote:crypt\ remote2:crypt
\f[]
.fi
+.SS File formats
+.SS File encryption
+.PP
+Files are encrypted 1:1 source file to destination object.
+The file has a header and is divided into chunks.
+.SS Header
+.IP \[bu] 2
+8 bytes magic string \f[C]RCLONE\\x00\\x00\f[]
+.IP \[bu] 2
+24 bytes Nonce (IV)
+.PP
+The initial nonce is generated from the operating systems crypto strong
+random number genrator.
+The nonce is incremented for each chunk read making sure each nonce is
+unique for each block written.
+The chance of a nonce being re\-used is miniscule.
+If you wrote an exabyte of data (10¹⁸ bytes) you would have a
+probability of approximately 2×10⁻³² of re\-using a nonce.
+.SS Chunk
+.PP
+Each chunk will contain 64kB of data, except for the last one which may
+have less data.
+The data chunk is in standard NACL secretbox format.
+Secretbox uses XSalsa20 and Poly1305 to encrypt and authenticate
+messages.
+.PP
+Each chunk contains:
+.IP \[bu] 2
+16 Bytes of Poly1305 authenticator
+.IP \[bu] 2
+1 \- 65536 bytes XSalsa20 encrypted data
+.PP
+64k chunk size was chosen as the best performing chunk size (the
+authenticator takes too much time below this and the performance drops
+off due to cache effects above this).
+Note that these chunks are buffered in memory so they can\[aq]t be too
+big.
+.PP
+This uses a 32 byte (256 bit key) key derived from the user password.
+.SS Examples
+.PP
+1 byte file will encrypt to
+.IP \[bu] 2
+32 bytes header
+.IP \[bu] 2
+17 bytes data chunk
.PP
-The config file needs to look something like this where
-\f[C]$OS_USERNAME\f[] represents the value of the \f[C]OS_USERNAME\f[]
-variable \- \f[C]123abc567xy\f[] in the example above.
-.IP
-.nf
-\f[C]
-[remote]
-type\ =\ swift
-user\ =\ $OS_USERNAME
-key\ =\ $OS_PASSWORD
-auth\ =\ $OS_AUTH_URL
-tenant\ =\ $OS_TENANT_NAME
-\f[]
-.fi
+49 bytes total
.PP
-Note that you may (or may not) need to set \f[C]region\f[] too \- try
-without first.
-.SS \-\-fast\-list
+1MB (1048576 bytes) file will encrypt to
+.IP \[bu] 2
+32 bytes header
+.IP \[bu] 2
+16 chunks of 65568 bytes
.PP
-This remote supports \f[C]\-\-fast\-list\f[] which allows you to use
-fewer transactions in exchange for more memory.
-See the rclone docs (/docs/#fast-list) for more details.
-.SS Specific options
+1049120 bytes total (a 0.05% overhead).
+This is the overhead for big files.
+.SS Name encryption
.PP
-Here are the command line options specific to this cloud storage system.
-.SS \-\-swift\-chunk\-size=SIZE
+File names are encrypted segment by segment \- the path is broken up
+into \f[C]/\f[] separated strings and these are encrypted individually.
.PP
-Above this size files will be chunked into a _segments container.
-The default for this is 5GB which is its maximum value.
-.SS Modified time
+File segments are padded using using PKCS#7 to a multiple of 16 bytes
+before encryption.
.PP
-The modified time is stored as metadata on the object as
-\f[C]X\-Object\-Meta\-Mtime\f[] as floating point since the epoch
-accurate to 1 ns.
+They are then encrypted with EME using AES with 256 bit key.
+EME (ECB\-Mix\-ECB) is a wide\-block encryption mode presented in the
+2003 paper "A Parallelizable Enciphering Mode" by Halevi and Rogaway.
.PP
-This is a defacto standard (used in the official python\-swiftclient
-amongst others) for storing the modification time for an object.
-.SS Limitations
+This makes for determinstic encryption which is what we want \- the same
+filename must encrypt to the same thing otherwise we can\[aq]t find it
+on the cloud storage system.
.PP
-The Swift API doesn\[aq]t return a correct MD5SUM for segmented files
-(Dynamic or Static Large Objects) so rclone won\[aq]t check or use the
-MD5SUM for these.
-.SS Troubleshooting
-.SS Rclone gives Failed to create file system for "remote:": Bad Request
+This means that
+.IP \[bu] 2
+filenames with the same name will encrypt the same
+.IP \[bu] 2
+filenames which start the same won\[aq]t have a common prefix
.PP
-Due to an oddity of the underlying swift library, it gives a "Bad
-Request" error rather than a more sensible error when the authentication
-fails for Swift.
+This uses a 32 byte key (256 bits) and a 16 byte (128 bits) IV both of
+which are derived from the user password.
.PP
-So this most likely means your username / password is wrong.
-You can investigate further with the \f[C]\-\-dump\-bodies\f[] flag.
+After encryption they are written out using a modified version of
+standard \f[C]base32\f[] encoding as described in RFC4648.
+The standard encoding is modified in two ways:
+.IP \[bu] 2
+it becomes lower case (no\-one likes upper case filenames!)
+.IP \[bu] 2
+we strip the padding character \f[C]=\f[]
.PP
-This may also be caused by specifying the region when you shouldn\[aq]t
-have (eg OVH).
-.SS Rclone gives Failed to create file system: Response didn\[aq]t have
-storage storage url and auth token
+\f[C]base32\f[] is used rather than the more efficient \f[C]base64\f[]
+so rclone can be used on case insensitive remotes (eg Windows, Amazon
+Drive).
+.SS Key derivation
.PP
-This is most likely caused by forgetting to specify your tenant when
-setting up a swift remote.
+Rclone uses \f[C]scrypt\f[] with parameters \f[C]N=16384,\ r=8,\ p=1\f[]
+with a an optional user supplied salt (password2) to derive the 32+32+16
+= 80 bytes of key material required.
+If the user doesn\[aq]t supply a salt then rclone uses an internal one.
+.PP
+\f[C]scrypt\f[] makes it impractical to mount a dictionary attack on
+rclone encrypted data.
+For full protection agains this you should always use a salt.
.SS Dropbox
.PP
Paths are specified as \f[C]remote:path\f[]
@@ -4978,19 +6228,167 @@ Note that this isn\[aq]t buffered into memory.
Note that Dropbox is case insensitive so you can\[aq]t have a file
called "Hello.doc" and one called "hello.doc".
.PP
-There are some file names such as \f[C]thumbs.db\f[] which Dropbox
-can\[aq]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
-\f[C]File\ name\ disallowed\ \-\ not\ uploading\f[] if it attempt to
-upload one of those file names, but the sync won\[aq]t fail.
+There are some file names such as \f[C]thumbs.db\f[] which Dropbox
+can\[aq]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
+\f[C]File\ name\ disallowed\ \-\ not\ uploading\f[] if it attempt to
+upload one of those file names, but the sync won\[aq]t fail.
+.PP
+If you have more than 10,000 files in a directory then
+\f[C]rclone\ purge\ dropbox:dir\f[] will return the error
+\f[C]Failed\ to\ purge:\ There\ are\ too\ many\ files\ involved\ in\ this\ operation\f[].
+As a work\-around do an \f[C]rclone\ delete\ dropbox:dir\f[] followed by
+an \f[C]rclone\ rmdir\ dropbox:dir\f[].
+.SS FTP
+.PP
+FTP is the File Transfer Protocol.
+FTP support is provided using the
+github.com/jlaffaye/ftp (https://godoc.org/github.com/jlaffaye/ftp)
+package.
+.PP
+Here is an example of making an FTP configuration.
+First run
+.IP
+.nf
+\f[C]
+rclone\ config
+\f[]
+.fi
+.PP
+This will guide you through an interactive setup process.
+An FTP remote only needs a host together with and a username and a
+password.
+With anonymous FTP server, you will need to use \f[C]anonymous\f[] as
+username and your email address as the password.
+.IP
+.nf
+\f[C]
+No\ remotes\ found\ \-\ make\ a\ new\ one
+n)\ New\ remote
+r)\ Rename\ remote
+c)\ Copy\ remote
+s)\ Set\ configuration\ password
+q)\ Quit\ config
+n/r/c/s/q>\ n
+name>\ remote
+Type\ of\ storage\ to\ configure.
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ 1\ /\ Amazon\ Drive
+\ \ \ \\\ "amazon\ cloud\ drive"
+\ 2\ /\ Amazon\ S3\ (also\ Dreamhost,\ Ceph,\ Minio)
+\ \ \ \\\ "s3"
+\ 3\ /\ Backblaze\ B2
+\ \ \ \\\ "b2"
+\ 4\ /\ Dropbox
+\ \ \ \\\ "dropbox"
+\ 5\ /\ Encrypt/Decrypt\ a\ remote
+\ \ \ \\\ "crypt"
+\ 6\ /\ FTP\ Connection\
+\ \ \ \\\ "ftp"
+\ 7\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
+\ \ \ \\\ "google\ cloud\ storage"
+\ 8\ /\ Google\ Drive
+\ \ \ \\\ "drive"
+\ 9\ /\ Hubic
+\ \ \ \\\ "hubic"
+10\ /\ Local\ Disk
+\ \ \ \\\ "local"
+11\ /\ Microsoft\ OneDrive
+\ \ \ \\\ "onedrive"
+12\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
+\ \ \ \\\ "swift"
+13\ /\ SSH/SFTP\ Connection
+\ \ \ \\\ "sftp"
+14\ /\ Yandex\ Disk
+\ \ \ \\\ "yandex"
+Storage>\ ftp
+FTP\ host\ to\ connect\ to
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ 1\ /\ Connect\ to\ ftp.example.com
+\ \ \ \\\ "ftp.example.com"
+host>\ ftp.example.com
+FTP\ username,\ leave\ blank\ for\ current\ username,\ ncw
+user>
+FTP\ port,\ leave\ blank\ to\ use\ default\ (21)
+port>
+FTP\ password
+y)\ Yes\ type\ in\ my\ own\ password
+g)\ Generate\ random\ password
+y/g>\ y
+Enter\ the\ password:
+password:
+Confirm\ the\ password:
+password:
+Remote\ config
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+[remote]
+host\ =\ ftp.example.com
+user\ =\
+port\ =
+pass\ =\ ***\ ENCRYPTED\ ***
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+y)\ Yes\ this\ is\ OK
+e)\ Edit\ this\ remote
+d)\ Delete\ this\ remote
+y/e/d>\ y
+\f[]
+.fi
+.PP
+This remote is called \f[C]remote\f[] and can now be used like this
+.PP
+See all directories in the home directory
+.IP
+.nf
+\f[C]
+rclone\ lsd\ remote:
+\f[]
+.fi
+.PP
+Make a new directory
+.IP
+.nf
+\f[C]
+rclone\ mkdir\ remote:path/to/directory
+\f[]
+.fi
+.PP
+List the contents of a directory
+.IP
+.nf
+\f[C]
+rclone\ ls\ remote:path/to/directory
+\f[]
+.fi
+.PP
+Sync \f[C]/home/local/directory\f[] to the remote directory, deleting
+any excess files in the directory.
+.IP
+.nf
+\f[C]
+rclone\ sync\ /home/local/directory\ remote:directory
+\f[]
+.fi
+.SS Modified time
+.PP
+FTP does not support modified times.
+Any times you see on the server will be time of upload.
+.SS Checksums
+.PP
+FTP does not support any checksums.
+.SS Limitations
+.PP
+Note that since FTP isn\[aq]t HTTP based the following flags don\[aq]t
+work with it: \f[C]\-\-dump\-headers\f[], \f[C]\-\-dump\-bodies\f[],
+\f[C]\-\-dump\-auth\f[]
+.PP
+Note that \f[C]\-\-timeout\f[] isn\[aq]t supported (but
+\f[C]\-\-contimeout\f[] is).
+.PP
+Note that \f[C]\-\-bind\f[] isn\[aq]t supported.
.PP
-If you have more than 10,000 files in a directory then
-\f[C]rclone\ purge\ dropbox:dir\f[] will return the error
-\f[C]Failed\ to\ purge:\ There\ are\ too\ many\ files\ involved\ in\ this\ operation\f[].
-As a work\-around do an \f[C]rclone\ delete\ dropbox:dir\f[] followed by
-an \f[C]rclone\ rmdir\ dropbox:dir\f[].
+FTP could support server side move but doesn\[aq]t yet.
.SS Google Cloud Storage
.PP
Paths are specified as \f[C]remote:bucket\f[] (or \f[C]remote:\f[] for
@@ -5228,256 +6626,21 @@ prompt and rclone won\[aq]t use the browser based authentication flow.
.SS \-\-fast\-list
.PP
This remote supports \f[C]\-\-fast\-list\f[] which allows you to use
-fewer transactions in exchange for more memory.
-See the rclone docs (/docs/#fast-list) for more details.
-.SS Modified time
-.PP
-Google google cloud storage stores md5sums natively and rclone stores
-modification times as metadata on the object, under the "mtime" key in
-RFC3339 format accurate to 1ns.
-.SS Amazon Drive
-.PP
-Paths are specified as \f[C]remote:path\f[]
-.PP
-Paths may be as deep as required, eg
-\f[C]remote:directory/subdirectory\f[].
-.PP
-The initial setup for Amazon Drive involves getting a token from Amazon
-which you need to do in your browser.
-\f[C]rclone\ config\f[] walks you through it.
-.PP
-The configuration process for Amazon Drive may involve using an oauth
-proxy (https://github.com/ncw/oauthproxy).
-This is used to keep the Amazon credentials out of the source code.
-The proxy runs in Google\[aq]s very secure App Engine environment and
-doesn\[aq]t store any credentials which pass through it.
-.PP
-\f[B]NB\f[] rclone doesn\[aq]t not currently have its own Amazon Drive
-credentials (see the
-forum (https://forum.rclone.org/t/rclone-has-been-banned-from-amazon-drive/)
-for why) so you will either need to have your own \f[C]client_id\f[] and
-\f[C]client_secret\f[] with Amazon Drive, or use a a third party ouath
-proxy in which case you will need to enter \f[C]client_id\f[],
-\f[C]client_secret\f[], \f[C]auth_url\f[] and \f[C]token_url\f[].
-.PP
-Note also if you are not using Amazon\[aq]s \f[C]auth_url\f[] and
-\f[C]token_url\f[], (ie you filled in something for those) then if
-setting up on a remote machine you can only use the copying the config
-method of
-configuration (https://rclone.org/remote_setup/#configuring-by-copying-the-config-file)
-\- \f[C]rclone\ authorize\f[] will not work.
-.PP
-Here is an example of how to make a remote called \f[C]remote\f[].
-First run:
-.IP
-.nf
-\f[C]
-\ rclone\ config
-\f[]
-.fi
-.PP
-This will guide you through an interactive setup process:
-.IP
-.nf
-\f[C]
-No\ remotes\ found\ \-\ make\ a\ new\ one
-n)\ New\ remote
-r)\ Rename\ remote
-c)\ Copy\ remote
-s)\ Set\ configuration\ password
-q)\ Quit\ config
-n/r/c/s/q>\ n
-name>\ remote
-Type\ of\ storage\ to\ configure.
-Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
-\ 1\ /\ Amazon\ Drive
-\ \ \ \\\ "amazon\ cloud\ drive"
-\ 2\ /\ Amazon\ S3\ (also\ Dreamhost,\ Ceph,\ Minio)
-\ \ \ \\\ "s3"
-\ 3\ /\ Backblaze\ B2
-\ \ \ \\\ "b2"
-\ 4\ /\ Dropbox
-\ \ \ \\\ "dropbox"
-\ 5\ /\ Encrypt/Decrypt\ a\ remote
-\ \ \ \\\ "crypt"
-\ 6\ /\ FTP\ Connection
-\ \ \ \\\ "ftp"
-\ 7\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
-\ \ \ \\\ "google\ cloud\ storage"
-\ 8\ /\ Google\ Drive
-\ \ \ \\\ "drive"
-\ 9\ /\ Hubic
-\ \ \ \\\ "hubic"
-10\ /\ Local\ Disk
-\ \ \ \\\ "local"
-11\ /\ Microsoft\ OneDrive
-\ \ \ \\\ "onedrive"
-12\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
-\ \ \ \\\ "swift"
-13\ /\ SSH/SFTP\ Connection
-\ \ \ \\\ "sftp"
-14\ /\ Yandex\ Disk
-\ \ \ \\\ "yandex"
-Storage>\ 1
-Amazon\ Application\ Client\ Id\ \-\ required.
-client_id>\ your\ client\ ID\ goes\ here
-Amazon\ Application\ Client\ Secret\ \-\ required.
-client_secret>\ your\ client\ secret\ goes\ here
-Auth\ server\ URL\ \-\ leave\ blank\ to\ use\ Amazon\[aq]s.
-auth_url>\ Optional\ auth\ URL
-Token\ server\ url\ \-\ leave\ blank\ to\ use\ Amazon\[aq]s.
-token_url>\ Optional\ token\ URL
-Remote\ config
-Make\ sure\ your\ Redirect\ URL\ is\ set\ to\ "http://127.0.0.1:53682/"\ in\ your\ custom\ config.
-Use\ auto\ config?
-\ *\ Say\ Y\ if\ not\ sure
-\ *\ Say\ N\ if\ you\ are\ working\ on\ a\ remote\ or\ headless\ machine
-y)\ Yes
-n)\ No
-y/n>\ y
-If\ your\ browser\ doesn\[aq]t\ open\ automatically\ go\ to\ the\ following\ link:\ http://127.0.0.1:53682/auth
-Log\ in\ and\ authorize\ rclone\ for\ access
-Waiting\ for\ code...
-Got\ code
-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
-[remote]
-client_id\ =\ your\ client\ ID\ goes\ here
-client_secret\ =\ your\ client\ secret\ goes\ here
-auth_url\ =\ Optional\ auth\ URL
-token_url\ =\ Optional\ token\ URL
-token\ =\ {"access_token":"xxxxxxxxxxxxxxxxxxxxxxx","token_type":"bearer","refresh_token":"xxxxxxxxxxxxxxxxxx","expiry":"2015\-09\-06T16:07:39.658438471+01:00"}
-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
-y)\ Yes\ this\ is\ OK
-e)\ Edit\ this\ remote
-d)\ Delete\ this\ remote
-y/e/d>\ y
-\f[]
-.fi
-.PP
-See the remote setup docs (https://rclone.org/remote_setup/) for how to
-set it up on a machine with no Internet browser available.
-.PP
-Note that rclone runs a webserver on your local machine to collect the
-token as returned from Amazon.
-This only runs from the moment it opens your browser to the moment you
-get back the verification code.
-This is on \f[C]http://127.0.0.1:53682/\f[] and this it may require you
-to unblock it temporarily if you are running a host firewall.
-.PP
-Once configured you can then use \f[C]rclone\f[] like this,
-.PP
-List directories in top level of your Amazon Drive
-.IP
-.nf
-\f[C]
-rclone\ lsd\ remote:
-\f[]
-.fi
-.PP
-List all the files in your Amazon Drive
-.IP
-.nf
-\f[C]
-rclone\ ls\ remote:
-\f[]
-.fi
-.PP
-To copy a local directory to an Amazon Drive directory called backup
-.IP
-.nf
-\f[C]
-rclone\ copy\ /home/source\ remote:backup
-\f[]
-.fi
-.SS Modified time and MD5SUMs
-.PP
-Amazon Drive doesn\[aq]t allow modification times to be changed via the
-API so these won\[aq]t be accurate or used for syncing.
-.PP
-It does store MD5SUMs so for a more accurate sync, you can use the
-\f[C]\-\-checksum\f[] flag.
-.SS Deleting files
-.PP
-Any files you delete with rclone will end up in the trash.
-Amazon don\[aq]t provide an API to permanently delete files, nor to
-empty the trash, so you will have to do that with one of Amazon\[aq]s
-apps or via the Amazon Drive website.
-As of November 17, 2016, files are automatically deleted by Amazon from
-the trash after 30 days.
-.SS Using with non \f[C]\&.com\f[] Amazon accounts
-.PP
-Let\[aq]s say you usually use \f[C]amazon.co.uk\f[].
-When you authenticate with rclone it will take you to an
-\f[C]amazon.com\f[] page to log in.
-Your \f[C]amazon.co.uk\f[] email and password should work here just
-fine.
-.SS Specific options
-.PP
-Here are the command line options specific to this cloud storage system.
-.SS \-\-acd\-templink\-threshold=SIZE
-.PP
-Files this size or more will be downloaded via their \f[C]tempLink\f[].
-This is to work around a problem with Amazon Drive which blocks
-downloads of files bigger than about 10GB.
-The default for this is 9GB which shouldn\[aq]t need to be changed.
-.PP
-To download files above this threshold, rclone requests a
-\f[C]tempLink\f[] which downloads the file through a temporary URL
-directly from the underlying S3 storage.
-.SS \-\-acd\-upload\-wait\-per\-gb=TIME
-.PP
-Sometimes Amazon Drive gives an error when a file has been fully
-uploaded but the file appears anyway after a little while.
-This happens sometimes for files over 1GB in size and nearly every time
-for files bigger than 10GB.
-This parameter controls the time rclone waits for the file to appear.
-.PP
-The default value for this parameter is 3 minutes per GB, so by default
-it will wait 3 minutes for every GB uploaded to see if the file appears.
-.PP
-You can disable this feature by setting it to 0.
-This may cause conflict errors as rclone retries the failed upload but
-the file will most likely appear correctly eventually.
-.PP
-These values were determined empirically by observing lots of uploads of
-big files for a range of file sizes.
-.PP
-Upload with the \f[C]\-v\f[] flag to see more info about what rclone is
-doing in this situation.
-.SS Limitations
-.PP
-Note that Amazon Drive is case insensitive so you can\[aq]t have a file
-called "Hello.doc" and one called "hello.doc".
-.PP
-Amazon Drive has rate limiting so you may notice errors in the sync (429
-errors).
-rclone will automatically retry the sync up to 3 times by default (see
-\f[C]\-\-retries\f[] flag) which should hopefully work around this
-problem.
-.PP
-Amazon Drive has an internal limit of file sizes that can be uploaded to
-the service.
-This limit is not officially published, but all files larger than this
-will fail.
-.PP
-At the time of writing (Jan 2016) is in the area of 50GB per file.
-This means that larger files are likely to fail.
-.PP
-Unfortunately there is no way for rclone to see that this failure is
-because of file size, so it will retry the operation, as any other
-failure.
-To avoid this problem, use \f[C]\-\-max\-size\ 50000M\f[] option to
-limit the maximum size of uploaded files.
-Note that \f[C]\-\-max\-size\f[] does not split files into segments, it
-only ignores files over this size.
-.SS Microsoft OneDrive
+fewer transactions in exchange for more memory.
+See the rclone docs (/docs/#fast-list) for more details.
+.SS Modified time
.PP
-Paths are specified as \f[C]remote:path\f[]
+Google google cloud storage stores md5sums natively and rclone stores
+modification times as metadata on the object, under the "mtime" key in
+RFC3339 format accurate to 1ns.
+.SS Google Drive
.PP
-Paths may be as deep as required, eg
-\f[C]remote:directory/subdirectory\f[].
+Paths are specified as \f[C]drive:path\f[]
.PP
-The initial setup for OneDrive involves getting a token from Microsoft
+Drive paths may be as deep as required, eg
+\f[C]drive:directory/subdirectory\f[].
+.PP
+The initial setup for drive involves getting a token from Google drive
which you need to do in your browser.
\f[C]rclone\ config\f[] walks you through it.
.PP
@@ -5496,8 +6659,11 @@ This will guide you through an interactive setup process:
\f[C]
No\ remotes\ found\ \-\ make\ a\ new\ one
n)\ New\ remote
+r)\ Rename\ remote
+c)\ Copy\ remote
s)\ Set\ configuration\ password
-n/s>\ n
+q)\ Quit\ config
+n/r/c/s/q>\ n
name>\ remote
Type\ of\ storage\ to\ configure.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
@@ -5511,31 +6677,33 @@ Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ \ \ \\\ "dropbox"
\ 5\ /\ Encrypt/Decrypt\ a\ remote
\ \ \ \\\ "crypt"
-\ 6\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
+\ 6\ /\ FTP\ Connection
+\ \ \ \\\ "ftp"
+\ 7\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
\ \ \ \\\ "google\ cloud\ storage"
-\ 7\ /\ Google\ Drive
+\ 8\ /\ Google\ Drive
\ \ \ \\\ "drive"
-\ 8\ /\ Hubic
+\ 9\ /\ Hubic
\ \ \ \\\ "hubic"
-\ 9\ /\ Local\ Disk
+10\ /\ Local\ Disk
\ \ \ \\\ "local"
-10\ /\ Microsoft\ OneDrive
+11\ /\ Microsoft\ OneDrive
\ \ \ \\\ "onedrive"
-11\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
+12\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
\ \ \ \\\ "swift"
-12\ /\ SSH/SFTP\ Connection
+13\ /\ SSH/SFTP\ Connection
\ \ \ \\\ "sftp"
-13\ /\ Yandex\ Disk
+14\ /\ Yandex\ Disk
\ \ \ \\\ "yandex"
-Storage>\ 10
-Microsoft\ App\ Client\ Id\ \-\ leave\ blank\ normally.
+Storage>\ 8
+Google\ Application\ Client\ Id\ \-\ leave\ blank\ normally.
client_id>
-Microsoft\ App\ Client\ Secret\ \-\ leave\ blank\ normally.
+Google\ Application\ Client\ Secret\ \-\ leave\ blank\ normally.
client_secret>
Remote\ config
Use\ auto\ config?
\ *\ Say\ Y\ if\ not\ sure
-\ *\ Say\ N\ if\ you\ are\ working\ on\ a\ remote\ or\ headless\ machine
+\ *\ Say\ N\ if\ you\ are\ working\ on\ a\ remote\ or\ headless\ machine\ or\ Y\ didn\[aq]t\ work
y)\ Yes
n)\ No
y/n>\ y
@@ -5543,11 +6711,15 @@ If\ your\ browser\ doesn\[aq]t\ open\ automatically\ go\ to\ the\ following\ lin
Log\ in\ and\ authorize\ rclone\ for\ access
Waiting\ for\ code...
Got\ code
+Configure\ this\ as\ a\ team\ drive?
+y)\ Yes
+n)\ No
+y/n>\ n
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[remote]
client_id\ =
client_secret\ =
-token\ =\ {"access_token":"XXXXXX"}
+token\ =\ {"AccessToken":"xxxx.x.xxxxx_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"1/xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx","Expiry":"2014\-03\-16T13:57:58.955387075Z","Extra":null}
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
@@ -5556,19 +6728,17 @@ y/e/d>\ y
\f[]
.fi
.PP
-See the remote setup docs (https://rclone.org/remote_setup/) for how to
-set it up on a machine with no Internet browser available.
-.PP
Note that rclone runs a webserver on your local machine to collect the
-token as returned from Microsoft.
+token as returned from Google if you use auto config mode.
This only runs from the moment it opens your browser to the moment you
get back the verification code.
This is on \f[C]http://127.0.0.1:53682/\f[] and this it may require you
-to unblock it temporarily if you are running a host firewall.
+to unblock it temporarily if you are running a host firewall, or use
+manual mode.
.PP
-Once configured you can then use \f[C]rclone\f[] like this,
+You can then use it like this,
.PP
-List directories in top level of your OneDrive
+List directories in top level of your drive
.IP
.nf
\f[C]
@@ -5576,7 +6746,7 @@ rclone\ lsd\ remote:
\f[]
.fi
.PP
-List all the files in your OneDrive
+List all the files in your drive
.IP
.nf
\f[C]
@@ -5584,241 +6754,416 @@ rclone\ ls\ remote:
\f[]
.fi
.PP
-To copy a local directory to an OneDrive directory called backup
+To copy a local directory to a drive directory called backup
.IP
.nf
\f[C]
rclone\ copy\ /home/source\ remote:backup
\f[]
.fi
-.SS Modified time and hashes
+.SS Team drives
+.PP
+If you want to configure the remote to point to a Google Team Drive then
+answer \f[C]y\f[] to the question
+\f[C]Configure\ this\ as\ a\ team\ drive?\f[].
+.PP
+This will fetch the list of Team Drives from google and allow you to
+configure which one you want to use.
+You can also type in a team drive ID if you prefer.
+.PP
+For example:
+.IP
+.nf
+\f[C]
+Configure\ this\ as\ a\ team\ drive?
+y)\ Yes
+n)\ No
+y/n>\ y
+Fetching\ team\ drive\ list...
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ 1\ /\ Rclone\ Test
+\ \ \ \\\ "xxxxxxxxxxxxxxxxxxxx"
+\ 2\ /\ Rclone\ Test\ 2
+\ \ \ \\\ "yyyyyyyyyyyyyyyyyyyy"
+\ 3\ /\ Rclone\ Test\ 3
+\ \ \ \\\ "zzzzzzzzzzzzzzzzzzzz"
+Enter\ a\ Team\ Drive\ ID>\ 1
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+[remote]
+client_id\ =
+client_secret\ =
+token\ =\ {"AccessToken":"xxxx.x.xxxxx_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"1/xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx","Expiry":"2014\-03\-16T13:57:58.955387075Z","Extra":null}
+team_drive\ =\ xxxxxxxxxxxxxxxxxxxx
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+y)\ Yes\ this\ is\ OK
+e)\ Edit\ this\ remote
+d)\ Delete\ this\ remote
+y/e/d>\ y
+\f[]
+.fi
+.SS Modified time
+.PP
+Google drive stores modification times accurate to 1 ms.
+.SS Revisions
+.PP
+Google drive stores revisions of files.
+When you upload a change to an existing file to google drive using
+rclone it will create a new revision of that file.
+.PP
+Revisions follow the standard google policy which at time of writing was
+.IP \[bu] 2
+They are deleted after 30 days or 100 revisions (whatever comes first).
+.IP \[bu] 2
+They do not count towards a user storage quota.
+.SS Deleting files
+.PP
+By default rclone will send all files to the trash when deleting files.
+If deleting them permanently is required then use the
+\f[C]\-\-drive\-use\-trash=false\f[] flag, or set the equivalent
+environment variable.
+.SS Emptying trash
+.PP
+If you wish to empty your trash you can use the
+\f[C]rclone\ cleanup\ remote:\f[] command which will permanently delete
+all your trashed files.
+This command does not take any path arguments.
+.SS Specific options
+.PP
+Here are the command line options specific to this cloud storage system.
+.SS \-\-drive\-auth\-owner\-only
+.PP
+Only consider files owned by the authenticated user.
+.SS \-\-drive\-chunk\-size=SIZE
+.PP
+Upload chunk size.
+Must a power of 2 >= 256k.
+Default value is 8 MB.
+.PP
+Making this larger will improve performance, but note that each chunk is
+buffered in memory one per transfer.
+.PP
+Reducing this will reduce memory usage but decrease performance.
+.SS \-\-drive\-formats
+.PP
+Google documents can only be exported from Google drive.
+When rclone downloads a Google doc it chooses a format to download
+depending upon this setting.
+.PP
+By default the formats are \f[C]docx,xlsx,pptx,svg\f[] which are a
+sensible default for an editable document.
+.PP
+When choosing a format, rclone runs down the list provided in order and
+chooses the first file format the doc can be exported as from the list.
+If the file can\[aq]t be exported to a format on the formats list, then
+rclone will choose a format from the default list.
+.PP
+If you prefer an archive copy then you might use
+\f[C]\-\-drive\-formats\ pdf\f[], or if you prefer
+openoffice/libreoffice formats you might use
+\f[C]\-\-drive\-formats\ ods,odt,odp\f[].
+.PP
+Note that rclone adds the extension to the google doc, so if it is
+calles \f[C]My\ Spreadsheet\f[] on google docs, it will be exported as
+\f[C]My\ Spreadsheet.xlsx\f[] or \f[C]My\ Spreadsheet.pdf\f[] etc.
+.PP
+Here are the possible extensions with their corresponding mime types.
+.PP
+.TS
+tab(@);
+lw(9.7n) lw(11.7n) lw(12.6n).
+T{
+Extension
+T}@T{
+Mime Type
+T}@T{
+Description
+T}
+_
+T{
+csv
+T}@T{
+text/csv
+T}@T{
+Standard CSV format for Spreadsheets
+T}
+T{
+doc
+T}@T{
+application/msword
+T}@T{
+Micosoft Office Document
+T}
+T{
+docx
+T}@T{
+application/vnd.openxmlformats\-officedocument.wordprocessingml.document
+T}@T{
+Microsoft Office Document
+T}
+T{
+epub
+T}@T{
+application/epub+zip
+T}@T{
+E\-book format
+T}
+T{
+html
+T}@T{
+text/html
+T}@T{
+An HTML Document
+T}
+T{
+jpg
+T}@T{
+image/jpeg
+T}@T{
+A JPEG Image File
+T}
+T{
+odp
+T}@T{
+application/vnd.oasis.opendocument.presentation
+T}@T{
+Openoffice Presentation
+T}
+T{
+ods
+T}@T{
+application/vnd.oasis.opendocument.spreadsheet
+T}@T{
+Openoffice Spreadsheet
+T}
+T{
+ods
+T}@T{
+application/x\-vnd.oasis.opendocument.spreadsheet
+T}@T{
+Openoffice Spreadsheet
+T}
+T{
+odt
+T}@T{
+application/vnd.oasis.opendocument.text
+T}@T{
+Openoffice Document
+T}
+T{
+pdf
+T}@T{
+application/pdf
+T}@T{
+Adobe PDF Format
+T}
+T{
+png
+T}@T{
+image/png
+T}@T{
+PNG Image Format
+T}
+T{
+pptx
+T}@T{
+application/vnd.openxmlformats\-officedocument.presentationml.presentation
+T}@T{
+Microsoft Office Powerpoint
+T}
+T{
+rtf
+T}@T{
+application/rtf
+T}@T{
+Rich Text Format
+T}
+T{
+svg
+T}@T{
+image/svg+xml
+T}@T{
+Scalable Vector Graphics Format
+T}
+T{
+tsv
+T}@T{
+text/tab\-separated\-values
+T}@T{
+Standard TSV format for spreadsheets
+T}
+T{
+txt
+T}@T{
+text/plain
+T}@T{
+Plain Text
+T}
+T{
+xls
+T}@T{
+application/vnd.ms\-excel
+T}@T{
+Microsoft Office Spreadsheet
+T}
+T{
+xlsx
+T}@T{
+application/vnd.openxmlformats\-officedocument.spreadsheetml.sheet
+T}@T{
+Microsoft Office Spreadsheet
+T}
+T{
+zip
+T}@T{
+application/zip
+T}@T{
+A ZIP file of HTML, Images CSS
+T}
+.TE
+.SS \-\-drive\-list\-chunk int
.PP
-OneDrive allows modification times to be set on objects accurate to 1
-second.
-These will be used to detect whether objects need syncing or not.
+Size of listing chunk 100\-1000.
+0 to disable.
+(default 1000)
+.SS \-\-drive\-shared\-with\-me
.PP
-One drive supports SHA1 type hashes, so you can use
-\f[C]\-\-checksum\f[] flag.
-.SS Deleting files
+Only show files that are shared with me
+.SS \-\-drive\-skip\-gdocs
.PP
-Any files you delete with rclone will end up in the trash.
-Microsoft doesn\[aq]t provide an API to permanently delete files, nor to
-empty the trash, so you will have to do that with one of Microsoft\[aq]s
-apps or via the OneDrive website.
-.SS Specific options
+Skip google documents in all listings.
+If given, gdocs practically become invisible to rclone.
+.SS \-\-drive\-trashed\-only
.PP
-Here are the command line options specific to this cloud storage system.
-.SS \-\-onedrive\-chunk\-size=SIZE
+Only show files that are in the trash.
+This will show trashed files in their original directory structure.
+.SS \-\-drive\-upload\-cutoff=SIZE
.PP
-Above this size files will be chunked \- must be multiple of 320k.
-The default is 10MB.
-Note that the chunks will be buffered into memory.
-.SS \-\-onedrive\-upload\-cutoff=SIZE
+File size cutoff for switching to chunked upload.
+Default is 8 MB.
+.SS \-\-drive\-use\-trash
.PP
-Cutoff for switching to chunked upload \- must be <= 100MB.
-The default is 10MB.
+Controls whether files are sent to the trash or deleted permanently.
+Defaults to true, namely sending files to the trash.
+Use \f[C]\-\-drive\-use\-trash=false\f[] to delete files permanently
+instead.
.SS Limitations
.PP
-Note that OneDrive is case insensitive so you can\[aq]t have a file
-called "Hello.doc" and one called "hello.doc".
-.PP
-Rclone only supports your default OneDrive, and doesn\[aq]t work with
-One Drive for business.
-Both these issues may be fixed at some point depending on user demand!
-.PP
-There are quite a few characters that can\[aq]t be in OneDrive file
-names.
-These can\[aq]t occur on Windows platforms, but on non\-Windows
-platforms they are common.
-Rclone will map these names to and from an identical looking unicode
-equivalent.
-For example if a file has a \f[C]?\f[] in it will be mapped to
-\f[C]?\f[] instead.
-.PP
-The largest allowed file size is 10GiB (10,737,418,240 bytes).
-.SS Hubic
-.PP
-Paths are specified as \f[C]remote:path\f[]
-.PP
-Paths are specified as \f[C]remote:container\f[] (or \f[C]remote:\f[]
-for the \f[C]lsd\f[] command.) You may put subdirectories in too, eg
-\f[C]remote:container/path/to/dir\f[].
-.PP
-The initial setup for Hubic involves getting a token from Hubic which
-you need to do in your browser.
-\f[C]rclone\ config\f[] walks you through it.
-.PP
-Here is an example of how to make a remote called \f[C]remote\f[].
-First run:
-.IP
-.nf
-\f[C]
-\ rclone\ config
-\f[]
-.fi
-.PP
-This will guide you through an interactive setup process:
-.IP
-.nf
-\f[C]
-n)\ New\ remote
-s)\ Set\ configuration\ password
-n/s>\ n
-name>\ remote
-Type\ of\ storage\ to\ configure.
-Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
-\ 1\ /\ Amazon\ Drive
-\ \ \ \\\ "amazon\ cloud\ drive"
-\ 2\ /\ Amazon\ S3\ (also\ Dreamhost,\ Ceph,\ Minio)
-\ \ \ \\\ "s3"
-\ 3\ /\ Backblaze\ B2
-\ \ \ \\\ "b2"
-\ 4\ /\ Dropbox
-\ \ \ \\\ "dropbox"
-\ 5\ /\ Encrypt/Decrypt\ a\ remote
-\ \ \ \\\ "crypt"
-\ 6\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
-\ \ \ \\\ "google\ cloud\ storage"
-\ 7\ /\ Google\ Drive
-\ \ \ \\\ "drive"
-\ 8\ /\ Hubic
-\ \ \ \\\ "hubic"
-\ 9\ /\ Local\ Disk
-\ \ \ \\\ "local"
-10\ /\ Microsoft\ OneDrive
-\ \ \ \\\ "onedrive"
-11\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
-\ \ \ \\\ "swift"
-12\ /\ SSH/SFTP\ Connection
-\ \ \ \\\ "sftp"
-13\ /\ Yandex\ Disk
-\ \ \ \\\ "yandex"
-Storage>\ 8
-Hubic\ Client\ Id\ \-\ leave\ blank\ normally.
-client_id>
-Hubic\ Client\ Secret\ \-\ leave\ blank\ normally.
-client_secret>
-Remote\ config
-Use\ auto\ config?
-\ *\ Say\ Y\ if\ not\ sure
-\ *\ Say\ N\ if\ you\ are\ working\ on\ a\ remote\ or\ headless\ machine
-y)\ Yes
-n)\ No
-y/n>\ y
-If\ your\ browser\ doesn\[aq]t\ open\ automatically\ go\ to\ the\ following\ link:\ http://127.0.0.1:53682/auth
-Log\ in\ and\ authorize\ rclone\ for\ access
-Waiting\ for\ code...
-Got\ code
-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
-[remote]
-client_id\ =
-client_secret\ =
-token\ =\ {"access_token":"XXXXXX"}
-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
-y)\ Yes\ this\ is\ OK
-e)\ Edit\ this\ remote
-d)\ Delete\ this\ remote
-y/e/d>\ y
-\f[]
-.fi
+Drive has quite a lot of rate limiting.
+This causes rclone to be limited to transferring about 2 files per
+second only.
+Individual files may be transferred much faster at 100s of MBytes/s but
+lots of small files can take a long time.
.PP
-See the remote setup docs (https://rclone.org/remote_setup/) for how to
-set it up on a machine with no Internet browser available.
+Server side copies are also subject to a separate rate limit.
+If you see User rate limit exceeded errors, wait at least 24 hours and
+retry.
+You can disable server side copies with \f[C]\-\-disable\ copy\f[] to
+download and upload the files if you prefer.
+.SS Duplicated files
.PP
-Note that rclone runs a webserver on your local machine to collect the
-token as returned from Hubic.
-This only runs from the moment it opens your browser to the moment you
-get back the verification code.
-This is on \f[C]http://127.0.0.1:53682/\f[] and this it may require you
-to unblock it temporarily if you are running a host firewall.
+Sometimes, for no reason I\[aq]ve been able to track down, drive will
+duplicate a file that rclone uploads.
+Drive unlike all the other remotes can have duplicated files.
.PP
-Once configured you can then use \f[C]rclone\f[] like this,
+Duplicated files cause problems with the syncing and you will see
+messages in the log about duplicates.
.PP
-List containers in the top level of your Hubic
-.IP
-.nf
-\f[C]
-rclone\ lsd\ remote:
-\f[]
-.fi
+Use \f[C]rclone\ dedupe\f[] to fix duplicated files.
.PP
-List all the files in your Hubic
-.IP
-.nf
-\f[C]
-rclone\ ls\ remote:
-\f[]
-.fi
+Note that this isn\[aq]t just a problem with rclone, even Google Photos
+on Android duplicates files on drive sometimes.
+.SS Rclone appears to be re\-copying files it shouldn\[aq]t
.PP
-To copy a local directory to an Hubic directory called backup
-.IP
-.nf
-\f[C]
-rclone\ copy\ /home/source\ remote:backup
-\f[]
-.fi
+There are two possible reasons for rclone to recopy files which
+haven\[aq]t changed to Google Drive.
.PP
-If you want the directory to be visible in the official \f[I]Hubic
-browser\f[], you need to copy your files to the \f[C]default\f[]
-directory
-.IP
-.nf
-\f[C]
-rclone\ copy\ /home/source\ remote:default/backup
-\f[]
-.fi
-.SS \-\-fast\-list
+The first is the duplicated file issue above \- run
+\f[C]rclone\ dedupe\f[] and check your logs for duplicate object or
+directory messages.
.PP
-This remote supports \f[C]\-\-fast\-list\f[] which allows you to use
-fewer transactions in exchange for more memory.
-See the rclone docs (/docs/#fast-list) for more details.
-.SS Modified time
+The second is that sometimes Google reports different sizes for the
+Google Docs exports which will cause rclone to re\-download Google Docs
+for no apparent reason.
+\f[C]\-\-ignore\-size\f[] is a not very satisfactory work\-around for
+this if it is causing you a lot of problems.
+.SS Google docs downloads sometimes fail with "Failed to copy: read X
+bytes expecting Y"
.PP
-The modified time is stored as metadata on the object as
-\f[C]X\-Object\-Meta\-Mtime\f[] as floating point since the epoch
-accurate to 1 ns.
+This is the same problem as above.
+Google reports the google doc is one size, but rclone downloads a
+different size.
+Work\-around with the \f[C]\-\-ignore\-size\f[] flag or wait for rclone
+to retry the download which it will.
+.SS Making your own client_id
.PP
-This is a defacto standard (used in the official python\-swiftclient
-amongst others) for storing the modification time for an object.
+When you use rclone with Google drive in its default configuration you
+are using rclone\[aq]s client_id.
+This is shared between all the rclone users.
+There is a global rate limit on the number of queries per second that
+each client_id can do set by Google.
+rclone already has a high quota and I will continue to make sure it is
+high enough by contacting Google.
.PP
-Note that Hubic wraps the Swift backend, so most of the properties of
-are the same.
-.SS Limitations
+However you might find you get better performance making your own
+client_id if you are a heavy user.
+Or you may not depending on exactly how Google have been raising
+rclone\[aq]s rate limit.
.PP
-This uses the normal OpenStack Swift mechanism to refresh the Swift API
-credentials and ignores the expires field returned by the Hubic API.
+Here is how to create your own Google Drive client ID for rclone:
+.IP "1." 3
+Log into the Google API Console (https://console.developers.google.com/)
+with your Google account.
+It doesn\[aq]t matter what Google account you use.
+(It need not be the same account as the Google Drive you want to access)
+.IP "2." 3
+Select a project or create a new project.
+.IP "3." 3
+Under Overview, Google APIs, Google Apps APIs, click "Drive API", then
+"Enable".
+.IP "4." 3
+Click "Credentials" in the left\-side panel (not "Go to credentials",
+which opens the wizard), then "Create credentials", then "OAuth client
+ID".
+It will prompt you to set the OAuth consent screen product name, if you
+haven\[aq]t set one already.
+.IP "5." 3
+Choose an application type of "other", and click "Create".
+(the default name is fine)
+.IP "6." 3
+It will show you a client ID and client secret.
+Use these values in rclone config to add a new remote or edit an
+existing remote.
.PP
-The Swift API doesn\[aq]t return a correct MD5SUM for segmented files
-(Dynamic or Static Large Objects) so rclone won\[aq]t check or use the
-MD5SUM for these.
-.SS Backblaze B2
+(Thanks to \@balazer on github for these instructions.)
+.SS HTTP
.PP
-B2 is Backblaze\[aq]s cloud storage
-system (https://www.backblaze.com/b2/).
+The HTTP remote is a read only remote for reading files of a webserver.
+The webserver should provide file listings which rclone will read and
+turn into a remote.
+This has been tested with common webservers such as Apache/Nginx/Caddy
+and will likely work with file listings from most web servers.
+(If it doesn\[aq]t then please file an issue, or send a pull request!)
.PP
-Paths are specified as \f[C]remote:bucket\f[] (or \f[C]remote:\f[] for
-the \f[C]lsd\f[] command.) You may put subdirectories in too, eg
-\f[C]remote:bucket/path/to/dir\f[].
+Paths are specified as \f[C]remote:\f[] or \f[C]remote:path/to/dir\f[].
.PP
-Here is an example of making a b2 configuration.
-First run
+Here is an example of how to make a remote called \f[C]remote\f[].
+First run:
.IP
.nf
\f[C]
-rclone\ config
+\ rclone\ config
\f[]
.fi
.PP
-This will guide you through an interactive setup process.
-You will need your account number (a short hex number) and key (a long
-hex number) which you can get from the b2 control panel.
+This will guide you through an interactive setup process:
.IP
.nf
\f[C]
No\ remotes\ found\ \-\ make\ a\ new\ one
n)\ New\ remote
+s)\ Set\ configuration\ password
q)\ Quit\ config
-n/q>\ n
+n/s/q>\ n
name>\ remote
Type\ of\ storage\ to\ configure.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
@@ -5832,317 +7177,283 @@ Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ \ \ \\\ "dropbox"
\ 5\ /\ Encrypt/Decrypt\ a\ remote
\ \ \ \\\ "crypt"
-\ 6\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
+\ 6\ /\ FTP\ Connection
+\ \ \ \\\ "ftp"
+\ 7\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
\ \ \ \\\ "google\ cloud\ storage"
-\ 7\ /\ Google\ Drive
+\ 8\ /\ Google\ Drive
\ \ \ \\\ "drive"
-\ 8\ /\ Hubic
+\ 9\ /\ Hubic
\ \ \ \\\ "hubic"
-\ 9\ /\ Local\ Disk
+10\ /\ Local\ Disk
\ \ \ \\\ "local"
-10\ /\ Microsoft\ OneDrive
+11\ /\ Microsoft\ OneDrive
\ \ \ \\\ "onedrive"
-11\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
+12\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
\ \ \ \\\ "swift"
-12\ /\ SSH/SFTP\ Connection
+13\ /\ SSH/SFTP\ Connection
\ \ \ \\\ "sftp"
-13\ /\ Yandex\ Disk
+14\ /\ Yandex\ Disk
\ \ \ \\\ "yandex"
-Storage>\ 3
-Account\ ID
-account>\ 123456789abc
-Application\ Key
-key>\ 0123456789abcdef0123456789abcdef0123456789
-Endpoint\ for\ the\ service\ \-\ leave\ blank\ normally.
-endpoint>
+15\ /\ http\ Connection
+\ \ \ \\\ "http"
+Storage>\ http
+URL\ of\ http\ host\ to\ connect\ to
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ 1\ /\ Connect\ to\ example.com
+\ \ \ \\\ "https://example.com"
+url>\ https://beta.rclone.org
Remote\ config
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[remote]
-account\ =\ 123456789abc
-key\ =\ 0123456789abcdef0123456789abcdef0123456789
-endpoint\ =
+url\ =\ https://beta.rclone.org
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
d)\ Delete\ this\ remote
y/e/d>\ y
-\f[]
-.fi
-.PP
-This remote is called \f[C]remote\f[] and can now be used like this
-.PP
-See all buckets
-.IP
-.nf
-\f[C]
-rclone\ lsd\ remote:
-\f[]
-.fi
-.PP
-Make a new bucket
-.IP
-.nf
-\f[C]
-rclone\ mkdir\ remote:bucket
-\f[]
-.fi
-.PP
-List the contents of a bucket
-.IP
-.nf
-\f[C]
-rclone\ ls\ remote:bucket
-\f[]
-.fi
-.PP
-Sync \f[C]/home/local/directory\f[] to the remote bucket, deleting any
-excess files in the bucket.
-.IP
-.nf
-\f[C]
-rclone\ sync\ /home/local/directory\ remote:bucket
-\f[]
-.fi
-.SS \-\-fast\-list
-.PP
-This remote supports \f[C]\-\-fast\-list\f[] which allows you to use
-fewer transactions in exchange for more memory.
-See the rclone docs (/docs/#fast-list) for more details.
-.SS Modified time
-.PP
-The modified time is stored as metadata on the object as
-\f[C]X\-Bz\-Info\-src_last_modified_millis\f[] as milliseconds since
-1970\-01\-01 in the Backblaze standard.
-Other tools should be able to use this as a modified time.
-.PP
-Modified times are used in syncing and are fully supported except in the
-case of updating a modification time on an existing object.
-In this case the object will be uploaded again as B2 doesn\[aq]t have an
-API method to set the modification time independent of doing an upload.
-.SS SHA1 checksums
-.PP
-The SHA1 checksums of the files are checked on upload and download and
-will be used in the syncing process.
-.PP
-Large files which are uploaded in chunks will store their SHA1 on the
-object as \f[C]X\-Bz\-Info\-large_file_sha1\f[] as recommended by
-Backblaze.
-.SS Transfers
-.PP
-Backblaze recommends that you do lots of transfers simultaneously for
-maximum speed.
-In tests from my SSD equiped laptop the optimum setting is about
-\f[C]\-\-transfers\ 32\f[] though higher numbers may be used for a
-slight speed improvement.
-The optimum number for you may vary depending on your hardware, how big
-the files are, how much you want to load your computer, etc.
-The default of \f[C]\-\-transfers\ 4\f[] is definitely too low for
-Backblaze B2 though.
-.PP
-Note that uploading big files (bigger than 200 MB by default) will use a
-96 MB RAM buffer by default.
-There can be at most \f[C]\-\-transfers\f[] of these in use at any
-moment, so this sets the upper limit on the memory used.
-.SS Versions
-.PP
-When rclone uploads a new version of a file it creates a new version of
-it (https://www.backblaze.com/b2/docs/file_versions.html).
-Likewise when you delete a file, the old version will still be
-available.
-.PP
-Old versions of files are visible using the \f[C]\-\-b2\-versions\f[]
-flag.
-.PP
-If you wish to remove all the old versions then you can use the
-\f[C]rclone\ cleanup\ remote:bucket\f[] command which will delete all
-the old versions of files, leaving the current ones intact.
-You can also supply a path and only old versions under that path will be
-deleted, eg \f[C]rclone\ cleanup\ remote:bucket/path/to/stuff\f[].
-.PP
-When you \f[C]purge\f[] a bucket, the current and the old versions will
-be deleted then the bucket will be deleted.
-.PP
-However \f[C]delete\f[] will cause the current versions of the files to
-become hidden old versions.
-.PP
-Here is a session showing the listing and and retreival of an old
-version followed by a \f[C]cleanup\f[] of the old versions.
-.PP
-Show current version and all the versions with \f[C]\-\-b2\-versions\f[]
-flag.
-.IP
-.nf
-\f[C]
-$\ rclone\ \-q\ ls\ b2:cleanup\-test
-\ \ \ \ \ \ \ \ 9\ one.txt
+Current\ remotes:
-$\ rclone\ \-q\ \-\-b2\-versions\ ls\ b2:cleanup\-test
-\ \ \ \ \ \ \ \ 9\ one.txt
-\ \ \ \ \ \ \ \ 8\ one\-v2016\-07\-04\-141032\-000.txt
-\ \ \ \ \ \ \ 16\ one\-v2016\-07\-04\-141003\-000.txt
-\ \ \ \ \ \ \ 15\ one\-v2016\-07\-02\-155621\-000.txt
+Name\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Type
+====\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ====
+remote\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ http
+
+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>\ q
\f[]
.fi
.PP
-Retreive an old verson
+This remote is called \f[C]remote\f[] and can now be used like this
+.PP
+See all the top level directories
.IP
.nf
\f[C]
-$\ rclone\ \-q\ \-\-b2\-versions\ copy\ b2:cleanup\-test/one\-v2016\-07\-04\-141003\-000.txt\ /tmp
-
-$\ ls\ \-l\ /tmp/one\-v2016\-07\-04\-141003\-000.txt
-\-rw\-rw\-r\-\-\ 1\ ncw\ ncw\ 16\ Jul\ \ 2\ 17:46\ /tmp/one\-v2016\-07\-04\-141003\-000.txt
+rclone\ lsd\ remote:
\f[]
.fi
.PP
-Clean up all the old versions and show that they\[aq]ve gone.
+List the contents of a directory
.IP
.nf
\f[C]
-$\ rclone\ \-q\ cleanup\ b2:cleanup\-test
-
-$\ rclone\ \-q\ ls\ b2:cleanup\-test
-\ \ \ \ \ \ \ \ 9\ one.txt
-
-$\ rclone\ \-q\ \-\-b2\-versions\ ls\ b2:cleanup\-test
-\ \ \ \ \ \ \ \ 9\ one.txt
+rclone\ ls\ remote:directory
\f[]
.fi
-.SS Data usage
-.PP
-It is useful to know how many requests are sent to the server in
-different scenarios.
.PP
-All copy commands send the following 4 requests:
+Sync the remote \f[C]directory\f[] to \f[C]/home/local/directory\f[],
+deleting any excess files.
.IP
.nf
\f[C]
-/b2api/v1/b2_authorize_account
-/b2api/v1/b2_create_bucket
-/b2api/v1/b2_list_buckets
-/b2api/v1/b2_list_file_names
+rclone\ sync\ remote:directory\ /home/local/directory
\f[]
.fi
+.SS Read only
.PP
-The \f[C]b2_list_file_names\f[] request will be sent once for every 1k
-files in the remote path, providing the checksum and modification time
-of the listed files.
-As of version 1.33 issue #818 (https://github.com/ncw/rclone/issues/818)
-causes extra requests to be sent when using B2 with Crypt.
-When a copy operation does not require any files to be uploaded, no more
-requests will be sent.
+This remote is read only \- you can\[aq]t upload files to an HTTP
+server.
+.SS Modified time
.PP
-Uploading files that do not require chunking, will send 2 requests per
-file upload:
+Most HTTP servers store time accurate to 1 second.
+.SS Checksum
+.PP
+No checksums are stored.
+.SS Usage without a config file
+.PP
+Note that since only two environment variable need to be set, it is easy
+to use without a config file like this.
.IP
.nf
\f[C]
-/b2api/v1/b2_get_upload_url
-/b2api/v1/b2_upload_file/
+RCLONE_CONFIG_ZZ_TYPE=http\ RCLONE_CONFIG_ZZ_URL=https://beta.rclone.org\ rclone\ lsd\ zz:
\f[]
.fi
.PP
-Uploading files requiring chunking, will send 2 requests (one each to
-start and finish the upload) and another 2 requests for each chunk:
+Or if you prefer
.IP
.nf
\f[C]
-/b2api/v1/b2_start_large_file
-/b2api/v1/b2_get_upload_part_url
-/b2api/v1/b2_upload_part/
-/b2api/v1/b2_finish_large_file
+export\ RCLONE_CONFIG_ZZ_TYPE=http
+export\ RCLONE_CONFIG_ZZ_URL=https://beta.rclone.org
+rclone\ lsd\ zz:
\f[]
.fi
-.SS B2 with crypt
+.SS Hubic
.PP
-When using B2 with \f[C]crypt\f[] files are encrypted into a temporary
-location and streamed from there.
-This is required to calculate the encrypted file\[aq]s checksum before
-beginning the upload.
-On Windows the %TMPDIR% environment variable is used as the temporary
-location.
-If the file requires chunking, both the chunking and encryption will
-take place in memory.
-.SS Specific options
+Paths are specified as \f[C]remote:path\f[]
.PP
-Here are the command line options specific to this cloud storage system.
-.SS \-\-b2\-chunk\-size valuee=SIZE
+Paths are specified as \f[C]remote:container\f[] (or \f[C]remote:\f[]
+for the \f[C]lsd\f[] command.) You may put subdirectories in too, eg
+\f[C]remote:container/path/to/dir\f[].
.PP
-When uploading large files chunk the file into this size.
-Note that these chunks are buffered in memory and there might a maximum
-of \f[C]\-\-transfers\f[] chunks in progress at once.
-5,000,000 Bytes is the minimim size (default 96M).
-.SS \-\-b2\-upload\-cutoff=SIZE
+The initial setup for Hubic involves getting a token from Hubic which
+you need to do in your browser.
+\f[C]rclone\ config\f[] walks you through it.
.PP
-Cutoff for switching to chunked upload (default 190.735 MiB == 200 MB).
-Files above this size will be uploaded in chunks of
-\f[C]\-\-b2\-chunk\-size\f[].
+Here is an example of how to make a remote called \f[C]remote\f[].
+First run:
+.IP
+.nf
+\f[C]
+\ rclone\ config
+\f[]
+.fi
.PP
-This value should be set no larger than 4.657GiB (== 5GB) as this is the
-largest file size that can be uploaded.
-.SS \-\-b2\-test\-mode=FLAG
+This will guide you through an interactive setup process:
+.IP
+.nf
+\f[C]
+n)\ New\ remote
+s)\ Set\ configuration\ password
+n/s>\ n
+name>\ remote
+Type\ of\ storage\ to\ configure.
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ 1\ /\ Amazon\ Drive
+\ \ \ \\\ "amazon\ cloud\ drive"
+\ 2\ /\ Amazon\ S3\ (also\ Dreamhost,\ Ceph,\ Minio)
+\ \ \ \\\ "s3"
+\ 3\ /\ Backblaze\ B2
+\ \ \ \\\ "b2"
+\ 4\ /\ Dropbox
+\ \ \ \\\ "dropbox"
+\ 5\ /\ Encrypt/Decrypt\ a\ remote
+\ \ \ \\\ "crypt"
+\ 6\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
+\ \ \ \\\ "google\ cloud\ storage"
+\ 7\ /\ Google\ Drive
+\ \ \ \\\ "drive"
+\ 8\ /\ Hubic
+\ \ \ \\\ "hubic"
+\ 9\ /\ Local\ Disk
+\ \ \ \\\ "local"
+10\ /\ Microsoft\ OneDrive
+\ \ \ \\\ "onedrive"
+11\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
+\ \ \ \\\ "swift"
+12\ /\ SSH/SFTP\ Connection
+\ \ \ \\\ "sftp"
+13\ /\ Yandex\ Disk
+\ \ \ \\\ "yandex"
+Storage>\ 8
+Hubic\ Client\ Id\ \-\ leave\ blank\ normally.
+client_id>
+Hubic\ Client\ Secret\ \-\ leave\ blank\ normally.
+client_secret>
+Remote\ config
+Use\ auto\ config?
+\ *\ Say\ Y\ if\ not\ sure
+\ *\ Say\ N\ if\ you\ are\ working\ on\ a\ remote\ or\ headless\ machine
+y)\ Yes
+n)\ No
+y/n>\ y
+If\ your\ browser\ doesn\[aq]t\ open\ automatically\ go\ to\ the\ following\ link:\ http://127.0.0.1:53682/auth
+Log\ in\ and\ authorize\ rclone\ for\ access
+Waiting\ for\ code...
+Got\ code
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+[remote]
+client_id\ =
+client_secret\ =
+token\ =\ {"access_token":"XXXXXX"}
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+y)\ Yes\ this\ is\ OK
+e)\ Edit\ this\ remote
+d)\ Delete\ this\ remote
+y/e/d>\ y
+\f[]
+.fi
.PP
-This is for debugging purposes only.
+See the remote setup docs (https://rclone.org/remote_setup/) for how to
+set it up on a machine with no Internet browser available.
.PP
-Setting FLAG to one of the strings below will cause b2 to return
-specific errors for debugging purposes.
-.IP \[bu] 2
-\f[C]fail_some_uploads\f[]
-.IP \[bu] 2
-\f[C]expire_some_account_authorization_tokens\f[]
-.IP \[bu] 2
-\f[C]force_cap_exceeded\f[]
+Note that rclone runs a webserver on your local machine to collect the
+token as returned from Hubic.
+This only runs from the moment it opens your browser to the moment you
+get back the verification code.
+This is on \f[C]http://127.0.0.1:53682/\f[] and this it may require you
+to unblock it temporarily if you are running a host firewall.
.PP
-These will be set in the \f[C]X\-Bz\-Test\-Mode\f[] header which is
-documented in the b2 integrations
-checklist (https://www.backblaze.com/b2/docs/integration_checklist.html).
-.SS \-\-b2\-versions
+Once configured you can then use \f[C]rclone\f[] like this,
.PP
-When set rclone will show and act on older versions of files.
-For example
+List containers in the top level of your Hubic
+.IP
+.nf
+\f[C]
+rclone\ lsd\ remote:
+\f[]
+.fi
.PP
-Listing without \f[C]\-\-b2\-versions\f[]
+List all the files in your Hubic
.IP
.nf
\f[C]
-$\ rclone\ \-q\ ls\ b2:cleanup\-test
-\ \ \ \ \ \ \ \ 9\ one.txt
+rclone\ ls\ remote:
\f[]
.fi
.PP
-And with
+To copy a local directory to an Hubic directory called backup
.IP
.nf
\f[C]
-$\ rclone\ \-q\ \-\-b2\-versions\ ls\ b2:cleanup\-test
-\ \ \ \ \ \ \ \ 9\ one.txt
-\ \ \ \ \ \ \ \ 8\ one\-v2016\-07\-04\-141032\-000.txt
-\ \ \ \ \ \ \ 16\ one\-v2016\-07\-04\-141003\-000.txt
-\ \ \ \ \ \ \ 15\ one\-v2016\-07\-02\-155621\-000.txt
+rclone\ copy\ /home/source\ remote:backup
\f[]
.fi
.PP
-Showing that the current version is unchanged but older versions can be
-seen.
-These have the UTC date that they were uploaded to the server to the
-nearest millisecond appended to them.
+If you want the directory to be visible in the official \f[I]Hubic
+browser\f[], you need to copy your files to the \f[C]default\f[]
+directory
+.IP
+.nf
+\f[C]
+rclone\ copy\ /home/source\ remote:default/backup
+\f[]
+.fi
+.SS \-\-fast\-list
.PP
-Note that when using \f[C]\-\-b2\-versions\f[] no file write operations
-are permitted, so you can\[aq]t upload files or delete them.
-.SS Yandex Disk
+This remote supports \f[C]\-\-fast\-list\f[] which allows you to use
+fewer transactions in exchange for more memory.
+See the rclone docs (/docs/#fast-list) for more details.
+.SS Modified time
.PP
-Yandex Disk (https://disk.yandex.com) is a cloud storage solution
-created by Yandex (https://yandex.com).
+The modified time is stored as metadata on the object as
+\f[C]X\-Object\-Meta\-Mtime\f[] as floating point since the epoch
+accurate to 1 ns.
.PP
-Yandex paths may be as deep as required, eg
-\f[C]remote:directory/subdirectory\f[].
+This is a defacto standard (used in the official python\-swiftclient
+amongst others) for storing the modification time for an object.
+.PP
+Note that Hubic wraps the Swift backend, so most of the properties of
+are the same.
+.SS Limitations
+.PP
+This uses the normal OpenStack Swift mechanism to refresh the Swift API
+credentials and ignores the expires field returned by the Hubic API.
+.PP
+The Swift API doesn\[aq]t return a correct MD5SUM for segmented files
+(Dynamic or Static Large Objects) so rclone won\[aq]t check or use the
+MD5SUM for these.
+.SS Microsoft Azure Blob Storage
+.PP
+Paths are specified as \f[C]remote:container\f[] (or \f[C]remote:\f[]
+for the \f[C]lsd\f[] command.) You may put subdirectories in too, eg
+\f[C]remote:container/path/to/dir\f[].
.PP
-Here is an example of making a yandex configuration.
-First run
+Here is an example of making a Microsoft Azure Blob Storage
+configuration.
+For a remote called \f[C]remote\f[].
+First run:
.IP
.nf
\f[C]
-rclone\ config
+\ rclone\ config
\f[]
.fi
.PP
@@ -6153,7 +7464,8 @@ This will guide you through an interactive setup process:
No\ remotes\ found\ \-\ make\ a\ new\ one
n)\ New\ remote
s)\ Set\ configuration\ password
-n/s>\ n
+q)\ Quit\ config
+n/s/q>\ n
name>\ remote
Type\ of\ storage\ to\ configure.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
@@ -6163,47 +7475,47 @@ Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ \ \ \\\ "s3"
\ 3\ /\ Backblaze\ B2
\ \ \ \\\ "b2"
-\ 4\ /\ Dropbox
+\ 4\ /\ Box
+\ \ \ \\\ "box"
+\ 5\ /\ Dropbox
\ \ \ \\\ "dropbox"
-\ 5\ /\ Encrypt/Decrypt\ a\ remote
+\ 6\ /\ Encrypt/Decrypt\ a\ remote
\ \ \ \\\ "crypt"
-\ 6\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
+\ 7\ /\ FTP\ Connection
+\ \ \ \\\ "ftp"
+\ 8\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
\ \ \ \\\ "google\ cloud\ storage"
-\ 7\ /\ Google\ Drive
+\ 9\ /\ Google\ Drive
\ \ \ \\\ "drive"
-\ 8\ /\ Hubic
+10\ /\ Hubic
\ \ \ \\\ "hubic"
-\ 9\ /\ Local\ Disk
+11\ /\ Local\ Disk
\ \ \ \\\ "local"
-10\ /\ Microsoft\ OneDrive
+12\ /\ Microsoft\ Azure\ Blob\ Storage
+\ \ \ \\\ "azureblob"
+13\ /\ Microsoft\ OneDrive
\ \ \ \\\ "onedrive"
-11\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
+14\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
\ \ \ \\\ "swift"
-12\ /\ SSH/SFTP\ Connection
+15\ /\ SSH/SFTP\ Connection
\ \ \ \\\ "sftp"
-13\ /\ Yandex\ Disk
+16\ /\ Yandex\ Disk
\ \ \ \\\ "yandex"
-Storage>\ 13
-Yandex\ Client\ Id\ \-\ leave\ blank\ normally.
-client_id>
-Yandex\ Client\ Secret\ \-\ leave\ blank\ normally.
-client_secret>
+17\ /\ http\ Connection
+\ \ \ \\\ "http"
+Storage>\ azureblob
+Storage\ Account\ Name
+account>\ account_name
+Storage\ Account\ Key
+key>\ base64encodedkey==
+Endpoint\ for\ the\ service\ \-\ leave\ blank\ normally.
+endpoint>\
Remote\ config
-Use\ auto\ config?
-\ *\ Say\ Y\ if\ not\ sure
-\ *\ Say\ N\ if\ you\ are\ working\ on\ a\ remote\ or\ headless\ machine
-y)\ Yes
-n)\ No
-y/n>\ y
-If\ your\ browser\ doesn\[aq]t\ open\ automatically\ go\ to\ the\ following\ link:\ http://127.0.0.1:53682/auth
-Log\ in\ and\ authorize\ rclone\ for\ access
-Waiting\ for\ code...
-Got\ code
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[remote]
-client_id\ =
-client_secret\ =
-token\ =\ {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"bearer","expiry":"2016\-12\-29T12:27:11.362788025Z"}
+account\ =\ account_name
+key\ =\ base64encodedkey==
+endpoint\ =\
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
@@ -6212,19 +7524,7 @@ y/e/d>\ y
\f[]
.fi
.PP
-See the remote setup docs (https://rclone.org/remote_setup/) for how to
-set it up on a machine with no Internet browser available.
-.PP
-Note that rclone runs a webserver on your local machine to collect the
-token as returned from Yandex Disk.
-This only runs from the moment it opens your browser to the moment you
-get back the verification code.
-This is on \f[C]http://127.0.0.1:53682/\f[] and this it may require you
-to unblock it temporarily if you are running a host firewall.
-.PP
-Once configured you can then use \f[C]rclone\f[] like this,
-.PP
-See top level directories
+See all containers
.IP
.nf
\f[C]
@@ -6232,28 +7532,28 @@ rclone\ lsd\ remote:
\f[]
.fi
.PP
-Make a new directory
+Make a new container
.IP
.nf
\f[C]
-rclone\ mkdir\ remote:directory
+rclone\ mkdir\ remote:container
\f[]
.fi
.PP
-List the contents of a directory
+List the contents of a container
.IP
.nf
\f[C]
-rclone\ ls\ remote:directory
+rclone\ ls\ remote:container
\f[]
.fi
.PP
-Sync \f[C]/home/local/directory\f[] to the remote path, deleting any
-excess files in the path.
+Sync \f[C]/home/local/directory\f[] to the remote container, deleting
+any excess files in the container.
.IP
.nf
\f[C]
-rclone\ sync\ /home/local/directory\ remote:directory
+rclone\ sync\ /home/local/directory\ remote:container
\f[]
.fi
.SS \-\-fast\-list
@@ -6263,42 +7563,85 @@ fewer transactions in exchange for more memory.
See the rclone docs (/docs/#fast-list) for more details.
.SS Modified time
.PP
-Modified times are supported and are stored accurate to 1 ns in custom
-metadata called \f[C]rclone_modified\f[] in RFC3339 with nanoseconds
-format.
-.SS MD5 checksums
+The modified time is stored as metadata on the object with the
+\f[C]mtime\f[] key.
+It is stored using RFC3339 Format time with nanosecond precision.
+The metadata is supplied during directory listings so there is no
+overhead to using it.
+.SS Hashes
.PP
-MD5 checksums are natively supported by Yandex Disk.
-.SS SFTP
+MD5 hashes are stored with blobs.
+However blobs that were uploaded in chunks only have an MD5 if the
+source remote was capable of MD5 hashes, eg the local disk.
+.SS Multipart uploads
.PP
-SFTP is the Secure (or SSH) File Transfer
-Protocol (https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol).
+Rclone supports multipart uploads with Azure Blob storage.
+Files bigger than 256MB will be uploaded using chunked upload by
+default.
+.PP
+The files will be uploaded in parallel in 4MB chunks (by default).
+Note that these chunks are buffered in memory and there may be up to
+\f[C]\-\-transfers\f[] of them being uploaded at once.
+.PP
+Files can\[aq]t be split into more than 50,000 chunks so by default, so
+the largest file that can be uploaded with 4MB chunk size is 195GB.
+Above this rclone will double the chunk size until it creates less than
+50,000 chunks.
+By default this will mean a maximum file size of 3.2TB can be uploaded.
+This can be raised to 5TB using
+\f[C]\-\-azureblob\-chunk\-size\ 100M\f[].
+.PP
+Note that rclone doesn\[aq]t commit the block list until the end of the
+upload which means that there is a limit of 9.5TB of multipart uploads
+in progress as Azure won\[aq]t allow more than that amount of
+uncommitted blocks.
+.SS Specific options
.PP
-It runs over SSH v2 and is standard with most modern SSH installations.
+Here are the command line options specific to this cloud storage system.
+.SS \-\-azureblob\-upload\-cutoff=SIZE
.PP
-Paths are specified as \f[C]remote:path\f[].
-If the path does not begin with a \f[C]/\f[] it is relative to the home
-directory of the user.
-An empty path \f[C]remote:\f[] refers to the users home directory.
+Cutoff for switching to chunked upload \- must be <= 256MB.
+The default is 256MB.
+.SS \-\-azureblob\-chunk\-size=SIZE
.PP
-Here is an example of making a SFTP configuration.
-First run
+Upload chunk size.
+Default 4MB.
+Note that this is stored in memory and there may be up to
+\f[C]\-\-transfers\f[] chunks stored at once in memory.
+This can be at most 100MB.
+.SS Limitations
+.PP
+MD5 sums are only uploaded with chunked files if the source has an MD5
+sum.
+This will always be the case for a local to azure copy.
+.SS Microsoft OneDrive
+.PP
+Paths are specified as \f[C]remote:path\f[]
+.PP
+Paths may be as deep as required, eg
+\f[C]remote:directory/subdirectory\f[].
+.PP
+The initial setup for OneDrive involves getting a token from Microsoft
+which you need to do in your browser.
+\f[C]rclone\ config\f[] walks you through it.
+.PP
+Here is an example of how to make a remote called \f[C]remote\f[].
+First run:
.IP
.nf
\f[C]
-rclone\ config
+\ rclone\ config
\f[]
.fi
.PP
-This will guide you through an interactive setup process.
+This will guide you through an interactive setup process:
.IP
.nf
\f[C]
No\ remotes\ found\ \-\ make\ a\ new\ one
n)\ New\ remote
s)\ Set\ configuration\ password
-q)\ Quit\ config
-n/s/q>\ n
+n/s>\ n
name>\ remote
Type\ of\ storage\ to\ configure.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
@@ -6312,51 +7655,49 @@ Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ \ \ \\\ "dropbox"
\ 5\ /\ Encrypt/Decrypt\ a\ remote
\ \ \ \\\ "crypt"
-\ 6\ /\ FTP\ Connection
-\ \ \ \\\ "ftp"
-\ 7\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
+\ 6\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
\ \ \ \\\ "google\ cloud\ storage"
-\ 8\ /\ Google\ Drive
+\ 7\ /\ Google\ Drive
\ \ \ \\\ "drive"
-\ 9\ /\ Hubic
+\ 8\ /\ Hubic
\ \ \ \\\ "hubic"
-10\ /\ Local\ Disk
+\ 9\ /\ Local\ Disk
\ \ \ \\\ "local"
-11\ /\ Microsoft\ OneDrive
+10\ /\ Microsoft\ OneDrive
\ \ \ \\\ "onedrive"
-12\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
+11\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
\ \ \ \\\ "swift"
-13\ /\ SSH/SFTP\ Connection
+12\ /\ SSH/SFTP\ Connection
\ \ \ \\\ "sftp"
-14\ /\ Yandex\ Disk
+13\ /\ Yandex\ Disk
\ \ \ \\\ "yandex"
-15\ /\ http\ Connection
-\ \ \ \\\ "http"
-Storage>\ sftp
-SSH\ host\ to\ connect\ to
-Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
-\ 1\ /\ Connect\ to\ example.com
-\ \ \ \\\ "example.com"
-host>\ example.com
-SSH\ username,\ leave\ blank\ for\ current\ username,\ ncw
-user>\ sftpuser
-SSH\ port,\ leave\ blank\ to\ use\ default\ (22)
-port>\
-SSH\ password,\ leave\ blank\ to\ use\ ssh\-agent.
-y)\ Yes\ type\ in\ my\ own\ password
-g)\ Generate\ random\ password
-n)\ No\ leave\ this\ optional\ password\ blank
-y/g/n>\ n
-Path\ to\ unencrypted\ PEM\-encoded\ private\ key\ file,\ leave\ blank\ to\ use\ ssh\-agent.
-key_file>\
+Storage>\ 10
+Microsoft\ App\ Client\ Id\ \-\ leave\ blank\ normally.
+client_id>
+Microsoft\ App\ Client\ Secret\ \-\ leave\ blank\ normally.
+client_secret>
Remote\ config
+Choose\ OneDrive\ account\ type?
+\ *\ Say\ b\ for\ a\ OneDrive\ business\ account
+\ *\ Say\ p\ for\ a\ personal\ OneDrive\ account
+b)\ Business
+p)\ Personal
+b/p>\ p
+Use\ auto\ config?
+\ *\ Say\ Y\ if\ not\ sure
+\ *\ Say\ N\ if\ you\ are\ working\ on\ a\ remote\ or\ headless\ machine
+y)\ Yes
+n)\ No
+y/n>\ y
+If\ your\ browser\ doesn\[aq]t\ open\ automatically\ go\ to\ the\ following\ link:\ http://127.0.0.1:53682/auth
+Log\ in\ and\ authorize\ rclone\ for\ access
+Waiting\ for\ code...
+Got\ code
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[remote]
-host\ =\ example.com
-user\ =\ sftpuser
-port\ =\
-pass\ =\
-key_file\ =\
+client_id\ =
+client_secret\ =
+token\ =\ {"access_token":"XXXXXX"}
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
@@ -6365,9 +7706,19 @@ y/e/d>\ y
\f[]
.fi
.PP
-This remote is called \f[C]remote\f[] and can now be used like this
+See the remote setup docs (https://rclone.org/remote_setup/) for how to
+set it up on a machine with no Internet browser available.
.PP
-See all directories in the home directory
+Note that rclone runs a webserver on your local machine to collect the
+token as returned from Microsoft.
+This only runs from the moment it opens your browser to the moment you
+get back the verification code.
+This is on \f[C]http://127.0.0.1:53682/\f[] and this it may require you
+to unblock it temporarily if you are running a host firewall.
+.PP
+Once configured you can then use \f[C]rclone\f[] like this,
+.PP
+List directories in top level of your OneDrive
.IP
.nf
\f[C]
@@ -6375,95 +7726,89 @@ rclone\ lsd\ remote:
\f[]
.fi
.PP
-Make a new directory
+List all the files in your OneDrive
.IP
.nf
\f[C]
-rclone\ mkdir\ remote:path/to/directory
+rclone\ ls\ remote:
\f[]
.fi
.PP
-List the contents of a directory
+To copy a local directory to an OneDrive directory called backup
.IP
.nf
\f[C]
-rclone\ ls\ remote:path/to/directory
+rclone\ copy\ /home/source\ remote:backup
\f[]
.fi
+.SS OneDrive for Business
.PP
-Sync \f[C]/home/local/directory\f[] to the remote directory, deleting
-any excess files in the directory.
+There is additional support for OneDrive for Business.
+Select "b" when ask
.IP
.nf
\f[C]
-rclone\ sync\ /home/local/directory\ remote:directory
+Choose\ OneDrive\ account\ type?
+\ *\ Say\ b\ for\ a\ OneDrive\ business\ account
+\ *\ Say\ p\ for\ a\ personal\ OneDrive\ account
+b)\ Business
+p)\ Personal
+b/p>\
\f[]
.fi
-.SS SSH Authentication
-.PP
-The SFTP remote supports 3 authentication methods
-.IP \[bu] 2
-Password
-.IP \[bu] 2
-Key file
-.IP \[bu] 2
-ssh\-agent
.PP
-Key files should be unencrypted PEM\-encoded private key files.
-For instance \f[C]/home/$USER/.ssh/id_rsa\f[].
+After that rclone requires an authentication of your account.
+The application will first authenticate your account, then query the
+OneDrive resource URL and do a second (silent) authentication for this
+resource URL.
+.SS Modified time and hashes
.PP
-If you don\[aq]t specify \f[C]pass\f[] or \f[C]key_file\f[] then it will
-attempt to contact an ssh\-agent.
-.SS ssh\-agent on macOS
+OneDrive allows modification times to be set on objects accurate to 1
+second.
+These will be used to detect whether objects need syncing or not.
.PP
-Note that there seem to be various problems with using an ssh\-agent on
-macOS due to recent changes in the OS.
-The most effective work\-around seems to be to start an ssh\-agent in
-each session, eg
-.IP
-.nf
-\f[C]
-eval\ `ssh\-agent\ \-s`\ &&\ ssh\-add\ \-A
-\f[]
-.fi
+One drive supports SHA1 type hashes, so you can use
+\f[C]\-\-checksum\f[] flag.
+.SS Deleting files
.PP
-And then at the end of the session
-.IP
-.nf
-\f[C]
-eval\ `ssh\-agent\ \-k`
-\f[]
-.fi
+Any files you delete with rclone will end up in the trash.
+Microsoft doesn\[aq]t provide an API to permanently delete files, nor to
+empty the trash, so you will have to do that with one of Microsoft\[aq]s
+apps or via the OneDrive website.
+.SS Specific options
.PP
-These commands can be used in scripts of course.
-.SS Modified time
+Here are the command line options specific to this cloud storage system.
+.SS \-\-onedrive\-chunk\-size=SIZE
.PP
-Modified times are stored on the server to 1 second precision.
+Above this size files will be chunked \- must be multiple of 320k.
+The default is 10MB.
+Note that the chunks will be buffered into memory.
+.SS \-\-onedrive\-upload\-cutoff=SIZE
.PP
-Modified times are used in syncing and are fully supported.
+Cutoff for switching to chunked upload \- must be <= 100MB.
+The default is 10MB.
.SS Limitations
.PP
-SFTP does not support any checksums.
-.PP
-The only ssh agent supported under Windows is Putty\[aq]s pagent.
-.PP
-SFTP isn\[aq]t supported under plan9 until this
-issue (https://github.com/pkg/sftp/issues/156) is fixed.
+Note that OneDrive is case insensitive so you can\[aq]t have a file
+called "Hello.doc" and one called "hello.doc".
.PP
-Note that since SFTP isn\[aq]t HTTP based the following flags don\[aq]t
-work with it: \f[C]\-\-dump\-headers\f[], \f[C]\-\-dump\-bodies\f[],
-\f[C]\-\-dump\-auth\f[]
+There are quite a few characters that can\[aq]t be in OneDrive file
+names.
+These can\[aq]t occur on Windows platforms, but on non\-Windows
+platforms they are common.
+Rclone will map these names to and from an identical looking unicode
+equivalent.
+For example if a file has a \f[C]?\f[] in it will be mapped to
+\f[C]?\f[] instead.
.PP
-Note that \f[C]\-\-timeout\f[] isn\[aq]t supported (but
-\f[C]\-\-contimeout\f[] is).
-.SS FTP
+The largest allowed file size is 10GiB (10,737,418,240 bytes).
+.SS QingStor
.PP
-FTP is the File Transfer Protocol.
-FTP support is provided using the
-github.com/jlaffaye/ftp (https://godoc.org/github.com/jlaffaye/ftp)
-package.
+Paths are specified as \f[C]remote:bucket\f[] (or \f[C]remote:\f[] for
+the \f[C]lsd\f[] command.) You may put subdirectories in too, eg
+\f[C]remote:bucket/path/to/dir\f[].
.PP
-Here is an example of making an FTP configuration.
+Here is an example of making an QingStor configuration.
First run
.IP
.nf
@@ -6473,10 +7818,6 @@ rclone\ config
.fi
.PP
This will guide you through an interactive setup process.
-An FTP remote only needs a host together with and a username and a
-password.
-With anonymous FTP server, you will need to use \f[C]anonymous\f[] as
-username and your email address as the password.
.IP
.nf
\f[C]
@@ -6500,7 +7841,7 @@ Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ \ \ \\\ "dropbox"
\ 5\ /\ Encrypt/Decrypt\ a\ remote
\ \ \ \\\ "crypt"
-\ 6\ /\ FTP\ Connection\
+\ 6\ /\ FTP\ Connection
\ \ \ \\\ "ftp"
\ 7\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
\ \ \ \\\ "google\ cloud\ storage"
@@ -6514,35 +7855,48 @@ Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ \ \ \\\ "onedrive"
12\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
\ \ \ \\\ "swift"
-13\ /\ SSH/SFTP\ Connection
+13\ /\ QingStor\ Object\ Storage
+\ \ \ \\\ "qingstor"
+14\ /\ SSH/SFTP\ Connection
\ \ \ \\\ "sftp"
-14\ /\ Yandex\ Disk
+15\ /\ Yandex\ Disk
\ \ \ \\\ "yandex"
-Storage>\ ftp
-FTP\ host\ to\ connect\ to
+Storage>\ 13
+Get\ QingStor\ credentials\ from\ runtime.\ Only\ applies\ if\ access_key_id\ and\ secret_access_key\ is\ blank.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
-\ 1\ /\ Connect\ to\ ftp.example.com
-\ \ \ \\\ "ftp.example.com"
-host>\ ftp.example.com
-FTP\ username,\ leave\ blank\ for\ current\ username,\ ncw
-user>
-FTP\ port,\ leave\ blank\ to\ use\ default\ (21)
-port>
-FTP\ password
-y)\ Yes\ type\ in\ my\ own\ password
-g)\ Generate\ random\ password
-y/g>\ y
-Enter\ the\ password:
-password:
-Confirm\ the\ password:
-password:
+\ 1\ /\ Enter\ QingStor\ credentials\ in\ the\ next\ step
+\ \ \ \\\ "false"
+\ 2\ /\ Get\ QingStor\ credentials\ from\ the\ environment\ (env\ vars\ or\ IAM)
+\ \ \ \\\ "true"
+env_auth>\ 1
+QingStor\ Access\ Key\ ID\ \-\ leave\ blank\ for\ anonymous\ access\ or\ runtime\ credentials.
+access_key_id>\ access_key
+QingStor\ Secret\ Access\ Key\ (password)\ \-\ leave\ blank\ for\ anonymous\ access\ or\ runtime\ credentials.
+secret_access_key>\ secret_key
+Enter\ a\ endpoint\ URL\ to\ connection\ QingStor\ API.
+Leave\ blank\ will\ use\ the\ default\ value\ "https://qingstor.com:443"
+endpoint>
+Zone\ connect\ to.\ Default\ is\ "pek3a".
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ \ \ /\ The\ Beijing\ (China)\ Three\ Zone
+\ 1\ |\ Needs\ location\ constraint\ pek3a.
+\ \ \ \\\ "pek3a"
+\ \ \ /\ The\ Shanghai\ (China)\ First\ Zone
+\ 2\ |\ Needs\ location\ constraint\ sh1a.
+\ \ \ \\\ "sh1a"
+zone>\ 1
+Number\ of\ connnection\ retry.
+Leave\ blank\ will\ use\ the\ default\ value\ "3".
+connection_retries>
Remote\ config
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[remote]
-host\ =\ ftp.example.com
-user\ =\
-port\ =
-pass\ =\ ***\ ENCRYPTED\ ***
+env_auth\ =\ false
+access_key_id\ =\ access_key
+secret_access_key\ =\ secret_key
+endpoint\ =
+zone\ =\ pek3a
+connection_retries\ =
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
@@ -6553,7 +7907,7 @@ y/e/d>\ y
.PP
This remote is called \f[C]remote\f[] and can now be used like this
.PP
-See all directories in the home directory
+See all buckets
.IP
.nf
\f[C]
@@ -6561,68 +7915,101 @@ rclone\ lsd\ remote:
\f[]
.fi
.PP
-Make a new directory
+Make a new bucket
.IP
.nf
\f[C]
-rclone\ mkdir\ remote:path/to/directory
+rclone\ mkdir\ remote:bucket
\f[]
.fi
.PP
-List the contents of a directory
+List the contents of a bucket
.IP
.nf
\f[C]
-rclone\ ls\ remote:path/to/directory
+rclone\ ls\ remote:bucket
\f[]
.fi
.PP
-Sync \f[C]/home/local/directory\f[] to the remote directory, deleting
-any excess files in the directory.
+Sync \f[C]/home/local/directory\f[] to the remote bucket, deleting any
+excess files in the bucket.
.IP
.nf
\f[C]
-rclone\ sync\ /home/local/directory\ remote:directory
+rclone\ sync\ /home/local/directory\ remote:bucket
\f[]
.fi
-.SS Modified time
-.PP
-FTP does not support modified times.
-Any times you see on the server will be time of upload.
-.SS Checksums
+.SS \-\-fast\-list
.PP
-FTP does not support any checksums.
-.SS Limitations
+This remote supports \f[C]\-\-fast\-list\f[] which allows you to use
+fewer transactions in exchange for more memory.
+See the rclone docs (/docs/#fast-list) for more details.
+.SS Multipart uploads
.PP
-Note that since FTP isn\[aq]t HTTP based the following flags don\[aq]t
-work with it: \f[C]\-\-dump\-headers\f[], \f[C]\-\-dump\-bodies\f[],
-\f[C]\-\-dump\-auth\f[]
+rclone supports multipart uploads with QingStor which means that it can
+upload files bigger than 5GB.
+Note that files uploaded with multipart upload don\[aq]t have an MD5SUM.
+.SS Buckets and Zone
.PP
-Note that \f[C]\-\-timeout\f[] isn\[aq]t supported (but
-\f[C]\-\-contimeout\f[] is).
+With QingStor you can list buckets (\f[C]rclone\ lsd\f[]) using any
+zone, but you can only access the content of a bucket from the zone it
+was created in.
+If you attempt to access a bucket from the wrong zone, you will get an
+error,
+\f[C]incorrect\ zone,\ the\ bucket\ is\ not\ in\ \[aq]XXX\[aq]\ zone\f[].
+.SS Authentication
.PP
-FTP could support server side move but doesn\[aq]t yet.
-.SS HTTP
+There are two ways to supply \f[C]rclone\f[] with a set of QingStor
+credentials.
+In order of precedence:
+.IP \[bu] 2
+Directly in the rclone configuration file (as configured by
+\f[C]rclone\ config\f[])
+.IP \[bu] 2
+set \f[C]access_key_id\f[] and \f[C]secret_access_key\f[]
+.IP \[bu] 2
+Runtime configuration:
+.IP \[bu] 2
+set \f[C]env_auth\f[] to \f[C]true\f[] in the config file
+.IP \[bu] 2
+Exporting the following environment variables before running
+\f[C]rclone\f[]
+.RS 2
+.IP \[bu] 2
+Access Key ID: \f[C]QS_ACCESS_KEY_ID\f[] or \f[C]QS_ACCESS_KEY\f[]
+.IP \[bu] 2
+Secret Access Key: \f[C]QS_SECRET_ACCESS_KEY\f[] or
+\f[C]QS_SECRET_KEY\f[]
+.RE
+.SS Swift
.PP
-The HTTP remote is a read only remote for reading files of a webserver.
-The webserver should provide file listings which rclone will read and
-turn into a remote.
-This has been tested with common webservers such as Apache/Nginx/Caddy
-and will likely work with file listings from most web servers.
-(If it doesn\[aq]t then please file an issue, or send a pull request!)
+Swift refers to Openstack Object
+Storage (https://docs.openstack.org/swift/latest/).
+Commercial implementations of that being:
+.IP \[bu] 2
+Rackspace Cloud Files (https://www.rackspace.com/cloud/files/)
+.IP \[bu] 2
+Memset Memstore (https://www.memset.com/cloud/storage/)
+.IP \[bu] 2
+OVH Object
+Storage (https://www.ovh.co.uk/public-cloud/storage/object-storage/)
+.IP \[bu] 2
+Oracle Cloud Storage (https://cloud.oracle.com/storage-opc)
.PP
-Paths are specified as \f[C]remote:\f[] or \f[C]remote:path/to/dir\f[].
+Paths are specified as \f[C]remote:container\f[] (or \f[C]remote:\f[]
+for the \f[C]lsd\f[] command.) You may put subdirectories in too, eg
+\f[C]remote:container/path/to/dir\f[].
.PP
-Here is an example of how to make a remote called \f[C]remote\f[].
-First run:
+Here is an example of making a swift configuration.
+First run
.IP
.nf
\f[C]
-\ rclone\ config
+rclone\ config
\f[]
.fi
.PP
-This will guide you through an interactive setup process:
+This will guide you through an interactive setup process.
.IP
.nf
\f[C]
@@ -6640,65 +8027,109 @@ Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ \ \ \\\ "s3"
\ 3\ /\ Backblaze\ B2
\ \ \ \\\ "b2"
-\ 4\ /\ Dropbox
+\ 4\ /\ Box
+\ \ \ \\\ "box"
+\ 5\ /\ Dropbox
\ \ \ \\\ "dropbox"
-\ 5\ /\ Encrypt/Decrypt\ a\ remote
+\ 6\ /\ Encrypt/Decrypt\ a\ remote
\ \ \ \\\ "crypt"
-\ 6\ /\ FTP\ Connection
+\ 7\ /\ FTP\ Connection
\ \ \ \\\ "ftp"
-\ 7\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
+\ 8\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
\ \ \ \\\ "google\ cloud\ storage"
-\ 8\ /\ Google\ Drive
+\ 9\ /\ Google\ Drive
\ \ \ \\\ "drive"
-\ 9\ /\ Hubic
+10\ /\ Hubic
\ \ \ \\\ "hubic"
-10\ /\ Local\ Disk
+11\ /\ Local\ Disk
\ \ \ \\\ "local"
-11\ /\ Microsoft\ OneDrive
+12\ /\ Microsoft\ Azure\ Blob\ Storage
+\ \ \ \\\ "azureblob"
+13\ /\ Microsoft\ OneDrive
\ \ \ \\\ "onedrive"
-12\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
+14\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
\ \ \ \\\ "swift"
-13\ /\ SSH/SFTP\ Connection
+15\ /\ QingClound\ Object\ Storage
+\ \ \ \\\ "qingstor"
+16\ /\ SSH/SFTP\ Connection
\ \ \ \\\ "sftp"
-14\ /\ Yandex\ Disk
+17\ /\ Yandex\ Disk
\ \ \ \\\ "yandex"
-15\ /\ http\ Connection
+18\ /\ http\ Connection
\ \ \ \\\ "http"
-Storage>\ http
-URL\ of\ http\ host\ to\ connect\ to
+Storage>\ swift
+Get\ swift\ credentials\ from\ environment\ variables\ in\ standard\ OpenStack\ form.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
-\ 1\ /\ Connect\ to\ example.com
-\ \ \ \\\ "https://example.com"
-url>\ https://beta.rclone.org
+\ 1\ /\ Enter\ swift\ credentials\ in\ the\ next\ step
+\ \ \ \\\ "false"
+\ 2\ /\ Get\ swift\ credentials\ from\ environment\ vars.\ Leave\ other\ fields\ blank\ if\ using\ this.
+\ \ \ \\\ "true"
+env_auth>\ 1
+User\ name\ to\ log\ in.
+user>\ user_name
+API\ key\ or\ password.
+key>\ password_or_api_key
+Authentication\ URL\ for\ server.
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ 1\ /\ Rackspace\ US
+\ \ \ \\\ "https://auth.api.rackspacecloud.com/v1.0"
+\ 2\ /\ Rackspace\ UK
+\ \ \ \\\ "https://lon.auth.api.rackspacecloud.com/v1.0"
+\ 3\ /\ Rackspace\ v2
+\ \ \ \\\ "https://identity.api.rackspacecloud.com/v2.0"
+\ 4\ /\ Memset\ Memstore\ UK
+\ \ \ \\\ "https://auth.storage.memset.com/v1.0"
+\ 5\ /\ Memset\ Memstore\ UK\ v2
+\ \ \ \\\ "https://auth.storage.memset.com/v2.0"
+\ 6\ /\ OVH
+\ \ \ \\\ "https://auth.cloud.ovh.net/v2.0"
+auth>\ 1
+User\ domain\ \-\ optional\ (v3\ auth)
+domain>\ Default
+Tenant\ name\ \-\ optional\ for\ v1\ auth,\ required\ otherwise
+tenant>\ tenant_name
+Tenant\ domain\ \-\ optional\ (v3\ auth)
+tenant_domain>
+Region\ name\ \-\ optional
+region>
+Storage\ URL\ \-\ optional
+storage_url>
+AuthVersion\ \-\ optional\ \-\ set\ to\ (1,2,3)\ if\ your\ auth\ URL\ has\ no\ version
+auth_version>
+Endpoint\ type\ to\ choose\ from\ the\ service\ catalogue
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ 1\ /\ Public\ (default,\ choose\ this\ if\ not\ sure)
+\ \ \ \\\ "public"
+\ 2\ /\ Internal\ (use\ internal\ service\ net)
+\ \ \ \\\ "internal"
+\ 3\ /\ Admin
+\ \ \ \\\ "admin"
+endpoint_type>
Remote\ config
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[remote]
-url\ =\ https://beta.rclone.org
+env_auth\ =\ false
+user\ =\ user_name
+key\ =\ password_or_api_key
+auth\ =\ https://auth.api.rackspacecloud.com/v1.0
+domain\ =\ Default
+tenant\ =
+tenant_domain\ =
+region\ =
+storage_url\ =
+auth_version\ =
+endpoint_type\ =
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
d)\ Delete\ this\ remote
y/e/d>\ y
-Current\ remotes:
-
-Name\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Type
-====\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ====
-remote\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ http
-
-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>\ q
\f[]
.fi
.PP
This remote is called \f[C]remote\f[] and can now be used like this
.PP
-See all the top level directories
+See all containers
.IP
.nf
\f[C]
@@ -6706,76 +8137,156 @@ rclone\ lsd\ remote:
\f[]
.fi
.PP
-List the contents of a directory
+Make a new container
+.IP
+.nf
+\f[C]
+rclone\ mkdir\ remote:container
+\f[]
+.fi
+.PP
+List the contents of a container
+.IP
+.nf
+\f[C]
+rclone\ ls\ remote:container
+\f[]
+.fi
+.PP
+Sync \f[C]/home/local/directory\f[] to the remote container, deleting
+any excess files in the container.
+.IP
+.nf
+\f[C]
+rclone\ sync\ /home/local/directory\ remote:container
+\f[]
+.fi
+.SS Configuration from an Openstack credentials file
+.PP
+An Opentstack credentials file typically looks something something like
+this (without the comments)
.IP
.nf
\f[C]
-rclone\ ls\ remote:directory
+export\ OS_AUTH_URL=https://a.provider.net/v2.0
+export\ OS_TENANT_ID=ffffffffffffffffffffffffffffffff
+export\ OS_TENANT_NAME="1234567890123456"
+export\ OS_USERNAME="123abc567xy"
+echo\ "Please\ enter\ your\ OpenStack\ Password:\ "
+read\ \-sr\ OS_PASSWORD_INPUT
+export\ OS_PASSWORD=$OS_PASSWORD_INPUT
+export\ OS_REGION_NAME="SBG1"
+if\ [\ \-z\ "$OS_REGION_NAME"\ ];\ then\ unset\ OS_REGION_NAME;\ fi
\f[]
.fi
.PP
-Sync the remote \f[C]directory\f[] to \f[C]/home/local/directory\f[],
-deleting any excess files.
+The config file needs to look something like this where
+\f[C]$OS_USERNAME\f[] represents the value of the \f[C]OS_USERNAME\f[]
+variable \- \f[C]123abc567xy\f[] in the example above.
.IP
.nf
\f[C]
-rclone\ sync\ remote:directory\ /home/local/directory
+[remote]
+type\ =\ swift
+user\ =\ $OS_USERNAME
+key\ =\ $OS_PASSWORD
+auth\ =\ $OS_AUTH_URL
+tenant\ =\ $OS_TENANT_NAME
\f[]
.fi
-.SS Read only
.PP
-This remote is read only \- you can\[aq]t upload files to an HTTP
-server.
-.SS Modified time
+Note that you may (or may not) need to set \f[C]region\f[] too \- try
+without first.
+.SS Configuration from the environment
.PP
-Most HTTP servers store time accurate to 1 second.
-.SS Checksum
+If you prefer you can configure rclone to use swift using a standard set
+of OpenStack environment variables.
.PP
-No checksums are stored.
-.SS Usage without a config file
+When you run through the config, make sure you choose \f[C]true\f[] for
+\f[C]env_auth\f[] and leave everything else blank.
.PP
-Note that since only two environment variable need to be set, it is easy
-to use without a config file like this.
+rclone will then set any empty config parameters from the enviroment
+using standard OpenStack environment variables.
+There is a list of the
+variables (https://godoc.org/github.com/ncw/swift#Connection.ApplyEnvironment)
+in the docs for the swift library.
+.SS Using rclone without a config file
+.PP
+You can use rclone with swift without a config file, if desired, like
+this:
.IP
.nf
\f[C]
-RCLONE_CONFIG_ZZ_TYPE=http\ RCLONE_CONFIG_ZZ_URL=https://beta.rclone.org\ rclone\ lsd\ zz:
+source\ openstack\-credentials\-file
+export\ RCLONE_CONFIG_MYREMOTE_TYPE=swift
+export\ RCLONE_CONFIG_MYREMOTE_ENV_AUTH=true
+rclone\ lsd\ myremote:
\f[]
.fi
+.SS \-\-fast\-list
.PP
-Or if you prefer
+This remote supports \f[C]\-\-fast\-list\f[] which allows you to use
+fewer transactions in exchange for more memory.
+See the rclone docs (/docs/#fast-list) for more details.
+.SS Specific options
+.PP
+Here are the command line options specific to this cloud storage system.
+.SS \-\-swift\-chunk\-size=SIZE
+.PP
+Above this size files will be chunked into a _segments container.
+The default for this is 5GB which is its maximum value.
+.SS Modified time
+.PP
+The modified time is stored as metadata on the object as
+\f[C]X\-Object\-Meta\-Mtime\f[] as floating point since the epoch
+accurate to 1 ns.
+.PP
+This is a defacto standard (used in the official python\-swiftclient
+amongst others) for storing the modification time for an object.
+.SS Limitations
+.PP
+The Swift API doesn\[aq]t return a correct MD5SUM for segmented files
+(Dynamic or Static Large Objects) so rclone won\[aq]t check or use the
+MD5SUM for these.
+.SS Troubleshooting
+.SS Rclone gives Failed to create file system for "remote:": Bad Request
+.PP
+Due to an oddity of the underlying swift library, it gives a "Bad
+Request" error rather than a more sensible error when the authentication
+fails for Swift.
+.PP
+So this most likely means your username / password is wrong.
+You can investigate further with the \f[C]\-\-dump\-bodies\f[] flag.
+.PP
+This may also be caused by specifying the region when you shouldn\[aq]t
+have (eg OVH).
+.SS Rclone gives Failed to create file system: Response didn\[aq]t have
+storage storage url and auth token
+.PP
+This is most likely caused by forgetting to specify your tenant when
+setting up a swift remote.
+.SS SFTP
+.PP
+SFTP is the Secure (or SSH) File Transfer
+Protocol (https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol).
+.PP
+It runs over SSH v2 and is standard with most modern SSH installations.
+.PP
+Paths are specified as \f[C]remote:path\f[].
+If the path does not begin with a \f[C]/\f[] it is relative to the home
+directory of the user.
+An empty path \f[C]remote:\f[] refers to the users home directory.
+.PP
+Here is an example of making a SFTP configuration.
+First run
.IP
.nf
\f[C]
-export\ RCLONE_CONFIG_ZZ_TYPE=http
-export\ RCLONE_CONFIG_ZZ_URL=https://beta.rclone.org
-rclone\ lsd\ zz:
+rclone\ config
\f[]
.fi
-.SS Crypt
-.PP
-The \f[C]crypt\f[] remote encrypts and decrypts another remote.
-.PP
-To use it first set up the underlying remote following the config
-instructions for that remote.
-You can also use a local pathname instead of a remote which will encrypt
-and decrypt from that directory which might be useful for encrypting
-onto a USB stick for example.
-.PP
-First check your chosen remote is working \- we\[aq]ll call it
-\f[C]remote:path\f[] in these docs.
-Note that anything inside \f[C]remote:path\f[] will be encrypted and
-anything outside won\[aq]t.
-This means that if you are using a bucket based remote (eg S3, B2,
-swift) then you should probably put the bucket in the remote
-\f[C]s3:bucket\f[].
-If you just use \f[C]s3:\f[] then rclone will make encrypted bucket
-names too (if using file name encryption) which may or may not be what
-you want.
.PP
-Now configure \f[C]crypt\f[] using \f[C]rclone\ config\f[].
-We will call this one \f[C]secret\f[] to differentiate it from the
-\f[C]remote\f[].
+This will guide you through an interactive setup process.
.IP
.nf
\f[C]
@@ -6783,8 +8294,8 @@ No\ remotes\ found\ \-\ make\ a\ new\ one
n)\ New\ remote
s)\ Set\ configuration\ password
q)\ Quit\ config
-n/s/q>\ n\ \ \
-name>\ secret
+n/s/q>\ n
+name>\ remote
Type\ of\ storage\ to\ configure.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ 1\ /\ Amazon\ Drive
@@ -6797,406 +8308,298 @@ Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ \ \ \\\ "dropbox"
\ 5\ /\ Encrypt/Decrypt\ a\ remote
\ \ \ \\\ "crypt"
-\ 6\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
+\ 6\ /\ FTP\ Connection
+\ \ \ \\\ "ftp"
+\ 7\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
\ \ \ \\\ "google\ cloud\ storage"
-\ 7\ /\ Google\ Drive
+\ 8\ /\ Google\ Drive
\ \ \ \\\ "drive"
-\ 8\ /\ Hubic
+\ 9\ /\ Hubic
\ \ \ \\\ "hubic"
-\ 9\ /\ Local\ Disk
+10\ /\ Local\ Disk
\ \ \ \\\ "local"
-10\ /\ Microsoft\ OneDrive
+11\ /\ Microsoft\ OneDrive
\ \ \ \\\ "onedrive"
-11\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
+12\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
\ \ \ \\\ "swift"
-12\ /\ SSH/SFTP\ Connection
+13\ /\ SSH/SFTP\ Connection
\ \ \ \\\ "sftp"
-13\ /\ Yandex\ Disk
+14\ /\ Yandex\ Disk
\ \ \ \\\ "yandex"
-Storage>\ 5
-Remote\ to\ encrypt/decrypt.
-Normally\ should\ contain\ a\ \[aq]:\[aq]\ and\ a\ path,\ eg\ "myremote:path/to/dir",
-"myremote:bucket"\ or\ maybe\ "myremote:"\ (not\ recommended).
-remote>\ remote:path
-How\ to\ encrypt\ the\ filenames.
+15\ /\ http\ Connection
+\ \ \ \\\ "http"
+Storage>\ sftp
+SSH\ host\ to\ connect\ to
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
-\ 1\ /\ Don\[aq]t\ encrypt\ the\ file\ names.\ \ Adds\ a\ ".bin"\ extension\ only.
-\ \ \ \\\ "off"
-\ 2\ /\ Encrypt\ the\ filenames\ see\ the\ docs\ for\ the\ details.
-\ \ \ \\\ "standard"
-\ 3\ /\ Very\ simple\ filename\ obfuscation.
-\ \ \ \\\ "obfuscate"
-filename_encryption>\ 2
-Password\ or\ pass\ phrase\ for\ encryption.
-y)\ Yes\ type\ in\ my\ own\ password
-g)\ Generate\ random\ password
-y/g>\ y
-Enter\ the\ password:
-password:
-Confirm\ the\ password:
-password:
-Password\ or\ pass\ phrase\ for\ salt.\ Optional\ but\ recommended.
-Should\ be\ different\ to\ the\ previous\ password.
+\ 1\ /\ Connect\ to\ example.com
+\ \ \ \\\ "example.com"
+host>\ example.com
+SSH\ username,\ leave\ blank\ for\ current\ username,\ ncw
+user>\ sftpuser
+SSH\ port,\ leave\ blank\ to\ use\ default\ (22)
+port>\
+SSH\ password,\ leave\ blank\ to\ use\ ssh\-agent.
y)\ Yes\ type\ in\ my\ own\ password
g)\ Generate\ random\ password
n)\ No\ leave\ this\ optional\ password\ blank
-y/g/n>\ g
-Password\ strength\ in\ bits.
-64\ is\ just\ about\ memorable
-128\ is\ secure
-1024\ is\ the\ maximum
-Bits>\ 128
-Your\ password\ is:\ JAsJvRcgR\-_veXNfy_sGmQ
-Use\ this\ password?
-y)\ Yes
-n)\ No
-y/n>\ y
-Remote\ config
-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
-[secret]
-remote\ =\ remote:path
-filename_encryption\ =\ standard
-password\ =\ ***\ ENCRYPTED\ ***
-password2\ =\ ***\ ENCRYPTED\ ***
-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
-y)\ Yes\ this\ is\ OK
-e)\ Edit\ this\ remote
-d)\ Delete\ this\ remote
-y/e/d>\ y
-\f[]
-.fi
-.PP
-\f[B]Important\f[] The password is stored in the config file is lightly
-obscured so it isn\[aq]t immediately obvious what it is.
-It is in no way secure unless you use config file encryption.
-.PP
-A long passphrase is recommended, or you can use a random one.
-Note that if you reconfigure rclone with the same passwords/passphrases
-elsewhere it will be compatible \- all the secrets used are derived from
-those two passwords/passphrases.
-.PP
-Note that rclone does not encrypt
-.IP \[bu] 2
-file length \- this can be calcuated within 16 bytes
-.IP \[bu] 2
-modification time \- used for syncing
-.SS Specifying the remote
-.PP
-In normal use, make sure the remote has a \f[C]:\f[] in.
-If you specify the remote without a \f[C]:\f[] then rclone will use a
-local directory of that name.
-So if you use a remote of \f[C]/path/to/secret/files\f[] then rclone
-will encrypt stuff to that directory.
-If you use a remote of \f[C]name\f[] then rclone will put files in a
-directory called \f[C]name\f[] in the current directory.
-.PP
-If you specify the remote as \f[C]remote:path/to/dir\f[] then rclone
-will store encrypted files in \f[C]path/to/dir\f[] on the remote.
-If you are using file name encryption, then when you save files to
-\f[C]secret:subdir/subfile\f[] this will store them in the unencrypted
-path \f[C]path/to/dir\f[] but the \f[C]subdir/subpath\f[] bit will be
-encrypted.
-.PP
-Note that unless you want encrypted bucket names (which are difficult to
-manage because you won\[aq]t know what directory they represent in web
-interfaces etc), you should probably specify a bucket, eg
-\f[C]remote:secretbucket\f[] when using bucket based remotes such as S3,
-Swift, Hubic, B2, GCS.
-.SS Example
-.PP
-To test I made a little directory of files using "standard" file name
-encryption.
-.IP
-.nf
-\f[C]
-plaintext/
-├──\ file0.txt
-├──\ file1.txt
-└──\ subdir
-\ \ \ \ ├──\ file2.txt
-\ \ \ \ ├──\ file3.txt
-\ \ \ \ └──\ subsubdir
-\ \ \ \ \ \ \ \ └──\ file4.txt
+y/g/n>\ n
+Path\ to\ unencrypted\ PEM\-encoded\ private\ key\ file,\ leave\ blank\ to\ use\ ssh\-agent.
+key_file>\
+Remote\ config
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+[remote]
+host\ =\ example.com
+user\ =\ sftpuser
+port\ =\
+pass\ =\
+key_file\ =\
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+y)\ Yes\ this\ is\ OK
+e)\ Edit\ this\ remote
+d)\ Delete\ this\ remote
+y/e/d>\ y
\f[]
.fi
.PP
-Copy these to the remote and list them back
+This remote is called \f[C]remote\f[] and can now be used like this
+.PP
+See all directories in the home directory
.IP
.nf
\f[C]
-$\ rclone\ \-q\ copy\ plaintext\ secret:
-$\ rclone\ \-q\ ls\ secret:
-\ \ \ \ \ \ \ \ 7\ file1.txt
-\ \ \ \ \ \ \ \ 6\ file0.txt
-\ \ \ \ \ \ \ \ 8\ subdir/file2.txt
-\ \ \ \ \ \ \ 10\ subdir/subsubdir/file4.txt
-\ \ \ \ \ \ \ \ 9\ subdir/file3.txt
+rclone\ lsd\ remote:
\f[]
.fi
.PP
-Now see what that looked like when encrypted
+Make a new directory
.IP
.nf
\f[C]
-$\ rclone\ \-q\ ls\ remote:path
-\ \ \ \ \ \ \ 55\ hagjclgavj2mbiqm6u6cnjjqcg
-\ \ \ \ \ \ \ 54\ v05749mltvv1tf4onltun46gls
-\ \ \ \ \ \ \ 57\ 86vhrsv86mpbtd3a0akjuqslj8/dlj7fkq4kdq72emafg7a7s41uo
-\ \ \ \ \ \ \ 58\ 86vhrsv86mpbtd3a0akjuqslj8/7uu829995du6o42n32otfhjqp4/b9pausrfansjth5ob3jkdqd4lc
-\ \ \ \ \ \ \ 56\ 86vhrsv86mpbtd3a0akjuqslj8/8njh1sk437gttmep3p70g81aps
+rclone\ mkdir\ remote:path/to/directory
\f[]
.fi
.PP
-Note that this retains the directory structure which means you can do
-this
+List the contents of a directory
.IP
.nf
\f[C]
-$\ rclone\ \-q\ ls\ secret:subdir
-\ \ \ \ \ \ \ \ 8\ file2.txt
-\ \ \ \ \ \ \ \ 9\ file3.txt
-\ \ \ \ \ \ \ 10\ subsubdir/file4.txt
+rclone\ ls\ remote:path/to/directory
\f[]
.fi
.PP
-If don\[aq]t use file name encryption then the remote will look like
-this \- note the \f[C]\&.bin\f[] extensions added to prevent the cloud
-provider attempting to interpret the data.
+Sync \f[C]/home/local/directory\f[] to the remote directory, deleting
+any excess files in the directory.
.IP
.nf
\f[C]
-$\ rclone\ \-q\ ls\ remote:path
-\ \ \ \ \ \ \ 54\ file0.txt.bin
-\ \ \ \ \ \ \ 57\ subdir/file3.txt.bin
-\ \ \ \ \ \ \ 56\ subdir/file2.txt.bin
-\ \ \ \ \ \ \ 58\ subdir/subsubdir/file4.txt.bin
-\ \ \ \ \ \ \ 55\ file1.txt.bin
+rclone\ sync\ /home/local/directory\ remote:directory
\f[]
.fi
-.SS File name encryption modes
-.PP
-Here are some of the features of the file name encryption modes
+.SS SSH Authentication
.PP
-Off
+The SFTP remote supports 3 authentication methods
.IP \[bu] 2
-doesn\[aq]t hide file names or directory structure
+Password
.IP \[bu] 2
-allows for longer file names (~246 characters)
+Key file
.IP \[bu] 2
-can use sub paths and copy single files
+ssh\-agent
.PP
-Standard
-.IP \[bu] 2
-file names encrypted
-.IP \[bu] 2
-file names can\[aq]t be as long (~156 characters)
-.IP \[bu] 2
-can use sub paths and copy single files
-.IP \[bu] 2
-directory structure visibile
-.IP \[bu] 2
-identical files names will have identical uploaded names
-.IP \[bu] 2
-can use shortcuts to shorten the directory recursion
+Key files should be unencrypted PEM\-encoded private key files.
+For instance \f[C]/home/$USER/.ssh/id_rsa\f[].
.PP
-Obfuscation
+If you don\[aq]t specify \f[C]pass\f[] or \f[C]key_file\f[] then it will
+attempt to contact an ssh\-agent.
+.SS ssh\-agent on macOS
.PP
-This is a simple "rotate" of the filename, with each file having a rot
-distance based on the filename.
-We store the distance at the beginning of the filename.
-So a file called "hello" may become "53.jgnnq"
+Note that there seem to be various problems with using an ssh\-agent on
+macOS due to recent changes in the OS.
+The most effective work\-around seems to be to start an ssh\-agent in
+each session, eg
+.IP
+.nf
+\f[C]
+eval\ `ssh\-agent\ \-s`\ &&\ ssh\-add\ \-A
+\f[]
+.fi
.PP
-This is not a strong encryption of filenames, but it may stop automated
-scanning tools from picking up on filename patterns.
-As such it\[aq]s an intermediate between "off" and "standard".
-The advantage is that it allows for longer path segment names.
+And then at the end of the session
+.IP
+.nf
+\f[C]
+eval\ `ssh\-agent\ \-k`
+\f[]
+.fi
.PP
-There is a possibility with some unicode based filenames that the
-obfuscation is weak and may map lower case characters to upper case
-equivalents.
-You can not rely on this for strong protection.
-.IP \[bu] 2
-file names very lightly obfuscated
-.IP \[bu] 2
-file names can be longer than standard encryption
-.IP \[bu] 2
-can use sub paths and copy single files
-.IP \[bu] 2
-directory structure visibile
-.IP \[bu] 2
-identical files names will have identical uploaded names
+These commands can be used in scripts of course.
+.SS Modified time
.PP
-Cloud storage systems have various limits on file name length and total
-path length which you are more likely to hit using "Standard" file name
-encryption.
-If you keep your file names to below 156 characters in length then you
-should be OK on all providers.
+Modified times are stored on the server to 1 second precision.
.PP
-There may be an even more secure file name encryption mode in the future
-which will address the long file name problem.
-.SS Modified time and hashes
+Modified times are used in syncing and are fully supported.
+.SS Limitations
.PP
-Crypt stores modification times using the underlying remote so support
-depends on that.
+SFTP supports checksums if the same login has shell access and
+\f[C]md5sum\f[] or \f[C]sha1sum\f[] as well as \f[C]echo\f[] are in the
+remote\[aq]s PATH.
.PP
-Hashes are not stored for crypt.
-However the data integrity is protected by an extremely strong crypto
-authenticator.
+The only ssh agent supported under Windows is Putty\[aq]s pagent.
.PP
-Note that you should use the \f[C]rclone\ cryptcheck\f[] command to
-check the integrity of a crypted remote instead of
-\f[C]rclone\ check\f[] which can\[aq]t check the checksums properly.
-.SS Specific options
+SFTP isn\[aq]t supported under plan9 until this
+issue (https://github.com/pkg/sftp/issues/156) is fixed.
.PP
-Here are the command line options specific to this cloud storage system.
-.SS \-\-crypt\-show\-mapping
+Note that since SFTP isn\[aq]t HTTP based the following flags don\[aq]t
+work with it: \f[C]\-\-dump\-headers\f[], \f[C]\-\-dump\-bodies\f[],
+\f[C]\-\-dump\-auth\f[]
.PP
-If this flag is set then for each file that the remote is asked to list,
-it will log (at level INFO) a line stating the decrypted file name and
-the encrypted file name.
+Note that \f[C]\-\-timeout\f[] isn\[aq]t supported (but
+\f[C]\-\-contimeout\f[] is).
+.SS Yandex Disk
.PP
-This is so you can work out which encrypted names are which decrypted
-names just in case you need to do something with the encrypted file
-names, or for debugging purposes.
-.SS Backing up a crypted remote
+Yandex Disk (https://disk.yandex.com) is a cloud storage solution
+created by Yandex (https://yandex.com).
.PP
-If you wish to backup a crypted remote, it it recommended that you use
-\f[C]rclone\ sync\f[] on the encrypted files, and make sure the
-passwords are the same in the new encrypted remote.
+Yandex paths may be as deep as required, eg
+\f[C]remote:directory/subdirectory\f[].
.PP
-This will have the following advantages
-.IP \[bu] 2
-\f[C]rclone\ sync\f[] will check the checksums while copying
-.IP \[bu] 2
-you can use \f[C]rclone\ check\f[] between the encrypted remotes
-.IP \[bu] 2
-you don\[aq]t decrypt and encrypt unecessarily
+Here is an example of making a yandex configuration.
+First run
+.IP
+.nf
+\f[C]
+rclone\ config
+\f[]
+.fi
+.PP
+This will guide you through an interactive setup process:
+.IP
+.nf
+\f[C]
+No\ remotes\ found\ \-\ make\ a\ new\ one
+n)\ New\ remote
+s)\ Set\ configuration\ password
+n/s>\ n
+name>\ remote
+Type\ of\ storage\ to\ configure.
+Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
+\ 1\ /\ Amazon\ Drive
+\ \ \ \\\ "amazon\ cloud\ drive"
+\ 2\ /\ Amazon\ S3\ (also\ Dreamhost,\ Ceph,\ Minio)
+\ \ \ \\\ "s3"
+\ 3\ /\ Backblaze\ B2
+\ \ \ \\\ "b2"
+\ 4\ /\ Dropbox
+\ \ \ \\\ "dropbox"
+\ 5\ /\ Encrypt/Decrypt\ a\ remote
+\ \ \ \\\ "crypt"
+\ 6\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
+\ \ \ \\\ "google\ cloud\ storage"
+\ 7\ /\ Google\ Drive
+\ \ \ \\\ "drive"
+\ 8\ /\ Hubic
+\ \ \ \\\ "hubic"
+\ 9\ /\ Local\ Disk
+\ \ \ \\\ "local"
+10\ /\ Microsoft\ OneDrive
+\ \ \ \\\ "onedrive"
+11\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
+\ \ \ \\\ "swift"
+12\ /\ SSH/SFTP\ Connection
+\ \ \ \\\ "sftp"
+13\ /\ Yandex\ Disk
+\ \ \ \\\ "yandex"
+Storage>\ 13
+Yandex\ Client\ Id\ \-\ leave\ blank\ normally.
+client_id>
+Yandex\ Client\ Secret\ \-\ leave\ blank\ normally.
+client_secret>
+Remote\ config
+Use\ auto\ config?
+\ *\ Say\ Y\ if\ not\ sure
+\ *\ Say\ N\ if\ you\ are\ working\ on\ a\ remote\ or\ headless\ machine
+y)\ Yes
+n)\ No
+y/n>\ y
+If\ your\ browser\ doesn\[aq]t\ open\ automatically\ go\ to\ the\ following\ link:\ http://127.0.0.1:53682/auth
+Log\ in\ and\ authorize\ rclone\ for\ access
+Waiting\ for\ code...
+Got\ code
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+[remote]
+client_id\ =
+client_secret\ =
+token\ =\ {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"bearer","expiry":"2016\-12\-29T12:27:11.362788025Z"}
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+y)\ Yes\ this\ is\ OK
+e)\ Edit\ this\ remote
+d)\ Delete\ this\ remote
+y/e/d>\ y
+\f[]
+.fi
+.PP
+See the remote setup docs (https://rclone.org/remote_setup/) for how to
+set it up on a machine with no Internet browser available.
.PP
-For example, let\[aq]s say you have your original remote at
-\f[C]remote:\f[] with the encrypted version at \f[C]eremote:\f[] with
-path \f[C]remote:crypt\f[].
-You would then set up the new remote \f[C]remote2:\f[] and then the
-encrypted version \f[C]eremote2:\f[] with path \f[C]remote2:crypt\f[]
-using the same passwords as \f[C]eremote:\f[].
+Note that rclone runs a webserver on your local machine to collect the
+token as returned from Yandex Disk.
+This only runs from the moment it opens your browser to the moment you
+get back the verification code.
+This is on \f[C]http://127.0.0.1:53682/\f[] and this it may require you
+to unblock it temporarily if you are running a host firewall.
.PP
-To sync the two remotes you would do
+Once configured you can then use \f[C]rclone\f[] like this,
+.PP
+See top level directories
.IP
.nf
\f[C]
-rclone\ sync\ remote:crypt\ remote2:crypt
+rclone\ lsd\ remote:
\f[]
.fi
.PP
-And to check the integrity you would do
+Make a new directory
.IP
.nf
\f[C]
-rclone\ check\ remote:crypt\ remote2:crypt
+rclone\ mkdir\ remote:directory
\f[]
.fi
-.SS File formats
-.SS File encryption
-.PP
-Files are encrypted 1:1 source file to destination object.
-The file has a header and is divided into chunks.
-.SS Header
-.IP \[bu] 2
-8 bytes magic string \f[C]RCLONE\\x00\\x00\f[]
-.IP \[bu] 2
-24 bytes Nonce (IV)
-.PP
-The initial nonce is generated from the operating systems crypto strong
-random number genrator.
-The nonce is incremented for each chunk read making sure each nonce is
-unique for each block written.
-The chance of a nonce being re\-used is miniscule.
-If you wrote an exabyte of data (10¹⁸ bytes) you would have a
-probability of approximately 2×10⁻³² of re\-using a nonce.
-.SS Chunk
-.PP
-Each chunk will contain 64kB of data, except for the last one which may
-have less data.
-The data chunk is in standard NACL secretbox format.
-Secretbox uses XSalsa20 and Poly1305 to encrypt and authenticate
-messages.
-.PP
-Each chunk contains:
-.IP \[bu] 2
-16 Bytes of Poly1305 authenticator
-.IP \[bu] 2
-1 \- 65536 bytes XSalsa20 encrypted data
-.PP
-64k chunk size was chosen as the best performing chunk size (the
-authenticator takes too much time below this and the performance drops
-off due to cache effects above this).
-Note that these chunks are buffered in memory so they can\[aq]t be too
-big.
-.PP
-This uses a 32 byte (256 bit key) key derived from the user password.
-.SS Examples
-.PP
-1 byte file will encrypt to
-.IP \[bu] 2
-32 bytes header
-.IP \[bu] 2
-17 bytes data chunk
-.PP
-49 bytes total
-.PP
-1MB (1048576 bytes) file will encrypt to
-.IP \[bu] 2
-32 bytes header
-.IP \[bu] 2
-16 chunks of 65568 bytes
-.PP
-1049120 bytes total (a 0.05% overhead).
-This is the overhead for big files.
-.SS Name encryption
-.PP
-File names are encrypted segment by segment \- the path is broken up
-into \f[C]/\f[] separated strings and these are encrypted individually.
-.PP
-File segments are padded using using PKCS#7 to a multiple of 16 bytes
-before encryption.
-.PP
-They are then encrypted with EME using AES with 256 bit key.
-EME (ECB\-Mix\-ECB) is a wide\-block encryption mode presented in the
-2003 paper "A Parallelizable Enciphering Mode" by Halevi and Rogaway.
-.PP
-This makes for determinstic encryption which is what we want \- the same
-filename must encrypt to the same thing otherwise we can\[aq]t find it
-on the cloud storage system.
.PP
-This means that
-.IP \[bu] 2
-filenames with the same name will encrypt the same
-.IP \[bu] 2
-filenames which start the same won\[aq]t have a common prefix
+List the contents of a directory
+.IP
+.nf
+\f[C]
+rclone\ ls\ remote:directory
+\f[]
+.fi
.PP
-This uses a 32 byte key (256 bits) and a 16 byte (128 bits) IV both of
-which are derived from the user password.
+Sync \f[C]/home/local/directory\f[] to the remote path, deleting any
+excess files in the path.
+.IP
+.nf
+\f[C]
+rclone\ sync\ /home/local/directory\ remote:directory
+\f[]
+.fi
+.SS \-\-fast\-list
.PP
-After encryption they are written out using a modified version of
-standard \f[C]base32\f[] encoding as described in RFC4648.
-The standard encoding is modified in two ways:
-.IP \[bu] 2
-it becomes lower case (no\-one likes upper case filenames!)
-.IP \[bu] 2
-we strip the padding character \f[C]=\f[]
+This remote supports \f[C]\-\-fast\-list\f[] which allows you to use
+fewer transactions in exchange for more memory.
+See the rclone docs (/docs/#fast-list) for more details.
+.SS Modified time
.PP
-\f[C]base32\f[] is used rather than the more efficient \f[C]base64\f[]
-so rclone can be used on case insensitive remotes (eg Windows, Amazon
-Drive).
-.SS Key derivation
+Modified times are supported and are stored accurate to 1 ns in custom
+metadata called \f[C]rclone_modified\f[] in RFC3339 with nanoseconds
+format.
+.SS MD5 checksums
.PP
-Rclone uses \f[C]scrypt\f[] with parameters \f[C]N=16384,\ r=8,\ p=1\f[]
-with a an optional user supplied salt (password2) to derive the 32+32+16
-= 80 bytes of key material required.
-If the user doesn\[aq]t supply a salt then rclone uses an internal one.
+MD5 checksums are natively supported by Yandex Disk.
+.SS Emptying Trash
.PP
-\f[C]scrypt\f[] makes it impractical to mount a dictionary attack on
-rclone encrypted data.
-For full protection agains this you should always use a salt.
+If you wish to empty your trash you can use the
+\f[C]rclone\ cleanup\ remote:\f[] command which will permanently delete
+all your trashed files.
+This command does not take any path arguments.
.SS Local Filesystem
.PP
Local paths are specified as normal filesystem paths, eg
@@ -7330,20 +8733,11 @@ $\ rclone\ \-L\ ls\ /tmp/a
\ \ \ \ \ \ \ \ 6\ b/one
\f[]
.fi
-.SS \-\-no\-local\-unicode\-normalization
-.PP
-By default rclone normalizes (NFC) the unicode representation of
-filenames and directories.
-This flag disables that normalization and uses the same representation
-as the local filesystem.
+.SS \-\-local\-no\-unicode\-normalization
.PP
-This can be useful if you need to retain the local unicode
-representation and you are using a cloud provider which supports
-unnormalized names (e.g.
-S3 or ACD).
-.PP
-This should also work with any provider if you are using crypt and have
-file name encryption (the default) or obfuscation turned on.
+This flag is deprecated now.
+Rclone no longer normalizes unicode file names, but it compares them
+with unicode normalization in the sync routine instead.
.SS \-\-one\-file\-system, \-x
.PP
This tells rclone to stay in the filesystem specified by the root and
@@ -7392,8 +8786,153 @@ as being on the same filesystem.
\f[B]NB\f[] This flag is only available on Unix based systems.
On systems where it isn\[aq]t supported (eg Windows) it will not appear
as an valid flag.
+.SS \-\-skip\-links
+.PP
+This flag disables warning messages on skipped symlinks or junction
+points, as you explicitly acknowledge that they should be skipped.
.SS Changelog
.IP \[bu] 2
+v1.38 \- 2017\-09\-30
+.RS 2
+.IP \[bu] 2
+New backends
+.IP \[bu] 2
+Azure Blob Storage (thanks Andrei Dragomir)
+.IP \[bu] 2
+Box
+.IP \[bu] 2
+Onedrive for Business (thanks Oliver Heyme)
+.IP \[bu] 2
+QingStor from QingCloud (thanks wuyu)
+.IP \[bu] 2
+New commands
+.IP \[bu] 2
+\f[C]rcat\f[] \- read from standard input and stream upload
+.IP \[bu] 2
+\f[C]tree\f[] \- shows a nicely formatted recursive listing
+.IP \[bu] 2
+\f[C]cryptdecode\f[] \- decode crypted file names (thanks ishuah)
+.IP \[bu] 2
+\f[C]config\ show\f[] \- print the config file
+.IP \[bu] 2
+\f[C]config\ file\f[] \- print the config file location
+.IP \[bu] 2
+New Features
+.IP \[bu] 2
+Empty directories are deleted on \f[C]sync\f[]
+.IP \[bu] 2
+\f[C]dedupe\f[] \- implement merging of duplicate directories
+.IP \[bu] 2
+\f[C]check\f[] and \f[C]cryptcheck\f[] made more consistent and use less
+memory
+.IP \[bu] 2
+\f[C]cleanup\f[] for remaining remotes (thanks ishuah)
+.IP \[bu] 2
+\f[C]\-\-immutable\f[] for ensuring that files don\[aq]t change (thanks
+Jacob McNamee)
+.IP \[bu] 2
+\f[C]\-\-user\-agent\f[] option (thanks Alex McGrath Kraak)
+.IP \[bu] 2
+\f[C]\-\-disable\f[] flag to disable optional features
+.IP \[bu] 2
+\f[C]\-\-bind\f[] flag for choosing the local addr on outgoing
+connections
+.IP \[bu] 2
+Support for zsh auto\-completion (thanks bpicode)
+.IP \[bu] 2
+Stop normalizing file names but do a normalized compare in \f[C]sync\f[]
+.IP \[bu] 2
+Compile
+.IP \[bu] 2
+Update to using go1.9 as the default go version
+.IP \[bu] 2
+Remove snapd build due to maintenance problems
+.IP \[bu] 2
+Bug Fixes
+.IP \[bu] 2
+Improve retriable error detection which makes multipart uploads better
+.IP \[bu] 2
+Make \f[C]check\f[] obey \f[C]\-\-ignore\-size\f[]
+.IP \[bu] 2
+Fix bwlimit toggle in conjunction with schedules (thanks cbruegg)
+.IP \[bu] 2
+\f[C]config\f[] ensures newly written config is on the same mount
+.IP \[bu] 2
+Local
+.IP \[bu] 2
+Revert to copy when moving file across file system boundaries
+.IP \[bu] 2
+\f[C]\-\-skip\-links\f[] to suppress symlink warnings (thanks Zhiming
+Wang)
+.IP \[bu] 2
+Mount
+.IP \[bu] 2
+Re\-use \f[C]rcat\f[] internals to support uploads from all remotes
+.IP \[bu] 2
+Dropbox
+.IP \[bu] 2
+Fix "entry doesn\[aq]t belong in directory" error
+.IP \[bu] 2
+Stop using deprecated API methods
+.IP \[bu] 2
+Swift
+.IP \[bu] 2
+Fix server side copy to empty container with \f[C]\-\-fast\-list\f[]
+.IP \[bu] 2
+Google Drive
+.IP \[bu] 2
+Change the default for \f[C]\-\-drive\-use\-trash\f[] to \f[C]true\f[]
+.IP \[bu] 2
+S3
+.IP \[bu] 2
+Set session token when using STS (thanks Girish Ramakrishnan)
+.IP \[bu] 2
+Glacier docs and error messages (thanks Jan Varho)
+.IP \[bu] 2
+Read 1000 (not 1024) items in dir listings to fix Wasabi
+.IP \[bu] 2
+Backblaze B2
+.IP \[bu] 2
+Fix SHA1 mismatch when downloading files with no SHA1
+.IP \[bu] 2
+Calculate missing hashes on the fly instead of spooling
+.IP \[bu] 2
+\f[C]\-\-b2\-hard\-delete\f[] to permanently delete (not hide) files
+(thanks John Papandriopoulos)
+.IP \[bu] 2
+Hubic
+.IP \[bu] 2
+Fix creating containers \- no longer have to use the \f[C]default\f[]
+container
+.IP \[bu] 2
+Swift
+.IP \[bu] 2
+Optionally configure from a standard set of OpenStack environment vars
+.IP \[bu] 2
+Add \f[C]endpoint_type\f[] config
+.IP \[bu] 2
+Google Cloud Storage
+.IP \[bu] 2
+Fix bucket creation to work with limited permission users
+.IP \[bu] 2
+SFTP
+.IP \[bu] 2
+Implement connection pooling for multiple ssh connections
+.IP \[bu] 2
+Limit new connections per second
+.IP \[bu] 2
+Add support for MD5 and SHA1 hashes where available (thanks Christian
+Brüggemann)
+.IP \[bu] 2
+HTTP
+.IP \[bu] 2
+Fix URL encoding issues
+.IP \[bu] 2
+Fix directories with \f[C]:\f[] in
+.IP \[bu] 2
+Fix panic with URL encoded content
+.RE
+.IP \[bu] 2
v1.37 \- 2017\-07\-22
.RS 2
.IP \[bu] 2
@@ -7423,7 +8962,7 @@ This uses less transactions (important if you pay for them)
.IP \[bu] 2
This may or may not be quicker
.IP \[bu] 2
-This will user more memory as it has to hold the listing in memory
+This will use more memory as it has to hold the listing in memory
.IP \[bu] 2
\-\-old\-sync\-method deprecated \- the remaining uses are covered by
\-\-fast\-list
@@ -9235,6 +10774,23 @@ hasn\[aq]t got the Microsoft Office suite installed.
The easiest way to fix is to install the Word viewer and the Microsoft
Office Compatibility Pack for Word, Excel, and PowerPoint 2007 and later
versions\[aq] file formats
+.SS tcp lookup some.domain.com no such host
+.PP
+This happens when rclone cannot resolve a domain.
+Please check that your DNS setup is generally working, e.g.
+.IP
+.nf
+\f[C]
+#\ both\ should\ print\ a\ long\ list\ of\ possible\ IP\ addresses
+dig\ www.googleapis.com\ \ \ \ \ \ \ \ \ \ #\ resolve\ using\ your\ default\ DNS
+dig\ www.googleapis.com\ \@8.8.8.8\ #\ resolve\ with\ Google\[aq]s\ DNS\ server
+\f[]
+.fi
+.PP
+If you are using \f[C]systemd\-resolved\f[] (default on Arch Linux),
+ensure it is at version 233 or higher.
+Previous releases contain a bug which causes not all domains to be
+resolved properly.
.SS License
.PP
This is free software under the terms of MIT the license (check the
@@ -9424,6 +10980,38 @@ sainaen <[email protected]>
.IP \[bu] 2
Yaroslav Halchenko <[email protected]>
+.IP \[bu] 2
+John Papandriopoulos <[email protected]>
+.IP \[bu] 2
+Zhiming Wang <[email protected]>
+.IP \[bu] 2
+Andy Pilate <[email protected]>
+.IP \[bu] 2
+Oliver Heyme <[email protected]>
+.IP \[bu] 2
+.IP \[bu] 2
+Andrei Dragomir <[email protected]>
+.IP \[bu] 2
+Christian Brüggemann <[email protected]>
+.IP \[bu] 2
+Alex McGrath Kraak <[email protected]>
+.IP \[bu] 2
+.IP \[bu] 2
+Daniel Jagszent <[email protected]>
+.IP \[bu] 2
+Josiah White <[email protected]>
+.IP \[bu] 2
+.IP \[bu] 2
+Jan Varho <[email protected]>
+.IP \[bu] 2
+Girish Ramakrishnan <[email protected]>
+.IP \[bu] 2
+.IP \[bu] 2
+Jacob McNamee <[email protected]>
.SH Contact the rclone project
.SS Forum
.PP