rclone/rclone.1

25270 lines
649 KiB
Groff
Raw Normal View History

.\"t
2018-09-01 11:58:00 +00:00
.\" Automatically generated by Pandoc 1.19.2.4
2016-06-18 15:29:53 +00:00
.\"
2019-02-09 10:42:57 +00:00
.TH "rclone" "1" "Feb 09, 2019" "User Manual" ""
2016-06-18 15:29:53 +00:00
.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
2017-09-30 13:19:47 +00:00
from:
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Alibaba Cloud (Aliyun) Object Storage System (OSS)
.IP \[bu] 2
2018-09-01 11:58:00 +00:00
Amazon Drive (See note (/amazonclouddrive/#status))
.IP \[bu] 2
Amazon S3
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
Backblaze B2
.IP \[bu] 2
Box
.IP \[bu] 2
Ceph
.IP \[bu] 2
2017-12-23 13:07:45 +00:00
DigitalOcean Spaces
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
Dreamhost
.IP \[bu] 2
Dropbox
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
FTP
.IP \[bu] 2
Google Cloud Storage
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
Google Drive
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
HTTP
.IP \[bu] 2
Hubic
.IP \[bu] 2
2018-09-01 11:58:00 +00:00
Jottacloud
.IP \[bu] 2
2018-03-19 10:06:13 +00:00
IBM COS S3
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
Memset Memstore
.IP \[bu] 2
2018-04-28 10:46:27 +00:00
Mega
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
Microsoft Azure Blob Storage
.IP \[bu] 2
Microsoft OneDrive
.IP \[bu] 2
Minio
.IP \[bu] 2
2018-06-16 17:21:09 +00:00
Nextcloud
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
OVH
.IP \[bu] 2
2018-06-16 17:21:09 +00:00
OpenDrive
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
Openstack Swift
.IP \[bu] 2
Oracle Cloud Storage
.IP \[bu] 2
2018-04-28 10:46:27 +00:00
ownCloud
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
pCloud
.IP \[bu] 2
put.io
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
QingStor
.IP \[bu] 2
Rackspace Cloud Files
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Scaleway
.IP \[bu] 2
2017-03-18 11:16:43 +00:00
SFTP
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
Wasabi
.IP \[bu] 2
2017-12-23 13:07:45 +00:00
WebDAV
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
Yandex Disk
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
The local filesystem
.PP
Features
.IP \[bu] 2
MD5/SHA1 hashes checked at all times for file integrity
.IP \[bu] 2
Timestamps preserved on files
.IP \[bu] 2
Partial syncs supported on a whole file basis
.IP \[bu] 2
Copy (https://rclone.org/commands/rclone_copy/) mode to just copy
new/changed files
.IP \[bu] 2
Sync (https://rclone.org/commands/rclone_sync/) (one way) mode to make a
directory identical
.IP \[bu] 2
Check (https://rclone.org/commands/rclone_check/) mode to check for file
hash equality
.IP \[bu] 2
Can sync to and from network, eg two different cloud accounts
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
(Encryption (https://rclone.org/crypt/)) backend
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
(Cache (https://rclone.org/cache/)) backend
.IP \[bu] 2
(Union (https://rclone.org/union/)) backend
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Optional FUSE mount (rclone
mount (https://rclone.org/commands/rclone_mount/))
.PP
Links
.IP \[bu] 2
Home page (https://rclone.org/)
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
GitHub project page for source and bug
tracker (https://github.com/ncw/rclone)
.IP \[bu] 2
2017-01-02 15:30:34 +00:00
Rclone Forum (https://forum.rclone.org)
.IP \[bu] 2
Google+ page
.IP \[bu] 2
Downloads (https://rclone.org/downloads/)
2016-11-06 10:17:52 +00:00
.SH Install
.PP
Rclone is a Go program and comes as a single binary file.
2016-11-06 10:17:52 +00:00
.SS Quickstart
.IP \[bu] 2
Download (https://rclone.org/downloads/) the relevant binary.
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
2018-09-01 11:58:00 +00:00
Extract the \f[C]rclone\f[] or \f[C]rclone.exe\f[] binary from the
archive
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
Run \f[C]rclone\ config\f[] to setup.
See rclone config docs (https://rclone.org/docs/) for more details.
2016-11-06 10:17:52 +00:00
.PP
See below for some expanded Linux / macOS instructions.
.PP
See the Usage section (https://rclone.org/docs/) of the docs for how to
2016-11-06 10:17:52 +00:00
use rclone, or run \f[C]rclone\ \-h\f[].
2017-12-23 13:07:45 +00:00
.SS Script installation
.PP
2018-03-19 10:06:13 +00:00
To install rclone on Linux/macOS/BSD systems, run:
2017-12-23 13:07:45 +00:00
.IP
.nf
\f[C]
curl\ https://rclone.org/install.sh\ |\ sudo\ bash
\f[]
.fi
.PP
For beta installation, run:
.IP
.nf
\f[C]
curl\ https://rclone.org/install.sh\ |\ sudo\ bash\ \-s\ beta
\f[]
.fi
.PP
Note that this script checks the version of rclone installed first and
won\[aq]t re\-download if not needed.
2016-11-06 10:17:52 +00:00
.SS Linux installation from precompiled binary
.PP
2016-11-06 10:17:52 +00:00
Fetch and unpack
.IP
.nf
\f[C]
curl\ \-O\ https://downloads.rclone.org/rclone\-current\-linux\-amd64.zip
2016-11-06 10:17:52 +00:00
unzip\ rclone\-current\-linux\-amd64.zip
cd\ rclone\-*\-linux\-amd64
\f[]
.fi
.PP
2016-11-06 10:17:52 +00:00
Copy binary file
.IP
.nf
\f[C]
2017-03-18 11:16:43 +00:00
sudo\ cp\ rclone\ /usr/bin/
sudo\ chown\ root:root\ /usr/bin/rclone
sudo\ chmod\ 755\ /usr/bin/rclone
\f[]
.fi
.PP
2016-11-06 10:17:52 +00:00
Install manpage
.IP
.nf
\f[C]
sudo\ mkdir\ \-p\ /usr/local/share/man/man1
sudo\ cp\ rclone.1\ /usr/local/share/man/man1/
2016-07-13 11:26:22 +00:00
sudo\ mandb\
\f[]
.fi
2016-11-06 10:17:52 +00:00
.PP
Run \f[C]rclone\ config\f[] to setup.
See rclone config docs (https://rclone.org/docs/) for more details.
2016-11-06 10:17:52 +00:00
.IP
.nf
\f[C]
rclone\ config
\f[]
.fi
.SS macOS installation from precompiled binary
.PP
Download the latest version of rclone.
.IP
.nf
\f[C]
cd\ &&\ curl\ \-O\ https://downloads.rclone.org/rclone\-current\-osx\-amd64.zip
2016-11-06 10:17:52 +00:00
\f[]
.fi
.PP
Unzip the download and cd to the extracted folder.
.IP
.nf
\f[C]
unzip\ \-a\ rclone\-current\-osx\-amd64.zip\ &&\ cd\ rclone\-*\-osx\-amd64
\f[]
.fi
.PP
Move rclone to your $PATH.
You will be prompted for your password.
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
sudo\ mkdir\ \-p\ /usr/local/bin
2016-11-06 10:17:52 +00:00
sudo\ mv\ rclone\ /usr/local/bin/
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
(the \f[C]mkdir\f[] command is safe to run, even if the directory
already exists).
.PP
2016-11-06 10:17:52 +00:00
Remove the leftover files.
.IP
.nf
\f[C]
cd\ ..\ &&\ rm\ \-rf\ rclone\-*\-osx\-amd64\ rclone\-current\-osx\-amd64.zip
\f[]
.fi
.PP
Run \f[C]rclone\ config\f[] to setup.
See rclone config docs (https://rclone.org/docs/) for more details.
2016-11-06 10:17:52 +00:00
.IP
.nf
\f[C]
rclone\ config
\f[]
.fi
.SS Install from source
.PP
2018-09-01 11:58:00 +00:00
Make sure you have at least Go (https://golang.org/) 1.7 installed.
Download go (https://golang.org/dl/) if necessary.
The latest release is recommended.
Then
2016-11-06 10:17:52 +00:00
.IP
.nf
\f[C]
2018-09-01 11:58:00 +00:00
git\ clone\ https://github.com/ncw/rclone.git
cd\ rclone
go\ build
\&./rclone\ version
2016-11-06 10:17:52 +00:00
\f[]
.fi
.PP
2018-09-01 11:58:00 +00:00
You can also build and install rclone in the
GOPATH (https://github.com/golang/go/wiki/GOPATH) (which defaults to
\f[C]~/go\f[]) with:
2016-11-06 10:17:52 +00:00
.IP
.nf
\f[C]
2018-09-01 11:58:00 +00:00
go\ get\ \-u\ \-v\ github.com/ncw/rclone
2016-11-06 10:17:52 +00:00
\f[]
.fi
2018-09-01 11:58:00 +00:00
.PP
and this will build the binary in \f[C]$GOPATH/bin\f[]
(\f[C]~/go/bin/rclone\f[] by default) after downloading the source to
\f[C]$GOPATH/src/github.com/ncw/rclone\f[]
(\f[C]~/go/src/github.com/ncw/rclone\f[] by default).
2016-07-13 11:26:22 +00:00
.SS Installation with Ansible
.PP
This can be done with Stefan Weichinger\[aq]s ansible
role (https://github.com/stefangweichinger/ansible-rclone).
.PP
Instructions
.IP "1." 3
\f[C]git\ clone\ https://github.com/stefangweichinger/ansible\-rclone.git\f[]
into your local roles\-directory
.IP "2." 3
add the role to the hosts you want rclone installed to:
.IP
.nf
\f[C]
\ \ \ \ \-\ hosts:\ rclone\-hosts
\ \ \ \ \ \ roles:
\ \ \ \ \ \ \ \ \ \ \-\ rclone
\f[]
.fi
.SS Configure
.PP
2017-07-22 17:16:46 +00:00
First, you\[aq]ll need to configure rclone.
As the object storage systems have quite complicated authentication
2017-03-18 11:16:43 +00:00
these are kept in a config file.
(See the \f[C]\-\-config\f[] entry for how to find the config file and
choose its location.)
.PP
The easiest way to make the config is to run rclone with the config
option:
.IP
.nf
\f[C]
rclone\ config
\f[]
.fi
.PP
See the following for detailed instructions for
.IP \[bu] 2
2018-03-19 10:06:13 +00:00
Alias (https://rclone.org/alias/)
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
Amazon Drive (https://rclone.org/amazonclouddrive/)
.IP \[bu] 2
Amazon S3 (https://rclone.org/s3/)
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
Backblaze B2 (https://rclone.org/b2/)
.IP \[bu] 2
Box (https://rclone.org/box/)
.IP \[bu] 2
2017-12-23 13:07:45 +00:00
Cache (https://rclone.org/cache/)
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
Crypt (https://rclone.org/crypt/) \- to encrypt other remotes
.IP \[bu] 2
2017-12-23 13:07:45 +00:00
DigitalOcean Spaces (/s3/#digitalocean-spaces)
.IP \[bu] 2
Dropbox (https://rclone.org/dropbox/)
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
FTP (https://rclone.org/ftp/)
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
Google Cloud Storage (https://rclone.org/googlecloudstorage/)
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
Google Drive (https://rclone.org/drive/)
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
HTTP (https://rclone.org/http/)
.IP \[bu] 2
Hubic (https://rclone.org/hubic/)
.IP \[bu] 2
2018-09-01 11:58:00 +00:00
Jottacloud (https://rclone.org/jottacloud/)
.IP \[bu] 2
2018-04-28 10:46:27 +00:00
Mega (https://rclone.org/mega/)
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
Microsoft Azure Blob Storage (https://rclone.org/azureblob/)
.IP \[bu] 2
Microsoft OneDrive (https://rclone.org/onedrive/)
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
Openstack Swift / Rackspace Cloudfiles / Memset
Memstore (https://rclone.org/swift/)
.IP \[bu] 2
2018-06-16 17:21:09 +00:00
OpenDrive (https://rclone.org/opendrive/)
.IP \[bu] 2
2017-12-23 13:07:45 +00:00
Pcloud (https://rclone.org/pcloud/)
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
QingStor (https://rclone.org/qingstor/)
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
SFTP (https://rclone.org/sftp/)
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
Union (https://rclone.org/union/)
.IP \[bu] 2
2017-12-23 13:07:45 +00:00
WebDAV (https://rclone.org/webdav/)
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
Yandex Disk (https://rclone.org/yandex/)
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
The local filesystem (https://rclone.org/local/)
.SS Usage
.PP
Rclone syncs a directory tree from one storage system to another.
.PP
Its syntax is like this
.IP
.nf
\f[C]
Syntax:\ [options]\ subcommand\ <parameters>\ <parameters...>
\f[]
.fi
.PP
Source and destination paths are specified by the name you gave the
storage system in the config file then the sub path, eg "drive:myfolder"
to look at "myfolder" in Google drive.
.PP
You can define as many storage paths as you like in the config file.
.SS Subcommands
.PP
rclone uses a system of subcommands.
For example
.IP
.nf
\f[C]
rclone\ ls\ remote:path\ #\ lists\ a\ re
rclone\ copy\ /local/path\ remote:path\ #\ copies\ /local/path\ to\ the\ remote
rclone\ sync\ /local/path\ remote:path\ #\ syncs\ /local/path\ to\ the\ remote
\f[]
.fi
.SS rclone config
.PP
Enter an interactive configuration session.
.SS Synopsis
.PP
2017-12-23 13:07:45 +00:00
Enter an interactive configuration session where you can setup new
remotes and manage existing ones.
2017-09-30 13:19:47 +00:00
You may also set or remove a password to protect your configuration.
.IP
.nf
\f[C]
2017-12-23 13:07:45 +00:00
rclone\ config\ [flags]
2017-09-30 13:19:47 +00:00
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ config
\f[]
.fi
.SS rclone copy
.PP
Copy files from source to dest, skipping already copied
.SS Synopsis
.PP
Copy the source to the destination.
Doesn\[aq]t transfer unchanged files, testing by size and modification
time or MD5SUM.
Doesn\[aq]t delete files from the destination.
.PP
Note that it is always the contents of the directory that is synced, not
the directory so when source:path is a directory, it\[aq]s the contents
of source:path that are copied, not the directory name and contents.
.PP
If dest:path doesn\[aq]t exist, it is created and the source:path
contents go there.
.PP
For example
.IP
.nf
\f[C]
rclone\ copy\ source:sourcepath\ dest:destpath
\f[]
.fi
.PP
Let\[aq]s say there are two files in sourcepath
.IP
.nf
\f[C]
sourcepath/one.txt
sourcepath/two.txt
\f[]
.fi
.PP
This copies them to
.IP
.nf
\f[C]
destpath/one.txt
destpath/two.txt
\f[]
.fi
.PP
Not to
.IP
.nf
\f[C]
destpath/sourcepath/one.txt
destpath/sourcepath/two.txt
\f[]
.fi
.PP
If you are familiar with \f[C]rsync\f[], rclone always works as if you
had written a trailing / \- meaning "copy the contents of this
directory".
This applies to all commands and whether you are talking about the
source or destination.
2018-11-24 13:44:25 +00:00
.PP
2019-02-09 10:42:57 +00:00
See the \-\-no\-traverse (/docs/#no-traverse) option for controlling
whether rclone lists the destination directory or not.
Supplying this option when copying a small number of files into a large
destination can speed transfers up greatly.
.PP
For example, if you have many files in /path/to/src but only a few of
them change every day, you can to copy all the files which have changed
recently very efficiently like this:
.IP
.nf
\f[C]
rclone\ copy\ \-\-max\-age\ 24h\ \-\-no\-traverse\ /path/to/src\ remote:
\f[]
.fi
.PP
2018-11-24 13:44:25 +00:00
\f[B]Note\f[]: Use the \f[C]\-P\f[]/\f[C]\-\-progress\f[] flag to view
real\-time transfer statistics
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
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
.PP
Make source and dest identical, modifying destination only.
.SS Synopsis
.PP
Sync the source to the destination, changing the destination only.
Doesn\[aq]t transfer unchanged files, testing by size and modification
time or MD5SUM.
Destination is updated to match source, including deleting files if
necessary.
.PP
\f[B]Important\f[]: Since this can cause data loss, test first with the
\f[C]\-\-dry\-run\f[] flag to see exactly what would be copied and
deleted.
.PP
Note that files in the destination won\[aq]t be deleted if there were
any errors at any point.
.PP
It is always the contents of the directory that is synced, not the
directory so when source:path is a directory, it\[aq]s the contents of
source:path that are copied, not the directory name and contents.
See extended explanation in the \f[C]copy\f[] command above if unsure.
.PP
If dest:path doesn\[aq]t exist, it is created and the source:path
contents go there.
2018-11-24 13:44:25 +00:00
.PP
\f[B]Note\f[]: Use the \f[C]\-P\f[]/\f[C]\-\-progress\f[] flag to view
real\-time transfer statistics
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
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
.PP
Move files from source to dest.
.SS Synopsis
2016-03-01 09:00:01 +00:00
.PP
2016-07-13 11:26:22 +00:00
Moves the contents of the source directory to the destination directory.
2017-01-02 15:30:34 +00:00
Rclone will error if the source and destination overlap and the remote
does not support a server side directory move operation.
2016-03-01 09:00:01 +00:00
.PP
2016-07-13 11:26:22 +00:00
If no filters are in use and if possible this will server side move
\f[C]source:path\f[] into \f[C]dest:path\f[].
After this \f[C]source:path\f[] will no longer longer exist.
2016-03-01 09:00:01 +00:00
.PP
2016-07-13 11:26:22 +00:00
Otherwise for each file in \f[C]source:path\f[] selected by the filters
(if any) this will move it into \f[C]dest:path\f[].
If possible a server side move will be used, otherwise it will copy it
(server side if possible) into \f[C]dest:path\f[] then delete the
original (if no errors on copy) in \f[C]source:path\f[].
2016-03-01 09:00:01 +00:00
.PP
2017-12-23 13:07:45 +00:00
If you want to delete empty source directories after move, use the
\-\-delete\-empty\-src\-dirs flag.
.PP
2019-02-09 10:42:57 +00:00
See the \-\-no\-traverse (/docs/#no-traverse) option for controlling
whether rclone lists the destination directory or not.
Supplying this option when moving a small number of files into a large
destination can speed transfers up greatly.
.PP
2016-03-01 09:00:01 +00:00
\f[B]Important\f[]: Since this can cause data loss, test first with the
\-\-dry\-run flag.
2018-11-24 13:44:25 +00:00
.PP
\f[B]Note\f[]: Use the \f[C]\-P\f[]/\f[C]\-\-progress\f[] flag to view
real\-time transfer statistics.
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ move\ source:path\ dest:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
2017-12-23 13:07:45 +00:00
\ \ \ \ \ \ \-\-delete\-empty\-src\-dirs\ \ \ Delete\ empty\ source\ dirs\ after\ move
\ \ \-h,\ \-\-help\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ help\ for\ move
\f[]
.fi
.SS rclone delete
.PP
Remove the contents of path.
.SS Synopsis
.PP
2018-11-24 13:44:25 +00:00
Remove the files in path.
Unlike \f[C]purge\f[] it obeys include/exclude filters so can be used to
selectively delete files.
.PP
2018-11-24 13:44:25 +00:00
\f[C]rclone\ delete\f[] only deletes objects but leaves the directory
structure alone.
If you want to delete a directory and all of its contents use
\f[C]rclone\ purge\f[]
.PP
Eg delete all files bigger than 100MBytes
.PP
Check what would be deleted first (use either)
.IP
.nf
\f[C]
rclone\ \-\-min\-size\ 100M\ lsl\ remote:path
rclone\ \-\-dry\-run\ \-\-min\-size\ 100M\ delete\ remote:path
\f[]
.fi
.PP
Then delete
.IP
.nf
\f[C]
rclone\ \-\-min\-size\ 100M\ delete\ remote:path
\f[]
.fi
.PP
That reads "delete everything with a minimum size of 100 MB", hence
delete all files bigger than 100MBytes.
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ delete\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ delete
\f[]
.fi
.SS rclone purge
.PP
Remove the path and all of its contents.
.SS Synopsis
.PP
Remove the path and all of its contents.
Note that this does not obey include/exclude filters \- everything will
be removed.
Use \f[C]delete\f[] if you want to selectively delete files.
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ purge\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ purge
\f[]
.fi
.SS rclone mkdir
.PP
Make the path if it doesn\[aq]t already exist.
.SS Synopsis
.PP
Make the path if it doesn\[aq]t already exist.
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ mkdir\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ mkdir
\f[]
.fi
.SS rclone rmdir
.PP
Remove the path if empty.
.SS Synopsis
.PP
Remove the path.
Note that you can\[aq]t remove a path with objects in it, use purge for
that.
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ rmdir\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ rmdir
\f[]
.fi
.SS rclone check
.PP
Checks the files in the source and destination match.
.SS Synopsis
.PP
Checks the files in the source and destination match.
2017-03-18 11:16:43 +00:00
It compares sizes and hashes (MD5 or SHA1) and logs a report of files
which don\[aq]t match.
It doesn\[aq]t alter the source or destination.
2016-04-18 17:30:29 +00:00
.PP
2017-03-18 11:16:43 +00:00
If you supply the \-\-size\-only flag, it will only compare the sizes
not the hashes as well.
Use this for a quick check.
.PP
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\[aq]t support hashes or if you
really want to check all the data.
2018-06-16 17:21:09 +00:00
.PP
If you supply the \-\-one\-way flag, it will only check that files in
source match the files in destination, not the other way around.
Meaning extra files in destination that are not in the source will not
trigger an error.
.IP
.nf
\f[C]
rclone\ check\ source:path\ dest:path\ [flags]
\f[]
.fi
2017-03-18 11:16:43 +00:00
.SS Options
.IP
.nf
\f[C]
\ \ \ \ \ \ \-\-download\ \ \ Check\ by\ downloading\ rather\ than\ with\ hash.
2017-09-30 13:19:47 +00:00
\ \ \-h,\ \-\-help\ \ \ \ \ \ \ help\ for\ check
2018-06-16 17:21:09 +00:00
\ \ \ \ \ \ \-\-one\-way\ \ \ \ Check\ one\ way\ only,\ source\ files\ must\ exist\ on\ remote
2017-03-18 11:16:43 +00:00
\f[]
.fi
.SS rclone ls
.PP
2018-03-19 10:06:13 +00:00
List the objects in the path with size and path.
.SS Synopsis
.PP
2018-03-19 10:06:13 +00:00
Lists the objects in the source path to standard output in a human
readable format with size and path.
Recurses by default.
.PP
2018-04-28 10:46:27 +00:00
Eg
.IP
.nf
\f[C]
$\ rclone\ ls\ swift:bucket
\ \ \ \ 60295\ bevajer5jef
\ \ \ \ 90613\ canole
\ \ \ \ 94467\ diwogej7
\ \ \ \ 37600\ fubuwic
\f[]
.fi
.PP
2018-03-19 10:06:13 +00:00
Any of the filtering options can be applied to this commmand.
.PP
There are several related list commands
.IP \[bu] 2
\f[C]ls\f[] to list size and path of objects only
.IP \[bu] 2
\f[C]lsl\f[] to list modification time, size and path of objects only
.IP \[bu] 2
\f[C]lsd\f[] to list directories only
.IP \[bu] 2
\f[C]lsf\f[] to list objects and directories in easy to parse format
.IP \[bu] 2
\f[C]lsjson\f[] to list objects and directories in JSON format
.PP
\f[C]ls\f[],\f[C]lsl\f[],\f[C]lsd\f[] are designed to be human readable.
\f[C]lsf\f[] is designed to be human and machine readable.
\f[C]lsjson\f[] is designed to be machine readable.
.PP
2018-04-28 10:46:27 +00:00
Note that \f[C]ls\f[] and \f[C]lsl\f[] recurse by default \- use
"\-\-max\-depth 1" to stop the recursion.
.PP
The other list commands \f[C]lsd\f[],\f[C]lsf\f[],\f[C]lsjson\f[] do not
recurse by default \- use "\-R" to make them recurse.
2018-03-19 10:06:13 +00:00
.PP
2018-04-28 10:46:27 +00:00
Listing a non existent directory will produce an error except for
remotes which can\[aq]t have empty directories (eg s3, swift, gcs, etc
\- the bucket based remotes).
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ ls\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ ls
\f[]
.fi
.SS rclone lsd
.PP
List all directories/containers/buckets in the path.
.SS Synopsis
.PP
2018-03-19 10:06:13 +00:00
Lists the directories in the source path to standard output.
2018-04-28 10:46:27 +00:00
Does not recurse by default.
Use the \-R flag to recurse.
.PP
This command lists the total size of the directory (if known, \-1 if
not), the modification time (if known, the current time if not), the
number of objects in the directory (if known, \-1 if not) and the name
of the directory, Eg
.IP
.nf
\f[C]
$\ rclone\ lsd\ swift:
\ \ \ \ \ \ 494000\ 2018\-04\-26\ 08:43:20\ \ \ \ \ 10000\ 10000files
\ \ \ \ \ \ \ \ \ \ 65\ 2018\-04\-26\ 08:43:20\ \ \ \ \ \ \ \ \ 1\ 1File
\f[]
.fi
.PP
Or
.IP
.nf
\f[C]
$\ rclone\ lsd\ drive:test
\ \ \ \ \ \ \ \ \ \ \-1\ 2016\-10\-17\ 17:41:53\ \ \ \ \ \ \ \ \-1\ 1000files
\ \ \ \ \ \ \ \ \ \ \-1\ 2017\-01\-03\ 14:40:54\ \ \ \ \ \ \ \ \-1\ 2500files
\ \ \ \ \ \ \ \ \ \ \-1\ 2017\-07\-08\ 14:39:28\ \ \ \ \ \ \ \ \-1\ 4000files
\f[]
.fi
.PP
If you just want the directory names use "rclone lsf \-\-dirs\-only".
2018-03-19 10:06:13 +00:00
.PP
Any of the filtering options can be applied to this commmand.
.PP
There are several related list commands
.IP \[bu] 2
\f[C]ls\f[] to list size and path of objects only
.IP \[bu] 2
\f[C]lsl\f[] to list modification time, size and path of objects only
.IP \[bu] 2
\f[C]lsd\f[] to list directories only
.IP \[bu] 2
\f[C]lsf\f[] to list objects and directories in easy to parse format
.IP \[bu] 2
\f[C]lsjson\f[] to list objects and directories in JSON format
.PP
\f[C]ls\f[],\f[C]lsl\f[],\f[C]lsd\f[] are designed to be human readable.
\f[C]lsf\f[] is designed to be human and machine readable.
\f[C]lsjson\f[] is designed to be machine readable.
.PP
2018-04-28 10:46:27 +00:00
Note that \f[C]ls\f[] and \f[C]lsl\f[] recurse by default \- use
"\-\-max\-depth 1" to stop the recursion.
.PP
The other list commands \f[C]lsd\f[],\f[C]lsf\f[],\f[C]lsjson\f[] do not
recurse by default \- use "\-R" to make them recurse.
2018-03-19 10:06:13 +00:00
.PP
2018-04-28 10:46:27 +00:00
Listing a non existent directory will produce an error except for
remotes which can\[aq]t have empty directories (eg s3, swift, gcs, etc
\- the bucket based remotes).
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ lsd\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
2018-04-28 10:46:27 +00:00
\ \ \-h,\ \-\-help\ \ \ \ \ \ \ \ help\ for\ lsd
\ \ \-R,\ \-\-recursive\ \ \ Recurse\ into\ the\ listing.
\f[]
.fi
.SS rclone lsl
.PP
2018-03-19 10:06:13 +00:00
List the objects in path with modification time, size and path.
.SS Synopsis
.PP
2018-03-19 10:06:13 +00:00
Lists the objects in the source path to standard output in a human
readable format with modification time, size and path.
Recurses by default.
.PP
2018-04-28 10:46:27 +00:00
Eg
.IP
.nf
\f[C]
$\ rclone\ lsl\ swift:bucket
\ \ \ \ 60295\ 2016\-06\-25\ 18:55:41.062626927\ bevajer5jef
\ \ \ \ 90613\ 2016\-06\-25\ 18:55:43.302607074\ canole
\ \ \ \ 94467\ 2016\-06\-25\ 18:55:43.046609333\ diwogej7
\ \ \ \ 37600\ 2016\-06\-25\ 18:55:40.814629136\ fubuwic
\f[]
.fi
.PP
2018-03-19 10:06:13 +00:00
Any of the filtering options can be applied to this commmand.
.PP
There are several related list commands
.IP \[bu] 2
\f[C]ls\f[] to list size and path of objects only
.IP \[bu] 2
\f[C]lsl\f[] to list modification time, size and path of objects only
.IP \[bu] 2
\f[C]lsd\f[] to list directories only
.IP \[bu] 2
\f[C]lsf\f[] to list objects and directories in easy to parse format
.IP \[bu] 2
\f[C]lsjson\f[] to list objects and directories in JSON format
.PP
\f[C]ls\f[],\f[C]lsl\f[],\f[C]lsd\f[] are designed to be human readable.
\f[C]lsf\f[] is designed to be human and machine readable.
\f[C]lsjson\f[] is designed to be machine readable.
.PP
2018-04-28 10:46:27 +00:00
Note that \f[C]ls\f[] and \f[C]lsl\f[] recurse by default \- use
"\-\-max\-depth 1" to stop the recursion.
.PP
The other list commands \f[C]lsd\f[],\f[C]lsf\f[],\f[C]lsjson\f[] do not
recurse by default \- use "\-R" to make them recurse.
2018-03-19 10:06:13 +00:00
.PP
2018-04-28 10:46:27 +00:00
Listing a non existent directory will produce an error except for
remotes which can\[aq]t have empty directories (eg s3, swift, gcs, etc
\- the bucket based remotes).
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ lsl\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ lsl
\f[]
.fi
.SS rclone md5sum
.PP
Produces an md5sum file for all the objects in the path.
.SS Synopsis
.PP
Produces an md5sum file for all the objects in the path.
This is in the same format as the standard md5sum tool produces.
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ md5sum\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ md5sum
\f[]
.fi
.SS rclone sha1sum
.PP
Produces an sha1sum file for all the objects in the path.
.SS Synopsis
.PP
Produces an sha1sum file for all the objects in the path.
This is in the same format as the standard sha1sum tool produces.
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ sha1sum\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ sha1sum
\f[]
.fi
.SS rclone size
.PP
Prints the total size and number of objects in remote:path.
.SS Synopsis
.PP
Prints the total size and number of objects in remote:path.
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ size\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ size
2018-04-28 10:46:27 +00:00
\ \ \ \ \ \ \-\-json\ \ \ format\ output\ as\ JSON
\f[]
.fi
.SS rclone version
.PP
Show the version number.
.SS Synopsis
.PP
2018-09-01 11:58:00 +00:00
Show the version number, the go version and the architecture.
.PP
Eg
.IP
.nf
\f[C]
$\ rclone\ version
rclone\ v1.41
\-\ os/arch:\ linux/amd64
\-\ go\ version:\ go1.10
\f[]
.fi
.PP
If you supply the \-\-check flag, then it will do an online check to
compare your version with the latest release and the latest beta.
.IP
.nf
\f[C]
$\ rclone\ version\ \-\-check
yours:\ \ 1.42.0.6
latest:\ 1.42\ \ \ \ \ \ \ \ \ \ (released\ 2018\-06\-16)
beta:\ \ \ 1.42.0.5\ \ \ \ \ \ (released\ 2018\-06\-17)
\f[]
.fi
.PP
Or
.IP
.nf
\f[C]
$\ rclone\ version\ \-\-check
yours:\ \ 1.41
latest:\ 1.42\ \ \ \ \ \ \ \ \ \ (released\ 2018\-06\-16)
\ \ upgrade:\ https://downloads.rclone.org/v1.42
beta:\ \ \ 1.42.0.5\ \ \ \ \ \ (released\ 2018\-06\-17)
\ \ upgrade:\ https://beta.rclone.org/v1.42\-005\-g56e1e820
\f[]
.fi
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ version\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
2018-09-01 11:58:00 +00:00
\ \ \ \ \ \ \-\-check\ \ \ Check\ for\ new\ version.
\ \ \-h,\ \-\-help\ \ \ \ help\ for\ version
\f[]
.fi
.SS rclone cleanup
.PP
Clean up the remote if possible
.SS Synopsis
2016-07-13 11:26:22 +00:00
.PP
Clean up the remote if possible.
Empty the trash or delete old file versions.
Not supported by all remotes.
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ cleanup\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ cleanup
\f[]
.fi
.SS rclone dedupe
.PP
2017-12-23 13:07:45 +00:00
Interactively find duplicate files and delete/rename them.
.SS Synopsis
.PP
2017-09-30 13:19:47 +00:00
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.
2016-04-18 17:30:29 +00:00
.PP
2017-09-30 13:19:47 +00:00
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
2016-04-18 17:30:29 +00:00
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
will not be interactive.
You can use \f[C]\-\-dry\-run\f[] to see what would happen without doing
anything.
.PP
Here is an example run.
.PP
Before \- with duplicates
.IP
.nf
\f[C]
$\ rclone\ lsl\ drive:dupes
\ \ 6048320\ 2016\-03\-05\ 16:23:16.798000000\ one.txt
\ \ 6048320\ 2016\-03\-05\ 16:23:11.775000000\ one.txt
\ \ \ 564374\ 2016\-03\-05\ 16:23:06.731000000\ one.txt
\ \ 6048320\ 2016\-03\-05\ 16:18:26.092000000\ one.txt
\ \ 6048320\ 2016\-03\-05\ 16:22:46.185000000\ two.txt
\ \ 1744073\ 2016\-03\-05\ 16:22:38.104000000\ two.txt
\ \ \ 564374\ 2016\-03\-05\ 16:22:52.118000000\ two.txt
\f[]
.fi
.PP
Now the \f[C]dedupe\f[] session
.IP
.nf
\f[C]
$\ rclone\ dedupe\ drive:dupes
2016-04-18 17:30:29 +00:00
2016/03/05\ 16:24:37\ Google\ drive\ root\ \[aq]dupes\[aq]:\ Looking\ for\ duplicates\ using\ interactive\ mode.
one.txt:\ Found\ 4\ duplicates\ \-\ deleting\ identical\ copies
one.txt:\ Deleting\ 2/3\ identical\ duplicates\ (md5sum\ "1eedaa9fe86fd4b8632e2ac549403b36")
one.txt:\ 2\ duplicates\ remain
\ \ 1:\ \ \ \ \ \ 6048320\ bytes,\ 2016\-03\-05\ 16:23:16.798000000,\ md5sum\ 1eedaa9fe86fd4b8632e2ac549403b36
\ \ 2:\ \ \ \ \ \ \ 564374\ bytes,\ 2016\-03\-05\ 16:23:06.731000000,\ md5sum\ 7594e7dc9fc28f727c42ee3e0749de81
s)\ Skip\ and\ do\ nothing
k)\ Keep\ just\ one\ (choose\ which\ in\ next\ step)
r)\ Rename\ all\ to\ be\ different\ (by\ changing\ file.jpg\ to\ file\-1.jpg)
s/k/r>\ k
Enter\ the\ number\ of\ the\ file\ to\ keep>\ 1
one.txt:\ Deleted\ 1\ extra\ copies
two.txt:\ Found\ 3\ duplicates\ \-\ deleting\ identical\ copies
two.txt:\ 3\ duplicates\ remain
\ \ 1:\ \ \ \ \ \ \ 564374\ bytes,\ 2016\-03\-05\ 16:22:52.118000000,\ md5sum\ 7594e7dc9fc28f727c42ee3e0749de81
\ \ 2:\ \ \ \ \ \ 6048320\ bytes,\ 2016\-03\-05\ 16:22:46.185000000,\ md5sum\ 1eedaa9fe86fd4b8632e2ac549403b36
\ \ 3:\ \ \ \ \ \ 1744073\ bytes,\ 2016\-03\-05\ 16:22:38.104000000,\ md5sum\ 851957f7fb6f0bc4ce76be966d336802
s)\ Skip\ and\ do\ nothing
k)\ Keep\ just\ one\ (choose\ which\ in\ next\ step)
r)\ Rename\ all\ to\ be\ different\ (by\ changing\ file.jpg\ to\ file\-1.jpg)
s/k/r>\ r
two\-1.txt:\ renamed\ from:\ two.txt
two\-2.txt:\ renamed\ from:\ two.txt
two\-3.txt:\ renamed\ from:\ two.txt
\f[]
.fi
.PP
The result being
.IP
.nf
\f[C]
$\ rclone\ lsl\ drive:dupes
2016-04-18 17:30:29 +00:00
\ \ 6048320\ 2016\-03\-05\ 16:23:16.798000000\ one.txt
\ \ \ 564374\ 2016\-03\-05\ 16:22:52.118000000\ two\-1.txt
\ \ 6048320\ 2016\-03\-05\ 16:22:46.185000000\ two\-2.txt
\ \ 1744073\ 2016\-03\-05\ 16:22:38.104000000\ two\-3.txt
\f[]
.fi
.PP
Dedupe can be run non interactively using the \f[C]\-\-dedupe\-mode\f[]
flag or by using an extra parameter with the same value
2016-04-18 17:30:29 +00:00
.IP \[bu] 2
\f[C]\-\-dedupe\-mode\ interactive\f[] \- interactive as above.
.IP \[bu] 2
\f[C]\-\-dedupe\-mode\ skip\f[] \- removes identical files then skips
anything left.
.IP \[bu] 2
\f[C]\-\-dedupe\-mode\ first\f[] \- removes identical files then keeps
the first one.
.IP \[bu] 2
\f[C]\-\-dedupe\-mode\ newest\f[] \- removes identical files then keeps
the newest one.
.IP \[bu] 2
\f[C]\-\-dedupe\-mode\ oldest\f[] \- removes identical files then keeps
the oldest one.
.IP \[bu] 2
2018-04-28 10:46:27 +00:00
\f[C]\-\-dedupe\-mode\ largest\f[] \- removes identical files then keeps
the largest one.
.IP \[bu] 2
2016-04-18 17:30:29 +00:00
\f[C]\-\-dedupe\-mode\ rename\f[] \- removes identical files then
renames the rest to be different.
.PP
For example to rename all the identically named photos in your Google
Photos directory, do
.IP
.nf
\f[C]
rclone\ dedupe\ \-\-dedupe\-mode\ rename\ "drive:Google\ Photos"
\f[]
.fi
.PP
Or
.IP
.nf
\f[C]
rclone\ dedupe\ rename\ "drive:Google\ Photos"
\f[]
.fi
.IP
.nf
\f[C]
rclone\ dedupe\ [mode]\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
2016-11-06 10:17:52 +00:00
\ \ \ \ \ \ \-\-dedupe\-mode\ string\ \ \ Dedupe\ mode\ interactive|skip|first|newest|oldest|rename.\ (default\ "interactive")
2017-09-30 13:19:47 +00:00
\ \ \-h,\ \-\-help\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ help\ for\ dedupe
\f[]
.fi
2018-04-28 10:46:27 +00:00
.SS rclone about
.PP
Get quota information from the remote.
.SS Synopsis
.PP
Get quota information from the remote, like bytes used/free/quota and
bytes used in the trash.
Not supported by all remotes.
.PP
This will print to stdout something like this:
.IP
.nf
\f[C]
Total:\ \ \ 17G
Used:\ \ \ \ 7.444G
Free:\ \ \ \ 1.315G
Trashed:\ 100.000M
Other:\ \ \ 8.241G
\f[]
.fi
.PP
Where the fields are:
.IP \[bu] 2
Total: total size available.
.IP \[bu] 2
Used: total size used
.IP \[bu] 2
Free: total amount this user could upload.
.IP \[bu] 2
Trashed: total amount in the trash
.IP \[bu] 2
Other: total amount in other storage (eg Gmail, Google Photos)
.IP \[bu] 2
Objects: total number of objects in the storage
.PP
Note that not all the backends provide all the fields \- they will be
missing if they are not known for that backend.
Where it is known that the value is unlimited the value will also be
omitted.
.PP
Use the \-\-full flag to see the numbers written out in full, eg
.IP
.nf
\f[C]
Total:\ \ \ 18253611008
Used:\ \ \ \ 7993453766
Free:\ \ \ \ 1411001220
Trashed:\ 104857602
Other:\ \ \ 8849156022
\f[]
.fi
.PP
Use the \-\-json flag for a computer readable output, eg
.IP
.nf
\f[C]
{
\ \ \ \ "total":\ 18253611008,
\ \ \ \ "used":\ 7993453766,
\ \ \ \ "trashed":\ 104857602,
\ \ \ \ "other":\ 8849156022,
\ \ \ \ "free":\ 1411001220
}
\f[]
.fi
.IP
.nf
\f[C]
rclone\ about\ remote:\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \ \ \ \ \-\-full\ \ \ Full\ numbers\ instead\ of\ SI\ units
\ \ \-h,\ \-\-help\ \ \ help\ for\ about
\ \ \ \ \ \ \-\-json\ \ \ Format\ output\ as\ JSON
\f[]
.fi
.SS rclone authorize
.PP
Remote authorization.
.SS Synopsis
.PP
Remote authorization.
Used to authorize a remote or headless rclone from a machine with a
browser \- use as instructed by rclone config.
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ authorize\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ authorize
\f[]
.fi
2017-12-23 13:07:45 +00:00
.SS rclone cachestats
.PP
Print cache stats for a remote
.SS Synopsis
.PP
Print cache stats for a remote in JSON format
.IP
.nf
\f[C]
rclone\ cachestats\ source:\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ cachestats
\f[]
.fi
2016-08-24 21:58:24 +00:00
.SS rclone cat
.PP
Concatenates any files and sends them to stdout.
.SS Synopsis
.PP
rclone cat sends any files to standard output.
.PP
You can use it like this to output a single file
.IP
.nf
\f[C]
rclone\ cat\ remote:path/to/file
\f[]
.fi
.PP
Or like this to output any file in dir or subdirectories.
.IP
.nf
\f[C]
rclone\ cat\ remote:path/to/dir
\f[]
.fi
.PP
Or like this to output any .txt files in dir or subdirectories.
.IP
.nf
\f[C]
rclone\ \-\-include\ "*.txt"\ cat\ remote:path/to/dir
\f[]
.fi
2017-03-18 11:16:43 +00:00
.PP
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.
2016-08-24 21:58:24 +00:00
.IP
.nf
\f[C]
rclone\ cat\ remote:path\ [flags]
2016-08-24 21:58:24 +00:00
\f[]
.fi
2017-03-18 11:16:43 +00:00
.SS Options
.IP
.nf
\f[C]
\ \ \ \ \ \ \-\-count\ int\ \ \ \ Only\ print\ N\ characters.\ (default\ \-1)
\ \ \ \ \ \ \-\-discard\ \ \ \ \ \ Discard\ the\ output\ instead\ of\ printing.
\ \ \ \ \ \ \-\-head\ int\ \ \ \ \ Only\ print\ the\ first\ N\ characters.
2017-09-30 13:19:47 +00:00
\ \ \-h,\ \-\-help\ \ \ \ \ \ \ \ \ help\ for\ cat
2017-03-18 11:16:43 +00:00
\ \ \ \ \ \ \-\-offset\ int\ \ \ Start\ printing\ at\ offset\ N\ (or\ from\ end\ if\ \-ve).
\ \ \ \ \ \ \-\-tail\ int\ \ \ \ \ Only\ print\ the\ last\ N\ characters.
\f[]
.fi
2017-12-23 13:07:45 +00:00
.SS rclone config create
.PP
Create a new remote with name, type and options.
.SS Synopsis
.PP
Create a new remote of with and options.
The options should be passed in in pairs of .
.PP
For example to make a swift remote of name myremote using auto config
you would do:
.IP
.nf
\f[C]
rclone\ config\ create\ myremote\ swift\ env_auth\ true
\f[]
.fi
2019-02-09 10:42:57 +00:00
.PP
Note that if the config process would normally ask a question the
default is taken.
Each time that happens rclone will print a message saying how to affect
the value taken.
.PP
So for example if you wanted to configure a Google Drive remote but
using remote authorization you would do this:
.IP
.nf
\f[C]
rclone\ config\ create\ mydrive\ drive\ config_is_local\ false
\f[]
.fi
2017-12-23 13:07:45 +00:00
.IP
.nf
\f[C]
rclone\ config\ create\ <name>\ <type>\ [<key>\ <value>]*\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ create
\f[]
.fi
.SS rclone config delete
.PP
Delete an existing remote .
.SS Synopsis
.PP
Delete an existing remote .
.IP
.nf
\f[C]
rclone\ config\ delete\ <name>\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ delete
\f[]
.fi
.SS rclone config dump
.PP
Dump the config file as JSON.
.SS Synopsis
.PP
Dump the config file as JSON.
.IP
.nf
\f[C]
rclone\ config\ dump\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ dump
\f[]
.fi
.SS rclone config edit
.PP
Enter an interactive configuration session.
.SS Synopsis
.PP
Enter an interactive configuration session where you can setup new
remotes and manage existing ones.
You may also set or remove a password to protect your configuration.
.IP
.nf
\f[C]
rclone\ config\ edit\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ edit
\f[]
.fi
.SS rclone config file
.PP
Show path of configuration file in use.
.SS Synopsis
.PP
Show path of configuration file in use.
.IP
.nf
\f[C]
rclone\ config\ file\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ file
\f[]
.fi
.SS rclone config password
.PP
Update password in an existing remote.
.SS Synopsis
.PP
Update an existing remote\[aq]s password.
The password should be passed in in pairs of .
.PP
For example to set password of a remote of name myremote you would do:
.IP
.nf
\f[C]
rclone\ config\ password\ myremote\ fieldname\ mypassword
\f[]
.fi
.IP
.nf
\f[C]
rclone\ config\ password\ <name>\ [<key>\ <value>]+\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ password
\f[]
.fi
.SS rclone config providers
.PP
List in JSON format all the providers and options.
.SS Synopsis
.PP
List in JSON format all the providers and options.
.IP
.nf
\f[C]
rclone\ config\ providers\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ providers
\f[]
.fi
.SS rclone config show
.PP
Print (decrypted) config file, or the config for a single remote.
.SS Synopsis
.PP
Print (decrypted) config file, or the config for a single remote.
.IP
.nf
\f[C]
rclone\ config\ show\ [<remote>]\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ show
\f[]
.fi
.SS rclone config update
.PP
Update options in an existing remote.
.SS Synopsis
.PP
Update an existing remote\[aq]s options.
The options should be passed in in pairs of .
.PP
For example to update the env_auth field of a remote of name myremote
you would do:
.IP
.nf
\f[C]
rclone\ config\ update\ myremote\ swift\ env_auth\ true
\f[]
.fi
2019-02-09 10:42:57 +00:00
.PP
If the remote uses oauth the token will be updated, if you don\[aq]t
require this add an extra parameter thus:
.IP
.nf
\f[C]
rclone\ config\ update\ myremote\ swift\ env_auth\ true\ config_refresh_token\ false
\f[]
.fi
2017-12-23 13:07:45 +00:00
.IP
.nf
\f[C]
rclone\ config\ update\ <name>\ [<key>\ <value>]+\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ update
\f[]
.fi
2017-01-02 15:30:34 +00:00
.SS rclone copyto
.PP
Copy files from source to dest, skipping already copied
.SS Synopsis
.PP
If source:path is a file or directory then it copies it to a file or
directory named dest:path.
.PP
This can be used to upload single files to other than their current
name.
If the source is a directory then it acts exactly like the copy command.
.PP
So
.IP
.nf
\f[C]
rclone\ copyto\ src\ dst
\f[]
.fi
.PP
where src and dst are rclone paths, either remote:path or /path/to/local
or C:.
.PP
This will:
.IP
.nf
\f[C]
if\ src\ is\ file
\ \ \ \ copy\ it\ to\ dst,\ overwriting\ an\ existing\ file\ if\ it\ exists
if\ src\ is\ directory
\ \ \ \ copy\ it\ to\ dst,\ overwriting\ existing\ files\ if\ they\ exist
\ \ \ \ see\ copy\ command\ for\ full\ details
\f[]
.fi
.PP
This doesn\[aq]t transfer unchanged files, testing by size and
modification time or MD5SUM.
It doesn\[aq]t delete files from the destination.
2018-11-24 13:44:25 +00:00
.PP
\f[B]Note\f[]: Use the \f[C]\-P\f[]/\f[C]\-\-progress\f[] flag to view
real\-time transfer statistics
2017-01-02 15:30:34 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ copyto\ source:path\ dest:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ copyto
2017-01-02 15:30:34 +00:00
\f[]
.fi
2018-09-01 11:58:00 +00:00
.SS rclone copyurl
.PP
Copy url content to dest.
.SS Synopsis
.PP
Download urls content and copy it to destination without saving it in
tmp storage.
.IP
.nf
\f[C]
rclone\ copyurl\ https://example.com\ dest:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ copyurl
\f[]
.fi
2017-03-18 11:16:43 +00:00
.SS rclone cryptcheck
.PP
2017-07-22 17:16:46 +00:00
Cryptcheck checks the integrity of a crypted remote.
2017-03-18 11:16:43 +00:00
.SS Synopsis
.PP
rclone cryptcheck checks a remote against a crypted remote.
This is the equivalent of running rclone check, but able to check the
checksums of the crypted remote.
.PP
For it to work the underlying remote of the cryptedremote must support
some kind of checksum.
.PP
It works by reading the nonce from each file on the cryptedremote: and
using that to encrypt each file on the remote:.
It then checks the checksum of the underlying file on the cryptedremote:
against the checksum of the file it has just encrypted.
.PP
Use it like this
.IP
.nf
\f[C]
rclone\ cryptcheck\ /path/to/files\ encryptedremote:path
\f[]
.fi
.PP
You can use it like this also, but that will involve downloading all the
files in remote:path.
.IP
.nf
\f[C]
rclone\ cryptcheck\ remote:path\ encryptedremote:path
\f[]
.fi
.PP
After it has run it will log the status of the encryptedremote:.
2018-06-16 17:21:09 +00:00
.PP
If you supply the \-\-one\-way flag, it will only check that files in
source match the files in destination, not the other way around.
Meaning extra files in destination that are not in the source will not
trigger an error.
2017-03-18 11:16:43 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ cryptcheck\ remote:path\ cryptedremote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
2018-06-16 17:21:09 +00:00
\ \ \-h,\ \-\-help\ \ \ \ \ \ help\ for\ cryptcheck
\ \ \ \ \ \ \-\-one\-way\ \ \ Check\ one\ way\ only,\ source\ files\ must\ exist\ on\ destination
2017-09-30 13:19:47 +00:00
\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
2018-03-19 10:06:13 +00:00
If you supply the \-\-reverse flag, it will return encrypted file names.
.PP
2017-09-30 13:19:47 +00:00
use it like this
.IP
.nf
\f[C]
rclone\ cryptdecode\ encryptedremote:\ encryptedfilename1\ encryptedfilename2
2018-03-19 10:06:13 +00:00
rclone\ cryptdecode\ \-\-reverse\ encryptedremote:\ filename1\ filename2
2017-09-30 13:19:47 +00:00
\f[]
.fi
.IP
.nf
\f[C]
rclone\ cryptdecode\ encryptedremote:\ encryptedfilename\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
2018-03-19 10:06:13 +00:00
\ \ \-h,\ \-\-help\ \ \ \ \ \ help\ for\ cryptdecode
\ \ \ \ \ \ \-\-reverse\ \ \ Reverse\ cryptdecode,\ encrypts\ filenames
2017-03-18 11:16:43 +00:00
\f[]
.fi
.SS rclone dbhashsum
.PP
2017-12-23 13:07:45 +00:00
Produces a Dropbox hash file for all the objects in the path.
.SS Synopsis
.PP
Produces a Dropbox hash file for all the objects in the path.
The hashes are calculated according to Dropbox content hash
rules (https://www.dropbox.com/developers/reference/content-hash).
The output is in the same format as md5sum and sha1sum.
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ dbhashsum\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ dbhashsum
\f[]
.fi
2018-06-16 17:21:09 +00:00
.SS rclone deletefile
.PP
2018-09-01 11:58:00 +00:00
Remove a single file from remote.
2018-06-16 17:21:09 +00:00
.SS Synopsis
.PP
2018-09-01 11:58:00 +00:00
Remove a single file from remote.
2018-06-16 17:21:09 +00:00
Unlike \f[C]delete\f[] it cannot be used to remove a directory and it
doesn\[aq]t obey include/exclude filters \- if the specified file
exists, it will always be removed.
.IP
.nf
\f[C]
rclone\ deletefile\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ deletefile
\f[]
.fi
.SS rclone genautocomplete
.PP
2017-09-30 13:19:47 +00:00
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
Generates a bash shell autocompletion script for rclone.
.PP
This writes to /etc/bash_completion.d/rclone by default so will probably
need to be run with sudo or as root, eg
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
sudo\ rclone\ genautocomplete\ bash
\f[]
.fi
.PP
Logout and login again to use the autocompletion scripts, or source them
directly
.IP
.nf
\f[C]
\&.\ /etc/bash_completion
\f[]
.fi
.PP
If you supply a command line argument the script will be written there.
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ genautocomplete\ bash\ [output_file]\ [flags]
\f[]
.fi
2017-09-30 13:19:47 +00:00
.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
.PP
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.
.IP
.nf
\f[C]
rclone\ gendocs\ output_directory\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ gendocs
\f[]
.fi
2018-04-28 10:46:27 +00:00
.SS rclone hashsum
.PP
Produces an hashsum file for all the objects in the path.
.SS Synopsis
.PP
Produces a hash file for all the objects in the path using the hash
named.
The output is in the same format as the standard md5sum/sha1sum tool.
.PP
Run without a hash to see the list of supported hashes, eg
.IP
.nf
\f[C]
$\ rclone\ hashsum
Supported\ hashes\ are:
\ \ *\ MD5
\ \ *\ SHA\-1
\ \ *\ DropboxHash
\ \ *\ QuickXorHash
\f[]
.fi
.PP
Then
.IP
.nf
\f[C]
$\ rclone\ hashsum\ MD5\ remote:path
\f[]
.fi
.IP
.nf
\f[C]
rclone\ hashsum\ <hash>\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ hashsum
\f[]
.fi
.SS rclone link
.PP
Generate public link to file/folder.
.SS Synopsis
.PP
rclone link will create or retrieve a public link to the given file or
folder.
.IP
.nf
\f[C]
rclone\ link\ remote:path/to/file
rclone\ link\ remote:path/to/folder/
\f[]
.fi
.PP
If successful, the last line of the output will contain the link.
Exact capabilities depend on the remote, but the link will always be
created with the least constraints \[en] e.g.
no expiry, no password protection, accessible without account.
.IP
.nf
\f[C]
rclone\ link\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ link
\f[]
.fi
2016-11-06 10:17:52 +00:00
.SS rclone listremotes
.PP
List all the remotes in the config file.
.SS Synopsis
.PP
rclone listremotes lists all the available remotes from the config file.
.PP
When uses with the \-l flag it lists the types too.
.IP
.nf
\f[C]
rclone\ listremotes\ [flags]
2016-11-06 10:17:52 +00:00
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
\ \ \-h,\ \-\-help\ \ \ help\ for\ listremotes
2019-02-09 10:42:57 +00:00
\ \ \ \ \ \ \-\-long\ \ \ Show\ the\ type\ as\ well\ as\ names.
2016-11-06 10:17:52 +00:00
\f[]
.fi
2018-03-19 10:06:13 +00:00
.SS rclone lsf
.PP
List directories and objects in remote:path formatted for parsing
.SS Synopsis
.PP
List the contents of the source path (directories and objects) to
standard output in a form which is easy to parse by scripts.
By default this will just be the names of the objects and directories,
one per line.
The directories will have a / suffix.
.PP
2018-04-28 10:46:27 +00:00
Eg
.IP
.nf
\f[C]
$\ rclone\ lsf\ swift:bucket
bevajer5jef
canole
diwogej7
ferejej3gux/
fubuwic
\f[]
.fi
.PP
2018-03-19 10:06:13 +00:00
Use the \-\-format option to control what gets listed.
By default this is just the path, but you can use these parameters to
control the output:
.IP
.nf
\f[C]
p\ \-\ path
s\ \-\ size
t\ \-\ modification\ time
h\ \-\ hash
2018-06-16 17:21:09 +00:00
i\ \-\ ID\ of\ object\ if\ known
m\ \-\ MimeType\ of\ object\ if\ known
2018-03-19 10:06:13 +00:00
\f[]
.fi
.PP
So if you wanted the path, size and modification time, you would use
\-\-format "pst", or maybe \-\-format "tsp" to put the path last.
.PP
2018-04-28 10:46:27 +00:00
Eg
.IP
.nf
\f[C]
$\ rclone\ lsf\ \ \-\-format\ "tsp"\ swift:bucket
2016\-06\-25\ 18:55:41;60295;bevajer5jef
2016\-06\-25\ 18:55:43;90613;canole
2016\-06\-25\ 18:55:43;94467;diwogej7
2018\-04\-26\ 08:50:45;0;ferejej3gux/
2016\-06\-25\ 18:55:40;37600;fubuwic
\f[]
.fi
.PP
2018-03-19 10:06:13 +00:00
If you specify "h" in the format you will get the MD5 hash by default,
use the "\-\-hash" flag to change which hash you want.
Note that this can be returned as an empty string if it isn\[aq]t
available on the object (and for directories), "ERROR" if there was an
error reading it from the object and "UNSUPPORTED" if that object does
not support that hash type.
.PP
For example to emulate the md5sum command you can use
.IP
.nf
\f[C]
rclone\ lsf\ \-R\ \-\-hash\ MD5\ \-\-format\ hp\ \-\-separator\ "\ \ "\ \-\-files\-only\ .
\f[]
.fi
.PP
2018-04-28 10:46:27 +00:00
Eg
.IP
.nf
\f[C]
$\ rclone\ lsf\ \-R\ \-\-hash\ MD5\ \-\-format\ hp\ \-\-separator\ "\ \ "\ \-\-files\-only\ swift:bucket\
7908e352297f0f530b84a756f188baa3\ \ bevajer5jef
cd65ac234e6fea5925974a51cdd865cc\ \ canole
03b5341b4f234b9d984d03ad076bae91\ \ diwogej7
8fd37c3810dd660778137ac3a66cc06d\ \ fubuwic
99713e14a4c4ff553acaf1930fad985b\ \ gixacuh7ku
\f[]
.fi
.PP
2018-03-19 10:06:13 +00:00
(Though "rclone md5sum ." is an easier way of typing this.)
.PP
By default the separator is ";" this can be changed with the
\-\-separator flag.
Note that separators aren\[aq]t escaped in the path so putting it last
is a good strategy.
.PP
2018-04-28 10:46:27 +00:00
Eg
.IP
.nf
\f[C]
$\ rclone\ lsf\ \ \-\-separator\ ","\ \-\-format\ "tshp"\ swift:bucket
2016\-06\-25\ 18:55:41,60295,7908e352297f0f530b84a756f188baa3,bevajer5jef
2016\-06\-25\ 18:55:43,90613,cd65ac234e6fea5925974a51cdd865cc,canole
2016\-06\-25\ 18:55:43,94467,03b5341b4f234b9d984d03ad076bae91,diwogej7
2018\-04\-26\ 08:52:53,0,,ferejej3gux/
2016\-06\-25\ 18:55:40,37600,8fd37c3810dd660778137ac3a66cc06d,fubuwic
\f[]
.fi
.PP
2018-06-16 17:21:09 +00:00
You can output in CSV standard format.
This will escape things in " if they contain ,
.PP
Eg
.IP
.nf
\f[C]
$\ rclone\ lsf\ \-\-csv\ \-\-files\-only\ \-\-format\ ps\ remote:path
test.log,22355
test.sh,449
"this\ file\ contains\ a\ comma,\ in\ the\ file\ name.txt",6
\f[]
.fi
.PP
Note that the \-\-absolute parameter is useful for making lists of files
to pass to an rclone copy with the \-\-files\-from flag.
.PP
For example to find all the files modified within one day and copy those
only (without traversing the whole directory structure):
.IP
.nf
\f[C]
rclone\ lsf\ \-\-absolute\ \-\-files\-only\ \-\-max\-age\ 1d\ /path/to/local\ >\ new_files
rclone\ copy\ \-\-files\-from\ new_files\ /path/to/local\ remote:path
\f[]
.fi
.PP
2018-03-19 10:06:13 +00:00
Any of the filtering options can be applied to this commmand.
.PP
There are several related list commands
.IP \[bu] 2
\f[C]ls\f[] to list size and path of objects only
.IP \[bu] 2
\f[C]lsl\f[] to list modification time, size and path of objects only
.IP \[bu] 2
\f[C]lsd\f[] to list directories only
.IP \[bu] 2
\f[C]lsf\f[] to list objects and directories in easy to parse format
.IP \[bu] 2
\f[C]lsjson\f[] to list objects and directories in JSON format
.PP
\f[C]ls\f[],\f[C]lsl\f[],\f[C]lsd\f[] are designed to be human readable.
\f[C]lsf\f[] is designed to be human and machine readable.
\f[C]lsjson\f[] is designed to be machine readable.
.PP
2018-04-28 10:46:27 +00:00
Note that \f[C]ls\f[] and \f[C]lsl\f[] recurse by default \- use
"\-\-max\-depth 1" to stop the recursion.
2018-03-19 10:06:13 +00:00
.PP
2018-04-28 10:46:27 +00:00
The other list commands \f[C]lsd\f[],\f[C]lsf\f[],\f[C]lsjson\f[] do not
recurse by default \- use "\-R" to make them recurse.
.PP
Listing a non existent directory will produce an error except for
remotes which can\[aq]t have empty directories (eg s3, swift, gcs, etc
\- the bucket based remotes).
2018-03-19 10:06:13 +00:00
.IP
.nf
\f[C]
rclone\ lsf\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
2018-06-16 17:21:09 +00:00
\ \ \ \ \ \ \-\-absolute\ \ \ \ \ \ \ \ \ \ \ Put\ a\ leading\ /\ in\ front\ of\ path\ names.
\ \ \ \ \ \ \-\-csv\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Output\ in\ CSV\ format.
2018-03-19 10:06:13 +00:00
\ \ \-d,\ \-\-dir\-slash\ \ \ \ \ \ \ \ \ \ Append\ a\ slash\ to\ directory\ names.\ (default\ true)
\ \ \ \ \ \ \-\-dirs\-only\ \ \ \ \ \ \ \ \ \ Only\ list\ directories.
\ \ \ \ \ \ \-\-files\-only\ \ \ \ \ \ \ \ \ Only\ list\ files.
\ \ \-F,\ \-\-format\ string\ \ \ \ \ \ Output\ format\ \-\ see\ \ help\ for\ details\ (default\ "p")
\ \ \ \ \ \ \-\-hash\ h\ \ \ \ \ \ \ \ \ \ \ \ \ Use\ this\ hash\ when\ h\ is\ used\ in\ the\ format\ MD5|SHA\-1|DropboxHash\ (default\ "MD5")
\ \ \-h,\ \-\-help\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ help\ for\ lsf
\ \ \-R,\ \-\-recursive\ \ \ \ \ \ \ \ \ \ Recurse\ into\ the\ listing.
\ \ \-s,\ \-\-separator\ string\ \ \ Separator\ for\ the\ items\ in\ the\ format.\ (default\ ";")
\f[]
.fi
.SS rclone lsjson
2016-08-24 21:58:24 +00:00
.PP
List directories and objects in the path in JSON format.
2016-08-24 21:58:24 +00:00
.SS Synopsis
.PP
List directories and objects in the path in JSON format.
2016-08-24 21:58:24 +00:00
.PP
The output is an array of Items, where each Item looks like this
2016-08-24 21:58:24 +00:00
.PP
{ "Hashes" : { "SHA\-1" : "f572d396fae9206628714fb2ce00f72e94f2258f",
"MD5" : "b1946ac92492d2347c6235b4d2611184", "DropboxHash" :
"ecb65bb98f9d905b70458986c39fcbad7715e5f2fcc3b1f07767d7c83e2438cc" },
2018-09-01 11:58:00 +00:00
"ID": "y2djkhiujf83u33", "OrigID": "UYOJVTUW00Q1RzTDA", "IsDir" : false,
"MimeType" : "application/octet\-stream", "ModTime" :
2018-06-16 17:21:09 +00:00
"2017\-05\-31T16:15:57.034468261+01:00", "Name" : "file.txt",
"Encrypted" : "v0qpsdq8anpci8n929v3uu9338", "Path" :
"full/path/goes/here/file.txt", "Size" : 6 }
2016-08-24 21:58:24 +00:00
.PP
2018-03-19 10:06:13 +00:00
If \-\-hash is not specified the Hashes property won\[aq]t be emitted.
.PP
If \-\-no\-modtime is specified then ModTime will be blank.
.PP
2018-03-19 10:06:13 +00:00
If \-\-encrypted is not specified the Encrypted won\[aq]t be emitted.
.PP
The Path field will only show folders below the remote path being
listed.
If "remote:path" contains the file "subfolder/file.txt", the Path for
"file.txt" will be "subfolder/file.txt", not
"remote:path/subfolder/file.txt".
When used without \-\-recursive the Path will always be the same as
Name.
.PP
2019-02-09 10:42:57 +00:00
The time is in RFC3339 format with up to nanosecond precision.
The number of decimal digits in the seconds will depend on the precision
that the remote can hold the times, so if times are accurate to the
nearest millisecond (eg Google Drive) then 3 digits will always be shown
("2017\-05\-31T16:15:57.034+01:00") whereas if the times are accurate to
the nearest second (Dropbox, Box, WebDav etc) no digits will be shown
("2017\-05\-31T16:15:57+01:00").
.PP
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.
2018-03-19 10:06:13 +00:00
.PP
Any of the filtering options can be applied to this commmand.
.PP
There are several related list commands
.IP \[bu] 2
\f[C]ls\f[] to list size and path of objects only
.IP \[bu] 2
\f[C]lsl\f[] to list modification time, size and path of objects only
.IP \[bu] 2
\f[C]lsd\f[] to list directories only
.IP \[bu] 2
\f[C]lsf\f[] to list objects and directories in easy to parse format
.IP \[bu] 2
\f[C]lsjson\f[] to list objects and directories in JSON format
.PP
\f[C]ls\f[],\f[C]lsl\f[],\f[C]lsd\f[] are designed to be human readable.
\f[C]lsf\f[] is designed to be human and machine readable.
\f[C]lsjson\f[] is designed to be machine readable.
.PP
2018-04-28 10:46:27 +00:00
Note that \f[C]ls\f[] and \f[C]lsl\f[] recurse by default \- use
"\-\-max\-depth 1" to stop the recursion.
.PP
The other list commands \f[C]lsd\f[],\f[C]lsf\f[],\f[C]lsjson\f[] do not
recurse by default \- use "\-R" to make them recurse.
2018-03-19 10:06:13 +00:00
.PP
2018-04-28 10:46:27 +00:00
Listing a non existent directory will produce an error except for
remotes which can\[aq]t have empty directories (eg s3, swift, gcs, etc
\- the bucket based remotes).
2016-08-24 21:58:24 +00:00
.IP
.nf
\f[C]
rclone\ lsjson\ remote:path\ [flags]
2016-08-24 21:58:24 +00:00
\f[]
.fi
.SS Options
2016-08-24 21:58:24 +00:00
.IP
.nf
\f[C]
2018-03-19 10:06:13 +00:00
\ \ \-M,\ \-\-encrypted\ \ \ \ Show\ the\ encrypted\ names.
\ \ \ \ \ \ \-\-hash\ \ \ \ \ \ \ \ \ Include\ hashes\ in\ the\ output\ (may\ take\ longer).
2017-09-30 13:19:47 +00:00
\ \ \-h,\ \-\-help\ \ \ \ \ \ \ \ \ help\ for\ lsjson
\ \ \ \ \ \ \-\-no\-modtime\ \ \ Don\[aq]t\ read\ the\ modification\ time\ (can\ speed\ things\ up).
2018-09-01 11:58:00 +00:00
\ \ \ \ \ \ \-\-original\ \ \ \ \ Show\ the\ ID\ of\ the\ underlying\ Object.
\ \ \-R,\ \-\-recursive\ \ \ \ Recurse\ into\ the\ listing.
2016-08-24 21:58:24 +00:00
\f[]
.fi
.SS rclone mount
2016-08-24 21:58:24 +00:00
.PP
2018-10-15 10:03:08 +00:00
Mount the remote as file system on a mountpoint.
.SS Synopsis
.PP
2017-07-22 17:16:46 +00:00
rclone mount allows Linux, FreeBSD, macOS and Windows to mount any of
Rclone\[aq]s cloud storage systems as a file system with FUSE.
.PP
First set up your remote using \f[C]rclone\ config\f[].
Check it works with \f[C]rclone\ ls\f[] etc.
.PP
Start the mount like this
2017-03-18 11:16:43 +00:00
.IP
.nf
\f[C]
rclone\ mount\ remote:path/to/files\ /path/to/local/mount
2017-03-18 11:16:43 +00:00
\f[]
.fi
.PP
2017-07-22 17:16:46 +00:00
Or on Windows like this where X: is an unused drive letter
.IP
.nf
\f[C]
rclone\ mount\ remote:path/to/files\ X:
\f[]
.fi
.PP
When the program ends, either via Ctrl+C or receiving a SIGINT or
SIGTERM signal, the mount is automatically stopped.
.PP
The umount operation can fail, for example when the mountpoint is busy.
When that happens, it is the user\[aq]s responsibility to stop the mount
manually with
2016-08-24 21:58:24 +00:00
.IP
.nf
\f[C]
#\ Linux
fusermount\ \-u\ /path/to/local/mount
#\ OS\ X
2017-03-18 11:16:43 +00:00
umount\ /path/to/local/mount
2016-08-24 21:58:24 +00:00
\f[]
.fi
2017-09-30 13:19:47 +00:00
.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))
2018-03-19 10:06:13 +00:00
which creates drives accessible for everyone on the system or
alternatively using the nssm service manager (https://nssm.cc/usage).
2016-08-24 21:58:24 +00:00
.SS Limitations
.PP
2018-03-19 10:06:13 +00:00
Without the use of "\-\-vfs\-cache\-mode" this can only write files
sequentially, it can only seek when reading.
2017-03-18 11:16:43 +00:00
This means that many applications won\[aq]t work with their files on an
2018-03-19 10:06:13 +00:00
rclone mount without "\-\-vfs\-cache\-mode writes" or
"\-\-vfs\-cache\-mode full".
See the File Caching (#file-caching) section for more info.
2016-08-24 21:58:24 +00:00
.PP
2017-03-18 11:16:43 +00:00
The bucket based remotes (eg Swift, S3, Google Compute Storage, B2,
Hubic) won\[aq]t work from the root \- you will need to specify a
bucket, or a path within the bucket.
2016-08-24 21:58:24 +00:00
So \f[C]swift:\f[] won\[aq]t work whereas \f[C]swift:bucket\f[] will as
will \f[C]swift:bucket/path\f[].
2017-03-18 11:16:43 +00:00
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.
2016-08-24 21:58:24 +00:00
.PP
2017-07-22 17:16:46 +00:00
Only supported on Linux, FreeBSD, OS X and Windows at the moment.
2016-08-24 21:58:24 +00:00
.SS rclone mount vs rclone sync/copy
.PP
File systems expect things to be 100% reliable, whereas cloud storage
systems are a long way from 100% reliable.
The rclone sync/copy commands cope with this with lots of retries.
However rclone mount can\[aq]t use retries in the same way without
making local copies of the uploads.
2018-10-15 10:03:08 +00:00
Look at the file caching (#file-caching) for solutions to make mount
2018-11-24 13:44:25 +00:00
more reliable.
2018-03-19 10:06:13 +00:00
.SS Attribute caching
.PP
You can use the flag \-\-attr\-timeout to set the time the kernel caches
the attributes (size, modification time etc) for directory entries.
.PP
2018-04-28 10:46:27 +00:00
The default is "1s" which caches files just long enough to avoid too
many callbacks to rclone from the kernel.
.PP
In theory 0s should be the correct value for filesystems which can
change outside the control of the kernel.
However this causes quite a few problems such as rclone using too much
memory (https://github.com/ncw/rclone/issues/2157), rclone not serving
files to
samba (https://forum.rclone.org/t/rclone-1-39-vs-1-40-mount-issue/5112)
and excessive time listing
directories (https://github.com/ncw/rclone/issues/2095#issuecomment-371141147).
.PP
The kernel can cache the info about a file for the time given by
"\-\-attr\-timeout".
You may see corruption if the remote file changes length during this
window.
It will show up as either a truncated file or a file with garbage on the
end.
With "\-\-attr\-timeout 1s" this is very unlikely but not impossible.
The higher you set "\-\-attr\-timeout" the more likely it is.
The default setting of "1s" is the lowest setting which mitigates the
problems above.
.PP
If you set it higher (\[aq]10s\[aq] or \[aq]1m\[aq] say) then the kernel
2018-03-19 10:06:13 +00:00
will call back to rclone less often making it more efficient, however
2018-04-28 10:46:27 +00:00
there is more chance of the corruption issue above.
.PP
If files don\[aq]t change on the remote outside of the control of rclone
then there is no chance of corruption.
2018-03-19 10:06:13 +00:00
.PP
This is the same as setting the attr_timeout option in mount.fuse.
2017-03-18 11:16:43 +00:00
.SS Filters
.PP
Note that all the rclone filters can be used to select a subset of the
files to be visible in the mount.
2017-12-23 13:07:45 +00:00
.SS systemd
.PP
When running rclone mount as a systemd service, it is possible to use
Type=notify.
In this case the service will enter the started state after the
mountpoint has been successfully set up.
Units having the rclone mount service specified as a requirement will
see all files and folders immediately in this mode.
2018-06-16 17:21:09 +00:00
.SS chunked reading
.PP
\-\-vfs\-read\-chunk\-size will enable reading the source objects in
parts.
This can reduce the used download quota for some remotes by requesting
only chunks from the remote that are actually read at the cost of an
increased number of requests.
.PP
When \-\-vfs\-read\-chunk\-size\-limit is also specified and greater
than \-\-vfs\-read\-chunk\-size, the chunk size for each open file will
get doubled for each chunk read, until the specified value is reached.
A value of \-1 will disable the limit and the chunk size will grow
indefinitely.
.PP
With \-\-vfs\-read\-chunk\-size 100M and
\-\-vfs\-read\-chunk\-size\-limit 0 the following parts will be
downloaded: 0\-100M, 100M\-200M, 200M\-300M, 300M\-400M and so on.
When \-\-vfs\-read\-chunk\-size\-limit 500M is specified, the result
would be 0\-100M, 100M\-300M, 300M\-700M, 700M\-1200M, 1200M\-1700M and
so on.
.PP
Chunked reading will only work with \-\-vfs\-cache\-mode < full, as the
file will always be copied to the vfs cache before opening with
\-\-vfs\-cache\-mode full.
.SS Directory Cache
.PP
Using the \f[C]\-\-dir\-cache\-time\f[] 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.
.PP
Alternatively, you can send a \f[C]SIGHUP\f[] 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:
.IP
.nf
\f[C]
kill\ \-SIGHUP\ $(pidof\ rclone)
\f[]
.fi
2018-03-19 10:06:13 +00:00
.PP
If you configure rclone with a remote control (/rc) then you can use
rclone rc to flush the whole directory cache:
.IP
.nf
\f[C]
rclone\ rc\ vfs/forget
\f[]
.fi
.PP
Or individual files or directories:
.IP
.nf
\f[C]
rclone\ rc\ vfs/forget\ file=path/to/file\ dir=path/to/dir
\f[]
.fi
2018-09-01 11:58:00 +00:00
.SS File Buffering
.PP
The \f[C]\-\-buffer\-size\f[] flag determines the amount of memory, that
will be used to buffer data in advance.
.PP
Each open file descriptor will try to keep the specified amount of data
in memory at all times.
The buffered data is bound to one file descriptor and won\[aq]t be
shared between multiple open file descriptors of the same file.
.PP
This flag is a upper limit for the used memory per file descriptor.
The buffer will only use memory for data that is downloaded but not not
yet read.
If the buffer is empty, only a small amount of memory will be used.
The maximum memory used by rclone for buffering can be up to
\f[C]\-\-buffer\-size\ *\ open\ files\f[].
2017-12-23 13:07:45 +00:00
.SS File Caching
.PP
These flags control the VFS file caching options.
2018-03-19 10:06:13 +00:00
The VFS layer is used by rclone mount to make a cloud storage system
work more like a normal file system.
2017-12-23 13:07:45 +00:00
.PP
You\[aq]ll need to enable VFS caching if you want, for example, to read
and write simultaneously to a file.
See below for more details.
.PP
Note that the VFS cache works in addition to the cache backend and you
may find that you need one or the other or both.
.IP
.nf
\f[C]
2018-03-19 10:06:13 +00:00
\-\-cache\-dir\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Directory\ rclone\ will\ use\ for\ caching.
2017-12-23 13:07:45 +00:00
\-\-vfs\-cache\-max\-age\ duration\ \ \ \ \ \ \ \ \ Max\ age\ of\ objects\ in\ the\ cache.\ (default\ 1h0m0s)
\-\-vfs\-cache\-mode\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ Cache\ mode\ off|minimal|writes|full\ (default\ "off")
\-\-vfs\-cache\-poll\-interval\ duration\ \ \ Interval\ to\ poll\ the\ cache\ for\ stale\ objects.\ (default\ 1m0s)
2019-02-09 10:42:57 +00:00
\-\-vfs\-cache\-max\-size\ int\ \ \ \ \ \ \ \ \ \ \ \ \ Max\ total\ size\ of\ objects\ in\ the\ cache.\ (default\ off)
2017-12-23 13:07:45 +00:00
\f[]
.fi
.PP
If run with \f[C]\-vv\f[] rclone will print the location of the file
cache.
The files are stored in the user cache file area which is OS dependent
but can be controlled with \f[C]\-\-cache\-dir\f[] or setting the
appropriate environment variable.
.PP
The cache has 4 different modes selected by
\f[C]\-\-vfs\-cache\-mode\f[].
The higher the cache mode the more compatible rclone becomes at the cost
of using disk space.
.PP
Note that files are written back to the remote only when they are closed
so if rclone is quit or dies with open files then these won\[aq]t get
written back to the remote.
However they will still be in the on disk cache.
2019-02-09 10:42:57 +00:00
.PP
If using \-\-vfs\-cache\-max\-size note that the cache may exceed this
size for two reasons.
Firstly because it is only checked every \-\-vfs\-cache\-poll\-interval.
Secondly because open files cannot be evicted from the cache.
2017-12-23 13:07:45 +00:00
.SS \-\-vfs\-cache\-mode off
.PP
In this mode the cache will read directly from the remote and write
directly to the remote without caching anything on disk.
.PP
This will mean some operations are not possible
.IP \[bu] 2
Files can\[aq]t be opened for both read AND write
.IP \[bu] 2
Files opened for write can\[aq]t be seeked
.IP \[bu] 2
Existing files opened for write must have O_TRUNC set
.IP \[bu] 2
Files open for read with O_TRUNC will be opened write only
.IP \[bu] 2
Files open for write only will behave as if O_TRUNC was supplied
.IP \[bu] 2
Open modes O_APPEND, O_TRUNC are ignored
.IP \[bu] 2
If an upload fails it can\[aq]t be retried
.SS \-\-vfs\-cache\-mode minimal
.PP
This is very similar to "off" except that files opened for read AND
write will be buffered to disks.
This means that files opened for write will be a lot more compatible,
but uses the minimal disk space.
.PP
These operations are not possible
.IP \[bu] 2
Files opened for write only can\[aq]t be seeked
.IP \[bu] 2
Existing files opened for write must have O_TRUNC set
.IP \[bu] 2
Files opened for write only will ignore O_APPEND, O_TRUNC
.IP \[bu] 2
If an upload fails it can\[aq]t be retried
.SS \-\-vfs\-cache\-mode writes
.PP
In this mode files opened for read only are still read directly from the
remote, write only and read/write files are buffered to disk first.
.PP
This mode should support all normal file system operations.
.PP
If an upload fails it will be retried up to \-\-low\-level\-retries
times.
.SS \-\-vfs\-cache\-mode full
.PP
In this mode all reads and writes are buffered to and from disk.
When a file is opened for read it will be downloaded in its entirety
first.
.PP
This may be appropriate for your needs, or you may prefer to look at the
cache backend which does a much more sophisticated job of caching,
2018-03-19 10:06:13 +00:00
including caching directory hierarchies and chunks of files.
2017-12-23 13:07:45 +00:00
.PP
In this mode, unlike the others, when a file is written to the disk, it
will be kept on the disk after it is written to the remote.
It will be purged on a schedule according to
\f[C]\-\-vfs\-cache\-max\-age\f[].
.PP
This mode should support all normal file system operations.
.PP
If an upload or download fails it will be retried up to
\-\-low\-level\-retries times.
2016-08-24 21:58:24 +00:00
.IP
.nf
\f[C]
rclone\ mount\ remote:path\ /path/to/mountpoint\ [flags]
2016-08-24 21:58:24 +00:00
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
2019-02-09 10:42:57 +00:00
\ \ \ \ \ \ \-\-allow\-non\-empty\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Allow\ mounting\ over\ a\ non\-empty\ directory.
\ \ \ \ \ \ \-\-allow\-other\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Allow\ access\ to\ other\ users.
\ \ \ \ \ \ \-\-allow\-root\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Allow\ access\ to\ root\ user.
\ \ \ \ \ \ \-\-attr\-timeout\ duration\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Time\ for\ which\ file/directory\ attributes\ are\ cached.\ (default\ 1s)
\ \ \ \ \ \ \-\-daemon\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Run\ mount\ as\ a\ daemon\ (background\ mode).
\ \ \ \ \ \ \-\-daemon\-timeout\ duration\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Time\ limit\ for\ rclone\ to\ respond\ to\ kernel\ (not\ supported\ by\ all\ OSes).
\ \ \ \ \ \ \-\-debug\-fuse\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Debug\ the\ FUSE\ internals\ \-\ needs\ \-v.
\ \ \ \ \ \ \-\-default\-permissions\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Makes\ kernel\ enforce\ access\ control\ based\ on\ the\ file\ mode.
\ \ \ \ \ \ \-\-dir\-cache\-time\ duration\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Time\ to\ cache\ directory\ entries\ for.\ (default\ 5m0s)
\ \ \ \ \ \ \-\-dir\-perms\ FileMode\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Directory\ permissions\ (default\ 0777)
\ \ \ \ \ \ \-\-file\-perms\ FileMode\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ File\ permissions\ (default\ 0666)
\ \ \ \ \ \ \-\-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\ SizeSuffix\ \ \ \ \ \ \ \ \ \ \ \ \ \ 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).
\ \ \ \ \ \ \-\-no\-seek\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Don\[aq]t\ allow\ seeking\ in\ files.
\ \ \-o,\ \-\-option\ stringArray\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Option\ for\ libfuse/WinFsp.\ Repeat\ if\ required.
\ \ \ \ \ \ \-\-poll\-interval\ duration\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Time\ to\ wait\ between\ polling\ for\ changes.\ Must\ be\ smaller\ than\ dir\-cache\-time.\ Only\ on\ supported\ remotes.\ Set\ to\ 0\ to\ disable.\ (default\ 1m0s)
\ \ \ \ \ \ \-\-read\-only\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Mount\ read\-only.
\ \ \ \ \ \ \-\-uid\ uint32\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Override\ the\ uid\ field\ set\ by\ the\ filesystem.\ (default\ 502)
\ \ \ \ \ \ \-\-umask\ int\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Override\ the\ permission\ bits\ set\ by\ the\ filesystem.
\ \ \ \ \ \ \-\-vfs\-cache\-max\-age\ duration\ \ \ \ \ \ \ \ \ \ \ \ \ Max\ age\ of\ objects\ in\ the\ cache.\ (default\ 1h0m0s)
\ \ \ \ \ \ \-\-vfs\-cache\-max\-size\ SizeSuffix\ \ \ \ \ \ \ \ \ \ Max\ total\ size\ of\ objects\ in\ the\ cache.\ (default\ off)
\ \ \ \ \ \ \-\-vfs\-cache\-mode\ CacheMode\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Cache\ mode\ off|minimal|writes|full\ (default\ off)
\ \ \ \ \ \ \-\-vfs\-cache\-poll\-interval\ duration\ \ \ \ \ \ \ Interval\ to\ poll\ the\ cache\ for\ stale\ objects.\ (default\ 1m0s)
\ \ \ \ \ \ \-\-vfs\-read\-chunk\-size\ SizeSuffix\ \ \ \ \ \ \ \ \ Read\ the\ source\ objects\ in\ chunks.\ (default\ 128M)
\ \ \ \ \ \ \-\-vfs\-read\-chunk\-size\-limit\ SizeSuffix\ \ \ If\ greater\ than\ \-\-vfs\-read\-chunk\-size,\ double\ the\ chunk\ size\ after\ each\ chunk\ read,\ until\ the\ limit\ is\ reached.\ \[aq]off\[aq]\ is\ unlimited.\ (default\ off)
\ \ \ \ \ \ \-\-volname\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Set\ the\ volume\ name\ (not\ supported\ by\ all\ OSes).
\ \ \ \ \ \ \-\-write\-back\-cache\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Makes\ kernel\ buffer\ writes\ before\ sending\ them\ to\ rclone.\ Without\ this,\ writethrough\ caching\ is\ used.
2016-08-24 21:58:24 +00:00
\f[]
.fi
2017-01-02 15:30:34 +00:00
.SS rclone moveto
.PP
Move file or directory from source to dest.
.SS Synopsis
.PP
If source:path is a file or directory then it moves it to a file or
directory named dest:path.
.PP
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.
.PP
So
.IP
.nf
\f[C]
rclone\ moveto\ src\ dst
\f[]
.fi
.PP
where src and dst are rclone paths, either remote:path or /path/to/local
or C:.
.PP
This will:
.IP
.nf
\f[C]
if\ src\ is\ file
\ \ \ \ move\ it\ to\ dst,\ overwriting\ an\ existing\ file\ if\ it\ exists
if\ src\ is\ directory
\ \ \ \ move\ it\ to\ dst,\ overwriting\ existing\ files\ if\ they\ exist
\ \ \ \ see\ move\ command\ for\ full\ details
\f[]
.fi
.PP
This doesn\[aq]t transfer unchanged files, testing by size and
modification time or MD5SUM.
src will be deleted on successful transfer.
.PP
\f[B]Important\f[]: Since this can cause data loss, test first with the
\-\-dry\-run flag.
2018-11-24 13:44:25 +00:00
.PP
\f[B]Note\f[]: Use the \f[C]\-P\f[]/\f[C]\-\-progress\f[] flag to view
real\-time transfer statistics.
2017-01-02 15:30:34 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ moveto\ source:path\ dest:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ moveto
2017-01-02 15:30:34 +00:00
\f[]
.fi
.SS rclone ncdu
.PP
Explore a remote with a text based user interface.
.SS Synopsis
.PP
This displays a text based user interface allowing the navigation of a
remote.
It is most useful for answering the question \- "What is using all my
disk space?".
.PP
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.
.PP
Here are the keys \- press \[aq]?\[aq] to toggle the help on and off
.IP
.nf
\f[C]
\ ↑,↓\ or\ k,j\ to\ Move
\ →,l\ to\ enter
\ ←,h\ to\ return
\ c\ toggle\ counts
\ g\ toggle\ graph
\ n,s,C\ sort\ by\ name,size,count
2018-11-24 13:44:25 +00:00
\ d\ delete\ file/directory
2018-04-28 10:46:27 +00:00
\ ^L\ refresh\ screen
\ ?\ to\ toggle\ help\ on\ and\ off
\ q/ESC/c\-C\ to\ quit
\f[]
.fi
.PP
This an homage to the ncdu tool (https://dev.yorhel.nl/ncdu) but for
rclone remotes.
2018-11-24 13:44:25 +00:00
It is missing lots of features at the moment but is useful as it stands.
.PP
Note that it might take some time to delete big files/folders.
The UI won\[aq]t respond in the meantime since the deletion is done
synchronously.
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ ncdu\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ ncdu
\f[]
.fi
2017-03-18 11:16:43 +00:00
.SS rclone obscure
.PP
Obscure password for use in the rclone.conf
.SS Synopsis
.PP
Obscure password for use in the rclone.conf
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ obscure\ password\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ obscure
\f[]
.fi
2018-03-19 10:06:13 +00:00
.SS rclone rc
.PP
Run a command against a running rclone.
.SS Synopsis
.PP
This runs a command against a running rclone.
2018-11-24 13:44:25 +00:00
Use the \-\-url flag to specify an non default URL to connect on.
This can be either a ":port" which is taken to mean
"http://localhost:port" or a "host:port" which is taken to mean
"http://host:port"
.PP
A username and password can be passed in with \-\-user and \-\-pass.
.PP
Note that \-\-rc\-addr, \-\-rc\-user, \-\-rc\-pass will be read also for
\-\-url, \-\-user, \-\-pass.
2018-03-19 10:06:13 +00:00
.PP
Arguments should be passed in as parameter=value.
.PP
The result will be returned as a JSON object by default.
.PP
2018-11-24 13:44:25 +00:00
The \-\-json parameter can be used to pass in a JSON blob as an input
instead of key=value arguments.
This is the only way of passing in more complicated values.
.PP
2018-06-16 17:21:09 +00:00
Use "rclone rc" to see a list of all possible commands.
2018-03-19 10:06:13 +00:00
.IP
.nf
\f[C]
rclone\ rc\ commands\ parameter\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
2018-11-24 13:44:25 +00:00
\ \ \-h,\ \-\-help\ \ \ \ \ \ \ \ \ \ help\ for\ rc
\ \ \ \ \ \ \-\-json\ string\ \ \ Input\ JSON\ \-\ use\ instead\ of\ key=value\ args.
\ \ \ \ \ \ \-\-no\-output\ \ \ \ \ If\ set\ don\[aq]t\ output\ the\ JSON\ result.
\ \ \ \ \ \ \-\-pass\ string\ \ \ Password\ to\ use\ to\ connect\ to\ rclone\ remote\ control.
\ \ \ \ \ \ \-\-url\ string\ \ \ \ URL\ to\ connect\ to\ rclone\ remote\ control.\ (default\ "http://localhost:5572/")
\ \ \ \ \ \ \-\-user\ string\ \ \ Username\ to\ use\ to\ rclone\ remote\ control.
2018-03-19 10:06:13 +00:00
\f[]
.fi
2017-09-30 13:19:47 +00:00
.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
2018-06-16 17:21:09 +00:00
ffmpeg\ \-\ |\ rclone\ rcat\ remote:path/to/file
2017-09-30 13:19:47 +00:00
\f[]
.fi
.PP
2017-12-23 13:07:45 +00:00
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
2018-11-24 13:44:25 +00:00
.SS rclone rcd
.PP
Run rclone listening to remote control commands only.
.SS Synopsis
.PP
2019-02-09 10:42:57 +00:00
This runs rclone so that it only listens to remote control commands.
2018-11-24 13:44:25 +00:00
.PP
This is useful if you are controlling rclone via the rc API.
.PP
If you pass in a path to a directory, rclone will serve that directory
for GET requests on the URL passed in.
It will also open the URL in the browser when rclone is run.
.PP
See the rc documentation (https://rclone.org/rc/) for more info on the
rc flags.
.IP
.nf
\f[C]
rclone\ rcd\ <path\ to\ files\ to\ serve>*\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ rcd
\f[]
.fi
2017-12-23 13:07:45 +00:00
.SS rclone rmdirs
.PP
Remove empty directories under the path.
.SS Synopsis
.PP
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.
.PP
If you supply the \-\-leave\-root flag, it will not remove the root
directory.
.PP
This is useful for tidying up remotes that rclone has left a lot of
empty directories in.
.IP
.nf
\f[C]
rclone\ rmdirs\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ \ \ \ \ \ \ help\ for\ rmdirs
\ \ \ \ \ \ \-\-leave\-root\ \ \ Do\ not\ remove\ root\ directory\ if\ empty
\f[]
.fi
.SS rclone serve
.PP
Serve a remote over a protocol.
.SS Synopsis
.PP
rclone serve is used to serve a remote over a given protocol.
This command requires the use of a subcommand to specify the protocol,
eg
.IP
.nf
\f[C]
rclone\ serve\ http\ remote:
\f[]
.fi
.PP
Each subcommand has its own options which you can see in their help.
.IP
.nf
\f[C]
rclone\ serve\ <protocol>\ [opts]\ <remote>\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ serve
\f[]
.fi
2019-02-09 10:42:57 +00:00
.SS rclone serve dlna
.PP
Serve remote:path over DLNA
.SS Synopsis
.PP
rclone serve dlna is a DLNA media server for media stored in a rclone
remote.
Many devices, such as the Xbox and PlayStation, can automatically
discover this server in the LAN and play audio/video from it.
VLC is also supported.
Service discovery uses UDP multicast packets (SSDP) and will thus only
work on LANs.
.PP
Rclone will list all files present in the remote, without filtering
based on media formats or file extensions.
Additionally, there is no media transcoding support.
This means that some players might show files that they are not able to
play back correctly.
.SS Server options
.PP
Use \-\-addr to specify which IP address and port the server should
listen on, eg \-\-addr 1.2.3.4:8000 or \-\-addr :8080 to listen to all
IPs.
.SS Directory Cache
.PP
Using the \f[C]\-\-dir\-cache\-time\f[] 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.
.PP
Alternatively, you can send a \f[C]SIGHUP\f[] 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:
.IP
.nf
\f[C]
kill\ \-SIGHUP\ $(pidof\ rclone)
\f[]
.fi
.PP
If you configure rclone with a remote control (/rc) then you can use
rclone rc to flush the whole directory cache:
.IP
.nf
\f[C]
rclone\ rc\ vfs/forget
\f[]
.fi
.PP
Or individual files or directories:
.IP
.nf
\f[C]
rclone\ rc\ vfs/forget\ file=path/to/file\ dir=path/to/dir
\f[]
.fi
.SS File Buffering
.PP
The \f[C]\-\-buffer\-size\f[] flag determines the amount of memory, that
will be used to buffer data in advance.
.PP
Each open file descriptor will try to keep the specified amount of data
in memory at all times.
The buffered data is bound to one file descriptor and won\[aq]t be
shared between multiple open file descriptors of the same file.
.PP
This flag is a upper limit for the used memory per file descriptor.
The buffer will only use memory for data that is downloaded but not not
yet read.
If the buffer is empty, only a small amount of memory will be used.
The maximum memory used by rclone for buffering can be up to
\f[C]\-\-buffer\-size\ *\ open\ files\f[].
.SS File Caching
.PP
These flags control the VFS file caching options.
The VFS layer is used by rclone mount to make a cloud storage system
work more like a normal file system.
.PP
You\[aq]ll need to enable VFS caching if you want, for example, to read
and write simultaneously to a file.
See below for more details.
.PP
Note that the VFS cache works in addition to the cache backend and you
may find that you need one or the other or both.
.IP
.nf
\f[C]
\-\-cache\-dir\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Directory\ rclone\ will\ use\ for\ caching.
\-\-vfs\-cache\-max\-age\ duration\ \ \ \ \ \ \ \ \ Max\ age\ of\ objects\ in\ the\ cache.\ (default\ 1h0m0s)
\-\-vfs\-cache\-mode\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ Cache\ mode\ off|minimal|writes|full\ (default\ "off")
\-\-vfs\-cache\-poll\-interval\ duration\ \ \ Interval\ to\ poll\ the\ cache\ for\ stale\ objects.\ (default\ 1m0s)
\-\-vfs\-cache\-max\-size\ int\ \ \ \ \ \ \ \ \ \ \ \ \ Max\ total\ size\ of\ objects\ in\ the\ cache.\ (default\ off)
\f[]
.fi
.PP
If run with \f[C]\-vv\f[] rclone will print the location of the file
cache.
The files are stored in the user cache file area which is OS dependent
but can be controlled with \f[C]\-\-cache\-dir\f[] or setting the
appropriate environment variable.
.PP
The cache has 4 different modes selected by
\f[C]\-\-vfs\-cache\-mode\f[].
The higher the cache mode the more compatible rclone becomes at the cost
of using disk space.
.PP
Note that files are written back to the remote only when they are closed
so if rclone is quit or dies with open files then these won\[aq]t get
written back to the remote.
However they will still be in the on disk cache.
.PP
If using \-\-vfs\-cache\-max\-size note that the cache may exceed this
size for two reasons.
Firstly because it is only checked every \-\-vfs\-cache\-poll\-interval.
Secondly because open files cannot be evicted from the cache.
.SS \-\-vfs\-cache\-mode off
.PP
In this mode the cache will read directly from the remote and write
directly to the remote without caching anything on disk.
.PP
This will mean some operations are not possible
.IP \[bu] 2
Files can\[aq]t be opened for both read AND write
.IP \[bu] 2
Files opened for write can\[aq]t be seeked
.IP \[bu] 2
Existing files opened for write must have O_TRUNC set
.IP \[bu] 2
Files open for read with O_TRUNC will be opened write only
.IP \[bu] 2
Files open for write only will behave as if O_TRUNC was supplied
.IP \[bu] 2
Open modes O_APPEND, O_TRUNC are ignored
.IP \[bu] 2
If an upload fails it can\[aq]t be retried
.SS \-\-vfs\-cache\-mode minimal
.PP
This is very similar to "off" except that files opened for read AND
write will be buffered to disks.
This means that files opened for write will be a lot more compatible,
but uses the minimal disk space.
.PP
These operations are not possible
.IP \[bu] 2
Files opened for write only can\[aq]t be seeked
.IP \[bu] 2
Existing files opened for write must have O_TRUNC set
.IP \[bu] 2
Files opened for write only will ignore O_APPEND, O_TRUNC
.IP \[bu] 2
If an upload fails it can\[aq]t be retried
.SS \-\-vfs\-cache\-mode writes
.PP
In this mode files opened for read only are still read directly from the
remote, write only and read/write files are buffered to disk first.
.PP
This mode should support all normal file system operations.
.PP
If an upload fails it will be retried up to \-\-low\-level\-retries
times.
.SS \-\-vfs\-cache\-mode full
.PP
In this mode all reads and writes are buffered to and from disk.
When a file is opened for read it will be downloaded in its entirety
first.
.PP
This may be appropriate for your needs, or you may prefer to look at the
cache backend which does a much more sophisticated job of caching,
including caching directory hierarchies and chunks of files.
.PP
In this mode, unlike the others, when a file is written to the disk, it
will be kept on the disk after it is written to the remote.
It will be purged on a schedule according to
\f[C]\-\-vfs\-cache\-max\-age\f[].
.PP
This mode should support all normal file system operations.
.PP
If an upload or download fails it will be retried up to
\-\-low\-level\-retries times.
.IP
.nf
\f[C]
rclone\ serve\ dlna\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \ \ \ \ \-\-addr\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ip:port\ or\ :port\ to\ bind\ the\ DLNA\ http\ server\ to.\ (default\ ":7879")
\ \ \ \ \ \ \-\-dir\-cache\-time\ duration\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Time\ to\ cache\ directory\ entries\ for.\ (default\ 5m0s)
\ \ \ \ \ \ \-\-dir\-perms\ FileMode\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Directory\ permissions\ (default\ 0777)
\ \ \ \ \ \ \-\-file\-perms\ FileMode\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ File\ permissions\ (default\ 0666)
\ \ \ \ \ \ \-\-gid\ uint32\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Override\ the\ gid\ field\ set\ by\ the\ filesystem.\ (default\ 502)
\ \ \-h,\ \-\-help\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ help\ for\ dlna
\ \ \ \ \ \ \-\-no\-checksum\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Don\[aq]t\ compare\ checksums\ on\ up/download.
\ \ \ \ \ \ \-\-no\-modtime\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Don\[aq]t\ read/write\ the\ modification\ time\ (can\ speed\ things\ up).
\ \ \ \ \ \ \-\-no\-seek\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Don\[aq]t\ allow\ seeking\ in\ files.
\ \ \ \ \ \ \-\-poll\-interval\ duration\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Time\ to\ wait\ between\ polling\ for\ changes.\ Must\ be\ smaller\ than\ dir\-cache\-time.\ Only\ on\ supported\ remotes.\ Set\ to\ 0\ to\ disable.\ (default\ 1m0s)
\ \ \ \ \ \ \-\-read\-only\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Mount\ read\-only.
\ \ \ \ \ \ \-\-uid\ uint32\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Override\ the\ uid\ field\ set\ by\ the\ filesystem.\ (default\ 502)
\ \ \ \ \ \ \-\-umask\ int\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Override\ the\ permission\ bits\ set\ by\ the\ filesystem.\ (default\ 2)
\ \ \ \ \ \ \-\-vfs\-cache\-max\-age\ duration\ \ \ \ \ \ \ \ \ \ \ \ \ Max\ age\ of\ objects\ in\ the\ cache.\ (default\ 1h0m0s)
\ \ \ \ \ \ \-\-vfs\-cache\-max\-size\ SizeSuffix\ \ \ \ \ \ \ \ \ \ Max\ total\ size\ of\ objects\ in\ the\ cache.\ (default\ off)
\ \ \ \ \ \ \-\-vfs\-cache\-mode\ CacheMode\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Cache\ mode\ off|minimal|writes|full\ (default\ off)
\ \ \ \ \ \ \-\-vfs\-cache\-poll\-interval\ duration\ \ \ \ \ \ \ Interval\ to\ poll\ the\ cache\ for\ stale\ objects.\ (default\ 1m0s)
\ \ \ \ \ \ \-\-vfs\-read\-chunk\-size\ SizeSuffix\ \ \ \ \ \ \ \ \ Read\ the\ source\ objects\ in\ chunks.\ (default\ 128M)
\ \ \ \ \ \ \-\-vfs\-read\-chunk\-size\-limit\ SizeSuffix\ \ \ If\ greater\ than\ \-\-vfs\-read\-chunk\-size,\ double\ the\ chunk\ size\ after\ each\ chunk\ read,\ until\ the\ limit\ is\ reached.\ \[aq]off\[aq]\ is\ unlimited.\ (default\ off)
\f[]
.fi
2018-10-15 10:03:08 +00:00
.SS rclone serve ftp
.PP
Serve remote:path over FTP.
.SS Synopsis
.PP
rclone serve ftp implements a basic ftp server to serve the remote over
FTP protocol.
This can be viewed with a ftp client or you can make a remote of type
ftp to read and write it.
.SS Server options
.PP
Use \-\-addr to specify which IP address and port the server should
listen on, eg \-\-addr 1.2.3.4:8000 or \-\-addr :8080 to listen to all
IPs.
By default it only listens on localhost.
You can use port :0 to let the OS choose an available port.
.PP
If you set \-\-addr to listen on a public or LAN accessible IP address
then using Authentication is advised \- see the next section for info.
.SS Authentication
.PP
By default this will serve files without needing a login.
.PP
You can set a single username and password with the \-\-user and
\-\-pass flags.
.SS Directory Cache
.PP
Using the \f[C]\-\-dir\-cache\-time\f[] 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.
.PP
Alternatively, you can send a \f[C]SIGHUP\f[] 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:
.IP
.nf
\f[C]
kill\ \-SIGHUP\ $(pidof\ rclone)
\f[]
.fi
.PP
If you configure rclone with a remote control (/rc) then you can use
rclone rc to flush the whole directory cache:
.IP
.nf
\f[C]
rclone\ rc\ vfs/forget
\f[]
.fi
.PP
Or individual files or directories:
.IP
.nf
\f[C]
rclone\ rc\ vfs/forget\ file=path/to/file\ dir=path/to/dir
\f[]
.fi
.SS File Buffering
.PP
The \f[C]\-\-buffer\-size\f[] flag determines the amount of memory, that
will be used to buffer data in advance.
.PP
Each open file descriptor will try to keep the specified amount of data
in memory at all times.
The buffered data is bound to one file descriptor and won\[aq]t be
shared between multiple open file descriptors of the same file.
.PP
This flag is a upper limit for the used memory per file descriptor.
The buffer will only use memory for data that is downloaded but not not
yet read.
If the buffer is empty, only a small amount of memory will be used.
The maximum memory used by rclone for buffering can be up to
\f[C]\-\-buffer\-size\ *\ open\ files\f[].
.SS File Caching
.PP
These flags control the VFS file caching options.
The VFS layer is used by rclone mount to make a cloud storage system
work more like a normal file system.
.PP
You\[aq]ll need to enable VFS caching if you want, for example, to read
and write simultaneously to a file.
See below for more details.
.PP
Note that the VFS cache works in addition to the cache backend and you
may find that you need one or the other or both.
.IP
.nf
\f[C]
\-\-cache\-dir\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Directory\ rclone\ will\ use\ for\ caching.
\-\-vfs\-cache\-max\-age\ duration\ \ \ \ \ \ \ \ \ Max\ age\ of\ objects\ in\ the\ cache.\ (default\ 1h0m0s)
\-\-vfs\-cache\-mode\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ Cache\ mode\ off|minimal|writes|full\ (default\ "off")
\-\-vfs\-cache\-poll\-interval\ duration\ \ \ Interval\ to\ poll\ the\ cache\ for\ stale\ objects.\ (default\ 1m0s)
2019-02-09 10:42:57 +00:00
\-\-vfs\-cache\-max\-size\ int\ \ \ \ \ \ \ \ \ \ \ \ \ Max\ total\ size\ of\ objects\ in\ the\ cache.\ (default\ off)
2018-10-15 10:03:08 +00:00
\f[]
.fi
.PP
If run with \f[C]\-vv\f[] rclone will print the location of the file
cache.
The files are stored in the user cache file area which is OS dependent
but can be controlled with \f[C]\-\-cache\-dir\f[] or setting the
appropriate environment variable.
.PP
The cache has 4 different modes selected by
\f[C]\-\-vfs\-cache\-mode\f[].
The higher the cache mode the more compatible rclone becomes at the cost
of using disk space.
.PP
Note that files are written back to the remote only when they are closed
so if rclone is quit or dies with open files then these won\[aq]t get
written back to the remote.
However they will still be in the on disk cache.
2019-02-09 10:42:57 +00:00
.PP
If using \-\-vfs\-cache\-max\-size note that the cache may exceed this
size for two reasons.
Firstly because it is only checked every \-\-vfs\-cache\-poll\-interval.
Secondly because open files cannot be evicted from the cache.
2018-10-15 10:03:08 +00:00
.SS \-\-vfs\-cache\-mode off
.PP
In this mode the cache will read directly from the remote and write
directly to the remote without caching anything on disk.
.PP
This will mean some operations are not possible
.IP \[bu] 2
Files can\[aq]t be opened for both read AND write
.IP \[bu] 2
Files opened for write can\[aq]t be seeked
.IP \[bu] 2
Existing files opened for write must have O_TRUNC set
.IP \[bu] 2
Files open for read with O_TRUNC will be opened write only
.IP \[bu] 2
Files open for write only will behave as if O_TRUNC was supplied
.IP \[bu] 2
Open modes O_APPEND, O_TRUNC are ignored
.IP \[bu] 2
If an upload fails it can\[aq]t be retried
.SS \-\-vfs\-cache\-mode minimal
.PP
This is very similar to "off" except that files opened for read AND
write will be buffered to disks.
This means that files opened for write will be a lot more compatible,
but uses the minimal disk space.
.PP
These operations are not possible
.IP \[bu] 2
Files opened for write only can\[aq]t be seeked
.IP \[bu] 2
Existing files opened for write must have O_TRUNC set
.IP \[bu] 2
Files opened for write only will ignore O_APPEND, O_TRUNC
.IP \[bu] 2
If an upload fails it can\[aq]t be retried
.SS \-\-vfs\-cache\-mode writes
.PP
In this mode files opened for read only are still read directly from the
remote, write only and read/write files are buffered to disk first.
.PP
This mode should support all normal file system operations.
.PP
If an upload fails it will be retried up to \-\-low\-level\-retries
times.
.SS \-\-vfs\-cache\-mode full
.PP
In this mode all reads and writes are buffered to and from disk.
When a file is opened for read it will be downloaded in its entirety
first.
.PP
This may be appropriate for your needs, or you may prefer to look at the
cache backend which does a much more sophisticated job of caching,
including caching directory hierarchies and chunks of files.
.PP
In this mode, unlike the others, when a file is written to the disk, it
will be kept on the disk after it is written to the remote.
It will be purged on a schedule according to
\f[C]\-\-vfs\-cache\-max\-age\f[].
.PP
This mode should support all normal file system operations.
.PP
If an upload or download fails it will be retried up to
\-\-low\-level\-retries times.
.IP
.nf
\f[C]
rclone\ serve\ ftp\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
2019-02-09 10:42:57 +00:00
\ \ \ \ \ \ \-\-addr\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ IPaddress:Port\ or\ :Port\ to\ bind\ server\ to.\ (default\ "localhost:2121")
\ \ \ \ \ \ \-\-dir\-cache\-time\ duration\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Time\ to\ cache\ directory\ entries\ for.\ (default\ 5m0s)
\ \ \ \ \ \ \-\-dir\-perms\ FileMode\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Directory\ permissions\ (default\ 0777)
\ \ \ \ \ \ \-\-file\-perms\ FileMode\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ File\ permissions\ (default\ 0666)
\ \ \ \ \ \ \-\-gid\ uint32\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Override\ the\ gid\ field\ set\ by\ the\ filesystem.\ (default\ 502)
\ \ \-h,\ \-\-help\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ help\ for\ ftp
\ \ \ \ \ \ \-\-no\-checksum\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Don\[aq]t\ compare\ checksums\ on\ up/download.
\ \ \ \ \ \ \-\-no\-modtime\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Don\[aq]t\ read/write\ the\ modification\ time\ (can\ speed\ things\ up).
\ \ \ \ \ \ \-\-no\-seek\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Don\[aq]t\ allow\ seeking\ in\ files.
\ \ \ \ \ \ \-\-pass\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Password\ for\ authentication.\ (empty\ value\ allow\ every\ password)
\ \ \ \ \ \ \-\-passive\-port\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Passive\ port\ range\ to\ use.\ (default\ "30000\-32000")
\ \ \ \ \ \ \-\-poll\-interval\ duration\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Time\ to\ wait\ between\ polling\ for\ changes.\ Must\ be\ smaller\ than\ dir\-cache\-time.\ Only\ on\ supported\ remotes.\ Set\ to\ 0\ to\ disable.\ (default\ 1m0s)
\ \ \ \ \ \ \-\-read\-only\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Mount\ read\-only.
\ \ \ \ \ \ \-\-uid\ uint32\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Override\ the\ uid\ field\ set\ by\ the\ filesystem.\ (default\ 502)
\ \ \ \ \ \ \-\-umask\ int\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Override\ the\ permission\ bits\ set\ by\ the\ filesystem.\ (default\ 2)
\ \ \ \ \ \ \-\-user\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ User\ name\ for\ authentication.\ (default\ "anonymous")
\ \ \ \ \ \ \-\-vfs\-cache\-max\-age\ duration\ \ \ \ \ \ \ \ \ \ \ \ \ Max\ age\ of\ objects\ in\ the\ cache.\ (default\ 1h0m0s)
\ \ \ \ \ \ \-\-vfs\-cache\-max\-size\ SizeSuffix\ \ \ \ \ \ \ \ \ \ Max\ total\ size\ of\ objects\ in\ the\ cache.\ (default\ off)
\ \ \ \ \ \ \-\-vfs\-cache\-mode\ CacheMode\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Cache\ mode\ off|minimal|writes|full\ (default\ off)
\ \ \ \ \ \ \-\-vfs\-cache\-poll\-interval\ duration\ \ \ \ \ \ \ Interval\ to\ poll\ the\ cache\ for\ stale\ objects.\ (default\ 1m0s)
\ \ \ \ \ \ \-\-vfs\-read\-chunk\-size\ SizeSuffix\ \ \ \ \ \ \ \ \ Read\ the\ source\ objects\ in\ chunks.\ (default\ 128M)
\ \ \ \ \ \ \-\-vfs\-read\-chunk\-size\-limit\ SizeSuffix\ \ \ If\ greater\ than\ \-\-vfs\-read\-chunk\-size,\ double\ the\ chunk\ size\ after\ each\ chunk\ read,\ until\ the\ limit\ is\ reached.\ \[aq]off\[aq]\ is\ unlimited.\ (default\ off)
2018-10-15 10:03:08 +00:00
\f[]
.fi
2017-12-23 13:07:45 +00:00
.SS rclone serve http
.PP
Serve the remote over HTTP.
.SS Synopsis
.PP
rclone serve http implements a basic web server to serve the remote over
HTTP.
This can be viewed in a web browser or you can make a remote of type
http read from it.
.PP
You can use the filter flags (eg \-\-include, \-\-exclude) to control
what is served.
.PP
The server will log errors.
Use \-v to see access logs.
.PP
\-\-bwlimit will be respected for file transfers.
Use \-\-stats to control the stats printing.
2018-03-19 10:06:13 +00:00
.SS Server options
.PP
Use \-\-addr to specify which IP address and port the server should
listen on, eg \-\-addr 1.2.3.4:8000 or \-\-addr :8080 to listen to all
IPs.
By default it only listens on localhost.
2018-04-28 10:46:27 +00:00
You can use port :0 to let the OS choose an available port.
2018-03-19 10:06:13 +00:00
.PP
If you set \-\-addr to listen on a public or LAN accessible IP address
2018-04-28 10:46:27 +00:00
then using Authentication is advised \- see the next section for info.
2018-03-19 10:06:13 +00:00
.PP
\-\-server\-read\-timeout and \-\-server\-write\-timeout can be used to
control the timeouts on the server.
Note that this is the total time for a transfer.
.PP
\-\-max\-header\-bytes controls the maximum number of bytes the server
will accept in the HTTP header.
.SS Authentication
.PP
By default this will serve files without needing a login.
.PP
You can either use an htpasswd file which can take lots of users, or set
a single username and password with the \-\-user and \-\-pass flags.
.PP
Use \-\-htpasswd /path/to/htpasswd to provide an htpasswd file.
This is in standard apache format and supports MD5, SHA1 and BCrypt for
basic authentication.
Bcrypt is recommended.
.PP
To create an htpasswd file:
.IP
.nf
\f[C]
touch\ htpasswd
htpasswd\ \-B\ htpasswd\ user
htpasswd\ \-B\ htpasswd\ anotherUser
\f[]
.fi
.PP
The password file can be updated while rclone is running.
.PP
Use \-\-realm to set the authentication realm.
.SS SSL/TLS
.PP
By default this will serve over http.
If you want you can serve over https.
You will need to supply the \-\-cert and \-\-key flags.
If you wish to do client side certificate validation then you will need
to supply \-\-client\-ca also.
.PP
\-\-cert should be a either a PEM encoded certificate or a concatenation
of that with the CA certificate.
\-\-key should be the PEM encoded private key and \-\-client\-ca should
be the PEM encoded client certificate authority certificate.
2017-12-23 13:07:45 +00:00
.SS Directory Cache
.PP
Using the \f[C]\-\-dir\-cache\-time\f[] 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.
.PP
Alternatively, you can send a \f[C]SIGHUP\f[] 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:
.IP
.nf
\f[C]
kill\ \-SIGHUP\ $(pidof\ rclone)
\f[]
.fi
2018-03-19 10:06:13 +00:00
.PP
If you configure rclone with a remote control (/rc) then you can use
rclone rc to flush the whole directory cache:
.IP
.nf
\f[C]
rclone\ rc\ vfs/forget
\f[]
.fi
.PP
Or individual files or directories:
.IP
.nf
\f[C]
rclone\ rc\ vfs/forget\ file=path/to/file\ dir=path/to/dir
\f[]
.fi
2018-09-01 11:58:00 +00:00
.SS File Buffering
.PP
The \f[C]\-\-buffer\-size\f[] flag determines the amount of memory, that
will be used to buffer data in advance.
.PP
Each open file descriptor will try to keep the specified amount of data
in memory at all times.
The buffered data is bound to one file descriptor and won\[aq]t be
shared between multiple open file descriptors of the same file.
.PP
This flag is a upper limit for the used memory per file descriptor.
The buffer will only use memory for data that is downloaded but not not
yet read.
If the buffer is empty, only a small amount of memory will be used.
The maximum memory used by rclone for buffering can be up to
\f[C]\-\-buffer\-size\ *\ open\ files\f[].
2017-12-23 13:07:45 +00:00
.SS File Caching
.PP
These flags control the VFS file caching options.
2018-03-19 10:06:13 +00:00
The VFS layer is used by rclone mount to make a cloud storage system
work more like a normal file system.
2017-12-23 13:07:45 +00:00
.PP
You\[aq]ll need to enable VFS caching if you want, for example, to read
and write simultaneously to a file.
See below for more details.
.PP
Note that the VFS cache works in addition to the cache backend and you
may find that you need one or the other or both.
.IP
.nf
\f[C]
2018-03-19 10:06:13 +00:00
\-\-cache\-dir\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Directory\ rclone\ will\ use\ for\ caching.
2017-12-23 13:07:45 +00:00
\-\-vfs\-cache\-max\-age\ duration\ \ \ \ \ \ \ \ \ Max\ age\ of\ objects\ in\ the\ cache.\ (default\ 1h0m0s)
\-\-vfs\-cache\-mode\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ Cache\ mode\ off|minimal|writes|full\ (default\ "off")
\-\-vfs\-cache\-poll\-interval\ duration\ \ \ Interval\ to\ poll\ the\ cache\ for\ stale\ objects.\ (default\ 1m0s)
2019-02-09 10:42:57 +00:00
\-\-vfs\-cache\-max\-size\ int\ \ \ \ \ \ \ \ \ \ \ \ \ Max\ total\ size\ of\ objects\ in\ the\ cache.\ (default\ off)
2017-12-23 13:07:45 +00:00
\f[]
.fi
.PP
If run with \f[C]\-vv\f[] rclone will print the location of the file
cache.
The files are stored in the user cache file area which is OS dependent
but can be controlled with \f[C]\-\-cache\-dir\f[] or setting the
appropriate environment variable.
.PP
The cache has 4 different modes selected by
\f[C]\-\-vfs\-cache\-mode\f[].
The higher the cache mode the more compatible rclone becomes at the cost
of using disk space.
.PP
Note that files are written back to the remote only when they are closed
so if rclone is quit or dies with open files then these won\[aq]t get
written back to the remote.
However they will still be in the on disk cache.
2019-02-09 10:42:57 +00:00
.PP
If using \-\-vfs\-cache\-max\-size note that the cache may exceed this
size for two reasons.
Firstly because it is only checked every \-\-vfs\-cache\-poll\-interval.
Secondly because open files cannot be evicted from the cache.
2017-12-23 13:07:45 +00:00
.SS \-\-vfs\-cache\-mode off
.PP
In this mode the cache will read directly from the remote and write
directly to the remote without caching anything on disk.
.PP
This will mean some operations are not possible
.IP \[bu] 2
Files can\[aq]t be opened for both read AND write
.IP \[bu] 2
Files opened for write can\[aq]t be seeked
.IP \[bu] 2
Existing files opened for write must have O_TRUNC set
.IP \[bu] 2
Files open for read with O_TRUNC will be opened write only
.IP \[bu] 2
Files open for write only will behave as if O_TRUNC was supplied
.IP \[bu] 2
Open modes O_APPEND, O_TRUNC are ignored
.IP \[bu] 2
If an upload fails it can\[aq]t be retried
.SS \-\-vfs\-cache\-mode minimal
.PP
This is very similar to "off" except that files opened for read AND
write will be buffered to disks.
This means that files opened for write will be a lot more compatible,
but uses the minimal disk space.
.PP
These operations are not possible
.IP \[bu] 2
Files opened for write only can\[aq]t be seeked
.IP \[bu] 2
Existing files opened for write must have O_TRUNC set
.IP \[bu] 2
Files opened for write only will ignore O_APPEND, O_TRUNC
.IP \[bu] 2
If an upload fails it can\[aq]t be retried
.SS \-\-vfs\-cache\-mode writes
.PP
In this mode files opened for read only are still read directly from the
remote, write only and read/write files are buffered to disk first.
.PP
This mode should support all normal file system operations.
.PP
If an upload fails it will be retried up to \-\-low\-level\-retries
times.
.SS \-\-vfs\-cache\-mode full
.PP
In this mode all reads and writes are buffered to and from disk.
When a file is opened for read it will be downloaded in its entirety
first.
.PP
This may be appropriate for your needs, or you may prefer to look at the
cache backend which does a much more sophisticated job of caching,
2018-03-19 10:06:13 +00:00
including caching directory hierarchies and chunks of files.
2017-12-23 13:07:45 +00:00
.PP
In this mode, unlike the others, when a file is written to the disk, it
will be kept on the disk after it is written to the remote.
It will be purged on a schedule according to
\f[C]\-\-vfs\-cache\-max\-age\f[].
.PP
This mode should support all normal file system operations.
.PP
If an upload or download fails it will be retried up to
\-\-low\-level\-retries times.
.IP
.nf
\f[C]
rclone\ serve\ http\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
2019-02-09 10:42:57 +00:00
\ \ \ \ \ \ \-\-addr\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ IPaddress:Port\ or\ :Port\ to\ bind\ server\ to.\ (default\ "localhost:8080")
\ \ \ \ \ \ \-\-cert\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ SSL\ PEM\ key\ (concatenation\ of\ certificate\ and\ CA\ certificate)
\ \ \ \ \ \ \-\-client\-ca\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Client\ certificate\ authority\ to\ verify\ clients\ with
\ \ \ \ \ \ \-\-dir\-cache\-time\ duration\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Time\ to\ cache\ directory\ entries\ for.\ (default\ 5m0s)
\ \ \ \ \ \ \-\-dir\-perms\ FileMode\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Directory\ permissions\ (default\ 0777)
\ \ \ \ \ \ \-\-file\-perms\ FileMode\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ File\ permissions\ (default\ 0666)
\ \ \ \ \ \ \-\-gid\ uint32\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Override\ the\ gid\ field\ set\ by\ the\ filesystem.\ (default\ 502)
\ \ \-h,\ \-\-help\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ help\ for\ http
\ \ \ \ \ \ \-\-htpasswd\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ htpasswd\ file\ \-\ if\ not\ provided\ no\ authentication\ is\ done
\ \ \ \ \ \ \-\-key\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ SSL\ PEM\ Private\ key
\ \ \ \ \ \ \-\-max\-header\-bytes\ int\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Maximum\ size\ of\ request\ header\ (default\ 4096)
\ \ \ \ \ \ \-\-no\-checksum\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Don\[aq]t\ compare\ checksums\ on\ up/download.
\ \ \ \ \ \ \-\-no\-modtime\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Don\[aq]t\ read/write\ the\ modification\ time\ (can\ speed\ things\ up).
\ \ \ \ \ \ \-\-no\-seek\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Don\[aq]t\ allow\ seeking\ in\ files.
\ \ \ \ \ \ \-\-pass\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Password\ for\ authentication.
\ \ \ \ \ \ \-\-poll\-interval\ duration\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Time\ to\ wait\ between\ polling\ for\ changes.\ Must\ be\ smaller\ than\ dir\-cache\-time.\ Only\ on\ supported\ remotes.\ Set\ to\ 0\ to\ disable.\ (default\ 1m0s)
\ \ \ \ \ \ \-\-read\-only\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Mount\ read\-only.
\ \ \ \ \ \ \-\-realm\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ realm\ for\ authentication\ (default\ "rclone")
\ \ \ \ \ \ \-\-server\-read\-timeout\ duration\ \ \ \ \ \ \ \ \ \ \ Timeout\ for\ server\ reading\ data\ (default\ 1h0m0s)
\ \ \ \ \ \ \-\-server\-write\-timeout\ duration\ \ \ \ \ \ \ \ \ \ Timeout\ for\ server\ writing\ data\ (default\ 1h0m0s)
\ \ \ \ \ \ \-\-uid\ uint32\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Override\ the\ uid\ field\ set\ by\ the\ filesystem.\ (default\ 502)
\ \ \ \ \ \ \-\-umask\ int\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Override\ the\ permission\ bits\ set\ by\ the\ filesystem.\ (default\ 2)
\ \ \ \ \ \ \-\-user\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ User\ name\ for\ authentication.
\ \ \ \ \ \ \-\-vfs\-cache\-max\-age\ duration\ \ \ \ \ \ \ \ \ \ \ \ \ Max\ age\ of\ objects\ in\ the\ cache.\ (default\ 1h0m0s)
\ \ \ \ \ \ \-\-vfs\-cache\-max\-size\ SizeSuffix\ \ \ \ \ \ \ \ \ \ Max\ total\ size\ of\ objects\ in\ the\ cache.\ (default\ off)
\ \ \ \ \ \ \-\-vfs\-cache\-mode\ CacheMode\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Cache\ mode\ off|minimal|writes|full\ (default\ off)
\ \ \ \ \ \ \-\-vfs\-cache\-poll\-interval\ duration\ \ \ \ \ \ \ Interval\ to\ poll\ the\ cache\ for\ stale\ objects.\ (default\ 1m0s)
\ \ \ \ \ \ \-\-vfs\-read\-chunk\-size\ SizeSuffix\ \ \ \ \ \ \ \ \ Read\ the\ source\ objects\ in\ chunks.\ (default\ 128M)
\ \ \ \ \ \ \-\-vfs\-read\-chunk\-size\-limit\ SizeSuffix\ \ \ If\ greater\ than\ \-\-vfs\-read\-chunk\-size,\ double\ the\ chunk\ size\ after\ each\ chunk\ read,\ until\ the\ limit\ is\ reached.\ \[aq]off\[aq]\ is\ unlimited.\ (default\ off)
2017-12-23 13:07:45 +00:00
\f[]
.fi
2018-03-19 10:06:13 +00:00
.SS rclone serve restic
.PP
Serve the remote for restic\[aq]s REST API.
.SS Synopsis
.PP
rclone serve restic implements restic\[aq]s REST backend API over HTTP.
This allows restic to use rclone as a data storage mechanism for cloud
providers that restic does not support directly.
.PP
Restic (https://restic.net/) is a command line program for doing
backups.
.PP
The server will log errors.
Use \-v to see access logs.
.PP
\-\-bwlimit will be respected for file transfers.
Use \-\-stats to control the stats printing.
.SS Setting up rclone for use by restic
.PP
First set up a remote for your chosen cloud provider (/docs/#configure).
.PP
Once you have set up the remote, check it is working with, for example
"rclone lsd remote:".
You may have called the remote something other than "remote:" \- just
substitute whatever you called it in the following instructions.
.PP
Now start the rclone restic server
.IP
.nf
\f[C]
rclone\ serve\ restic\ \-v\ remote:backup
\f[]
.fi
.PP
Where you can replace "backup" in the above by whatever path in the
remote you wish to use.
.PP
By default this will serve on "localhost:8080" you can change this with
use of the "\-\-addr" flag.
.PP
You might wish to start this server on boot.
.SS Setting up restic to use rclone
.PP
Now you can follow the restic
instructions (http://restic.readthedocs.io/en/latest/030_preparing_a_new_repo.html#rest-server)
on setting up restic.
.PP
Note that you will need restic 0.8.2 or later to interoperate with
rclone.
.PP
For the example above you will want to use "http://localhost:8080/" as
the URL for the REST server.
.PP
For example:
.IP
.nf
\f[C]
$\ export\ RESTIC_REPOSITORY=rest:http://localhost:8080/
$\ export\ RESTIC_PASSWORD=yourpassword
$\ restic\ init
created\ restic\ backend\ 8b1a4b56ae\ at\ rest:http://localhost:8080/
Please\ note\ that\ knowledge\ of\ your\ password\ is\ required\ to\ access
the\ repository.\ Losing\ your\ password\ means\ that\ your\ data\ is
irrecoverably\ lost.
$\ restic\ backup\ /path/to/files/to/backup
scan\ [/path/to/files/to/backup]
scanned\ 189\ directories,\ 312\ files\ in\ 0:00
[0:00]\ 100.00%\ \ 38.128\ MiB\ /\ 38.128\ MiB\ \ 501\ /\ 501\ items\ \ 0\ errors\ \ ETA\ 0:00\
duration:\ 0:00
snapshot\ 45c8fdd8\ saved
\f[]
.fi
.SS Multiple repositories
.PP
Note that you can use the endpoint to host multiple repositories.
Do this by adding a directory name or path after the URL.
Note that these \f[B]must\f[] end with /.
Eg
.IP
.nf
\f[C]
$\ export\ RESTIC_REPOSITORY=rest:http://localhost:8080/user1repo/
#\ backup\ user1\ stuff
$\ export\ RESTIC_REPOSITORY=rest:http://localhost:8080/user2repo/
#\ backup\ user2\ stuff
\f[]
.fi
.SS Server options
.PP
Use \-\-addr to specify which IP address and port the server should
listen on, eg \-\-addr 1.2.3.4:8000 or \-\-addr :8080 to listen to all
IPs.
By default it only listens on localhost.
2018-04-28 10:46:27 +00:00
You can use port :0 to let the OS choose an available port.
2018-03-19 10:06:13 +00:00
.PP
If you set \-\-addr to listen on a public or LAN accessible IP address
2018-04-28 10:46:27 +00:00
then using Authentication is advised \- see the next section for info.
2018-03-19 10:06:13 +00:00
.PP
\-\-server\-read\-timeout and \-\-server\-write\-timeout can be used to
control the timeouts on the server.
Note that this is the total time for a transfer.
.PP
\-\-max\-header\-bytes controls the maximum number of bytes the server
will accept in the HTTP header.
.SS Authentication
.PP
By default this will serve files without needing a login.
.PP
You can either use an htpasswd file which can take lots of users, or set
a single username and password with the \-\-user and \-\-pass flags.
.PP
Use \-\-htpasswd /path/to/htpasswd to provide an htpasswd file.
This is in standard apache format and supports MD5, SHA1 and BCrypt for
basic authentication.
Bcrypt is recommended.
.PP
To create an htpasswd file:
.IP
.nf
\f[C]
touch\ htpasswd
htpasswd\ \-B\ htpasswd\ user
htpasswd\ \-B\ htpasswd\ anotherUser
\f[]
.fi
.PP
The password file can be updated while rclone is running.
.PP
Use \-\-realm to set the authentication realm.
.SS SSL/TLS
.PP
By default this will serve over http.
If you want you can serve over https.
You will need to supply the \-\-cert and \-\-key flags.
If you wish to do client side certificate validation then you will need
to supply \-\-client\-ca also.
.PP
\-\-cert should be a either a PEM encoded certificate or a concatenation
of that with the CA certificate.
\-\-key should be the PEM encoded private key and \-\-client\-ca should
be the PEM encoded client certificate authority certificate.
.IP
.nf
\f[C]
rclone\ serve\ restic\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \ \ \ \ \-\-addr\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ IPaddress:Port\ or\ :Port\ to\ bind\ server\ to.\ (default\ "localhost:8080")
2018-04-28 10:46:27 +00:00
\ \ \ \ \ \ \-\-append\-only\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ disallow\ deletion\ of\ repository\ data
2018-03-19 10:06:13 +00:00
\ \ \ \ \ \ \-\-cert\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ SSL\ PEM\ key\ (concatenation\ of\ certificate\ and\ CA\ certificate)
\ \ \ \ \ \ \-\-client\-ca\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Client\ certificate\ authority\ to\ verify\ clients\ with
\ \ \-h,\ \-\-help\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ help\ for\ restic
\ \ \ \ \ \ \-\-htpasswd\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ htpasswd\ file\ \-\ if\ not\ provided\ no\ authentication\ is\ done
\ \ \ \ \ \ \-\-key\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ SSL\ PEM\ Private\ key
\ \ \ \ \ \ \-\-max\-header\-bytes\ int\ \ \ \ \ \ \ \ \ \ \ \ Maximum\ size\ of\ request\ header\ (default\ 4096)
\ \ \ \ \ \ \-\-pass\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Password\ for\ authentication.
\ \ \ \ \ \ \-\-realm\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ realm\ for\ authentication\ (default\ "rclone")
\ \ \ \ \ \ \-\-server\-read\-timeout\ duration\ \ \ \ Timeout\ for\ server\ reading\ data\ (default\ 1h0m0s)
\ \ \ \ \ \ \-\-server\-write\-timeout\ duration\ \ \ Timeout\ for\ server\ writing\ data\ (default\ 1h0m0s)
\ \ \ \ \ \ \-\-stdio\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ run\ an\ HTTP2\ server\ on\ stdin/stdout
\ \ \ \ \ \ \-\-user\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ User\ name\ for\ authentication.
\f[]
.fi
2017-12-23 13:07:45 +00:00
.SS rclone serve webdav
.PP
Serve remote:path over webdav.
.SS Synopsis
.PP
rclone serve webdav implements a basic webdav server to serve the remote
over HTTP via the webdav protocol.
This can be viewed with a webdav client or you can make a remote of type
webdav to read and write it.
2018-09-01 11:58:00 +00:00
.SS Webdav options
.SS \-\-etag\-hash
2017-12-23 13:07:45 +00:00
.PP
2018-09-01 11:58:00 +00:00
This controls the ETag header.
Without this flag the ETag will be based on the ModTime and Size of the
object.
.PP
If this flag is set to "auto" then rclone will choose the first
supported hash on the backend or you can use a named hash such as "MD5"
or "SHA\-1".
.PP
Use "rclone hashsum" to see the full list.
2018-03-19 10:06:13 +00:00
.SS Server options
.PP
Use \-\-addr to specify which IP address and port the server should
listen on, eg \-\-addr 1.2.3.4:8000 or \-\-addr :8080 to listen to all
IPs.
By default it only listens on localhost.
2018-04-28 10:46:27 +00:00
You can use port :0 to let the OS choose an available port.
2018-03-19 10:06:13 +00:00
.PP
If you set \-\-addr to listen on a public or LAN accessible IP address
2018-04-28 10:46:27 +00:00
then using Authentication is advised \- see the next section for info.
2018-03-19 10:06:13 +00:00
.PP
\-\-server\-read\-timeout and \-\-server\-write\-timeout can be used to
control the timeouts on the server.
Note that this is the total time for a transfer.
.PP
\-\-max\-header\-bytes controls the maximum number of bytes the server
will accept in the HTTP header.
.SS Authentication
.PP
By default this will serve files without needing a login.
.PP
You can either use an htpasswd file which can take lots of users, or set
a single username and password with the \-\-user and \-\-pass flags.
.PP
Use \-\-htpasswd /path/to/htpasswd to provide an htpasswd file.
This is in standard apache format and supports MD5, SHA1 and BCrypt for
basic authentication.
Bcrypt is recommended.
.PP
To create an htpasswd file:
.IP
.nf
\f[C]
touch\ htpasswd
htpasswd\ \-B\ htpasswd\ user
htpasswd\ \-B\ htpasswd\ anotherUser
\f[]
.fi
.PP
The password file can be updated while rclone is running.
.PP
Use \-\-realm to set the authentication realm.
.SS SSL/TLS
.PP
By default this will serve over http.
If you want you can serve over https.
You will need to supply the \-\-cert and \-\-key flags.
If you wish to do client side certificate validation then you will need
to supply \-\-client\-ca also.
.PP
\-\-cert should be a either a PEM encoded certificate or a concatenation
of that with the CA certificate.
\-\-key should be the PEM encoded private key and \-\-client\-ca should
be the PEM encoded client certificate authority certificate.
2017-12-23 13:07:45 +00:00
.SS Directory Cache
.PP
Using the \f[C]\-\-dir\-cache\-time\f[] 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.
.PP
Alternatively, you can send a \f[C]SIGHUP\f[] 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:
.IP
.nf
\f[C]
kill\ \-SIGHUP\ $(pidof\ rclone)
\f[]
.fi
2018-03-19 10:06:13 +00:00
.PP
If you configure rclone with a remote control (/rc) then you can use
rclone rc to flush the whole directory cache:
.IP
.nf
\f[C]
rclone\ rc\ vfs/forget
\f[]
.fi
.PP
Or individual files or directories:
.IP
.nf
\f[C]
rclone\ rc\ vfs/forget\ file=path/to/file\ dir=path/to/dir
\f[]
.fi
2018-09-01 11:58:00 +00:00
.SS File Buffering
.PP
The \f[C]\-\-buffer\-size\f[] flag determines the amount of memory, that
will be used to buffer data in advance.
.PP
Each open file descriptor will try to keep the specified amount of data
in memory at all times.
The buffered data is bound to one file descriptor and won\[aq]t be
shared between multiple open file descriptors of the same file.
.PP
This flag is a upper limit for the used memory per file descriptor.
The buffer will only use memory for data that is downloaded but not not
yet read.
If the buffer is empty, only a small amount of memory will be used.
The maximum memory used by rclone for buffering can be up to
\f[C]\-\-buffer\-size\ *\ open\ files\f[].
2018-03-19 10:06:13 +00:00
.SS File Caching
.PP
2017-12-23 13:07:45 +00:00
These flags control the VFS file caching options.
2018-03-19 10:06:13 +00:00
The VFS layer is used by rclone mount to make a cloud storage system
work more like a normal file system.
2017-12-23 13:07:45 +00:00
.PP
You\[aq]ll need to enable VFS caching if you want, for example, to read
and write simultaneously to a file.
See below for more details.
.PP
Note that the VFS cache works in addition to the cache backend and you
may find that you need one or the other or both.
.IP
.nf
\f[C]
2018-03-19 10:06:13 +00:00
\-\-cache\-dir\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Directory\ rclone\ will\ use\ for\ caching.
2017-12-23 13:07:45 +00:00
\-\-vfs\-cache\-max\-age\ duration\ \ \ \ \ \ \ \ \ Max\ age\ of\ objects\ in\ the\ cache.\ (default\ 1h0m0s)
\-\-vfs\-cache\-mode\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ Cache\ mode\ off|minimal|writes|full\ (default\ "off")
\-\-vfs\-cache\-poll\-interval\ duration\ \ \ Interval\ to\ poll\ the\ cache\ for\ stale\ objects.\ (default\ 1m0s)
2019-02-09 10:42:57 +00:00
\-\-vfs\-cache\-max\-size\ int\ \ \ \ \ \ \ \ \ \ \ \ \ Max\ total\ size\ of\ objects\ in\ the\ cache.\ (default\ off)
2017-12-23 13:07:45 +00:00
\f[]
.fi
.PP
If run with \f[C]\-vv\f[] rclone will print the location of the file
cache.
The files are stored in the user cache file area which is OS dependent
but can be controlled with \f[C]\-\-cache\-dir\f[] or setting the
appropriate environment variable.
.PP
The cache has 4 different modes selected by
\f[C]\-\-vfs\-cache\-mode\f[].
The higher the cache mode the more compatible rclone becomes at the cost
of using disk space.
.PP
Note that files are written back to the remote only when they are closed
so if rclone is quit or dies with open files then these won\[aq]t get
written back to the remote.
However they will still be in the on disk cache.
2019-02-09 10:42:57 +00:00
.PP
If using \-\-vfs\-cache\-max\-size note that the cache may exceed this
size for two reasons.
Firstly because it is only checked every \-\-vfs\-cache\-poll\-interval.
Secondly because open files cannot be evicted from the cache.
2017-12-23 13:07:45 +00:00
.SS \-\-vfs\-cache\-mode off
.PP
In this mode the cache will read directly from the remote and write
directly to the remote without caching anything on disk.
.PP
This will mean some operations are not possible
.IP \[bu] 2
Files can\[aq]t be opened for both read AND write
.IP \[bu] 2
Files opened for write can\[aq]t be seeked
.IP \[bu] 2
Existing files opened for write must have O_TRUNC set
.IP \[bu] 2
Files open for read with O_TRUNC will be opened write only
.IP \[bu] 2
Files open for write only will behave as if O_TRUNC was supplied
.IP \[bu] 2
Open modes O_APPEND, O_TRUNC are ignored
.IP \[bu] 2
If an upload fails it can\[aq]t be retried
.SS \-\-vfs\-cache\-mode minimal
.PP
This is very similar to "off" except that files opened for read AND
write will be buffered to disks.
This means that files opened for write will be a lot more compatible,
but uses the minimal disk space.
.PP
These operations are not possible
.IP \[bu] 2
Files opened for write only can\[aq]t be seeked
.IP \[bu] 2
Existing files opened for write must have O_TRUNC set
.IP \[bu] 2
Files opened for write only will ignore O_APPEND, O_TRUNC
.IP \[bu] 2
If an upload fails it can\[aq]t be retried
.SS \-\-vfs\-cache\-mode writes
.PP
In this mode files opened for read only are still read directly from the
remote, write only and read/write files are buffered to disk first.
2017-09-30 13:19:47 +00:00
.PP
2017-12-23 13:07:45 +00:00
This mode should support all normal file system operations.
2017-09-30 13:19:47 +00:00
.PP
2017-12-23 13:07:45 +00:00
If an upload fails it will be retried up to \-\-low\-level\-retries
times.
.SS \-\-vfs\-cache\-mode full
.PP
In this mode all reads and writes are buffered to and from disk.
When a file is opened for read it will be downloaded in its entirety
first.
.PP
This may be appropriate for your needs, or you may prefer to look at the
cache backend which does a much more sophisticated job of caching,
2018-03-19 10:06:13 +00:00
including caching directory hierarchies and chunks of files.
2017-12-23 13:07:45 +00:00
.PP
In this mode, unlike the others, when a file is written to the disk, it
will be kept on the disk after it is written to the remote.
It will be purged on a schedule according to
\f[C]\-\-vfs\-cache\-max\-age\f[].
.PP
This mode should support all normal file system operations.
.PP
If an upload or download fails it will be retried up to
\-\-low\-level\-retries times.
2017-09-30 13:19:47 +00:00
.IP
.nf
\f[C]
2017-12-23 13:07:45 +00:00
rclone\ serve\ webdav\ remote:path\ [flags]
2017-09-30 13:19:47 +00:00
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
2019-02-09 10:42:57 +00:00
\ \ \ \ \ \ \-\-addr\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ IPaddress:Port\ or\ :Port\ to\ bind\ server\ to.\ (default\ "localhost:8080")
\ \ \ \ \ \ \-\-cert\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ SSL\ PEM\ key\ (concatenation\ of\ certificate\ and\ CA\ certificate)
\ \ \ \ \ \ \-\-client\-ca\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Client\ certificate\ authority\ to\ verify\ clients\ with
\ \ \ \ \ \ \-\-dir\-cache\-time\ duration\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Time\ to\ cache\ directory\ entries\ for.\ (default\ 5m0s)
\ \ \ \ \ \ \-\-dir\-perms\ FileMode\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Directory\ permissions\ (default\ 0777)
\ \ \ \ \ \ \-\-etag\-hash\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Which\ hash\ to\ use\ for\ the\ ETag,\ or\ auto\ or\ blank\ for\ off
\ \ \ \ \ \ \-\-file\-perms\ FileMode\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ File\ permissions\ (default\ 0666)
\ \ \ \ \ \ \-\-gid\ uint32\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Override\ the\ gid\ field\ set\ by\ the\ filesystem.\ (default\ 502)
\ \ \-h,\ \-\-help\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ help\ for\ webdav
\ \ \ \ \ \ \-\-htpasswd\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ htpasswd\ file\ \-\ if\ not\ provided\ no\ authentication\ is\ done
\ \ \ \ \ \ \-\-key\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ SSL\ PEM\ Private\ key
\ \ \ \ \ \ \-\-max\-header\-bytes\ int\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Maximum\ size\ of\ request\ header\ (default\ 4096)
\ \ \ \ \ \ \-\-no\-checksum\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Don\[aq]t\ compare\ checksums\ on\ up/download.
\ \ \ \ \ \ \-\-no\-modtime\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Don\[aq]t\ read/write\ the\ modification\ time\ (can\ speed\ things\ up).
\ \ \ \ \ \ \-\-no\-seek\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Don\[aq]t\ allow\ seeking\ in\ files.
\ \ \ \ \ \ \-\-pass\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Password\ for\ authentication.
\ \ \ \ \ \ \-\-poll\-interval\ duration\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Time\ to\ wait\ between\ polling\ for\ changes.\ Must\ be\ smaller\ than\ dir\-cache\-time.\ Only\ on\ supported\ remotes.\ Set\ to\ 0\ to\ disable.\ (default\ 1m0s)
\ \ \ \ \ \ \-\-read\-only\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Mount\ read\-only.
\ \ \ \ \ \ \-\-realm\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ realm\ for\ authentication\ (default\ "rclone")
\ \ \ \ \ \ \-\-server\-read\-timeout\ duration\ \ \ \ \ \ \ \ \ \ \ Timeout\ for\ server\ reading\ data\ (default\ 1h0m0s)
\ \ \ \ \ \ \-\-server\-write\-timeout\ duration\ \ \ \ \ \ \ \ \ \ Timeout\ for\ server\ writing\ data\ (default\ 1h0m0s)
\ \ \ \ \ \ \-\-uid\ uint32\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Override\ the\ uid\ field\ set\ by\ the\ filesystem.\ (default\ 502)
\ \ \ \ \ \ \-\-umask\ int\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Override\ the\ permission\ bits\ set\ by\ the\ filesystem.\ (default\ 2)
\ \ \ \ \ \ \-\-user\ string\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ User\ name\ for\ authentication.
\ \ \ \ \ \ \-\-vfs\-cache\-max\-age\ duration\ \ \ \ \ \ \ \ \ \ \ \ \ Max\ age\ of\ objects\ in\ the\ cache.\ (default\ 1h0m0s)
\ \ \ \ \ \ \-\-vfs\-cache\-max\-size\ SizeSuffix\ \ \ \ \ \ \ \ \ \ Max\ total\ size\ of\ objects\ in\ the\ cache.\ (default\ off)
\ \ \ \ \ \ \-\-vfs\-cache\-mode\ CacheMode\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Cache\ mode\ off|minimal|writes|full\ (default\ off)
\ \ \ \ \ \ \-\-vfs\-cache\-poll\-interval\ duration\ \ \ \ \ \ \ Interval\ to\ poll\ the\ cache\ for\ stale\ objects.\ (default\ 1m0s)
\ \ \ \ \ \ \-\-vfs\-read\-chunk\-size\ SizeSuffix\ \ \ \ \ \ \ \ \ Read\ the\ source\ objects\ in\ chunks.\ (default\ 128M)
\ \ \ \ \ \ \-\-vfs\-read\-chunk\-size\-limit\ SizeSuffix\ \ \ If\ greater\ than\ \-\-vfs\-read\-chunk\-size,\ double\ the\ chunk\ size\ after\ each\ chunk\ read,\ until\ the\ limit\ is\ reached.\ \[aq]off\[aq]\ is\ unlimited.\ (default\ off)
2017-03-18 11:16:43 +00:00
\f[]
.fi
2018-10-15 10:03:08 +00:00
.SS rclone settier
.PP
Changes storage class/tier of objects in remote.
.SS Synopsis
.PP
rclone settier changes storage tier or class at remote if supported.
Few cloud storage services provides different storage classes on
objects, for example AWS S3 and Glacier, Azure Blob storage \- Hot, Cool
and Archive, Google Cloud Storage, Regional Storage, Nearline, Coldline
etc.
.PP
Note that, certain tier chages make objects not available to access
immediately.
For example tiering to archive in azure blob storage makes objects in
frozen state, user can restore by setting tier to Hot/Cool, similarly S3
to Glacier makes object inaccessible.true
.PP
You can use it to tier single object
.IP
.nf
\f[C]
rclone\ settier\ Cool\ remote:path/file
\f[]
.fi
.PP
Or use rclone filters to set tier on only specific files
.IP
.nf
\f[C]
rclone\ \-\-include\ "*.txt"\ settier\ Hot\ remote:path/dir
\f[]
.fi
.PP
Or just provide remote directory and all files in directory will be
tiered
.IP
.nf
\f[C]
rclone\ settier\ tier\ remote:path/dir
\f[]
.fi
.IP
.nf
\f[C]
rclone\ settier\ tier\ remote:path\ [flags]
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
\ \ \-h,\ \-\-help\ \ \ help\ for\ settier
\f[]
.fi
2017-12-23 13:07:45 +00:00
.SS rclone touch
2017-01-02 15:30:34 +00:00
.PP
2017-12-23 13:07:45 +00:00
Create new file or change file modification time.
2017-01-02 15:30:34 +00:00
.SS Synopsis
.PP
2017-12-23 13:07:45 +00:00
Create new file or change file modification time.
2017-01-02 15:30:34 +00:00
.IP
.nf
\f[C]
2017-12-23 13:07:45 +00:00
rclone\ touch\ remote:path\ [flags]
2017-09-30 13:19:47 +00:00
\f[]
.fi
.SS Options
.IP
.nf
\f[C]
2017-12-23 13:07:45 +00:00
\ \ \-h,\ \-\-help\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ help\ for\ touch
\ \ \-C,\ \-\-no\-create\ \ \ \ \ \ \ \ \ \ Do\ not\ create\ the\ file\ if\ it\ does\ not\ exist.
\ \ \-t,\ \-\-timestamp\ string\ \ \ Change\ the\ modification\ times\ to\ the\ specified\ time\ instead\ of\ the\ current\ time\ of\ day.\ The\ argument\ is\ of\ the\ form\ \[aq]YYMMDD\[aq]\ (ex.\ 17.10.30)\ or\ \[aq]YYYY\-MM\-DDTHH:MM:SS\[aq]\ (ex.\ 2006\-01\-02T15:04:05)
2017-09-30 13:19:47 +00:00
\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.
2017-01-02 15:30:34 +00:00
\f[]
.fi
2016-07-13 11:26:22 +00:00
.SS Copying single files
.PP
rclone normally syncs or copies directories.
2017-07-22 17:16:46 +00:00
However, if the source remote points to a file, rclone will just copy
2016-07-13 11:26:22 +00:00
that file.
The destination remote must point to a directory \- rclone will give the
error
\f[C]Failed\ to\ create\ file\ system\ for\ "remote:file":\ is\ a\ file\ not\ a\ directory\f[]
if it isn\[aq]t.
.PP
For example, suppose you have a remote with a file in called
\f[C]test.jpg\f[], then you could copy just that file like this
.IP
.nf
\f[C]
rclone\ copy\ remote:test.jpg\ /tmp/download
\f[]
.fi
.PP
The file \f[C]test.jpg\f[] will be placed inside \f[C]/tmp/download\f[].
.PP
This is equivalent to specifying
.IP
.nf
\f[C]
2018-03-19 10:06:13 +00:00
rclone\ copy\ \-\-files\-from\ /tmp/files\ remote:\ /tmp/download
2016-07-13 11:26:22 +00:00
\f[]
.fi
.PP
Where \f[C]/tmp/files\f[] contains the single line
.IP
.nf
\f[C]
test.jpg
\f[]
.fi
.PP
2017-07-22 17:16:46 +00:00
It is recommended to use \f[C]copy\f[] when copying individual files,
not \f[C]sync\f[].
2016-07-13 11:26:22 +00:00
They have pretty much the same effect but \f[C]copy\f[] will use a lot
less memory.
2018-09-01 11:58:00 +00:00
.SS Syntax of remote paths
.PP
The syntax of the paths passed to the rclone command are as follows.
.SS /path/to/dir
.PP
This refers to the local file system.
.PP
On Windows only \f[C]\\\f[] may be used instead of \f[C]/\f[] in local
paths \f[B]only\f[], non local paths must use \f[C]/\f[].
.PP
These paths needn\[aq]t start with a leading \f[C]/\f[] \- if they
don\[aq]t then they will be relative to the current directory.
.SS remote:path/to/dir
.PP
This refers to a directory \f[C]path/to/dir\f[] on \f[C]remote:\f[] as
defined in the config file (configured with \f[C]rclone\ config\f[]).
.SS remote:/path/to/dir
.PP
On most backends this is refers to the same directory as
\f[C]remote:path/to/dir\f[] and that format should be preferred.
On a very small number of remotes (FTP, SFTP, Dropbox for business) this
will refer to a different directory.
On these, paths without a leading \f[C]/\f[] will refer to your "home"
directory and paths with a leading \f[C]/\f[] will refer to the root.
.SS :backend:path/to/dir
.PP
This is an advanced form for creating remotes on the fly.
\f[C]backend\f[] should be the name or prefix of a backend (the
\f[C]type\f[] in the config file) and all the configuration for the
backend should be provided on the command line (or in environment
variables).
.PP
Eg
.IP
.nf
\f[C]
rclone\ lsd\ \-\-http\-url\ https://pub.rclone.org\ :http:
\f[]
.fi
.PP
Which lists all the directories in \f[C]pub.rclone.org\f[].
2016-06-18 15:29:53 +00:00
.SS Quoting and the shell
.PP
When you are typing commands to your computer you are using something
called the command line shell.
This interprets various characters in an OS specific way.
.PP
Here are some gotchas which may help users unfamiliar with the shell
rules
.SS Linux / OSX
.PP
If your names have spaces or shell metacharacters (eg \f[C]*\f[],
\f[C]?\f[], \f[C]$\f[], \f[C]\[aq]\f[], \f[C]"\f[] etc) then you must
quote them.
Use single quotes \f[C]\[aq]\f[] by default.
.IP
.nf
\f[C]
rclone\ copy\ \[aq]Important\ files?\[aq]\ remote:backup
\f[]
.fi
.PP
If you want to send a \f[C]\[aq]\f[] you will need to use \f[C]"\f[], eg
.IP
.nf
\f[C]
rclone\ copy\ "O\[aq]Reilly\ Reviews"\ remote:backup
\f[]
.fi
.PP
The rules for quoting metacharacters are complicated and if you want the
full details you\[aq]ll have to consult the manual page for your shell.
.SS Windows
.PP
If your names have spaces in you need to put them in \f[C]"\f[], eg
.IP
.nf
\f[C]
rclone\ copy\ "E:\\folder\ name\\folder\ name\\folder\ name"\ remote:backup
\f[]
.fi
.PP
If you are using the root directory on its own then don\[aq]t quote it
(see #464 (https://github.com/ncw/rclone/issues/464) for why), eg
.IP
.nf
\f[C]
rclone\ copy\ E:\\\ remote:backup
\f[]
.fi
2017-07-22 17:16:46 +00:00
.SS Copying files or directories with \f[C]:\f[] in the names
.PP
rclone uses \f[C]:\f[] to mark a remote name.
This is, however, a valid filename component in non\-Windows OSes.
The remote name parser will only search for a \f[C]:\f[] up to the first
\f[C]/\f[] so if you need to act on a file or directory like this then
use the full path starting with a \f[C]/\f[], or use \f[C]\&./\f[] as a
current directory prefix.
.PP
So to sync a directory called \f[C]sync:me\f[] to a remote called
\f[C]remote:\f[] use
.IP
.nf
\f[C]
rclone\ sync\ ./sync:me\ remote:path
\f[]
.fi
.PP
or
.IP
.nf
\f[C]
rclone\ sync\ /full/path/to/sync:me\ remote:path
\f[]
.fi
.SS Server Side Copy
.PP
2017-03-18 11:16:43 +00:00
Most remotes (but not all \- see the
overview (/overview/#optional-features)) support server side copy.
.PP
This means if you want to copy one folder to another then rclone
won\[aq]t download all the files and re\-upload them; it will instruct
the server to copy them in place.
.PP
Eg
.IP
.nf
\f[C]
rclone\ copy\ s3:oldbucket\ s3:newbucket
\f[]
.fi
.PP
Will copy the contents of \f[C]oldbucket\f[] to \f[C]newbucket\f[]
without downloading and re\-uploading.
.PP
2017-03-18 11:16:43 +00:00
Remotes which don\[aq]t support server side copy \f[B]will\f[] download
and re\-upload in this case.
.PP
Server side copies are used with \f[C]sync\f[] and \f[C]copy\f[] and
will be identified in the log when using the \f[C]\-v\f[] flag.
2017-07-22 17:16:46 +00:00
The \f[C]move\f[] command may also use them if remote doesn\[aq]t
support server side move directly.
This is done by issuing a server side copy then a delete which is much
quicker than a download and re\-upload.
.PP
Server side copies will only be attempted if the remote names are the
same.
.PP
This can be used when scripting to make aged backups efficiently, eg
.IP
.nf
\f[C]
rclone\ sync\ remote:current\-backup\ remote:previous\-backup
rclone\ sync\ /path/to/files\ remote:current\-backup
\f[]
.fi
.SS Options
.PP
Rclone has a number of options to control its behaviour.
.PP
2019-02-09 10:42:57 +00:00
Options that take parameters can have the values passed in two ways,
\f[C]\-\-option=value\f[] or \f[C]\-\-option\ value\f[].
However boolean (true/false) options behave slightly differently to the
other options in that \f[C]\-\-boolean\f[] sets the option to
\f[C]true\f[] and the absence of the flag sets it to \f[C]false\f[].
It is also possible to specify \f[C]\-\-boolean=false\f[] or
\f[C]\-\-boolean=true\f[].
Note that \f[C]\-\-boolean\ false\f[] is not valid \- this is parsed as
\f[C]\-\-boolean\f[] and the \f[C]false\f[] is parsed as an extra
command line argument for rclone.
.PP
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 "300ms", "\-1.5h" or
"2h45m".
Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
.PP
Options which use SIZE use kByte by default.
2017-07-22 17:16:46 +00:00
However, a suffix of \f[C]b\f[] for bytes, \f[C]k\f[] for kBytes,
2018-04-28 10:46:27 +00:00
\f[C]M\f[] for MBytes, \f[C]G\f[] for GBytes, \f[C]T\f[] for TBytes and
\f[C]P\f[] for PBytes may be used.
2016-06-18 15:29:53 +00:00
These are the binary units, eg 1, 2**10, 2**20, 2**30 respectively.
2017-03-18 11:16:43 +00:00
.SS \-\-backup\-dir=DIR
.PP
When using \f[C]sync\f[], \f[C]copy\f[] or \f[C]move\f[] any files which
would have been overwritten or deleted are moved in their original
hierarchy into this directory.
.PP
If \f[C]\-\-suffix\f[] is set, then the moved files will have the suffix
added to them.
If there is a file with the same path (after the suffix has been added)
in DIR, then it will be overwritten.
.PP
The remote in use must support server side move or copy and you must use
the same remote as the destination of the sync.
The backup directory must not overlap the destination directory.
.PP
For example
.IP
.nf
\f[C]
rclone\ sync\ /path/to/local\ remote:current\ \-\-backup\-dir\ remote:old
\f[]
.fi
.PP
will sync \f[C]/path/to/local\f[] to \f[C]remote:current\f[], but for
any files which would have been updated or deleted will be stored in
\f[C]remote:old\f[].
.PP
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.
2017-09-30 13:19:47 +00:00
.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.
2017-12-23 13:07:45 +00:00
If the host name doesn\[aq]t resolve or resolves to more than one IP
2017-09-30 13:19:47 +00:00
address it will give an error.
2017-03-18 11:16:43 +00:00
.SS \-\-bwlimit=BANDWIDTH_SPEC
.PP
2017-03-18 11:16:43 +00:00
This option controls the bandwidth limit.
Limits can be specified in two ways: As a single limit, or as a
timetable.
.PP
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 \f[C]0\f[] which means to not limit bandwidth.
.PP
2017-07-22 17:16:46 +00:00
For example, to limit bandwidth usage to 10 MBytes/s use
\f[C]\-\-bwlimit\ 10M\f[]
.PP
2017-03-18 11:16:43 +00:00
It is also possible to specify a "timetable" of limits, which will cause
certain limits to be applied at certain times.
2018-09-01 11:58:00 +00:00
To specify a timetable, format your entries as "WEEKDAY\-HH:MM,BANDWIDTH
WEEKDAY\-HH:MM,BANDWIDTH..." where: WEEKDAY is optional element.
It could be writen as whole world or only using 3 first characters.
HH:MM is an hour from 00:00 to 23:59.
2017-03-18 11:16:43 +00:00
.PP
An example of a typical timetable to avoid link saturation during
daytime working hours could be:
.PP
\f[C]\-\-bwlimit\ "08:00,512\ 12:00,10M\ 13:00,512\ 18:00,30M\ 23:00,off"\f[]
.PP
2018-09-01 11:58:00 +00:00
In this example, the transfer bandwidth will be every day set to
512kBytes/sec at 8am.
2017-03-18 11:16:43 +00:00
At noon, it will raise to 10Mbytes/s, and drop back to 512kBytes/sec at
1pm.
At 6pm, the bandwidth limit will be set to 30MBytes/s, and at 11pm it
will be completely disabled (full speed).
Anything between 11pm and 8am will remain unlimited.
.PP
2018-09-01 11:58:00 +00:00
An example of timetable with WEEKDAY could be:
.PP
\f[C]\-\-bwlimit\ "Mon\-00:00,512\ Fri\-23:59,10M\ Sat\-10:00,1M\ Sun\-20:00,off"\f[]
.PP
It mean that, the transfer bandwidh will be set to 512kBytes/sec on
Monday.
It will raise to 10Mbytes/s before the end of Friday.
At 10:00 on Sunday it will be set to 1Mbyte/s.
From 20:00 at Sunday will be unlimited.
.PP
Timeslots without weekday are extended to whole week.
So this one example:
.PP
\f[C]\-\-bwlimit\ "Mon\-00:00,512\ 12:00,1M\ Sun\-20:00,off"\f[]
.PP
Is equal to this:
.PP
\f[C]\-\-bwlimit\ "Mon\-00:00,512Mon\-12:00,1M\ Tue\-12:00,1M\ Wed\-12:00,1M\ Thu\-12:00,1M\ Fri\-12:00,1M\ Sat\-12:00,1M\ Sun\-12:00,1M\ Sun\-20:00,off"\f[]
.PP
2017-03-18 11:16:43 +00:00
Bandwidth limits only apply to the data transfer.
They don\[aq]t apply to the bandwidth of the directory listings etc.
2016-11-06 10:17:52 +00:00
.PP
2017-07-22 17:16:46 +00:00
Note that the units are Bytes/s, not Bits/s.
2016-11-06 10:17:52 +00:00
Typically connections are measured in Bits/s \- to convert divide by 8.
2017-07-22 17:16:46 +00:00
For example, let\[aq]s say you have a 10 Mbit/s connection and you wish
2016-11-06 10:17:52 +00:00
rclone to use half of it \- 5 Mbit/s.
This is 5/8 = 0.625MByte/s so you would use a
\f[C]\-\-bwlimit\ 0.625M\f[] parameter for rclone.
2017-07-22 17:16:46 +00:00
.PP
On Unix systems (Linux, MacOS, \&...) the bandwidth limiter can be
toggled by sending a \f[C]SIGUSR2\f[] signal to rclone.
This allows to remove the limitations of a long running rclone transfer
and to restore it back to the value specified with \f[C]\-\-bwlimit\f[]
quickly when needed.
Assuming there is only one rclone instance running, you can toggle the
limiter like this:
.IP
.nf
\f[C]
kill\ \-SIGUSR2\ $(pidof\ rclone)
\f[]
.fi
2018-03-19 10:06:13 +00:00
.PP
If you configure rclone with a remote control (/rc) then you can use
change the bwlimit dynamically:
.IP
.nf
\f[C]
rclone\ rc\ core/bwlimit\ rate=1M
\f[]
.fi
2017-03-18 11:16:43 +00:00
.SS \-\-buffer\-size=SIZE
.PP
Use this sized buffer to speed up file transfers.
Each \f[C]\-\-transfer\f[] will use this much memory for buffering.
.PP
2018-09-01 11:58:00 +00:00
When using \f[C]mount\f[] or \f[C]cmount\f[] each open file descriptor
will use this much memory for buffering.
See the mount (/commands/rclone_mount/#file-buffering) documentation for
more details.
.PP
2017-07-22 17:16:46 +00:00
Set to 0 to disable the buffering for the minimum memory usage.
2019-02-09 10:42:57 +00:00
.PP
Note that the memory allocation of the buffers is influenced by the
\-\-use\-mmap (#use-mmap) flag.
.SS \-\-checkers=N
.PP
The number of checkers to run in parallel.
Checkers do the equality checking of files during a sync.
2017-07-22 17:16:46 +00:00
For some storage systems (eg S3, Swift, Dropbox) this can take a
significant amount of time so they are run in parallel.
.PP
The default is to run 8 checkers in parallel.
.SS \-c, \-\-checksum
.PP
Normally rclone will look at modification time and size of files to see
if they are equal.
If you set this flag then rclone will check the file hash and size to
determine if files are equal.
.PP
This is useful when the remote doesn\[aq]t support setting modified time
and a more accurate sync is desired than just checking the file size.
.PP
This is very useful when transferring between remotes which store the
same hash type on the object, eg Drive and Swift.
For details of which remotes support which hash type see the table in
the overview section (https://rclone.org/overview/).
.PP
Eg \f[C]rclone\ \-\-checksum\ sync\ s3:/bucket\ swift:/bucket\f[] would
run much quicker than without the \f[C]\-\-checksum\f[] flag.
.PP
When using this flag, rclone won\[aq]t update mtimes of remote files if
they are incorrect as it would normally.
.SS \-\-config=CONFIG_FILE
.PP
Specify the location of the rclone config file.
2017-03-18 11:16:43 +00:00
.PP
Normally the config file is in your home directory as a file called
\f[C]\&.config/rclone/rclone.conf\f[] (or \f[C]\&.rclone.conf\f[] if
created with an older version).
If \f[C]$XDG_CONFIG_HOME\f[] is set it will be at
\f[C]$XDG_CONFIG_HOME/rclone/rclone.conf\f[]
.PP
2019-02-09 10:42:57 +00:00
If you run \f[C]rclone\ config\ file\f[] you will see where the default
location is for you.
2017-03-18 11:16:43 +00:00
.PP
Use this flag to override the config location, eg
\f[C]rclone\ \-\-config=".myconfig"\ .config\f[].
.SS \-\-contimeout=TIME
.PP
Set the connection timeout.
This should be in go time format which looks like \f[C]5s\f[] for 5
seconds, \f[C]10m\f[] for 10 minutes, or \f[C]3h30m\f[].
.PP
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 \f[C]1m\f[] by default.
2016-04-18 17:30:29 +00:00
.SS \-\-dedupe\-mode MODE
.PP
Mode to run dedupe command in.
One of \f[C]interactive\f[], \f[C]skip\f[], \f[C]first\f[],
\f[C]newest\f[], \f[C]oldest\f[], \f[C]rename\f[].
The default is \f[C]interactive\f[].
See the dedupe command for more information as to what these options
mean.
2017-09-30 13:19:47 +00:00
.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.
Use this to see what rclone would do without actually doing it.
Useful when setting up the \f[C]sync\f[] command which deletes files in
the destination.
2017-03-18 11:16:43 +00:00
.SS \-\-ignore\-checksum
.PP
Normally rclone will check that the checksums of transferred files
match, and give an error "corrupted on transfer" if they don\[aq]t.
.PP
You can use this option to skip that check.
You should only use it if you have had the "corrupted on transfer" error
message and you are sure you might want to transfer potentially
corrupted data.
.SS \-\-ignore\-existing
.PP
Using this option will make rclone unconditionally skip all files that
exist on the destination, no matter the content of these files.
.PP
While this isn\[aq]t a generally recommended option, it can be useful in
cases where your files change due to encryption.
However, it cannot correct partial transfers in case a transfer was
interrupted.
2016-06-18 15:29:53 +00:00
.SS \-\-ignore\-size
.PP
Normally rclone will look at modification time and size of files to see
if they are equal.
If you set this flag then rclone will check only the modification time.
If \f[C]\-\-checksum\f[] is set then it only checks the checksum.
.PP
It will also cause rclone to skip verifying the sizes are the same after
transfer.
.PP
2017-07-22 17:16:46 +00:00
This can be useful for transferring files to and from OneDrive which
2016-06-18 15:29:53 +00:00
occasionally misreports the size of image files (see
#399 (https://github.com/ncw/rclone/issues/399) for more info).
2016-04-18 17:30:29 +00:00
.SS \-I, \-\-ignore\-times
.PP
Using this option will cause rclone to unconditionally upload all files
regardless of the state of files on the destination.
.PP
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[]).
2017-09-30 13:19:47 +00:00
.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.
2017-12-23 13:07:45 +00:00
.SS \-\-leave\-root
.PP
During rmdirs it will not remove root directory, even if it\[aq]s empty.
.SS \-\-log\-file=FILE
.PP
Log all of rclone\[aq]s output to FILE.
This is not active by default.
This can be useful for tracking down problems with syncs in combination
with the \f[C]\-v\f[] flag.
2017-07-22 17:16:46 +00:00
See the Logging section (#logging) for more info.
2018-04-28 10:46:27 +00:00
.PP
Note that if you are using the \f[C]logrotate\f[] program to manage
rclone\[aq]s logs, then you should use the \f[C]copytruncate\f[] option
as rclone doesn\[aq]t have a signal to rotate logs.
2018-10-15 10:03:08 +00:00
.SS \-\-log\-format LIST
.PP
Comma separated list of log format options.
\f[C]date\f[], \f[C]time\f[], \f[C]microseconds\f[], \f[C]longfile\f[],
\f[C]shortfile\f[], \f[C]UTC\f[].
The default is "\f[C]date\f[],\f[C]time\f[]".
2017-03-18 11:16:43 +00:00
.SS \-\-log\-level LEVEL
.PP
This sets the log level for rclone.
2017-12-23 13:07:45 +00:00
The default log level is \f[C]NOTICE\f[].
2017-03-18 11:16:43 +00:00
.PP
\f[C]DEBUG\f[] is equivalent to \f[C]\-vv\f[].
It outputs lots of debug info \- useful for bug reports and really
finding out what rclone is doing.
.PP
\f[C]INFO\f[] is equivalent to \f[C]\-v\f[].
It outputs information about each transfer and prints stats once a
minute by default.
.PP
\f[C]NOTICE\f[] is the default log level if no logging flags are
supplied.
It outputs very little when things are working normally.
It outputs warnings and significant events.
.PP
\f[C]ERROR\f[] is equivalent to \f[C]\-q\f[].
2017-07-22 17:16:46 +00:00
It only outputs error messages.
2016-03-01 09:00:01 +00:00
.SS \-\-low\-level\-retries NUMBER
.PP
This controls the number of low level retries rclone does.
.PP
A low level retry is used to retry a failing operation \- typically one
HTTP request.
This might be uploading a chunk of a big file for example.
You will see low level retries in the log with the \f[C]\-v\f[] flag.
.PP
This shouldn\[aq]t need to be changed from the default in normal
2017-07-22 17:16:46 +00:00
operations.
However, if you get a lot of low level retries you may wish to reduce
the value so rclone moves on to a high level retry (see the
2016-03-01 09:00:01 +00:00
\f[C]\-\-retries\f[] flag) quicker.
.PP
Disable low level retries with \f[C]\-\-low\-level\-retries\ 1\f[].
2018-09-01 11:58:00 +00:00
.SS \-\-max\-backlog=N
.PP
This is the maximum allowable backlog of files in a sync/copy/move
queued for being checked or transferred.
.PP
This can be set arbitrarily large.
It will only use memory when the queue is in use.
Note that it will use in the order of N kB of memory when the backlog is
in use.
.PP
Setting this large allows rclone to calculate how many files are pending
more accurately and give a more accurate estimated finish time.
.PP
Setting this small will make rclone more synchronous to the listings of
the remote which may be desirable.
2018-03-19 10:06:13 +00:00
.SS \-\-max\-delete=N
.PP
This tells rclone not to delete more than N files.
If that limit is exceeded then a fatal error will be generated and
rclone will stop the operation in progress.
2016-06-18 15:29:53 +00:00
.SS \-\-max\-depth=N
.PP
This modifies the recursion depth for all the commands except purge.
.PP
So if you do \f[C]rclone\ \-\-max\-depth\ 1\ ls\ remote:path\f[] you
will see only the files in the top level directory.
Using \f[C]\-\-max\-depth\ 2\f[] means you will see all the files in
first two directory levels and so on.
.PP
For historical reasons the \f[C]lsd\f[] command defaults to using a
\f[C]\-\-max\-depth\f[] of 1 \- you can override this with the command
line flag.
.PP
You can use this command to disable recursion (with
\f[C]\-\-max\-depth\ 1\f[]).
.PP
Note that if you use this with \f[C]sync\f[] and
\f[C]\-\-delete\-excluded\f[] the files not recursed through are
considered excluded and will be deleted on the destination.
Test first with \f[C]\-\-dry\-run\f[] if you are not sure what will
happen.
2018-06-16 17:21:09 +00:00
.SS \-\-max\-transfer=SIZE
.PP
Rclone will stop transferring when it has reached the size specified.
Defaults to off.
.PP
When the limit is reached all transfers will stop immediately.
.PP
Rclone will exit with exit code 8 if the transfer limit is reached.
.SS \-\-modify\-window=TIME
.PP
When checking whether a file has been modified, this is the maximum
allowed time difference that a file can have and still be considered
equivalent.
.PP
The default is \f[C]1ns\f[] unless this is overridden by a remote.
For example OS X only stores modification times to the nearest second so
if you are reading and writing to an OS X filing system this will be
\f[C]1s\f[] by default.
.PP
This command line flag allows you to override that computed default.
2016-03-01 09:00:01 +00:00
.SS \-\-no\-gzip\-encoding
.PP
Don\[aq]t set \f[C]Accept\-Encoding:\ gzip\f[].
This means that rclone won\[aq]t ask the server for compressed files
automatically.
Useful if you\[aq]ve set the server to return files with
\f[C]Content\-Encoding:\ gzip\f[] but you uploaded compressed files.
.PP
There is no need to set this in normal operation, and doing so will
decrease the network transfer efficiency of rclone.
2016-07-13 11:26:22 +00:00
.SS \-\-no\-update\-modtime
.PP
When using this flag, rclone won\[aq]t update modification times of
remote files if they are incorrect as it would normally.
.PP
This can be used if the remote is being synced with another tool also
(eg the Google Drive client).
2018-10-15 10:03:08 +00:00
.SS \-P, \-\-progress
2018-09-01 11:58:00 +00:00
.PP
This flag makes rclone update the stats in a static block in the
terminal providing a realtime overview of the transfer.
.PP
Any log messages will scroll above the static block.
Log messages will push the static block down to the bottom of the
terminal where it will stay.
.PP
Normally this is updated every 500mS but this period can be overridden
with the \f[C]\-\-stats\f[] flag.
.PP
This can be used with the \f[C]\-\-stats\-one\-line\f[] flag for a
simpler display.
2018-10-15 10:03:08 +00:00
.PP
Note: On Windows untilthis
bug (https://github.com/Azure/go-ansiterm/issues/26) is fixed all
non\-ASCII characters will be replaced with \f[C]\&.\f[] when
\f[C]\-\-progress\f[] is in use.
.SS \-q, \-\-quiet
.PP
Normally rclone outputs stats and a completion message.
If you set this flag it will make as little output as possible.
.SS \-\-retries int
.PP
Retry the entire sync if it fails this many times it fails (default 3).
.PP
2017-07-22 17:16:46 +00:00
Some remotes can be unreliable and a few retries help pick up the files
which didn\[aq]t get transferred because of errors.
.PP
Disable retries with \f[C]\-\-retries\ 1\f[].
2018-06-16 17:21:09 +00:00
.SS \-\-retries\-sleep=TIME
.PP
This sets the interval between each retry specified by
\f[C]\-\-retries\f[]
.PP
The default is 0.
Use 0 to disable.
.SS \-\-size\-only
.PP
Normally rclone will look at modification time and size of files to see
if they are equal.
If you set this flag then rclone will check only the size.
.PP
2017-07-22 17:16:46 +00:00
This can be useful transferring files from Dropbox which have been
modified by the desktop sync client which doesn\[aq]t set checksums of
modification times in the same way as rclone.
.SS \-\-stats=TIME
.PP
2017-01-02 15:30:34 +00:00
Commands which transfer data (\f[C]sync\f[], \f[C]copy\f[],
\f[C]copyto\f[], \f[C]move\f[], \f[C]moveto\f[]) will print data
transfer stats at regular intervals to show their progress.
.PP
This sets the interval.
.PP
The default is \f[C]1m\f[].
Use 0 to disable.
2017-01-02 15:30:34 +00:00
.PP
2017-07-22 17:16:46 +00:00
If you set the stats interval then all commands can show stats.
2017-01-02 15:30:34 +00:00
This can be useful when running other commands, \f[C]check\f[] or
\f[C]mount\f[] for example.
2017-07-22 17:16:46 +00:00
.PP
Stats are logged at \f[C]INFO\f[] level by default which means they
won\[aq]t show at default log level \f[C]NOTICE\f[].
Use \f[C]\-\-stats\-log\-level\ NOTICE\f[] or \f[C]\-v\f[] to make them
show.
See the Logging section (#logging) for more info on log levels.
2018-06-16 17:21:09 +00:00
.PP
Note that on macOS you can send a SIGINFO (which is normally ctrl\-T in
the terminal) to make the stats print immediately.
2018-03-19 10:06:13 +00:00
.SS \-\-stats\-file\-name\-length integer
.PP
By default, the \f[C]\-\-stats\f[] output will truncate file names and
paths longer than 40 characters.
This is equivalent to providing
\f[C]\-\-stats\-file\-name\-length\ 40\f[].
Use \f[C]\-\-stats\-file\-name\-length\ 0\f[] to disable any truncation
of file names printed by stats.
2017-07-22 17:16:46 +00:00
.SS \-\-stats\-log\-level string
.PP
Log level to show \f[C]\-\-stats\f[] output at.
This can be \f[C]DEBUG\f[], \f[C]INFO\f[], \f[C]NOTICE\f[], or
\f[C]ERROR\f[].
The default is \f[C]INFO\f[].
This means at the default level of logging which is \f[C]NOTICE\f[] the
stats won\[aq]t show \- if you want them to then use
2018-03-19 10:06:13 +00:00
\f[C]\-\-stats\-log\-level\ NOTICE\f[].
2017-07-22 17:16:46 +00:00
See the Logging section (#logging) for more info on log levels.
2018-09-01 11:58:00 +00:00
.SS \-\-stats\-one\-line
.PP
When this is specified, rclone condenses the stats into a single line
showing the most important stats only.
2017-01-02 15:30:34 +00:00
.SS \-\-stats\-unit=bits|bytes
.PP
2017-07-22 17:16:46 +00:00
By default, data transfer rates will be printed in bytes/second.
2017-01-02 15:30:34 +00:00
.PP
This option allows the data rate to be printed in bits/second.
.PP
Data transfer volume will still be reported in bytes.
.PP
The rate is reported as a binary unit, not SI unit.
So 1 Mbit/s equals 1,048,576 bits/s and not 1,000,000 bits/s.
.PP
The default is \f[C]bytes\f[].
2017-03-18 11:16:43 +00:00
.SS \-\-suffix=SUFFIX
.PP
This is for use with \f[C]\-\-backup\-dir\f[] only.
If this isn\[aq]t set then \f[C]\-\-backup\-dir\f[] will move files with
their original name.
If it is set then the files will have SUFFIX added on to them.
.PP
See \f[C]\-\-backup\-dir\f[] for more info.
.SS \-\-syslog
.PP
On capable OSes (not Windows or Plan9) send all log output to syslog.
.PP
2017-07-22 17:16:46 +00:00
This can be useful for running rclone in a script or
2017-03-18 11:16:43 +00:00
\f[C]rclone\ mount\f[].
.SS \-\-syslog\-facility string
.PP
If using \f[C]\-\-syslog\f[] this sets the syslog facility (eg
\f[C]KERN\f[], \f[C]USER\f[]).
See \f[C]man\ syslog\f[] for a list of possible facilities.
The default facility is \f[C]DAEMON\f[].
2017-07-22 17:16:46 +00:00
.SS \-\-tpslimit float
.PP
Limit HTTP transactions per second to this.
Default is 0 which is used to mean unlimited transactions per second.
.PP
For example to limit rclone to 10 HTTP transactions per second use
\f[C]\-\-tpslimit\ 10\f[], or to 1 transaction every 2 seconds use
\f[C]\-\-tpslimit\ 0.5\f[].
.PP
Use this when the number of transactions per second from rclone is
causing a problem with the cloud storage provider (eg getting you banned
or rate limited).
.PP
This can be very useful for \f[C]rclone\ mount\f[] to control the
behaviour of applications using it.
.PP
See also \f[C]\-\-tpslimit\-burst\f[].
.SS \-\-tpslimit\-burst int
.PP
Max burst of transactions for \f[C]\-\-tpslimit\f[].
(default 1)
.PP
Normally \f[C]\-\-tpslimit\f[] will do exactly the number of transaction
per second specified.
However if you supply \f[C]\-\-tps\-burst\f[] then rclone can save up
some transactions from when it was idle giving a burst of up to the
parameter supplied.
.PP
For example if you provide \f[C]\-\-tpslimit\-burst\ 10\f[] then if
rclone has been idle for more than 10*\f[C]\-\-tpslimit\f[] then it can
do 10 transactions very quickly before they are limited again.
.PP
This may be used to increase performance of \f[C]\-\-tpslimit\f[]
without changing the long term average number of transactions per
second.
2017-03-18 11:16:43 +00:00
.SS \-\-track\-renames
.PP
2017-07-22 17:16:46 +00:00
By default, rclone doesn\[aq]t keep track of renamed files, so if you
2017-03-18 11:16:43 +00:00
rename a file locally then sync it to a remote, rclone will delete the
old file on the remote and upload a new copy.
.PP
If you use this flag, and the remote supports server side copy or server
side move, and the source and destination have a compatible hash, then
2018-09-01 11:58:00 +00:00
this will track renames during \f[C]sync\f[] operations and perform
renaming server\-side.
2017-03-18 11:16:43 +00:00
.PP
Files will be matched by size and hash \- if both match then a rename
will be considered.
.PP
If the destination does not support server\-side copy or move, rclone
will fall back to the default behaviour and log an error level message
to the console.
2018-10-15 10:03:08 +00:00
Note: Encrypted destinations are not supported by
\f[C]\-\-track\-renames\f[].
2017-03-18 11:16:43 +00:00
.PP
2019-02-09 10:42:57 +00:00
Note that \f[C]\-\-track\-renames\f[] is incompatible with
\f[C]\-\-no\-traverse\f[] and that it uses extra memory to keep track of
2017-03-18 11:16:43 +00:00
all the rename candidates.
.PP
Note also that \f[C]\-\-track\-renames\f[] is incompatible with
\f[C]\-\-delete\-before\f[] and will select \f[C]\-\-delete\-after\f[]
instead of \f[C]\-\-delete\-during\f[].
.SS \-\-delete\-(before,during,after)
.PP
This option allows you to specify when files on your destination are
deleted when you sync folders.
.PP
Specifying the value \f[C]\-\-delete\-before\f[] will delete all files
present on the destination, but not on the source \f[I]before\f[]
starting the transfer of any new or updated files.
2017-03-18 11:16:43 +00:00
This uses two passes through the file systems, one for the deletions and
one for the copies.
.PP
Specifying \f[C]\-\-delete\-during\f[] will delete files while checking
and uploading files.
This is the fastest option and uses the least memory.
.PP
Specifying \f[C]\-\-delete\-after\f[] (the default value) will delay
deletion of files until all new/updated files have been successfully
transferred.
2017-03-18 11:16:43 +00:00
The files to be deleted are collected in the copy pass then deleted
after the copy pass has completed successfully.
2017-03-18 11:16:43 +00:00
The files to be deleted are held in memory so this mode may use more
memory.
This is the safest mode as it will only delete files if there have been
no errors subsequent to that.
If there have been errors before the deletions start then you will get
the message \f[C]not\ deleting\ files\ as\ there\ were\ IO\ errors\f[].
.SS \-\-fast\-list
.PP
When doing anything which involves a directory listing (eg
\f[C]sync\f[], \f[C]copy\f[], \f[C]ls\f[] \- in fact nearly every
command), rclone normally lists a directory and processes it before
using more directory lists to process any subdirectories.
This can be parallelised and works very quickly using the least amount
of memory.
.PP
2017-07-22 17:16:46 +00:00
However, some remotes have a way of listing all files beneath a
directory in one (or a small number) of transactions.
These tend to be the bucket based remotes (eg S3, B2, GCS, Swift,
Hubic).
.PP
If you use the \f[C]\-\-fast\-list\f[] flag then rclone will use this
method for listing directories.
This will have the following consequences for the listing:
.IP \[bu] 2
It \f[B]will\f[] use fewer transactions (important if you pay for them)
.IP \[bu] 2
It \f[B]will\f[] use more memory.
Rclone has to load the whole listing into memory.
.IP \[bu] 2
It \f[I]may\f[] be faster because it uses fewer transactions
.IP \[bu] 2
It \f[I]may\f[] be slower because it can\[aq]t be parallelized
.PP
rclone should always give identical results with and without
\f[C]\-\-fast\-list\f[].
.PP
If you pay for transactions and can fit your entire sync listing into
memory then \f[C]\-\-fast\-list\f[] is recommended.
If you have a very big sync to do then don\[aq]t use
\f[C]\-\-fast\-list\f[] otherwise you will run out of memory.
.PP
If you use \f[C]\-\-fast\-list\f[] on a remote which doesn\[aq]t support
it, then rclone will just ignore it.
.SS \-\-timeout=TIME
.PP
This sets the IO idle timeout.
If a transfer has started but then becomes idle for this long it is
considered broken and disconnected.
.PP
The default is \f[C]5m\f[].
Set to 0 to disable.
.SS \-\-transfers=N
.PP
The number of file transfers to run in parallel.
It can sometimes be useful to set this to a smaller number if the remote
is giving a lot of timeouts or bigger if you have lots of bandwidth and
a fast remote.
.PP
The default is to run 4 file transfers in parallel.
2016-03-01 09:00:01 +00:00
.SS \-u, \-\-update
.PP
This forces rclone to skip any files which exist on the destination and
have a modified time that is newer than the source file.
.PP
If an existing destination file has a modification time equal (within
the computed modify window precision) to the source file\[aq]s, it will
be updated if the sizes are different.
.PP
On remotes which don\[aq]t support mod time directly the time checked
will be the uploaded time.
This means that if uploading to one of these remotes, rclone will skip
2016-03-01 09:00:01 +00:00
any files which exist on the destination and have an uploaded time that
is newer than the modification time of the source file.
.PP
This can be useful when transferring to a remote which doesn\[aq]t
support mod times directly as it is more accurate than a
\f[C]\-\-size\-only\f[] check and faster than using
\f[C]\-\-checksum\f[].
2019-02-09 10:42:57 +00:00
.SS \-\-use\-mmap
.PP
If this flag is set then rclone will use anonymous memory allocated by
mmap on Unix based platforms and VirtualAlloc on Windows for its
transfer buffers (size controlled by \f[C]\-\-buffer\-size\f[]).
Memory allocated like this does not go on the Go heap and can be
returned to the OS immediately when it is finished with.
.PP
If this flag is not set then rclone will allocate and free the buffers
using the Go memory allocator which may use more memory as memory pages
are returned less aggressively to the OS.
.PP
It is possible this does not work well on all platforms so it is
disabled by default; in the future it may be enabled by default.
2018-04-28 10:46:27 +00:00
.SS \-\-use\-server\-modtime
.PP
Some object\-store backends (e.g, Swift, S3) do not preserve file
modification times (modtime).
On these backends, rclone stores the original modtime as additional
metadata on the object.
By default it will make an API call to retrieve the metadata when the
modtime is needed by an operation.
.PP
Use this flag to disable the extra API call and rely instead on the
server\[aq]s modified time.
In cases such as a local to remote sync, knowing the local file is newer
than the time it was last uploaded to the remote is sufficient.
In those cases, this flag can speed up the process and reduce the number
of API calls necessary.
2017-03-18 11:16:43 +00:00
.SS \-v, \-vv, \-\-verbose
.PP
2017-03-18 11:16:43 +00:00
With \f[C]\-v\f[] rclone will tell you about each file that is
transferred and a small number of significant events.
.PP
2017-03-18 11:16:43 +00:00
With \f[C]\-vv\f[] rclone will become very verbose telling you about
every file it considers and transfers.
Please send bug reports with a log with this setting.
.SS \-V, \-\-version
.PP
Prints the version number
2016-03-01 09:00:01 +00:00
.SS Configuration Encryption
.PP
Your configuration file contains information for logging in to your
cloud services.
This means that you should keep your \f[C]\&.rclone.conf\f[] file in a
secure location.
.PP
If you are in an environment where that isn\[aq]t possible, you can add
a password to your configuration.
This means that you will have to enter the password every time you start
rclone.
.PP
To add a password to your rclone configuration, execute
\f[C]rclone\ config\f[].
.IP
.nf
\f[C]
>rclone\ config
Current\ remotes:
e)\ Edit\ existing\ remote
n)\ New\ remote
d)\ Delete\ remote
s)\ Set\ configuration\ password
q)\ Quit\ config
e/n/d/s/q>
\f[]
.fi
.PP
Go into \f[C]s\f[], Set configuration password:
.IP
.nf
\f[C]
e/n/d/s/q>\ s
Your\ configuration\ is\ not\ encrypted.
If\ you\ add\ a\ password,\ you\ will\ protect\ your\ login\ information\ to\ cloud\ services.
a)\ Add\ Password
q)\ Quit\ to\ main\ menu
a/q>\ a
Enter\ NEW\ configuration\ password:
2016-06-18 15:29:53 +00:00
password:
2016-03-01 09:00:01 +00:00
Confirm\ NEW\ password:
2016-06-18 15:29:53 +00:00
password:
2016-03-01 09:00:01 +00:00
Password\ set
Your\ configuration\ is\ encrypted.
c)\ Change\ Password
u)\ Unencrypt\ configuration
q)\ Quit\ to\ main\ menu
c/u/q>
\f[]
.fi
.PP
Your configuration is now encrypted, and every time you start rclone you
will now be asked for the password.
2017-07-22 17:16:46 +00:00
In the same menu, you can change the password or completely remove
2016-03-01 09:00:01 +00:00
encryption from your configuration.
.PP
There is no way to recover the configuration if you lose your password.
.PP
rclone uses nacl
secretbox (https://godoc.org/golang.org/x/crypto/nacl/secretbox) which
2016-06-18 15:29:53 +00:00
in turn uses XSalsa20 and Poly1305 to encrypt and authenticate your
2016-03-01 09:00:01 +00:00
configuration with secret\-key cryptography.
The password is SHA\-256 hashed, which produces the key for secretbox.
The hashed password is not stored.
.PP
While this provides very good security, we do not recommend storing your
2016-06-18 15:29:53 +00:00
encrypted rclone configuration in public if it contains sensitive
2016-03-01 09:00:01 +00:00
information, maybe except if you use a very strong password.
.PP
If it is safe in your environment, you can set the
\f[C]RCLONE_CONFIG_PASS\f[] environment variable to contain your
password, in which case it will be used for decrypting the
configuration.
.PP
2017-01-02 15:30:34 +00:00
You can set this for a session from a script.
For unix like systems save this to a file called
\f[C]set\-rclone\-password\f[]:
.IP
.nf
\f[C]
#!/bin/echo\ Source\ this\ file\ don\[aq]t\ run\ it
read\ \-s\ RCLONE_CONFIG_PASS
export\ RCLONE_CONFIG_PASS
\f[]
.fi
.PP
Then source the file when you want to use it.
From the shell you would do \f[C]source\ set\-rclone\-password\f[].
It will then ask you for the password and set it in the environment
2017-01-02 15:30:34 +00:00
variable.
.PP
2016-03-01 09:00:01 +00:00
If you are running rclone inside a script, you might want to disable
password prompts.
To do that, pass the parameter \f[C]\-\-ask\-password=false\f[] to
rclone.
2016-06-18 15:29:53 +00:00
This will make rclone fail instead of asking for a password if
2016-03-01 09:00:01 +00:00
\f[C]RCLONE_CONFIG_PASS\f[] doesn\[aq]t contain a valid password.
.SS Developer options
.PP
These options are useful when developing or debugging rclone.
There are also some more remote specific options which aren\[aq]t
documented here which are used for testing.
These start with remote name eg \f[C]\-\-drive\-test\-option\f[] \- see
the docs for the remote in question.
.SS \-\-cpuprofile=FILE
.PP
Write CPU profile to file.
This can be analysed with \f[C]go\ tool\ pprof\f[].
2017-12-23 13:07:45 +00:00
.SS \-\-dump flag,flag,flag
2016-11-06 10:17:52 +00:00
.PP
2017-12-23 13:07:45 +00:00
The \f[C]\-\-dump\f[] flag takes a comma separated list of flags to dump
info about.
These are:
.SS \-\-dump headers
.PP
Dump HTTP headers with \f[C]Authorization:\f[] lines removed.
May still contain sensitive info.
2016-11-06 10:17:52 +00:00
Can be very verbose.
Useful for debugging only.
2017-12-23 13:07:45 +00:00
.PP
Use \f[C]\-\-dump\ auth\f[] if you do want the \f[C]Authorization:\f[]
headers.
.SS \-\-dump bodies
.PP
Dump HTTP headers and bodies \- may contain sensitive info.
Can be very verbose.
Useful for debugging only.
2017-09-30 13:19:47 +00:00
.PP
Note that the bodies are buffered in memory so don\[aq]t use this for
enormous files.
2017-12-23 13:07:45 +00:00
.SS \-\-dump requests
.PP
2017-12-23 13:07:45 +00:00
Like \f[C]\-\-dump\ bodies\f[] but dumps the request bodies and the
response headers.
Useful for debugging download problems.
.SS \-\-dump responses
.PP
2017-12-23 13:07:45 +00:00
Like \f[C]\-\-dump\ bodies\f[] but dumps the response bodies and the
request headers.
Useful for debugging upload problems.
.SS \-\-dump auth
.PP
Dump HTTP headers \- will contain sensitive info such as
\f[C]Authorization:\f[] headers \- use \f[C]\-\-dump\ headers\f[] to
dump without \f[C]Authorization:\f[] headers.
Can be very verbose.
Useful for debugging only.
2017-12-23 13:07:45 +00:00
.SS \-\-dump filters
2016-11-06 10:17:52 +00:00
.PP
2017-12-23 13:07:45 +00:00
Dump the filters to the output.
Useful to see exactly what include and exclude options are filtering on.
2018-04-28 10:46:27 +00:00
.SS \-\-dump goroutines
.PP
This dumps a list of the running go\-routines at the end of the command
to standard output.
.SS \-\-dump openfiles
.PP
This dumps a list of the open files at the end of the command.
It uses the \f[C]lsof\f[] command to do that so you\[aq]ll need that
installed to use it.
.SS \-\-memprofile=FILE
.PP
Write memory profile to file.
This can be analysed with \f[C]go\ tool\ pprof\f[].
.SS \-\-no\-check\-certificate=true/false
.PP
\f[C]\-\-no\-check\-certificate\f[] controls whether a client verifies
the server\[aq]s certificate chain and host name.
If \f[C]\-\-no\-check\-certificate\f[] is true, TLS accepts any
certificate presented by the server and any host name in that
certificate.
In this mode, TLS is susceptible to man\-in\-the\-middle attacks.
.PP
This option defaults to \f[C]false\f[].
.PP
\f[B]This should be used only for testing.\f[]
2019-02-09 10:42:57 +00:00
.SS \-\-no\-traverse
.PP
The \f[C]\-\-no\-traverse\f[] flag controls whether the destination file
system is traversed when using the \f[C]copy\f[] or \f[C]move\f[]
commands.
\f[C]\-\-no\-traverse\f[] is not compatible with \f[C]sync\f[] and will
be ignored if you supply it with \f[C]sync\f[].
.PP
If you are only copying a small number of files (or are filtering most
of the files) and/or have a large number of files on the destination
then \f[C]\-\-no\-traverse\f[] will stop rclone listing the destination
and save time.
.PP
However, if you are copying a large number of files, especially if you
are doing a copy where lots of the files under consideration haven\[aq]t
changed and won\[aq]t need copying then you shouldn\[aq]t use
\f[C]\-\-no\-traverse\f[].
.PP
See rclone copy (https://rclone.org/commands/rclone_copy/) for an
example of how to use it.
.SS Filtering
.PP
For the filtering options
.IP \[bu] 2
\f[C]\-\-delete\-excluded\f[]
.IP \[bu] 2
\f[C]\-\-filter\f[]
.IP \[bu] 2
\f[C]\-\-filter\-from\f[]
.IP \[bu] 2
\f[C]\-\-exclude\f[]
.IP \[bu] 2
\f[C]\-\-exclude\-from\f[]
.IP \[bu] 2
\f[C]\-\-include\f[]
.IP \[bu] 2
\f[C]\-\-include\-from\f[]
.IP \[bu] 2
\f[C]\-\-files\-from\f[]
.IP \[bu] 2
\f[C]\-\-min\-size\f[]
.IP \[bu] 2
\f[C]\-\-max\-size\f[]
.IP \[bu] 2
\f[C]\-\-min\-age\f[]
.IP \[bu] 2
\f[C]\-\-max\-age\f[]
.IP \[bu] 2
2017-12-23 13:07:45 +00:00
\f[C]\-\-dump\ filters\f[]
.PP
See the filtering section (https://rclone.org/filtering/).
2018-03-19 10:06:13 +00:00
.SS Remote control
.PP
For the remote control options and for instructions on how to remote
control rclone
.IP \[bu] 2
\f[C]\-\-rc\f[]
.IP \[bu] 2
and anything starting with \f[C]\-\-rc\-\f[]
.PP
See the remote control section (https://rclone.org/rc/).
2016-06-18 15:29:53 +00:00
.SS Logging
.PP
2018-03-19 10:06:13 +00:00
rclone has 4 levels of logging, \f[C]ERROR\f[], \f[C]NOTICE\f[],
\f[C]INFO\f[] and \f[C]DEBUG\f[].
2016-06-18 15:29:53 +00:00
.PP
2017-07-22 17:16:46 +00:00
By default, rclone logs to standard error.
2017-03-18 11:16:43 +00:00
This means you can redirect standard error and still see the normal
output of rclone commands (eg \f[C]rclone\ ls\f[]).
2016-06-18 15:29:53 +00:00
.PP
2017-07-22 17:16:46 +00:00
By default, rclone will produce \f[C]Error\f[] and \f[C]Notice\f[] level
2016-06-18 15:29:53 +00:00
messages.
.PP
If you use the \f[C]\-q\f[] flag, rclone will only produce
\f[C]Error\f[] messages.
.PP
If you use the \f[C]\-v\f[] flag, rclone will produce \f[C]Error\f[],
2017-03-18 11:16:43 +00:00
\f[C]Notice\f[] and \f[C]Info\f[] messages.
.PP
If you use the \f[C]\-vv\f[] flag, rclone will produce \f[C]Error\f[],
\f[C]Notice\f[], \f[C]Info\f[] and \f[C]Debug\f[] messages.
.PP
You can also control the log levels with the \f[C]\-\-log\-level\f[]
flag.
2016-06-18 15:29:53 +00:00
.PP
If you use the \f[C]\-\-log\-file=FILE\f[] option, rclone will redirect
\f[C]Error\f[], \f[C]Info\f[] and \f[C]Debug\f[] messages along with
standard error to FILE.
2017-03-18 11:16:43 +00:00
.PP
If you use the \f[C]\-\-syslog\f[] flag then rclone will log to syslog
and the \f[C]\-\-syslog\-facility\f[] control which facility it uses.
.PP
Rclone prefixes all log messages with their level in capitals, eg INFO
which makes it easy to grep the log file for different kinds of
information.
.SS Exit Code
.PP
2017-07-22 17:16:46 +00:00
If any errors occur during the command execution, rclone will exit with
a non\-zero exit code.
This allows scripts to detect when rclone operations have failed.
2016-11-06 10:17:52 +00:00
.PP
2017-07-22 17:16:46 +00:00
During the startup phase, rclone will exit immediately if an error is
2016-11-06 10:17:52 +00:00
detected in the configuration.
There will always be a log message immediately before exiting.
.PP
When rclone is running it will accumulate errors as it goes along, and
2017-07-22 17:16:46 +00:00
only exit with a non\-zero exit code if (after retries) there were still
failed transfers.
2016-11-06 10:17:52 +00:00
For every error counted there will be a high priority log message
(visible with \f[C]\-q\f[]) showing the message and which file caused
2016-11-06 10:17:52 +00:00
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.
2017-12-23 13:07:45 +00:00
.SS List of exit codes
.IP \[bu] 2
\f[C]0\f[] \- success
.IP \[bu] 2
\f[C]1\f[] \- Syntax or usage error
.IP \[bu] 2
\f[C]2\f[] \- Error not otherwise categorised
.IP \[bu] 2
\f[C]3\f[] \- Directory not found
.IP \[bu] 2
\f[C]4\f[] \- File not found
.IP \[bu] 2
\f[C]5\f[] \- Temporary error (one that more retries might fix) (Retry
errors)
.IP \[bu] 2
\f[C]6\f[] \- Less serious errors (like 461 errors from dropbox)
(NoRetry errors)
.IP \[bu] 2
\f[C]7\f[] \- Fatal error (one that more retries won\[aq]t fix, like
account suspended) (Fatal errors)
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
\f[C]8\f[] \- Transfer exceeded \- limit set by \-\-max\-transfer
reached
2017-03-18 11:16:43 +00:00
.SS Environment Variables
.PP
Rclone can be configured entirely using environment variables.
These can be used to set defaults for options or config file entries.
.SS Options
.PP
Every option in rclone can have its default set by environment variable.
.PP
2017-07-22 17:16:46 +00:00
To find the name of the environment variable, first, take the long
option name, strip the leading \f[C]\-\-\f[], change \f[C]\-\f[] to
\f[C]_\f[], make upper case and prepend \f[C]RCLONE_\f[].
2017-03-18 11:16:43 +00:00
.PP
2017-07-22 17:16:46 +00:00
For example, to always set \f[C]\-\-stats\ 5s\f[], set the environment
2017-03-18 11:16:43 +00:00
variable \f[C]RCLONE_STATS=5s\f[].
If you set stats on the command line this will override the environment
variable setting.
.PP
Or to always use the trash in drive \f[C]\-\-drive\-use\-trash\f[], set
\f[C]RCLONE_DRIVE_USE_TRASH=true\f[].
.PP
The same parser is used for the options and the environment variables so
they take exactly the same form.
.SS Config file
.PP
You can set defaults for values in the config file on an individual
remote basis.
If you want to use this feature, you will need to discover the name of
the config items that you want.
The easiest way is to run through \f[C]rclone\ config\f[] by hand, then
look in the config file to see what the values are (the config file can
be found by looking at the help for \f[C]\-\-config\f[] in
\f[C]rclone\ help\f[]).
.PP
To find the name of the environment variable, you need to set, take
2017-12-23 13:07:45 +00:00
\f[C]RCLONE_CONFIG_\f[] + name of remote + \f[C]_\f[] + name of config
file option and make it all uppercase.
2017-03-18 11:16:43 +00:00
.PP
2017-07-22 17:16:46 +00:00
For example, to configure an S3 remote named \f[C]mys3:\f[] without a
2017-03-18 11:16:43 +00:00
config file (using unix ways of setting environment variables):
.IP
.nf
\f[C]
$\ export\ RCLONE_CONFIG_MYS3_TYPE=s3
$\ export\ RCLONE_CONFIG_MYS3_ACCESS_KEY_ID=XXX
$\ export\ RCLONE_CONFIG_MYS3_SECRET_ACCESS_KEY=XXX
$\ rclone\ lsd\ MYS3:
\ \ \ \ \ \ \ \ \ \ \-1\ 2016\-09\-21\ 12:54:21\ \ \ \ \ \ \ \ \-1\ my\-bucket
$\ rclone\ listremotes\ |\ grep\ mys3
mys3:
\f[]
.fi
.PP
Note that if you want to create a remote using environment variables you
must create the \f[C]\&..._TYPE\f[] variable as above.
.SS Other environment variables
.IP \[bu] 2
RCLONE_CONFIG_PASS` set to contain your config file password (see
Configuration Encryption (#configuration-encryption) section)
.IP \[bu] 2
HTTP_PROXY, HTTPS_PROXY and NO_PROXY (or the lowercase versions
thereof).
.RS 2
.IP \[bu] 2
HTTPS_PROXY takes precedence over HTTP_PROXY for https requests.
.IP \[bu] 2
The environment values may be either a complete URL or a "host[:port]"
for, in which case the "http" scheme is assumed.
.RE
.SH Configuring rclone on a remote / headless machine
.PP
Some of the configurations (those involving oauth2) require an Internet
connected web browser.
.PP
If you are trying to set rclone up on a remote or headless box with no
browser available on it (eg a NAS or a server in a datacenter) then you
will need to use an alternative means of configuration.
There are two ways of doing it, described below.
.SS Configuring using rclone authorize
.PP
On the headless box
.IP
.nf
\f[C]
\&...
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>\ n
For\ this\ to\ work,\ you\ will\ need\ rclone\ available\ on\ a\ machine\ that\ has\ a\ web\ browser\ available.
Execute\ the\ following\ on\ your\ machine:
\ \ \ \ rclone\ authorize\ "amazon\ cloud\ drive"
Then\ paste\ the\ result\ below:
result>
\f[]
.fi
.PP
Then on your main desktop machine
.IP
.nf
\f[C]
rclone\ authorize\ "amazon\ cloud\ drive"
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
Paste\ the\ following\ into\ your\ remote\ machine\ \-\-\->
SECRET_TOKEN
<\-\-\-End\ paste
\f[]
.fi
.PP
Then back to the headless box, paste in the code
.IP
.nf
\f[C]
result>\ SECRET_TOKEN
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[acd12]
client_id\ =\
client_secret\ =\
token\ =\ SECRET_TOKEN
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
d)\ Delete\ this\ remote
y/e/d>
\f[]
.fi
.SS Configuring by copying the config file
.PP
Rclone stores all of its config in a single configuration file.
This can easily be copied to configure a remote rclone.
.PP
So first configure rclone on your desktop machine
.IP
.nf
\f[C]
rclone\ config
\f[]
.fi
.PP
to set up the config file.
.PP
2019-02-09 10:42:57 +00:00
Find the config file by running \f[C]rclone\ config\ file\f[], for
example
.IP
.nf
\f[C]
2019-02-09 10:42:57 +00:00
$\ rclone\ config\ file
Configuration\ file\ is\ stored\ at:
/home/user/.rclone.conf
\f[]
.fi
.PP
Now transfer it to the remote box (scp, cut paste, ftp, sftp etc) and
2019-02-09 10:42:57 +00:00
place it in the correct place (use \f[C]rclone\ config\ file\f[] on the
remote box to find out where).
.SH Filtering, includes and excludes
.PP
Rclone has a sophisticated set of include and exclude rules.
Some of these are based on patterns and some on other things like file
size.
.PP
The filters are applied for the \f[C]copy\f[], \f[C]sync\f[],
\f[C]move\f[], \f[C]ls\f[], \f[C]lsl\f[], \f[C]md5sum\f[],
\f[C]sha1sum\f[], \f[C]size\f[], \f[C]delete\f[] and \f[C]check\f[]
operations.
Note that \f[C]purge\f[] does not obey the filters.
.PP
Each path as it passes through rclone is matched against the include and
2016-03-01 09:00:01 +00:00
exclude rules like \f[C]\-\-include\f[], \f[C]\-\-exclude\f[],
\f[C]\-\-include\-from\f[], \f[C]\-\-exclude\-from\f[],
\f[C]\-\-filter\f[], or \f[C]\-\-filter\-from\f[].
The simplest way to try them out is using the \f[C]ls\f[] command, or
\f[C]\-\-dry\-run\f[] together with \f[C]\-v\f[].
.SS Patterns
.PP
The patterns used to match files for inclusion or exclusion are based on
"file globs" as used by the unix shell.
.PP
If the pattern starts with a \f[C]/\f[] then it only matches at the top
2017-01-02 15:30:34 +00:00
level of the directory tree, \f[B]relative to the root of the remote\f[]
(not necessarily the root of the local drive).
If it doesn\[aq]t start with \f[C]/\f[] then it is matched starting at
2016-03-01 09:00:01 +00:00
the \f[B]end of the path\f[], but it will only match a complete path
element:
.IP
.nf
\f[C]
file.jpg\ \ \-\ matches\ "file.jpg"
\ \ \ \ \ \ \ \ \ \ \-\ matches\ "directory/file.jpg"
\ \ \ \ \ \ \ \ \ \ \-\ doesn\[aq]t\ match\ "afile.jpg"
\ \ \ \ \ \ \ \ \ \ \-\ doesn\[aq]t\ match\ "directory/afile.jpg"
2016-03-01 09:00:01 +00:00
/file.jpg\ \-\ matches\ "file.jpg"\ in\ the\ root\ directory\ of\ the\ remote
\ \ \ \ \ \ \ \ \ \ \-\ doesn\[aq]t\ match\ "afile.jpg"
\ \ \ \ \ \ \ \ \ \ \-\ doesn\[aq]t\ match\ "directory/file.jpg"
\f[]
.fi
.PP
2016-04-18 17:30:29 +00:00
\f[B]Important\f[] Note that you must use \f[C]/\f[] in patterns and not
\f[C]\\\f[] even if running on Windows.
.PP
A \f[C]*\f[] matches anything but not a \f[C]/\f[].
.IP
.nf
\f[C]
*.jpg\ \ \-\ matches\ "file.jpg"
\ \ \ \ \ \ \ \-\ matches\ "directory/file.jpg"
\ \ \ \ \ \ \ \-\ doesn\[aq]t\ match\ "file.jpg/something"
\f[]
.fi
.PP
Use \f[C]**\f[] to match anything, including slashes (\f[C]/\f[]).
.IP
.nf
\f[C]
dir/**\ \-\ matches\ "dir/file.jpg"
\ \ \ \ \ \ \ \-\ matches\ "dir/dir1/dir2/file.jpg"
\ \ \ \ \ \ \ \-\ doesn\[aq]t\ match\ "directory/file.jpg"
\ \ \ \ \ \ \ \-\ doesn\[aq]t\ match\ "adir/file.jpg"
\f[]
.fi
.PP
A \f[C]?\f[] matches any character except a slash \f[C]/\f[].
.IP
.nf
\f[C]
l?ss\ \ \-\ matches\ "less"
\ \ \ \ \ \ \-\ matches\ "lass"
\ \ \ \ \ \ \-\ doesn\[aq]t\ match\ "floss"
\f[]
.fi
.PP
A \f[C][\f[] and \f[C]]\f[] together make a a character class, such as
\f[C][a\-z]\f[] or \f[C][aeiou]\f[] or \f[C][[:alpha:]]\f[].
See the go regexp docs (https://golang.org/pkg/regexp/syntax/) for more
info on these.
.IP
.nf
\f[C]
h[ae]llo\ \-\ matches\ "hello"
\ \ \ \ \ \ \ \ \ \-\ matches\ "hallo"
\ \ \ \ \ \ \ \ \ \-\ doesn\[aq]t\ match\ "hullo"
\f[]
.fi
.PP
A \f[C]{\f[] and \f[C]}\f[] define a choice between elements.
2017-12-23 13:07:45 +00:00
It should contain a comma separated list of patterns, any of which might
match.
These patterns can contain wildcards.
.IP
.nf
\f[C]
{one,two}_potato\ \-\ matches\ "one_potato"
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \-\ matches\ "two_potato"
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \-\ doesn\[aq]t\ match\ "three_potato"
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \-\ doesn\[aq]t\ match\ "_potato"
\f[]
.fi
.PP
Special characters can be escaped with a \f[C]\\\f[] before them.
.IP
.nf
\f[C]
\\*.jpg\ \ \ \ \ \ \ \-\ matches\ "*.jpg"
\\\\.jpg\ \ \ \ \ \ \ \-\ matches\ "\\.jpg"
\\[one\\].jpg\ \ \-\ matches\ "[one].jpg"
\f[]
.fi
2016-06-18 15:29:53 +00:00
.PP
2018-11-24 13:44:25 +00:00
Patterns are case sensitive unless the \f[C]\-\-ignore\-case\f[] flag is
used.
.PP
Without \f[C]\-\-ignore\-case\f[] (default)
.IP
.nf
\f[C]
potato\ \-\ matches\ "potato"
\ \ \ \ \ \ \ \-\ doesn\[aq]t\ match\ "POTATO"
\f[]
.fi
.PP
With \f[C]\-\-ignore\-case\f[]
.IP
.nf
\f[C]
potato\ \-\ matches\ "potato"
\ \ \ \ \ \ \ \-\ matches\ "POTATO"
\f[]
.fi
.PP
2016-06-18 15:29:53 +00:00
Note also that rclone filter globs can only be used in one of the filter
command line flags, not in the specification of the remote, so
\f[C]rclone\ copy\ "remote:dir*.jpg"\ /path/to/dir\f[] won\[aq]t work \-
what is required is
\f[C]rclone\ \-\-include\ "*.jpg"\ copy\ remote:dir\ /path/to/dir\f[]
.SS Directories
.PP
Rclone keeps track of directories that could match any file patterns.
.PP
Eg if you add the include rule
.IP
.nf
\f[C]
2016-11-06 10:17:52 +00:00
/a/*.jpg
2016-06-18 15:29:53 +00:00
\f[]
.fi
.PP
Rclone will synthesize the directory include rule
.IP
.nf
\f[C]
2016-11-06 10:17:52 +00:00
/a/
2016-06-18 15:29:53 +00:00
\f[]
.fi
.PP
2016-11-06 10:17:52 +00:00
If you put any rules which end in \f[C]/\f[] then it will only match
2016-06-18 15:29:53 +00:00
directories.
.PP
Directory matches are \f[B]only\f[] used to optimise directory access
patterns \- you must still match the files that you want to match.
Directory matches won\[aq]t optimise anything on bucket based remotes
(eg s3, swift, google compute storage, b2) which don\[aq]t have a
concept of directory.
.SS Differences between rsync and rclone patterns
.PP
Rclone implements bash style \f[C]{a,b,c}\f[] glob matching which rsync
doesn\[aq]t.
.PP
Rclone always does a wildcard match so \f[C]\\\f[] must always escape a
\f[C]\\\f[].
.SS How the rules are used
.PP
2017-01-02 15:30:34 +00:00
Rclone maintains a combined list of include rules and exclude rules.
.PP
2017-01-02 15:30:34 +00:00
Each file is matched in order, starting from the top, against the rule
in the list until it finds a match.
The file is then included or excluded according to the rule type.
.PP
2017-01-02 15:30:34 +00:00
If the matcher fails to find a match after testing against all the
entries in the list then the path is included.
.PP
For example given the following rules, \f[C]+\f[] being include,
\f[C]\-\f[] being exclude,
.IP
.nf
\f[C]
\-\ secret*.jpg
+\ *.jpg
+\ *.png
+\ file2.avi
\-\ *
\f[]
.fi
.PP
This would include
.IP \[bu] 2
\f[C]file1.jpg\f[]
.IP \[bu] 2
\f[C]file3.png\f[]
.IP \[bu] 2
\f[C]file2.avi\f[]
.PP
This would exclude
.IP \[bu] 2
\f[C]secret17.jpg\f[]
.IP \[bu] 2
non \f[C]*.jpg\f[] and \f[C]*.png\f[]
2016-06-18 15:29:53 +00:00
.PP
A similar process is done on directory entries before recursing into
them.
This only works on remotes which have a concept of directory (Eg local,
2016-07-13 11:26:22 +00:00
google drive, onedrive, amazon drive) and not on bucket based remotes
(eg s3, swift, google compute storage, b2).
.SS Adding filtering rules
.PP
Filtering rules are added with the following command line flags.
2017-01-02 15:30:34 +00:00
.SS Repeating options
.PP
You can repeat the following options to add more than one rule of that
type.
.IP \[bu] 2
\f[C]\-\-include\f[]
.IP \[bu] 2
\f[C]\-\-include\-from\f[]
.IP \[bu] 2
\f[C]\-\-exclude\f[]
.IP \[bu] 2
\f[C]\-\-exclude\-from\f[]
.IP \[bu] 2
\f[C]\-\-filter\f[]
.IP \[bu] 2
\f[C]\-\-filter\-from\f[]
.PP
2017-12-23 13:07:45 +00:00
\f[B]Important\f[] You should not use \f[C]\-\-include*\f[] together
with \f[C]\-\-exclude*\f[].
It may produce different results than you expected.
In that case try to use: \f[C]\-\-filter*\f[].
.PP
2017-01-02 15:30:34 +00:00
Note that all the options of the same type are processed together in the
order above, regardless of what order they were placed on the command
line.
.PP
So all \f[C]\-\-include\f[] options are processed first in the order
they appeared on the command line, then all \f[C]\-\-include\-from\f[]
options etc.
.PP
To mix up the order includes and excludes, the \f[C]\-\-filter\f[] flag
can be used.
.SS \f[C]\-\-exclude\f[] \- Exclude files matching pattern
.PP
Add a single exclude rule with \f[C]\-\-exclude\f[].
.PP
2017-01-02 15:30:34 +00:00
This flag can be repeated.
See above for the order the flags are processed in.
.PP
Eg \f[C]\-\-exclude\ *.bak\f[] to exclude all bak files from the sync.
.SS \f[C]\-\-exclude\-from\f[] \- Read exclude patterns from file
.PP
Add exclude rules from a file.
.PP
2017-01-02 15:30:34 +00:00
This flag can be repeated.
See above for the order the flags are processed in.
.PP
Prepare a file like this \f[C]exclude\-file.txt\f[]
.IP
.nf
\f[C]
#\ a\ sample\ exclude\ rule\ file
*.bak
file2.jpg
\f[]
.fi
.PP
Then use as \f[C]\-\-exclude\-from\ exclude\-file.txt\f[].
This will sync all files except those ending in \f[C]bak\f[] and
\f[C]file2.jpg\f[].
.PP
This is useful if you have a lot of rules.
.SS \f[C]\-\-include\f[] \- Include files matching pattern
.PP
Add a single include rule with \f[C]\-\-include\f[].
.PP
2017-01-02 15:30:34 +00:00
This flag can be repeated.
See above for the order the flags are processed in.
.PP
Eg \f[C]\-\-include\ *.{png,jpg}\f[] to include all \f[C]png\f[] and
\f[C]jpg\f[] files in the backup and no others.
.PP
This adds an implicit \f[C]\-\-exclude\ *\f[] at the very end of the
filter list.
This means you can mix \f[C]\-\-include\f[] and
\f[C]\-\-include\-from\f[] with the other filters (eg
\f[C]\-\-exclude\f[]) but you must include all the files you want in the
include statement.
If this doesn\[aq]t provide enough flexibility then you must use
\f[C]\-\-filter\-from\f[].
.SS \f[C]\-\-include\-from\f[] \- Read include patterns from file
.PP
Add include rules from a file.
.PP
2017-01-02 15:30:34 +00:00
This flag can be repeated.
See above for the order the flags are processed in.
.PP
Prepare a file like this \f[C]include\-file.txt\f[]
.IP
.nf
\f[C]
#\ a\ sample\ include\ rule\ file
*.jpg
*.png
file2.avi
\f[]
.fi
.PP
Then use as \f[C]\-\-include\-from\ include\-file.txt\f[].
This will sync all \f[C]jpg\f[], \f[C]png\f[] files and
\f[C]file2.avi\f[].
.PP
This is useful if you have a lot of rules.
.PP
This adds an implicit \f[C]\-\-exclude\ *\f[] at the very end of the
filter list.
This means you can mix \f[C]\-\-include\f[] and
\f[C]\-\-include\-from\f[] with the other filters (eg
\f[C]\-\-exclude\f[]) but you must include all the files you want in the
include statement.
If this doesn\[aq]t provide enough flexibility then you must use
\f[C]\-\-filter\-from\f[].
.SS \f[C]\-\-filter\f[] \- Add a file\-filtering rule
.PP
This can be used to add a single include or exclude rule.
Include rules start with \f[C]+\f[] and exclude rules start with
\f[C]\-\f[].
A special rule called \f[C]!\f[] can be used to clear the existing
rules.
.PP
2017-01-02 15:30:34 +00:00
This flag can be repeated.
See above for the order the flags are processed in.
.PP
Eg \f[C]\-\-filter\ "\-\ *.bak"\f[] to exclude all bak files from the
sync.
.SS \f[C]\-\-filter\-from\f[] \- Read filtering patterns from a file
.PP
Add include/exclude rules from a file.
.PP
2017-01-02 15:30:34 +00:00
This flag can be repeated.
See above for the order the flags are processed in.
.PP
Prepare a file like this \f[C]filter\-file.txt\f[]
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
#\ a\ sample\ filter\ rule\ file
\-\ secret*.jpg
+\ *.jpg
+\ *.png
+\ file2.avi
2017-09-30 13:19:47 +00:00
\-\ /dir/Trash/**
+\ /dir/**
#\ exclude\ everything\ else
\-\ *
\f[]
.fi
.PP
Then use as \f[C]\-\-filter\-from\ filter\-file.txt\f[].
The rules are processed in the order that they are defined.
.PP
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[].
2017-09-30 13:19:47 +00:00
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
This reads a list of file names from the file passed in and
\f[B]only\f[] these files are transferred.
2018-03-19 10:06:13 +00:00
The \f[B]filtering rules are ignored\f[] completely if you use this
option.
.PP
2018-11-24 13:44:25 +00:00
Rclone will not scan any directories if you use \f[C]\-\-files\-from\f[]
it will just look at the files specified.
Rclone will not error if any of the files are missing from the source.
.PP
2017-01-02 15:30:34 +00:00
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.
.PP
2018-03-19 10:06:13 +00:00
Paths within the \f[C]\-\-files\-from\f[] file will be interpreted as
starting with the root specified in the command.
Leading \f[C]/\f[] characters are ignored.
.PP
For example, suppose you had \f[C]files\-from.txt\f[] with this content:
.IP
.nf
\f[C]
#\ comment
file1.jpg
2018-03-19 10:06:13 +00:00
subdir/file2.jpg
\f[]
.fi
.PP
You could then use it like this:
.IP
.nf
\f[C]
rclone\ copy\ \-\-files\-from\ files\-from.txt\ /home/me/pics\ remote:pics
\f[]
.fi
.PP
2018-03-19 10:06:13 +00:00
This will transfer these files only (if they exist)
.IP
.nf
\f[C]
/home/me/pics/file1.jpg\ \ \ \ \ \ \ \ \ remote:pics/file1.jpg
/home/me/pics/subdir/file2.jpg\ \ remote:pics/subdirfile1.jpg
\f[]
.fi
2016-07-13 11:26:22 +00:00
.PP
2018-03-19 10:06:13 +00:00
To take a more complicated example, let\[aq]s say you had a few files
you want to back up regularly with these absolute paths:
2016-07-13 11:26:22 +00:00
.IP
.nf
\f[C]
/home/user1/important
/home/user1/dir/file
/home/user2/stuff
\f[]
.fi
.PP
To copy these you\[aq]d find a common subdirectory \- in this case
\f[C]/home\f[] and put the remaining files in \f[C]files\-from.txt\f[]
with or without leading \f[C]/\f[], eg
.IP
.nf
\f[C]
user1/important
user1/dir/file
user2/stuff
\f[]
.fi
.PP
You could then copy these to a remote like this
.IP
.nf
\f[C]
rclone\ copy\ \-\-files\-from\ files\-from.txt\ /home\ remote:backup
\f[]
.fi
.PP
The 3 files will arrive in \f[C]remote:backup\f[] with the paths as in
2018-03-19 10:06:13 +00:00
the \f[C]files\-from.txt\f[] like this:
.IP
.nf
\f[C]
/home/user1/important\ \ remote:backup/user1/important
/home/user1/dir/file\ \ \ remote:backup/user1/dir/file
/home/user2/stuff\ \ \ \ \ \ remote:backup/stuff
\f[]
.fi
2016-07-13 11:26:22 +00:00
.PP
You could of course choose \f[C]/\f[] as the root too in which case your
\f[C]files\-from.txt\f[] might look like this.
.IP
.nf
\f[C]
/home/user1/important
/home/user1/dir/file
/home/user2/stuff
\f[]
.fi
.PP
And you would transfer it like this
.IP
.nf
\f[C]
rclone\ copy\ \-\-files\-from\ files\-from.txt\ /\ remote:backup
\f[]
.fi
.PP
In this case there will be an extra \f[C]home\f[] directory on the
2018-03-19 10:06:13 +00:00
remote:
.IP
.nf
\f[C]
/home/user1/important\ \ remote:home/backup/user1/important
/home/user1/dir/file\ \ \ remote:home/backup/user1/dir/file
/home/user2/stuff\ \ \ \ \ \ remote:home/backup/stuff
\f[]
.fi
.SS \f[C]\-\-min\-size\f[] \- Don\[aq]t transfer any file smaller than
this
.PP
This option controls the minimum size file which will be transferred.
This defaults to \f[C]kBytes\f[] but a suffix of \f[C]k\f[], \f[C]M\f[],
or \f[C]G\f[] can be used.
.PP
For example \f[C]\-\-min\-size\ 50k\f[] means no files smaller than
50kByte will be transferred.
.SS \f[C]\-\-max\-size\f[] \- Don\[aq]t transfer any file larger than
this
.PP
This option controls the maximum size file which will be transferred.
This defaults to \f[C]kBytes\f[] but a suffix of \f[C]k\f[], \f[C]M\f[],
or \f[C]G\f[] can be used.
.PP
For example \f[C]\-\-max\-size\ 1G\f[] means no files larger than 1GByte
will be transferred.
.SS \f[C]\-\-max\-age\f[] \- Don\[aq]t transfer any file older than this
.PP
This option controls the maximum age of files to transfer.
Give in seconds or with a suffix of:
.IP \[bu] 2
\f[C]ms\f[] \- Milliseconds
.IP \[bu] 2
\f[C]s\f[] \- Seconds
.IP \[bu] 2
\f[C]m\f[] \- Minutes
.IP \[bu] 2
\f[C]h\f[] \- Hours
.IP \[bu] 2
\f[C]d\f[] \- Days
.IP \[bu] 2
\f[C]w\f[] \- Weeks
.IP \[bu] 2
\f[C]M\f[] \- Months
.IP \[bu] 2
\f[C]y\f[] \- Years
.PP
For example \f[C]\-\-max\-age\ 2d\f[] means no files older than 2 days
will be transferred.
.SS \f[C]\-\-min\-age\f[] \- Don\[aq]t transfer any file younger than
this
.PP
This option controls the minimum age of files to transfer.
Give in seconds or with a suffix (see \f[C]\-\-max\-age\f[] for list of
suffixes)
.PP
For example \f[C]\-\-min\-age\ 2d\f[] means no files younger than 2 days
will be transferred.
.SS \f[C]\-\-delete\-excluded\f[] \- Delete files on dest excluded from
sync
.PP
\f[B]Important\f[] this flag is dangerous \- use with
\f[C]\-\-dry\-run\f[] and \f[C]\-v\f[] first.
.PP
When doing \f[C]rclone\ sync\f[] this will delete any files which are
excluded from the sync on the destination.
.PP
If for example you did a sync from \f[C]A\f[] to \f[C]B\f[] without the
\f[C]\-\-min\-size\ 50k\f[] flag
.IP
.nf
\f[C]
rclone\ sync\ A:\ B:
\f[]
.fi
.PP
Then you repeated it like this with the \f[C]\-\-delete\-excluded\f[]
.IP
.nf
\f[C]
rclone\ \-\-min\-size\ 50k\ \-\-delete\-excluded\ sync\ A:\ B:
\f[]
.fi
.PP
This would delete all files on \f[C]B\f[] which are less than 50 kBytes
as these are now excluded from the sync.
.PP
Always test first with \f[C]\-\-dry\-run\f[] and \f[C]\-v\f[] before
using this flag.
2017-12-23 13:07:45 +00:00
.SS \f[C]\-\-dump\ filters\f[] \- dump the filters to the output
.PP
This dumps the defined filters to the output as regular expressions.
.PP
Useful for debugging.
2018-11-24 13:44:25 +00:00
.SS \f[C]\-\-ignore\-case\f[] \- make searches case insensitive
.PP
Normally filter patterns are case sensitive.
If this flag is supplied then filter patterns become case insensitive.
.PP
Normally a \f[C]\-\-include\ "file.txt"\f[] will not match a file called
\f[C]FILE.txt\f[].
However if you use the \f[C]\-\-ignore\-case\f[] flag then
\f[C]\-\-include\ "file.txt"\f[] this will match a file called
\f[C]FILE.txt\f[].
.SS Quoting shell metacharacters
.PP
The examples above may not work verbatim in your shell as they have
shell metacharacters in them (eg \f[C]*\f[]), and may require quoting.
.PP
Eg linux, OSX
.IP \[bu] 2
\f[C]\-\-include\ \\*.jpg\f[]
.IP \[bu] 2
\f[C]\-\-include\ \[aq]*.jpg\[aq]\f[]
.IP \[bu] 2
\f[C]\-\-include=\[aq]*.jpg\[aq]\f[]
.PP
In Windows the expansion is done by the command not the shell so this
should work fine
.IP \[bu] 2
\f[C]\-\-include\ *.jpg\f[]
2017-12-23 13:07:45 +00:00
.SS Exclude directory based on a file
.PP
It is possible to exclude a directory based on a file, which is present
in this directory.
Filename should be specified using the \f[C]\-\-exclude\-if\-present\f[]
flag.
This flag has a priority over the other filtering flags.
.PP
Imagine, you have the following directory structure:
.IP
.nf
\f[C]
dir1/file1
dir1/dir2/file2
dir1/dir2/dir3/file3
dir1/dir2/dir3/.ignore
\f[]
.fi
.PP
You can exclude \f[C]dir3\f[] from sync by running the following
command:
.IP
.nf
\f[C]
rclone\ sync\ \-\-exclude\-if\-present\ .ignore\ dir1\ remote:backup
\f[]
.fi
.PP
Currently only one filename is supported, i.e.
\f[C]\-\-exclude\-if\-present\f[] should not be used multiple times.
2018-03-19 10:06:13 +00:00
.SH Remote controlling rclone
.PP
If rclone is run with the \f[C]\-\-rc\f[] flag then it starts an http
server which can be used to remote control rclone.
.PP
2018-11-24 13:44:25 +00:00
If you just want to run a remote control then see the rcd
command (https://rclone.org/commands/rclone_rcd/).
.PP
2018-03-19 10:06:13 +00:00
\f[B]NB\f[] this is experimental and everything here is subject to
change!
.SS Supported parameters
.SS \-\-rc
.PP
Flag to start the http server listen on remote requests
.SS \-\-rc\-addr=IP
.PP
IPaddress:Port or :Port to bind server to.
(default "localhost:5572")
.SS \-\-rc\-cert=KEY
.PP
SSL PEM key (concatenation of certificate and CA certificate)
.SS \-\-rc\-client\-ca=PATH
.PP
Client certificate authority to verify clients with
.SS \-\-rc\-htpasswd=PATH
.PP
htpasswd file \- if not provided no authentication is done
.SS \-\-rc\-key=PATH
.PP
SSL PEM Private key
.SS \-\-rc\-max\-header\-bytes=VALUE
.PP
Maximum size of request header (default 4096)
.SS \-\-rc\-user=VALUE
.PP
User name for authentication.
.SS \-\-rc\-pass=VALUE
.PP
Password for authentication.
.SS \-\-rc\-realm=VALUE
.PP
Realm for authentication (default "rclone")
.SS \-\-rc\-server\-read\-timeout=DURATION
.PP
Timeout for server reading data (default 1h0m0s)
.SS \-\-rc\-server\-write\-timeout=DURATION
.PP
Timeout for server writing data (default 1h0m0s)
2018-11-24 13:44:25 +00:00
.SS \-\-rc\-serve
.PP
Enable the serving of remote objects via the HTTP interface.
This means objects will be accessible at http://127.0.0.1:5572/ by
default, so you can browse to http://127.0.0.1:5572/ or
http://127.0.0.1:5572/* to see a listing of the remotes.
Objects may be requested from remotes using this syntax
http://127.0.0.1:5572/[remote:path]/path/to/object
.PP
Default Off.
.SS \-\-rc\-files /path/to/directory
.PP
Path to local files to serve on the HTTP server.
.PP
If this is set then rclone will serve the files in that directory.
It will also open the root in the web browser if specified.
This is for implementing browser based GUIs for rclone functions.
.PP
If \f[C]\-\-rc\-user\f[] or \f[C]\-\-rc\-pass\f[] is set then the URL
that is opened will have the authorization in the URL in the
\f[C]http://user:pass\@localhost/\f[] style.
.PP
Default Off.
.SS \-\-rc\-no\-auth
.PP
By default rclone will require authorisation to have been set up on the
rc interface in order to use any methods which access any rclone
remotes.
Eg \f[C]operations/list\f[] is denied as it involved creating a remote
as is \f[C]sync/copy\f[].
.PP
If this is set then no authorisation will be required on the server to
use these methods.
The alternative is to use \f[C]\-\-rc\-user\f[] and
\f[C]\-\-rc\-pass\f[] and use these credentials in the request.
.PP
Default Off.
2018-03-19 10:06:13 +00:00
.SS Accessing the remote control via the rclone rc command
.PP
Rclone itself implements the remote control protocol in its
\f[C]rclone\ rc\f[] command.
.PP
You can use it like this
.IP
.nf
\f[C]
$\ rclone\ rc\ rc/noop\ param1=one\ param2=two
{
\ \ \ \ "param1":\ "one",
\ \ \ \ "param2":\ "two"
}
\f[]
.fi
.PP
Run \f[C]rclone\ rc\f[] on its own to see the help for the installed
remote control commands.
2018-11-24 13:44:25 +00:00
.PP
\f[C]rclone\ rc\f[] also supports a \f[C]\-\-json\f[] flag which can be
used to send more complicated input parameters.
.IP
.nf
\f[C]
$\ rclone\ rc\ \-\-json\ \[aq]{\ "p1":\ [1,"2",null,4],\ "p2":\ {\ "a":1,\ "b":2\ }\ }\[aq]\ rc/noop
{
\ \ \ \ "p1":\ [
\ \ \ \ \ \ \ \ 1,
\ \ \ \ \ \ \ \ "2",
\ \ \ \ \ \ \ \ null,
\ \ \ \ \ \ \ \ 4
\ \ \ \ ],
\ \ \ \ "p2":\ {
\ \ \ \ \ \ \ \ "a":\ 1,
\ \ \ \ \ \ \ \ "b":\ 2
\ \ \ \ }
}
\f[]
.fi
.SS Special parameters
.PP
The rc interface supports some special parameters which apply to
\f[B]all\f[] commands.
These start with \f[C]_\f[] to show they are different.
.SS Running asynchronous jobs with _async = true
.PP
If \f[C]_async\f[] has a true value when supplied to an rc call then it
will return immediately with a job id and the task will be run in the
background.
The \f[C]job/status\f[] call can be used to get information of the
background job.
The job can be queried for up to 1 minute after it has finished.
.PP
It is recommended that potentially long running jobs, eg
\f[C]sync/sync\f[], \f[C]sync/copy\f[], \f[C]sync/move\f[],
\f[C]operations/purge\f[] are run with the \f[C]_async\f[] flag to avoid
any potential problems with the HTTP request and response timing out.
.PP
Starting a job with the \f[C]_async\f[] flag:
.IP
.nf
\f[C]
$\ rclone\ rc\ \-\-json\ \[aq]{\ "p1":\ [1,"2",null,4],\ "p2":\ {\ "a":1,\ "b":2\ },\ "_async":\ true\ }\[aq]\ rc/noop
{
\ \ \ \ "jobid":\ 2
}
\f[]
.fi
.PP
Query the status to see if the job has finished.
For more information on the meaning of these return parameters see the
\f[C]job/status\f[] call.
.IP
.nf
\f[C]
$\ rclone\ rc\ \-\-json\ \[aq]{\ "jobid":2\ }\[aq]\ job/status
{
\ \ \ \ "duration":\ 0.000124163,
\ \ \ \ "endTime":\ "2018\-10\-27T11:38:07.911245881+01:00",
\ \ \ \ "error":\ "",
\ \ \ \ "finished":\ true,
\ \ \ \ "id":\ 2,
\ \ \ \ "output":\ {
\ \ \ \ \ \ \ \ "_async":\ true,
\ \ \ \ \ \ \ \ "p1":\ [
\ \ \ \ \ \ \ \ \ \ \ \ 1,
\ \ \ \ \ \ \ \ \ \ \ \ "2",
\ \ \ \ \ \ \ \ \ \ \ \ null,
\ \ \ \ \ \ \ \ \ \ \ \ 4
\ \ \ \ \ \ \ \ ],
\ \ \ \ \ \ \ \ "p2":\ {
\ \ \ \ \ \ \ \ \ \ \ \ "a":\ 1,
\ \ \ \ \ \ \ \ \ \ \ \ "b":\ 2
\ \ \ \ \ \ \ \ }
\ \ \ \ },
\ \ \ \ "startTime":\ "2018\-10\-27T11:38:07.911121728+01:00",
\ \ \ \ "success":\ true
}
\f[]
.fi
.PP
\f[C]job/list\f[] can be used to show the running or recently completed
jobs
.IP
.nf
\f[C]
$\ rclone\ rc\ job/list
{
\ \ \ \ "jobids":\ [
\ \ \ \ \ \ \ \ 2
\ \ \ \ ]
}
\f[]
.fi
2018-03-19 10:06:13 +00:00
.SS Supported commands
2018-04-28 10:46:27 +00:00
.SS cache/expire: Purge a remote from cache
.PP
Purge a remote from the cache backend.
Supports either a directory or a file.
Params: \- remote = path to remote (required) \- withData = true/false
to delete cached data (chunks) as well (optional)
.PP
Eg
.IP
.nf
\f[C]
rclone\ rc\ cache/expire\ remote=path/to/sub/folder/
rclone\ rc\ cache/expire\ remote=/\ withData=true
\f[]
.fi
2018-10-15 10:03:08 +00:00
.SS cache/fetch: Fetch file chunks
.PP
Ensure the specified file chunks are cached on disk.
.PP
The chunks= parameter specifies the file chunks to check.
It takes a comma separated list of array slice indices.
The slice indices are similar to Python slices: start[:end]
.PP
start is the 0 based chunk number from the beginning of the file to
fetch inclusive.
end is 0 based chunk number from the beginning of the file to fetch
2019-02-09 10:42:57 +00:00
exclusive.
2018-10-15 10:03:08 +00:00
Both values can be negative, in which case they count from the back of
the file.
The value "\-5:" represents the last 5 chunks of a file.
.PP
Some valid examples are: ":5,\-5:" \-> the first and last five chunks
"0,\-2" \-> the first and the second last chunk "0:10" \-> the first ten
chunks
.PP
Any parameter with a key that starts with "file" can be used to specify
files to fetch, eg
.IP
.nf
\f[C]
rclone\ rc\ cache/fetch\ chunks=0\ file=hello\ file2=home/goodbye
\f[]
.fi
.PP
File names will automatically be encrypted when the a crypt remote is
used on top of the cache.
2018-04-28 10:46:27 +00:00
.SS cache/stats: Get cache stats
.PP
Show statistics for the cache remote.
2018-11-24 13:44:25 +00:00
.SS config/create: create the config for a remote.
.PP
This takes the following parameters
.IP \[bu] 2
name \- name of remote
.IP \[bu] 2
type \- type of new remote
.IP \[bu] 2
type \- type of the new remote
.PP
See the config create
command (https://rclone.org/commands/rclone_config_create/) command for
more information on the above.
.PP
Authentication is required for this call.
.SS config/delete: Delete a remote in the config file.
.PP
Parameters: \- name \- name of remote to delete
.PP
See the config delete
command (https://rclone.org/commands/rclone_config_delete/) command for
more information on the above.
.PP
Authentication is required for this call.
.SS config/dump: Dumps the config file.
.PP
Returns a JSON object: \- key: value
.PP
Where keys are remote names and values are the config parameters.
.PP
See the config dump
command (https://rclone.org/commands/rclone_config_dump/) command for
more information on the above.
.PP
Authentication is required for this call.
.SS config/get: Get a remote in the config file.
.PP
Parameters: \- name \- name of remote to get
.PP
See the config dump
command (https://rclone.org/commands/rclone_config_dump/) command for
more information on the above.
.PP
Authentication is required for this call.
.SS config/listremotes: Lists the remotes in the config file.
.PP
Returns \- remotes \- array of remote names
.PP
See the listremotes
command (https://rclone.org/commands/rclone_listremotes/) command for
more information on the above.
.PP
Authentication is required for this call.
.SS config/password: password the config for a remote.
.PP
This takes the following parameters
.IP \[bu] 2
name \- name of remote
.IP \[bu] 2
type \- type of new remote
.PP
See the config password
command (https://rclone.org/commands/rclone_config_password/) command
for more information on the above.
.PP
Authentication is required for this call.
.SS config/providers: Shows how providers are configured in the config
file.
.PP
Returns a JSON object: \- providers \- array of objects
.PP
See the config providers
command (https://rclone.org/commands/rclone_config_providers/) command
for more information on the above.
.PP
Authentication is required for this call.
.SS config/update: update the config for a remote.
.PP
This takes the following parameters
.IP \[bu] 2
name \- name of remote
.IP \[bu] 2
type \- type of new remote
.PP
See the config update
command (https://rclone.org/commands/rclone_config_update/) command for
more information on the above.
.PP
Authentication is required for this call.
2018-03-19 10:06:13 +00:00
.SS core/bwlimit: Set the bandwidth limit.
.PP
This sets the bandwidth limit to that passed in.
.PP
Eg
.IP
.nf
\f[C]
2018-04-28 10:46:27 +00:00
rclone\ rc\ core/bwlimit\ rate=1M
rclone\ rc\ core/bwlimit\ rate=off
2018-03-19 10:06:13 +00:00
\f[]
.fi
.PP
2018-04-28 10:46:27 +00:00
The format of the parameter is exactly the same as passed to \-\-bwlimit
except only one bandwidth may be specified.
2018-06-16 17:21:09 +00:00
.SS core/gc: Runs a garbage collection.
.PP
This tells the go runtime to do a garbage collection run.
It isn\[aq]t necessary to call this normally, but it can be useful for
debugging memory problems.
2018-04-28 10:46:27 +00:00
.SS core/memstats: Returns the memory statistics
.PP
This returns the memory statistics of the running program.
What the values mean are explained in the go docs:
https://golang.org/pkg/runtime/#MemStats
.PP
The most interesting values for most people are:
.IP \[bu] 2
HeapAlloc: This is the amount of memory rclone is actually using
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
2018-04-28 10:46:27 +00:00
HeapSys: This is the amount of memory rclone has obtained from the OS
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
2018-04-28 10:46:27 +00:00
Sys: this is the total amount of memory requested from the OS
.IP \[bu] 2
It is virtual memory so may include unused memory
2018-11-24 13:44:25 +00:00
.SS core/obscure: Obscures a string passed in.
.PP
Pass a clear string and rclone will obscure it for the config file: \-
clear \- string
.PP
Returns \- obscured \- string
2018-04-28 10:46:27 +00:00
.SS core/pid: Return PID of current process
.PP
This returns PID of current process.
Useful for stopping rclone process.
2018-09-01 11:58:00 +00:00
.SS core/stats: Returns stats about current transfers.
.PP
This returns all available stats
.IP
.nf
\f[C]
rclone\ rc\ core/stats
\f[]
.fi
.PP
Returns the following values:
.IP
.nf
\f[C]
{
\ \ \ \ "speed":\ average\ speed\ in\ bytes/sec\ since\ start\ of\ the\ process,
\ \ \ \ "bytes":\ total\ transferred\ bytes\ since\ the\ start\ of\ the\ process,
\ \ \ \ "errors":\ number\ of\ errors,
2018-10-15 10:03:08 +00:00
\ \ \ \ "fatalError":\ whether\ there\ has\ been\ at\ least\ one\ FatalError,
\ \ \ \ "retryError":\ whether\ there\ has\ been\ at\ least\ one\ non\-NoRetryError,
2018-09-01 11:58:00 +00:00
\ \ \ \ "checks":\ number\ of\ checked\ files,
\ \ \ \ "transfers":\ number\ of\ transferred\ files,
\ \ \ \ "deletes"\ :\ number\ of\ deleted\ files,
\ \ \ \ "elapsedTime":\ time\ in\ seconds\ since\ the\ start\ of\ the\ process,
\ \ \ \ "lastError":\ last\ occurred\ error,
\ \ \ \ "transferring":\ an\ array\ of\ currently\ active\ file\ transfers:
\ \ \ \ \ \ \ \ [
\ \ \ \ \ \ \ \ \ \ \ \ {
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "bytes":\ total\ transferred\ bytes\ for\ this\ file,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "eta":\ estimated\ time\ in\ seconds\ until\ file\ transfer\ completion
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "name":\ name\ of\ the\ file,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "percentage":\ progress\ of\ the\ file\ transfer\ in\ percent,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "speed":\ speed\ in\ bytes/sec,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "speedAvg":\ speed\ in\ bytes/sec\ as\ an\ exponentially\ weighted\ moving\ average,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "size":\ size\ of\ the\ file\ in\ bytes
\ \ \ \ \ \ \ \ \ \ \ \ }
\ \ \ \ \ \ \ \ ],
\ \ \ \ "checking":\ an\ array\ of\ names\ of\ currently\ active\ file\ checks
\ \ \ \ \ \ \ \ []
}
\f[]
.fi
.PP
Values for "transferring", "checking" and "lastError" are only assigned
if data is available.
The value for "eta" is null if an eta cannot be determined.
2018-11-24 13:44:25 +00:00
.SS core/version: Shows the current version of rclone and the go
runtime.
.PP
This shows the current version of go and the go runtime \- version \-
rclone version, eg "v1.44" \- decomposed \- version number as [major,
minor, patch, subpatch] \- note patch and subpatch will be 999 for a git
compiled version \- isGit \- boolean \- true if this was compiled from
the git version \- os \- OS in use as according to Go \- arch \- cpu
architecture in use according to Go \- goVersion \- version of Go
runtime in use
.SS job/list: Lists the IDs of the running jobs
.PP
Parameters \- None
.PP
Results \- jobids \- array of integer job ids
.SS job/status: Reads the status of the job ID
.PP
Parameters \- jobid \- id of the job (integer)
.PP
Results \- finished \- boolean \- duration \- time in seconds that the
job ran for \- endTime \- time the job finished (eg
"2018\-10\-26T18:50:20.528746884+01:00") \- error \- error from the job
or empty string for no error \- finished \- boolean whether the job has
finished or not \- id \- as passed in above \- startTime \- time the job
started (eg "2018\-10\-26T18:50:20.528336039+01:00") \- success \-
boolean \- true for success false otherwise \- output \- output of the
job as would have been returned if called synchronously
.SS operations/about: Return the space used on the remote
.PP
This takes the following parameters
.IP \[bu] 2
fs \- a remote name string eg "drive:"
.IP \[bu] 2
remote \- a path within that remote eg "dir"
.PP
The result is as returned from rclone about \-\-json
.PP
Authentication is required for this call.
.SS operations/cleanup: Remove trashed files in the remote or path
.PP
This takes the following parameters
.IP \[bu] 2
fs \- a remote name string eg "drive:"
.PP
See the cleanup command (https://rclone.org/commands/rclone_cleanup/)
command for more information on the above.
.PP
Authentication is required for this call.
.SS operations/copyfile: Copy a file from source remote to destination
remote
.PP
This takes the following parameters
.IP \[bu] 2
srcFs \- a remote name string eg "drive:" for the source
.IP \[bu] 2
srcRemote \- a path within that remote eg "file.txt" for the source
.IP \[bu] 2
dstFs \- a remote name string eg "drive2:" for the destination
.IP \[bu] 2
dstRemote \- a path within that remote eg "file2.txt" for the
destination
.PP
Authentication is required for this call.
.SS operations/copyurl: Copy the URL to the object
.PP
This takes the following parameters
.IP \[bu] 2
fs \- a remote name string eg "drive:"
.IP \[bu] 2
remote \- a path within that remote eg "dir"
.IP \[bu] 2
url \- string, URL to read from
.PP
See the copyurl command (https://rclone.org/commands/rclone_copyurl/)
command for more information on the above.
.PP
Authentication is required for this call.
.SS operations/delete: Remove files in the path
.PP
This takes the following parameters
.IP \[bu] 2
fs \- a remote name string eg "drive:"
.PP
See the delete command (https://rclone.org/commands/rclone_delete/)
command for more information on the above.
.PP
Authentication is required for this call.
.SS operations/deletefile: Remove the single file pointed to
.PP
This takes the following parameters
.IP \[bu] 2
fs \- a remote name string eg "drive:"
.IP \[bu] 2
remote \- a path within that remote eg "dir"
.PP
See the deletefile
command (https://rclone.org/commands/rclone_deletefile/) command for
more information on the above.
.PP
Authentication is required for this call.
.SS operations/list: List the given remote and path in JSON format
.PP
This takes the following parameters
.IP \[bu] 2
fs \- a remote name string eg "drive:"
.IP \[bu] 2
remote \- a path within that remote eg "dir"
.IP \[bu] 2
opt \- a dictionary of options to control the listing (optional)
.RS 2
.IP \[bu] 2
recurse \- If set recurse directories
.IP \[bu] 2
noModTime \- If set return modification time
.IP \[bu] 2
showEncrypted \- If set show decrypted names
.IP \[bu] 2
showOrigIDs \- If set show the IDs for each item if known
.IP \[bu] 2
showHash \- If set return a dictionary of hashes
.RE
.PP
The result is
.IP \[bu] 2
list
.RS 2
.IP \[bu] 2
This is an array of objects as described in the lsjson command
.RE
.PP
See the lsjson command for more information on the above and examples.
.PP
Authentication is required for this call.
.SS operations/mkdir: Make a destination directory or container
.PP
This takes the following parameters
.IP \[bu] 2
fs \- a remote name string eg "drive:"
.IP \[bu] 2
remote \- a path within that remote eg "dir"
.PP
See the mkdir command (https://rclone.org/commands/rclone_mkdir/)
command for more information on the above.
.PP
Authentication is required for this call.
.SS operations/movefile: Move a file from source remote to destination
remote
.PP
This takes the following parameters
.IP \[bu] 2
srcFs \- a remote name string eg "drive:" for the source
.IP \[bu] 2
srcRemote \- a path within that remote eg "file.txt" for the source
.IP \[bu] 2
dstFs \- a remote name string eg "drive2:" for the destination
.IP \[bu] 2
dstRemote \- a path within that remote eg "file2.txt" for the
destination
.PP
Authentication is required for this call.
.SS operations/purge: Remove a directory or container and all of its
contents
.PP
This takes the following parameters
.IP \[bu] 2
fs \- a remote name string eg "drive:"
.IP \[bu] 2
remote \- a path within that remote eg "dir"
.PP
See the purge command (https://rclone.org/commands/rclone_purge/)
command for more information on the above.
.PP
Authentication is required for this call.
.SS operations/rmdir: Remove an empty directory or container
.PP
This takes the following parameters
.IP \[bu] 2
fs \- a remote name string eg "drive:"
.IP \[bu] 2
remote \- a path within that remote eg "dir"
.PP
See the rmdir command (https://rclone.org/commands/rclone_rmdir/)
command for more information on the above.
.PP
Authentication is required for this call.
.SS operations/rmdirs: Remove all the empty directories in the path
.PP
This takes the following parameters
.IP \[bu] 2
fs \- a remote name string eg "drive:"
.IP \[bu] 2
remote \- a path within that remote eg "dir"
.IP \[bu] 2
leaveRoot \- boolean, set to true not to delete the root
.PP
See the rmdirs command (https://rclone.org/commands/rclone_rmdirs/)
command for more information on the above.
.PP
Authentication is required for this call.
.SS operations/size: Count the number of bytes and files in remote
.PP
This takes the following parameters
.IP \[bu] 2
fs \- a remote name string eg "drive:path/to/dir"
.PP
Returns
.IP \[bu] 2
count \- number of files
.IP \[bu] 2
bytes \- number of bytes in those files
.PP
See the size command (https://rclone.org/commands/rclone_size/) command
for more information on the above.
.PP
Authentication is required for this call.
.SS options/blocks: List all the option blocks
.PP
Returns \- options \- a list of the options block names
.SS options/get: Get all the options
.PP
Returns an object where keys are option block names and values are an
object with the current option values in.
.PP
This shows the internal names of the option within rclone which should
map to the external options very easily with a few exceptions.
.SS options/set: Set an option
.PP
Parameters
.IP \[bu] 2
option block name containing an object with
.IP \[bu] 2
key: value
.PP
Repeated as often as required.
.PP
Only supply the options you wish to change.
If an option is unknown it will be silently ignored.
Not all options will have an effect when changed like this.
2019-02-09 10:42:57 +00:00
.PP
For example:
.PP
This sets DEBUG level logs (\-vv)
.IP
.nf
\f[C]
rclone\ rc\ options/set\ \-\-json\ \[aq]{"main":\ {"LogLevel":\ 8}}\[aq]
\f[]
.fi
.PP
And this sets INFO level logs (\-v)
.IP
.nf
\f[C]
rclone\ rc\ options/set\ \-\-json\ \[aq]{"main":\ {"LogLevel":\ 7}}\[aq]
\f[]
.fi
.PP
And this sets NOTICE level logs (normal without \-v)
.IP
.nf
\f[C]
rclone\ rc\ options/set\ \-\-json\ \[aq]{"main":\ {"LogLevel":\ 6}}\[aq]
\f[]
.fi
2018-04-28 10:46:27 +00:00
.SS rc/error: This returns an error
.PP
This returns an error with the input as part of its error string.
Useful for testing error handling.
.SS rc/list: List all the registered remote control commands
.PP
This lists all the registered remote control commands as a JSON map in
the commands response.
.SS rc/noop: Echo the input to the output parameters
.PP
This echoes the input parameters to the output parameters for testing
purposes.
It can be used to check that rclone is still alive and to check that
parameter passing is working properly.
2018-11-24 13:44:25 +00:00
.SS rc/noopauth: Echo the input to the output parameters requiring auth
.PP
This echoes the input parameters to the output parameters for testing
purposes.
It can be used to check that rclone is still alive and to check that
parameter passing is working properly.
.PP
Authentication is required for this call.
.SS sync/copy: copy a directory from source remote to destination remote
.PP
This takes the following parameters
.IP \[bu] 2
srcFs \- a remote name string eg "drive:src" for the source
.IP \[bu] 2
dstFs \- a remote name string eg "drive:dst" for the destination
.PP
See the copy command (https://rclone.org/commands/rclone_copy/) command
for more information on the above.
.PP
Authentication is required for this call.
.SS sync/move: move a directory from source remote to destination remote
.PP
This takes the following parameters
.IP \[bu] 2
srcFs \- a remote name string eg "drive:src" for the source
.IP \[bu] 2
dstFs \- a remote name string eg "drive:dst" for the destination
.IP \[bu] 2
deleteEmptySrcDirs \- delete empty src directories if set
.PP
See the move command (https://rclone.org/commands/rclone_move/) command
for more information on the above.
.PP
Authentication is required for this call.
.SS sync/sync: sync a directory from source remote to destination remote
.PP
This takes the following parameters
.IP \[bu] 2
srcFs \- a remote name string eg "drive:src" for the source
.IP \[bu] 2
dstFs \- a remote name string eg "drive:dst" for the destination
.PP
See the sync command (https://rclone.org/commands/rclone_sync/) command
for more information on the above.
.PP
Authentication is required for this call.
2018-03-19 10:06:13 +00:00
.SS vfs/forget: Forget files or directories in the directory cache.
.PP
This forgets the paths in the directory cache causing them to be
re\-read from the remote when needed.
.PP
If no paths are passed in then it will forget all the paths in the
directory cache.
.IP
.nf
\f[C]
rclone\ rc\ vfs/forget
\f[]
.fi
.PP
Otherwise pass files or dirs in as file=path or dir=path.
Any parameter key starting with file will forget that file and any
starting with dir will forget that dir, eg
.IP
.nf
\f[C]
rclone\ rc\ vfs/forget\ file=hello\ file2=goodbye\ dir=home/junk
\f[]
.fi
2018-10-15 10:03:08 +00:00
.SS vfs/poll\-interval: Get the status or update the value of the
poll\-interval option.
2018-09-01 11:58:00 +00:00
.PP
2018-10-15 10:03:08 +00:00
Without any parameter given this returns the current status of the
poll\-interval setting.
2018-09-01 11:58:00 +00:00
.PP
2018-10-15 10:03:08 +00:00
When the interval=duration parameter is set, the poll\-interval value is
updated and the polling function is notified.
Setting interval=0 disables poll\-interval.
2018-09-01 11:58:00 +00:00
.IP
.nf
\f[C]
2018-10-15 10:03:08 +00:00
rclone\ rc\ vfs/poll\-interval\ interval=5m
2018-09-01 11:58:00 +00:00
\f[]
.fi
.PP
2018-10-15 10:03:08 +00:00
The timeout=duration parameter can be used to specify a time to wait for
the current poll function to apply the new value.
If timeout is less or equal 0, which is the default, wait indefinitely.
.PP
The new poll\-interval value will only be active when the timeout is not
reached.
.PP
If poll\-interval is updated or disabled temporarily, some changes might
not get picked up by the polling function, depending on the used remote.
.SS vfs/refresh: Refresh the directory cache.
.PP
This reads the directories for the specified paths and freshens the
directory cache.
.PP
If no paths are passed in then it will refresh the root directory.
.IP
.nf
\f[C]
rclone\ rc\ vfs/refresh
\f[]
.fi
.PP
Otherwise pass directories in as dir=path.
Any parameter key starting with dir will refresh that directory, eg
.IP
2018-09-01 11:58:00 +00:00
.nf
\f[C]
rclone\ rc\ vfs/refresh\ dir=home/junk\ dir2=data/misc
\f[]
.fi
.PP
If the parameter recursive=true is given the whole directory tree will
get refreshed.
This refresh will use \-\-fast\-list if enabled.
2018-03-19 10:06:13 +00:00
.SS Accessing the remote control via HTTP
.PP
Rclone implements a simple HTTP based protocol.
.PP
Each endpoint takes an JSON object and returns a JSON object or an
error.
The JSON objects are essentially a map of string names to values.
.PP
All calls must made using POST.
.PP
The input objects can be supplied using URL parameters, POST parameters
or by supplying "Content\-Type: application/json" and a JSON blob in the
body.
There are examples of these below using \f[C]curl\f[].
.PP
The response will be a JSON blob in the body of the response.
This is formatted to be reasonably human readable.
2018-11-24 13:44:25 +00:00
.SS Error returns
2018-03-19 10:06:13 +00:00
.PP
2018-11-24 13:44:25 +00:00
If an error occurs then there will be an HTTP error status (eg 500) and
the body of the response will contain a JSON encoded error object, eg
.IP
.nf
\f[C]
{
\ \ \ \ "error":\ "Expecting\ string\ value\ for\ key\ \\"remote\\"\ (was\ float64)",
\ \ \ \ "input":\ {
\ \ \ \ \ \ \ \ "fs":\ "/tmp",
\ \ \ \ \ \ \ \ "remote":\ 3
\ \ \ \ },
\ \ \ \ "status":\ 400
\ \ \ \ "path":\ "operations/rmdir",
}
\f[]
.fi
.PP
The keys in the error response are \- error \- error string \- input \-
the input parameters to the call \- status \- the HTTP status code \-
path \- the path of the call
.SS CORS
2018-10-15 10:03:08 +00:00
.PP
The sever implements basic CORS support and allows all origins for that.
The response to a preflight OPTIONS request will echo the requested
"Access\-Control\-Request\-Headers" back.
2018-03-19 10:06:13 +00:00
.SS Using POST with URL parameters only
.IP
.nf
\f[C]
2018-11-24 13:44:25 +00:00
curl\ \-X\ POST\ \[aq]http://localhost:5572/rc/noop?potato=1&sausage=2\[aq]
2018-03-19 10:06:13 +00:00
\f[]
.fi
.PP
Response
.IP
.nf
\f[C]
{
\ \ \ \ "potato":\ "1",
\ \ \ \ "sausage":\ "2"
}
\f[]
.fi
.PP
Here is what an error response looks like:
.IP
.nf
\f[C]
2018-11-24 13:44:25 +00:00
curl\ \-X\ POST\ \[aq]http://localhost:5572/rc/error?potato=1&sausage=2\[aq]
2018-03-19 10:06:13 +00:00
\f[]
.fi
.IP
.nf
\f[C]
{
\ \ \ \ "error":\ "arbitrary\ error\ on\ input\ map[potato:1\ sausage:2]",
\ \ \ \ "input":\ {
\ \ \ \ \ \ \ \ "potato":\ "1",
\ \ \ \ \ \ \ \ "sausage":\ "2"
\ \ \ \ }
}
\f[]
.fi
.PP
Note that curl doesn\[aq]t return errors to the shell unless you use the
\f[C]\-f\f[] option
.IP
.nf
\f[C]
2018-11-24 13:44:25 +00:00
$\ curl\ \-f\ \-X\ POST\ \[aq]http://localhost:5572/rc/error?potato=1&sausage=2\[aq]
2018-03-19 10:06:13 +00:00
curl:\ (22)\ The\ requested\ URL\ returned\ error:\ 400\ Bad\ Request
$\ echo\ $?
22
\f[]
.fi
.SS Using POST with a form
.IP
.nf
\f[C]
2018-11-24 13:44:25 +00:00
curl\ \-\-data\ "potato=1"\ \-\-data\ "sausage=2"\ http://localhost:5572/rc/noop
2018-03-19 10:06:13 +00:00
\f[]
.fi
.PP
Response
.IP
.nf
\f[C]
{
\ \ \ \ "potato":\ "1",
\ \ \ \ "sausage":\ "2"
}
\f[]
.fi
.PP
Note that you can combine these with URL parameters too with the POST
parameters taking precedence.
.IP
.nf
\f[C]
2018-11-24 13:44:25 +00:00
curl\ \-\-data\ "potato=1"\ \-\-data\ "sausage=2"\ "http://localhost:5572/rc/noop?rutabaga=3&sausage=4"
2018-03-19 10:06:13 +00:00
\f[]
.fi
.PP
Response
.IP
.nf
\f[C]
{
\ \ \ \ "potato":\ "1",
\ \ \ \ "rutabaga":\ "3",
\ \ \ \ "sausage":\ "4"
}
\f[]
.fi
.SS Using POST with a JSON blob
.IP
.nf
\f[C]
2018-11-24 13:44:25 +00:00
curl\ \-H\ "Content\-Type:\ application/json"\ \-X\ POST\ \-d\ \[aq]{"potato":2,"sausage":1}\[aq]\ http://localhost:5572/rc/noop
2018-03-19 10:06:13 +00:00
\f[]
.fi
.PP
response
.IP
.nf
\f[C]
{
\ \ \ \ "password":\ "xyz",
\ \ \ \ "username":\ "xyz"
}
\f[]
.fi
.PP
This can be combined with URL parameters too if required.
The JSON blob takes precedence.
.IP
.nf
\f[C]
2018-11-24 13:44:25 +00:00
curl\ \-H\ "Content\-Type:\ application/json"\ \-X\ POST\ \-d\ \[aq]{"potato":2,"sausage":1}\[aq]\ \[aq]http://localhost:5572/rc/noop?rutabaga=3&potato=4\[aq]
2018-03-19 10:06:13 +00:00
\f[]
.fi
.IP
.nf
\f[C]
{
\ \ \ \ "potato":\ 2,
\ \ \ \ "rutabaga":\ "3",
\ \ \ \ "sausage":\ 1
}
\f[]
.fi
2018-06-16 17:21:09 +00:00
.SS Debugging rclone with pprof
.PP
If you use the \f[C]\-\-rc\f[] flag this will also enable the use of the
go profiling tools on the same port.
.PP
To use these, first install go (https://golang.org/doc/install).
2018-11-24 13:44:25 +00:00
.SS Debugging memory use
2018-06-16 17:21:09 +00:00
.PP
2018-11-24 13:44:25 +00:00
To profile rclone\[aq]s memory use you can run:
2018-06-16 17:21:09 +00:00
.IP
.nf
\f[C]
go\ tool\ pprof\ \-web\ http://localhost:5572/debug/pprof/heap
\f[]
.fi
.PP
This should open a page in your browser showing what is using what
memory.
.PP
You can also use the \f[C]\-text\f[] flag to produce a textual summary
.IP
.nf
\f[C]
$\ go\ tool\ pprof\ \-text\ http://localhost:5572/debug/pprof/heap
Showing\ nodes\ accounting\ for\ 1537.03kB,\ 100%\ of\ 1537.03kB\ total
\ \ \ \ \ \ flat\ \ flat%\ \ \ sum%\ \ \ \ \ \ \ \ cum\ \ \ cum%
\ 1024.03kB\ 66.62%\ 66.62%\ \ 1024.03kB\ 66.62%\ \ github.com/ncw/rclone/vendor/golang.org/x/net/http2/hpack.addDecoderNode
\ \ \ \ \ 513kB\ 33.38%\ \ \ 100%\ \ \ \ \ \ 513kB\ 33.38%\ \ net/http.newBufioWriterSize
\ \ \ \ \ \ \ \ \ 0\ \ \ \ \ 0%\ \ \ 100%\ \ 1024.03kB\ 66.62%\ \ github.com/ncw/rclone/cmd/all.init
\ \ \ \ \ \ \ \ \ 0\ \ \ \ \ 0%\ \ \ 100%\ \ 1024.03kB\ 66.62%\ \ github.com/ncw/rclone/cmd/serve.init
\ \ \ \ \ \ \ \ \ 0\ \ \ \ \ 0%\ \ \ 100%\ \ 1024.03kB\ 66.62%\ \ github.com/ncw/rclone/cmd/serve/restic.init
\ \ \ \ \ \ \ \ \ 0\ \ \ \ \ 0%\ \ \ 100%\ \ 1024.03kB\ 66.62%\ \ github.com/ncw/rclone/vendor/golang.org/x/net/http2.init
\ \ \ \ \ \ \ \ \ 0\ \ \ \ \ 0%\ \ \ 100%\ \ 1024.03kB\ 66.62%\ \ github.com/ncw/rclone/vendor/golang.org/x/net/http2/hpack.init
\ \ \ \ \ \ \ \ \ 0\ \ \ \ \ 0%\ \ \ 100%\ \ 1024.03kB\ 66.62%\ \ github.com/ncw/rclone/vendor/golang.org/x/net/http2/hpack.init.0
\ \ \ \ \ \ \ \ \ 0\ \ \ \ \ 0%\ \ \ 100%\ \ 1024.03kB\ 66.62%\ \ main.init
\ \ \ \ \ \ \ \ \ 0\ \ \ \ \ 0%\ \ \ 100%\ \ \ \ \ \ 513kB\ 33.38%\ \ net/http.(*conn).readRequest
\ \ \ \ \ \ \ \ \ 0\ \ \ \ \ 0%\ \ \ 100%\ \ \ \ \ \ 513kB\ 33.38%\ \ net/http.(*conn).serve
\ \ \ \ \ \ \ \ \ 0\ \ \ \ \ 0%\ \ \ 100%\ \ 1024.03kB\ 66.62%\ \ runtime.main
\f[]
.fi
2018-11-24 13:44:25 +00:00
.SS Debugging go routine leaks
.PP
Memory leaks are most often caused by go routine leaks keeping memory
alive which should have been garbage collected.
.PP
See all active go routines using
.IP
.nf
\f[C]
curl\ http://localhost:5572/debug/pprof/goroutine?debug=1
\f[]
.fi
.PP
Or go to http://localhost:5572/debug/pprof/goroutine?debug=1 in your
browser.
.SS Other profiles to look at
2018-06-16 17:21:09 +00:00
.PP
2018-11-24 13:44:25 +00:00
You can see a summary of profiles available at
http://localhost:5572/debug/pprof/
.PP
Here is how to use some of them:
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Memory: \f[C]go\ tool\ pprof\ http://localhost:5572/debug/pprof/heap\f[]
.IP \[bu] 2
2018-11-24 13:44:25 +00:00
Go routines:
\f[C]curl\ http://localhost:5572/debug/pprof/goroutine?debug=1\f[]
.IP \[bu] 2
2018-06-16 17:21:09 +00:00
30\-second CPU profile:
\f[C]go\ tool\ pprof\ http://localhost:5572/debug/pprof/profile\f[]
.IP \[bu] 2
5\-second execution trace:
\f[C]wget\ http://localhost:5572/debug/pprof/trace?seconds=5\f[]
.PP
See the net/http/pprof docs (https://golang.org/pkg/net/http/pprof/) for
more info on how to use the profiling and for a general overview see the
Go team\[aq]s blog post on profiling go
programs (https://blog.golang.org/profiling-go-programs).
.PP
The profiling hook is zero overhead unless it is
used (https://stackoverflow.com/q/26545159/164234).
.SH Overview of cloud storage systems
.PP
2017-12-23 13:07:45 +00:00
Each cloud storage system is slightly different.
Rclone attempts to provide a unified interface to them, but some
underlying differences show through.
.SS Features
.PP
Here is an overview of the major features of each cloud storage system.
.PP
.TS
tab(@);
2016-11-06 10:17:52 +00:00
l c c c c c.
T{
Name
T}@T{
Hash
T}@T{
ModTime
T}@T{
Case Insensitive
T}@T{
Duplicate Files
2016-11-06 10:17:52 +00:00
T}@T{
MIME Type
T}
_
T{
2017-09-30 13:19:47 +00:00
Amazon Drive
T}@T{
MD5
T}@T{
No
T}@T{
Yes
2016-11-06 10:17:52 +00:00
T}@T{
2017-09-30 13:19:47 +00:00
No
T}@T{
R
T}
T{
Amazon S3
T}@T{
MD5
T}@T{
Yes
T}@T{
No
T}@T{
No
2016-11-06 10:17:52 +00:00
T}@T{
R/W
T}
T{
2017-09-30 13:19:47 +00:00
Backblaze B2
T}@T{
2017-09-30 13:19:47 +00:00
SHA1
T}@T{
Yes
T}@T{
No
T}@T{
No
2016-11-06 10:17:52 +00:00
T}@T{
R/W
T}
T{
2017-09-30 13:19:47 +00:00
Box
T}@T{
SHA1
T}@T{
Yes
T}@T{
Yes
T}@T{
No
T}@T{
\-
T}
T{
Dropbox
T}@T{
DBHASH †
T}@T{
Yes
T}@T{
Yes
T}@T{
No
2016-11-06 10:17:52 +00:00
T}@T{
\-
T}
T{
2017-09-30 13:19:47 +00:00
FTP
T}@T{
\-
T}@T{
No
T}@T{
No
T}@T{
No
T}@T{
\-
T}
T{
Google Cloud Storage
T}@T{
MD5
T}@T{
Yes
T}@T{
No
T}@T{
No
2016-11-06 10:17:52 +00:00
T}@T{
R/W
T}
T{
2017-09-30 13:19:47 +00:00
Google Drive
T}@T{
MD5
T}@T{
2017-09-30 13:19:47 +00:00
Yes
T}@T{
No
T}@T{
Yes
T}@T{
2017-09-30 13:19:47 +00:00
R/W
T}
T{
HTTP
T}@T{
\-
T}@T{
No
T}@T{
No
T}@T{
No
2016-11-06 10:17:52 +00:00
T}@T{
R
T}
T{
2017-09-30 13:19:47 +00:00
Hubic
T}@T{
2017-09-30 13:19:47 +00:00
MD5
T}@T{
Yes
T}@T{
2017-09-30 13:19:47 +00:00
No
T}@T{
No
2016-11-06 10:17:52 +00:00
T}@T{
2017-09-30 13:19:47 +00:00
R/W
T}
T{
2018-09-01 11:58:00 +00:00
Jottacloud
T}@T{
MD5
T}@T{
Yes
T}@T{
Yes
T}@T{
No
T}@T{
R/W
T}
T{
2018-04-28 10:46:27 +00:00
Mega
T}@T{
\-
T}@T{
No
T}@T{
No
T}@T{
Yes
T}@T{
\-
T}
T{
2017-09-30 13:19:47 +00:00
Microsoft Azure Blob Storage
T}@T{
MD5
T}@T{
Yes
T}@T{
No
T}@T{
No
2016-11-06 10:17:52 +00:00
T}@T{
R/W
T}
T{
2017-09-30 13:19:47 +00:00
Microsoft OneDrive
T}@T{
2018-04-28 10:46:27 +00:00
SHA1 ‡‡
T}@T{
2016-04-18 17:30:29 +00:00
Yes
T}@T{
2017-09-30 13:19:47 +00:00
Yes
T}@T{
No
2016-11-06 10:17:52 +00:00
T}@T{
2017-09-30 13:19:47 +00:00
R
T}
T{
2018-06-16 17:21:09 +00:00
OpenDrive
T}@T{
MD5
T}@T{
Yes
T}@T{
Yes
T}@T{
No
T}@T{
\-
T}
T{
2017-09-30 13:19:47 +00:00
Openstack Swift
T}@T{
MD5
T}@T{
Yes
T}@T{
No
T}@T{
No
2016-11-06 10:17:52 +00:00
T}@T{
R/W
T}
T{
2017-12-23 13:07:45 +00:00
pCloud
T}@T{
MD5, SHA1
T}@T{
Yes
T}@T{
No
T}@T{
No
T}@T{
W
T}
T{
2017-09-30 13:19:47 +00:00
QingStor
2017-03-18 11:16:43 +00:00
T}@T{
2017-09-30 13:19:47 +00:00
MD5
2017-03-18 11:16:43 +00:00
T}@T{
2017-09-30 13:19:47 +00:00
No
2017-03-18 11:16:43 +00:00
T}@T{
2017-09-30 13:19:47 +00:00
No
2017-03-18 11:16:43 +00:00
T}@T{
No
T}@T{
2017-09-30 13:19:47 +00:00
R/W
2017-03-18 11:16:43 +00:00
T}
T{
2017-09-30 13:19:47 +00:00
SFTP
T}@T{
2017-09-30 13:19:47 +00:00
MD5, SHA1 ‡
T}@T{
Yes
T}@T{
2017-09-30 13:19:47 +00:00
Depends
T}@T{
No
T}@T{
\-
T}
T{
2017-12-23 13:07:45 +00:00
WebDAV
T}@T{
2019-02-09 10:42:57 +00:00
MD5, SHA1 ††
2017-12-23 13:07:45 +00:00
T}@T{
2019-02-09 10:42:57 +00:00
Yes †††
2017-12-23 13:07:45 +00:00
T}@T{
Depends
T}@T{
No
T}@T{
\-
T}
T{
2017-09-30 13:19:47 +00:00
Yandex Disk
2017-07-22 17:16:46 +00:00
T}@T{
2017-09-30 13:19:47 +00:00
MD5
2017-07-22 17:16:46 +00:00
T}@T{
Yes
T}@T{
No
T}@T{
2017-09-30 13:19:47 +00:00
No
T}@T{
R/W
2017-07-22 17:16:46 +00:00
T}
T{
The local filesystem
T}@T{
All
T}@T{
Yes
T}@T{
Depends
T}@T{
No
2016-11-06 10:17:52 +00:00
T}@T{
\-
T}
.TE
.SS Hash
.PP
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 \f[C]\-\-checksum\f[] flag in syncs and in
the \f[C]check\f[] command.
.PP
2017-09-30 13:19:47 +00:00
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.
2017-09-30 13:19:47 +00:00
.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.
2017-12-23 13:07:45 +00:00
.PP
2019-02-09 10:42:57 +00:00
†† WebDAV supports hashes when used with Owncloud and Nextcloud only.
.PP
††† WebDAV supports modtimes when used with Owncloud and Nextcloud only.
2018-04-28 10:46:27 +00:00
.PP
‡‡ Microsoft OneDrive Personal supports SHA1 hashes, whereas OneDrive
for business and SharePoint server support Microsoft\[aq]s own
QuickXorHash (https://docs.microsoft.com/en-us/onedrive/developer/code-snippets/quickxorhash).
.SS ModTime
.PP
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 \f[C]\-\-checksum\f[] flag.
.PP
All cloud storage systems support some kind of date on the object and
these will be set when transferring from the cloud storage system.
.SS Case Insensitive
.PP
If a cloud storage systems is case sensitive then it is possible to have
two files which differ only in case, eg \f[C]file.txt\f[] and
\f[C]FILE.txt\f[].
If a cloud storage system is case insensitive then that isn\[aq]t
possible.
.PP
This can cause problems when syncing between a case insensitive system
and a case sensitive system.
The symptom of this is that no matter how many times you run the sync it
never completes fully.
.PP
2017-03-18 11:16:43 +00:00
The local filesystem and SFTP may or may not be case sensitive depending
on OS.
.IP \[bu] 2
Windows \- usually case insensitive, though case is preserved
.IP \[bu] 2
OSX \- usually case insensitive, though it is possible to format case
sensitive
.IP \[bu] 2
Linux \- usually case sensitive, but there are case insensitive file
systems (eg FAT formatted USB keys)
.PP
Most of the time this doesn\[aq]t cause any problems as people tend to
avoid files whose name differs only by case even on case sensitive
systems.
.SS Duplicate files
.PP
If a cloud storage system allows duplicate files then it can have two
objects with the same name.
.PP
2016-04-18 17:30:29 +00:00
This confuses rclone greatly when syncing \- use the
\f[C]rclone\ dedupe\f[] command to rename or remove duplicates.
2016-11-06 10:17:52 +00:00
.SS MIME Type
.PP
MIME types (also known as media types) classify types of documents using
a simple text classification, eg \f[C]text/html\f[] or
\f[C]application/pdf\f[].
.PP
Some cloud storage systems support reading (\f[C]R\f[]) the MIME type of
objects and some support writing (\f[C]W\f[]) the MIME type of objects.
.PP
The MIME type can be important if you are serving files directly to HTTP
from the storage system.
.PP
If you are copying from a remote which supports reading (\f[C]R\f[]) to
a remote which supports writing (\f[C]W\f[]) then rclone will preserve
the MIME types.
Otherwise they will be guessed from the extension, or the remote itself
may assign the MIME type.
.SS Optional Features
.PP
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.
.PP
.TS
tab(@);
2018-04-28 10:46:27 +00:00
l c c c c c c c c c.
2016-11-06 10:17:52 +00:00
T{
Name
T}@T{
Purge
T}@T{
Copy
T}@T{
Move
T}@T{
DirMove
T}@T{
CleanUp
T}@T{
ListR
2017-09-30 13:19:47 +00:00
T}@T{
StreamUpload
2018-04-28 10:46:27 +00:00
T}@T{
LinkSharing
T}@T{
About
2016-11-06 10:17:52 +00:00
T}
_
T{
2017-09-30 13:19:47 +00:00
Amazon Drive
2016-11-06 10:17:52 +00:00
T}@T{
Yes
T}@T{
2017-09-30 13:19:47 +00:00
No
2016-11-06 10:17:52 +00:00
T}@T{
Yes
T}@T{
Yes
T}@T{
No #575 (https://github.com/ncw/rclone/issues/575)
T}@T{
No
2017-09-30 13:19:47 +00:00
T}@T{
No
2018-04-28 10:46:27 +00:00
T}@T{
No #2178 (https://github.com/ncw/rclone/issues/2178)
T}@T{
No
2016-11-06 10:17:52 +00:00
T}
T{
Amazon S3
T}@T{
No
T}@T{
Yes
T}@T{
No
T}@T{
No
T}@T{
No
T}@T{
Yes
2017-09-30 13:19:47 +00:00
T}@T{
Yes
2018-04-28 10:46:27 +00:00
T}@T{
No #2178 (https://github.com/ncw/rclone/issues/2178)
T}@T{
No
2016-11-06 10:17:52 +00:00
T}
T{
2017-09-30 13:19:47 +00:00
Backblaze B2
2016-11-06 10:17:52 +00:00
T}@T{
2017-09-30 13:19:47 +00:00
No
2016-11-06 10:17:52 +00:00
T}@T{
No
T}@T{
No
T}@T{
No
T}@T{
Yes
2017-09-30 13:19:47 +00:00
T}@T{
Yes
T}@T{
Yes
2018-04-28 10:46:27 +00:00
T}@T{
No #2178 (https://github.com/ncw/rclone/issues/2178)
T}@T{
No
2016-11-06 10:17:52 +00:00
T}
T{
2017-09-30 13:19:47 +00:00
Box
2016-11-06 10:17:52 +00:00
T}@T{
Yes
T}@T{
Yes
T}@T{
Yes
T}@T{
Yes
T}@T{
No #575 (https://github.com/ncw/rclone/issues/575)
T}@T{
No
2017-09-30 13:19:47 +00:00
T}@T{
Yes
2018-04-28 10:46:27 +00:00
T}@T{
2018-10-15 10:03:08 +00:00
Yes
2018-04-28 10:46:27 +00:00
T}@T{
No
2016-11-06 10:17:52 +00:00
T}
T{
2017-09-30 13:19:47 +00:00
Dropbox
2016-11-06 10:17:52 +00:00
T}@T{
Yes
T}@T{
Yes
T}@T{
2017-09-30 13:19:47 +00:00
Yes
2016-11-06 10:17:52 +00:00
T}@T{
2017-09-30 13:19:47 +00:00
Yes
T}@T{
No #575 (https://github.com/ncw/rclone/issues/575)
2016-11-06 10:17:52 +00:00
T}@T{
No
T}@T{
Yes
2018-04-28 10:46:27 +00:00
T}@T{
Yes
T}@T{
Yes
2016-11-06 10:17:52 +00:00
T}
T{
2017-09-30 13:19:47 +00:00
FTP
T}@T{
No
T}@T{
No
2016-11-06 10:17:52 +00:00
T}@T{
Yes
T}@T{
2017-09-30 13:19:47 +00:00
Yes
T}@T{
No
T}@T{
2016-11-06 10:17:52 +00:00
No
T}@T{
2017-01-02 15:30:34 +00:00
Yes
2018-04-28 10:46:27 +00:00
T}@T{
No #2178 (https://github.com/ncw/rclone/issues/2178)
T}@T{
No
2017-09-30 13:19:47 +00:00
T}
T{
Google Cloud Storage
2016-11-06 10:17:52 +00:00
T}@T{
2017-01-02 15:30:34 +00:00
Yes
2016-11-06 10:17:52 +00:00
T}@T{
2017-09-30 13:19:47 +00:00
Yes
T}@T{
No
T}@T{
No
T}@T{
No
2017-09-30 13:19:47 +00:00
T}@T{
Yes
T}@T{
Yes
2018-04-28 10:46:27 +00:00
T}@T{
No #2178 (https://github.com/ncw/rclone/issues/2178)
T}@T{
No
2016-11-06 10:17:52 +00:00
T}
T{
2017-09-30 13:19:47 +00:00
Google Drive
2016-11-06 10:17:52 +00:00
T}@T{
Yes
T}@T{
Yes
T}@T{
2017-03-18 11:16:43 +00:00
Yes
2016-11-06 10:17:52 +00:00
T}@T{
2017-09-30 13:19:47 +00:00
Yes
2016-11-06 10:17:52 +00:00
T}@T{
2017-09-30 13:19:47 +00:00
Yes
T}@T{
2018-09-01 11:58:00 +00:00
Yes
2017-09-30 13:19:47 +00:00
T}@T{
Yes
2018-04-28 10:46:27 +00:00
T}@T{
Yes
T}@T{
Yes
2017-09-30 13:19:47 +00:00
T}
T{
HTTP
T}@T{
No
T}@T{
No
T}@T{
No
T}@T{
No
T}@T{
No
T}@T{
No
T}@T{
No
2018-04-28 10:46:27 +00:00
T}@T{
No #2178 (https://github.com/ncw/rclone/issues/2178)
T}@T{
No
2016-11-06 10:17:52 +00:00
T}
T{
Hubic
T}@T{
Yes †
T}@T{
Yes
T}@T{
No
T}@T{
No
T}@T{
No
T}@T{
Yes
2017-09-30 13:19:47 +00:00
T}@T{
Yes
2018-04-28 10:46:27 +00:00
T}@T{
No #2178 (https://github.com/ncw/rclone/issues/2178)
T}@T{
Yes
T}
T{
2018-09-01 11:58:00 +00:00
Jottacloud
T}@T{
Yes
T}@T{
Yes
T}@T{
Yes
T}@T{
Yes
T}@T{
No
T}@T{
2018-10-15 10:03:08 +00:00
Yes
2018-09-01 11:58:00 +00:00
T}@T{
No
T}@T{
2018-10-15 10:03:08 +00:00
Yes
2018-09-01 11:58:00 +00:00
T}@T{
2018-10-15 10:03:08 +00:00
Yes
2018-09-01 11:58:00 +00:00
T}
T{
2018-04-28 10:46:27 +00:00
Mega
T}@T{
Yes
T}@T{
No
T}@T{
Yes
T}@T{
Yes
T}@T{
No
T}@T{
No
T}@T{
No
T}@T{
No #2178 (https://github.com/ncw/rclone/issues/2178)
T}@T{
Yes
2016-11-06 10:17:52 +00:00
T}
T{
2017-09-30 13:19:47 +00:00
Microsoft Azure Blob Storage
T}@T{
Yes
T}@T{
Yes
2016-11-06 10:17:52 +00:00
T}@T{
No
T}@T{
No
T}@T{
No
T}@T{
2017-09-30 13:19:47 +00:00
Yes
T}@T{
2016-11-06 10:17:52 +00:00
No
2018-04-28 10:46:27 +00:00
T}@T{
No #2178 (https://github.com/ncw/rclone/issues/2178)
T}@T{
No
2017-09-30 13:19:47 +00:00
T}
T{
Microsoft OneDrive
T}@T{
Yes
2016-11-06 10:17:52 +00:00
T}@T{
Yes
T}@T{
Yes
2017-09-30 13:19:47 +00:00
T}@T{
2018-09-01 11:58:00 +00:00
Yes
2017-09-30 13:19:47 +00:00
T}@T{
No #575 (https://github.com/ncw/rclone/issues/575)
T}@T{
No
T}@T{
No
2018-04-28 10:46:27 +00:00
T}@T{
2018-10-15 10:03:08 +00:00
Yes
2018-04-28 10:46:27 +00:00
T}@T{
Yes
2016-11-06 10:17:52 +00:00
T}
T{
2018-06-16 17:21:09 +00:00
OpenDrive
T}@T{
Yes
T}@T{
Yes
T}@T{
Yes
T}@T{
Yes
T}@T{
No
T}@T{
No
T}@T{
No
T}@T{
No
T}@T{
No
T}
T{
2017-09-30 13:19:47 +00:00
Openstack Swift
T}@T{
Yes †
2016-11-06 10:17:52 +00:00
T}@T{
Yes
T}@T{
No
T}@T{
No
T}@T{
No
T}@T{
2017-09-30 13:19:47 +00:00
Yes
T}@T{
Yes
2018-04-28 10:46:27 +00:00
T}@T{
No #2178 (https://github.com/ncw/rclone/issues/2178)
T}@T{
Yes
2016-11-06 10:17:52 +00:00
T}
T{
2017-12-23 13:07:45 +00:00
pCloud
T}@T{
Yes
T}@T{
Yes
T}@T{
Yes
T}@T{
Yes
T}@T{
Yes
T}@T{
No
T}@T{
No
2018-04-28 10:46:27 +00:00
T}@T{
No #2178 (https://github.com/ncw/rclone/issues/2178)
T}@T{
Yes
2017-12-23 13:07:45 +00:00
T}
T{
2017-09-30 13:19:47 +00:00
QingStor
2017-03-18 11:16:43 +00:00
T}@T{
No
T}@T{
Yes
T}@T{
2017-09-30 13:19:47 +00:00
No
T}@T{
No
2017-03-18 11:16:43 +00:00
T}@T{
No
T}@T{
2017-09-30 13:19:47 +00:00
Yes
T}@T{
No
2018-04-28 10:46:27 +00:00
T}@T{
No #2178 (https://github.com/ncw/rclone/issues/2178)
T}@T{
No
T}
T{
2017-09-30 13:19:47 +00:00
SFTP
T}@T{
No
T}@T{
No
T}@T{
Yes
T}@T{
Yes
T}@T{
No
T}@T{
No
2017-09-30 13:19:47 +00:00
T}@T{
Yes
2018-04-28 10:46:27 +00:00
T}@T{
No #2178 (https://github.com/ncw/rclone/issues/2178)
T}@T{
No
2017-03-18 11:16:43 +00:00
T}
T{
2017-12-23 13:07:45 +00:00
WebDAV
T}@T{
Yes
T}@T{
Yes
T}@T{
Yes
T}@T{
Yes
T}@T{
No
T}@T{
No
T}@T{
Yes ‡
2018-04-28 10:46:27 +00:00
T}@T{
No #2178 (https://github.com/ncw/rclone/issues/2178)
T}@T{
2019-02-09 10:42:57 +00:00
Yes
2017-12-23 13:07:45 +00:00
T}
T{
2017-09-30 13:19:47 +00:00
Yandex Disk
2017-07-22 17:16:46 +00:00
T}@T{
2017-09-30 13:19:47 +00:00
Yes
2017-07-22 17:16:46 +00:00
T}@T{
2018-11-24 13:44:25 +00:00
Yes
2017-07-22 17:16:46 +00:00
T}@T{
2018-11-24 13:44:25 +00:00
Yes
2017-07-22 17:16:46 +00:00
T}@T{
2017-09-30 13:19:47 +00:00
Yes
2017-07-22 17:16:46 +00:00
T}@T{
2017-09-30 13:19:47 +00:00
Yes
T}@T{
2018-11-24 13:44:25 +00:00
No
T}@T{
2017-09-30 13:19:47 +00:00
Yes
2018-04-28 10:46:27 +00:00
T}@T{
2018-11-24 13:44:25 +00:00
Yes
2018-04-28 10:46:27 +00:00
T}@T{
2018-11-24 13:44:25 +00:00
Yes
2017-07-22 17:16:46 +00:00
T}
T{
2016-11-06 10:17:52 +00:00
The local filesystem
T}@T{
Yes
T}@T{
No
T}@T{
Yes
T}@T{
Yes
T}@T{
No
T}@T{
No
2017-09-30 13:19:47 +00:00
T}@T{
Yes
2018-04-28 10:46:27 +00:00
T}@T{
No
T}@T{
Yes
2016-11-06 10:17:52 +00:00
T}
.TE
.SS Purge
.PP
This deletes a directory quicker than just deleting all the files in the
directory.
.PP
† Note Swift and Hubic implement this in order to delete directory
markers but they don\[aq]t actually have a quicker way of deleting files
other than deleting them individually.
2017-12-23 13:07:45 +00:00
.PP
‡ StreamUpload is not supported with Nextcloud
2016-11-06 10:17:52 +00:00
.SS Copy
.PP
Used when copying an object to and from the same remote.
This known as a server side copy so you can copy a file without
downloading it and uploading it again.
It is used if you use \f[C]rclone\ copy\f[] or \f[C]rclone\ move\f[] if
the remote doesn\[aq]t support \f[C]Move\f[] directly.
.PP
If the server doesn\[aq]t support \f[C]Copy\f[] directly then for copy
operations the file is downloaded then re\-uploaded.
.SS Move
.PP
Used when moving/renaming an object on the same remote.
This is known as a server side move of a file.
This is used in \f[C]rclone\ move\f[] if the server doesn\[aq]t support
\f[C]DirMove\f[].
.PP
If the server isn\[aq]t capable of \f[C]Move\f[] then rclone simulates
it with \f[C]Copy\f[] then delete.
If the server doesn\[aq]t support \f[C]Copy\f[] then rclone will
download the file and re\-upload it.
.SS DirMove
.PP
This is used to implement \f[C]rclone\ move\f[] to move a directory if
possible.
If it isn\[aq]t then it will use \f[C]Move\f[] on each file (which falls
back to \f[C]Copy\f[] then download and upload \- see \f[C]Move\f[]
section).
.SS CleanUp
.PP
This is used for emptying the trash for a remote by
\f[C]rclone\ cleanup\f[].
.PP
If the server can\[aq]t do \f[C]CleanUp\f[] then
\f[C]rclone\ cleanup\f[] will return an error.
.SS ListR
.PP
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.
2017-09-30 13:19:47 +00:00
.SS StreamUpload
.PP
2017-09-30 13:19:47 +00:00
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[].
2018-04-28 10:46:27 +00:00
.SS LinkSharing
.PP
Sets the necessary permissions on a file or folder and prints a link
that allows others to access them, even if they don\[aq]t have an
account on the particular cloud provider.
.SS About
.PP
This is used to fetch quota information from the remote, like bytes
used/free/quota and bytes used in the trash.
.PP
2019-02-09 10:42:57 +00:00
This is also used to return the space used, available for
\f[C]rclone\ mount\f[].
.PP
2018-04-28 10:46:27 +00:00
If the server can\[aq]t do \f[C]About\f[] then \f[C]rclone\ about\f[]
will return an error.
2018-03-19 10:06:13 +00:00
.SS Alias
.PP
2018-03-19 10:06:13 +00:00
The \f[C]alias\f[] remote provides a new name for another remote.
2017-09-30 13:19:47 +00:00
.PP
2018-03-19 10:06:13 +00:00
Paths may be as deep as required or a local path, eg
\f[C]remote:directory/subdirectory\f[] or
\f[C]/directory/subdirectory\f[].
.PP
2018-03-19 10:06:13 +00:00
During the initial setup with \f[C]rclone\ config\f[] you will specify
the target remote.
The target remote can either be a local path or another remote.
2017-09-30 13:19:47 +00:00
.PP
2018-03-19 10:06:13 +00:00
Subfolders can be used in target remote.
Asume a alias remote named \f[C]backup\f[] with the target
\f[C]mydrive:private/backup\f[].
Invoking \f[C]rclone\ mkdir\ backup:desktop\f[] is exactly the same as
invoking \f[C]rclone\ mkdir\ mydrive:private/backup/desktop\f[].
2017-09-30 13:19:47 +00:00
.PP
2018-03-19 10:06:13 +00:00
There will be no special handling of paths containing \f[C]\&..\f[]
segments.
Invoking \f[C]rclone\ mkdir\ backup:../desktop\f[] is exactly the same
as invoking \f[C]rclone\ mkdir\ mydrive:private/backup/../desktop\f[].
The empty path is not allowed as a remote.
To alias the current directory use \f[C]\&.\f[] instead.
2017-09-30 13:19:47 +00:00
.PP
2018-03-19 10:06:13 +00:00
Here is an example of how to make a alias called \f[C]remote\f[] for
local folder.
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
q)\ Quit\ config
2018-03-19 10:06:13 +00:00
n/s/q>\ n
name>\ remote
2016-03-01 09:00:01 +00:00
Type\ of\ storage\ to\ configure.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2018-03-19 10:06:13 +00:00
\ 1\ /\ Alias\ for\ a\ existing\ remote
\ \ \ \\\ "alias"
\ 2\ /\ Amazon\ Drive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "amazon\ cloud\ drive"
2018-03-19 10:06:13 +00:00
\ 3\ /\ Amazon\ S3\ (also\ Dreamhost,\ Ceph,\ Minio)
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "s3"
2018-03-19 10:06:13 +00:00
\ 4\ /\ Backblaze\ B2
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "b2"
2018-03-19 10:06:13 +00:00
\ 5\ /\ Box
\ \ \ \\\ "box"
\ 6\ /\ Cache\ a\ remote
\ \ \ \\\ "cache"
\ 7\ /\ Dropbox
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "dropbox"
2018-03-19 10:06:13 +00:00
\ 8\ /\ Encrypt/Decrypt\ a\ remote
2017-03-18 11:16:43 +00:00
\ \ \ \\\ "crypt"
2018-03-19 10:06:13 +00:00
\ 9\ /\ FTP\ Connection
\ \ \ \\\ "ftp"
2018-03-19 10:06:13 +00:00
10\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "google\ cloud\ storage"
2018-03-19 10:06:13 +00:00
11\ /\ Google\ Drive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "drive"
2018-03-19 10:06:13 +00:00
12\ /\ Hubic
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "hubic"
2018-03-19 10:06:13 +00:00
13\ /\ Local\ Disk
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "local"
2018-03-19 10:06:13 +00:00
14\ /\ Microsoft\ Azure\ Blob\ Storage
\ \ \ \\\ "azureblob"
15\ /\ Microsoft\ OneDrive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "onedrive"
2018-03-19 10:06:13 +00:00
16\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "swift"
2018-03-19 10:06:13 +00:00
17\ /\ Pcloud
\ \ \ \\\ "pcloud"
18\ /\ QingCloud\ Object\ Storage
\ \ \ \\\ "qingstor"
19\ /\ SSH/SFTP\ Connection
2017-03-18 11:16:43 +00:00
\ \ \ \\\ "sftp"
2018-03-19 10:06:13 +00:00
20\ /\ Webdav
\ \ \ \\\ "webdav"
21\ /\ Yandex\ Disk
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "yandex"
2018-03-19 10:06:13 +00:00
22\ /\ http\ Connection
\ \ \ \\\ "http"
2017-09-30 13:19:47 +00:00
Storage>\ 1
2018-03-19 10:06:13 +00:00
Remote\ or\ path\ to\ alias.
Can\ be\ "myremote:path/to/dir",\ "myremote:bucket",\ "myremote:"\ or\ "/local/path".
remote>\ /mnt/storage/backup
Remote\ config
2018-03-19 10:06:13 +00:00
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[remote]
remote\ =\ /mnt/storage/backup
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
d)\ Delete\ this\ remote
y/e/d>\ y
Current\ remotes:
Name\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Type
====\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ====
remote\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ alias
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
Once configured you can then use \f[C]rclone\f[] like this,
.PP
List directories in top level in \f[C]/mnt/storage/backup\f[]
.IP
.nf
\f[C]
rclone\ lsd\ remote:
\f[]
.fi
.PP
List all the files in \f[C]/mnt/storage/backup\f[]
.IP
.nf
\f[C]
rclone\ ls\ remote:
\f[]
.fi
.PP
Copy another local directory to the alias directory called source
.IP
.nf
\f[C]
rclone\ copy\ /home/source\ remote:source
\f[]
.fi
2018-10-15 10:03:08 +00:00
.SS Standard Options
.PP
Here are the standard options specific to alias (Alias for a existing
remote).
.SS \-\-alias\-remote
.PP
Remote or path to alias.
Can be "myremote:path/to/dir", "myremote:bucket", "myremote:" or
"/local/path".
.IP \[bu] 2
Config: remote
.IP \[bu] 2
Env Var: RCLONE_ALIAS_REMOTE
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
2018-03-19 10:06:13 +00:00
.SS Amazon Drive
.PP
2018-09-01 11:58:00 +00:00
Amazon Drive, formerly known as Amazon Cloud Drive, is a cloud storage
service run by Amazon for consumers.
.SS Status
2018-03-19 10:06:13 +00:00
.PP
2018-09-01 11:58:00 +00:00
\f[B]Important:\f[] rclone supports Amazon Drive only if you have your
own set of API keys.
Unfortunately the Amazon Drive developer
program (https://developer.amazon.com/amazon-drive) is now closed to new
entries so if you don\[aq]t already have your own set of keys you will
not be able to use rclone with Amazon Drive.
.PP
For the history on why rclone no longer has a set of Amazon Drive API
keys see the
forum (https://forum.rclone.org/t/rclone-has-been-banned-from-amazon-drive/2314).
.PP
If you happen to know anyone who works at Amazon then please ask them to
re\-instate rclone into the Amazon Drive developer program \- thanks!
.SS Setup
2018-03-19 10:06:13 +00:00
.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
2018-09-01 11:58:00 +00:00
Since rclone doesn\[aq]t currently have its own Amazon Drive credentials
so you will either need to have your own \f[C]client_id\f[] and
2018-03-19 10:06:13 +00:00
\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]
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
to unblock it temporarily if you are running a host firewall.
.PP
2017-09-30 13:19:47 +00:00
Once configured you can then use \f[C]rclone\f[] like this,
.PP
2017-09-30 13:19:47 +00:00
List directories in top level of your Amazon Drive
.IP
.nf
\f[C]
rclone\ lsd\ remote:
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
List all the files in your Amazon Drive
.IP
.nf
\f[C]
rclone\ ls\ remote:
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
To copy a local directory to an Amazon Drive directory called backup
.IP
.nf
\f[C]
rclone\ copy\ /home/source\ remote:backup
\f[]
.fi
2017-09-30 13:19:47 +00:00
.SS Modified time and MD5SUMs
.PP
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
It does store MD5SUMs so for a more accurate sync, you can use the
\f[C]\-\-checksum\f[] flag.
.SS Deleting files
.PP
2017-09-30 13:19:47 +00:00
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.
2018-10-15 10:03:08 +00:00
.SS Standard Options
.PP
2018-10-15 10:03:08 +00:00
Here are the standard options specific to amazon cloud drive (Amazon
Drive).
.SS \-\-acd\-client\-id
.PP
2018-10-15 10:03:08 +00:00
Amazon Application Client ID.
.IP \[bu] 2
Config: client_id
.IP \[bu] 2
Env Var: RCLONE_ACD_CLIENT_ID
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-acd\-client\-secret
.PP
Amazon Application Client Secret.
.IP \[bu] 2
Config: client_secret
.IP \[bu] 2
Env Var: RCLONE_ACD_CLIENT_SECRET
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS Advanced Options
.PP
Here are the advanced options specific to amazon cloud drive (Amazon
Drive).
.SS \-\-acd\-auth\-url
.PP
Auth server URL.
Leave blank to use Amazon\[aq]s.
.IP \[bu] 2
Config: auth_url
.IP \[bu] 2
Env Var: RCLONE_ACD_AUTH_URL
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-acd\-token\-url
.PP
Token server url.
leave blank to use Amazon\[aq]s.
.IP \[bu] 2
Config: token_url
.IP \[bu] 2
Env Var: RCLONE_ACD_TOKEN_URL
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-acd\-checkpoint
.PP
Checkpoint for internal polling (debug).
.IP \[bu] 2
Config: checkpoint
.IP \[bu] 2
Env Var: RCLONE_ACD_CHECKPOINT
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-acd\-upload\-wait\-per\-gb
.PP
2018-10-15 10:03:08 +00:00
Additional time per GB to wait after a failed complete upload to see if
it appears.
.PP
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
These values were determined empirically by observing lots of uploads of
big files for a range of file sizes.
.PP
2018-10-15 10:03:08 +00:00
Upload with the "\-v" flag to see more info about what rclone is doing
in this situation.
.IP \[bu] 2
Config: upload_wait_per_gb
.IP \[bu] 2
Env Var: RCLONE_ACD_UPLOAD_WAIT_PER_GB
.IP \[bu] 2
Type: Duration
.IP \[bu] 2
Default: 3m0s
.SS \-\-acd\-templink\-threshold
.PP
Files >= this size will be downloaded via their tempLink.
.PP
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\[aq]t need to be changed.
.PP
To download files above this threshold, rclone requests a "tempLink"
which downloads the file through a temporary URL directly from the
underlying S3 storage.
.IP \[bu] 2
Config: templink_threshold
.IP \[bu] 2
Env Var: RCLONE_ACD_TEMPLINK_THRESHOLD
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 9G
2017-09-30 13:19:47 +00:00
.SS Limitations
.PP
2017-09-30 13:19:47 +00:00
Note that Amazon Drive is case insensitive so you can\[aq]t have a file
called "Hello.doc" and one called "hello.doc".
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
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.
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
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.
2017-03-18 11:16:43 +00:00
.PP
2017-09-30 13:19:47 +00:00
At the time of writing (Jan 2016) is in the area of 50GB per file.
This means that larger files are likely to fail.
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
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.
2018-04-28 10:46:27 +00:00
.SS Amazon S3 Storage Providers
.PP
The S3 backend can be used with a number of different providers:
.IP \[bu] 2
AWS S3
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Alibaba Cloud (Aliyun) Object Storage System (OSS)
.IP \[bu] 2
2018-04-28 10:46:27 +00:00
Ceph
.IP \[bu] 2
DigitalOcean Spaces
.IP \[bu] 2
Dreamhost
.IP \[bu] 2
IBM COS S3
.IP \[bu] 2
Minio
.IP \[bu] 2
Wasabi
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
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[].
2017-07-22 17:16:46 +00:00
.PP
2018-04-28 10:46:27 +00:00
Once you have made a remote (see the provider specific section above)
you can use it 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 AWS S3
.PP
2017-09-30 13:19:47 +00:00
Here is an example of making an s3 configuration.
First run
.IP
.nf
\f[C]
rclone\ config
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
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
2018-03-19 10:06:13 +00:00
q)\ Quit\ config
n/s/q>\ n
2017-09-30 13:19:47 +00:00
name>\ remote
Type\ of\ storage\ to\ configure.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2018-03-19 10:06:13 +00:00
\ 1\ /\ Alias\ for\ a\ existing\ remote
\ \ \ \\\ "alias"
\ 2\ /\ Amazon\ Drive
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "amazon\ cloud\ drive"
2018-04-28 10:46:27 +00:00
\ 3\ /\ Amazon\ S3\ Compliant\ Storage\ Providers\ (AWS,\ Ceph,\ Dreamhost,\ IBM\ COS,\ Minio)
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "s3"
2018-03-19 10:06:13 +00:00
\ 4\ /\ Backblaze\ B2
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "b2"
2018-03-19 10:06:13 +00:00
[snip]
23\ /\ http\ Connection
\ \ \ \\\ "http"
Storage>\ s3
2018-04-28 10:46:27 +00:00
Choose\ your\ S3\ provider.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ 1\ /\ Amazon\ Web\ Services\ (AWS)\ S3
\ \ \ \\\ "AWS"
\ 2\ /\ Ceph\ Object\ Storage
\ \ \ \\\ "Ceph"
\ 3\ /\ Digital\ Ocean\ Spaces
\ \ \ \\\ "DigitalOcean"
\ 4\ /\ Dreamhost\ DreamObjects
\ \ \ \\\ "Dreamhost"
\ 5\ /\ IBM\ COS\ S3
\ \ \ \\\ "IBMCOS"
\ 6\ /\ Minio\ Object\ Storage
\ \ \ \\\ "Minio"
\ 7\ /\ Wasabi\ Object\ Storage
\ \ \ \\\ "Wasabi"
\ 8\ /\ Any\ other\ S3\ compatible\ provider
\ \ \ \\\ "Other"
provider>\ 1
2017-12-23 13:07:45 +00:00
Get\ AWS\ credentials\ from\ runtime\ (environment\ variables\ or\ EC2/ECS\ meta\ data\ if\ no\ env\ vars).\ Only\ applies\ if\ access_key_id\ and\ secret_access_key\ is\ blank.
2017-09-30 13:19:47 +00:00
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.
2018-03-19 10:06:13 +00:00
access_key_id>\ XXX
2017-09-30 13:19:47 +00:00
AWS\ Secret\ Access\ Key\ (password)\ \-\ leave\ blank\ for\ anonymous\ access\ or\ runtime\ credentials.
2018-03-19 10:06:13 +00:00
secret_access_key>\ YYY
2018-04-28 10:46:27 +00:00
Region\ to\ connect\ to.
2017-09-30 13:19:47 +00:00
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"
2018-03-19 10:06:13 +00:00
\ \ \ /\ US\ East\ (Ohio)\ Region
\ 2\ |\ Needs\ location\ constraint\ us\-east\-2.
\ \ \ \\\ "us\-east\-2"
2017-09-30 13:19:47 +00:00
\ \ \ /\ US\ West\ (Oregon)\ Region
2018-03-19 10:06:13 +00:00
\ 3\ |\ Needs\ location\ constraint\ us\-west\-2.
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "us\-west\-2"
\ \ \ /\ US\ West\ (Northern\ California)\ Region
2018-03-19 10:06:13 +00:00
\ 4\ |\ Needs\ location\ constraint\ us\-west\-1.
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "us\-west\-1"
2018-03-19 10:06:13 +00:00
\ \ \ /\ Canada\ (Central)\ Region
\ 5\ |\ Needs\ location\ constraint\ ca\-central\-1.
\ \ \ \\\ "ca\-central\-1"
\ \ \ /\ EU\ (Ireland)\ Region
\ 6\ |\ Needs\ location\ constraint\ EU\ or\ eu\-west\-1.
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "eu\-west\-1"
2018-03-19 10:06:13 +00:00
\ \ \ /\ EU\ (London)\ Region
\ 7\ |\ Needs\ location\ constraint\ eu\-west\-2.
\ \ \ \\\ "eu\-west\-2"
2017-09-30 13:19:47 +00:00
\ \ \ /\ EU\ (Frankfurt)\ Region
2018-03-19 10:06:13 +00:00
\ 8\ |\ Needs\ location\ constraint\ eu\-central\-1.
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "eu\-central\-1"
\ \ \ /\ Asia\ Pacific\ (Singapore)\ Region
2018-03-19 10:06:13 +00:00
\ 9\ |\ Needs\ location\ constraint\ ap\-southeast\-1.
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "ap\-southeast\-1"
\ \ \ /\ Asia\ Pacific\ (Sydney)\ Region
2018-03-19 10:06:13 +00:00
10\ |\ Needs\ location\ constraint\ ap\-southeast\-2.
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "ap\-southeast\-2"
\ \ \ /\ Asia\ Pacific\ (Tokyo)\ Region
2018-03-19 10:06:13 +00:00
11\ |\ Needs\ location\ constraint\ ap\-northeast\-1.
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "ap\-northeast\-1"
\ \ \ /\ Asia\ Pacific\ (Seoul)
2018-03-19 10:06:13 +00:00
12\ |\ Needs\ location\ constraint\ ap\-northeast\-2.
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "ap\-northeast\-2"
\ \ \ /\ Asia\ Pacific\ (Mumbai)
2018-03-19 10:06:13 +00:00
13\ |\ Needs\ location\ constraint\ ap\-south\-1.
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "ap\-south\-1"
\ \ \ /\ South\ America\ (Sao\ Paulo)\ Region
2018-03-19 10:06:13 +00:00
14\ |\ Needs\ location\ constraint\ sa\-east\-1.
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "sa\-east\-1"
region>\ 1
Endpoint\ for\ S3\ API.
Leave\ blank\ if\ using\ AWS\ to\ use\ the\ default\ endpoint\ for\ the\ region.
2018-03-19 10:06:13 +00:00
endpoint>\
2017-09-30 13:19:47 +00:00
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.
\ \ \ \\\ ""
2018-03-19 10:06:13 +00:00
\ 2\ /\ US\ East\ (Ohio)\ Region.
\ \ \ \\\ "us\-east\-2"
\ 3\ /\ US\ West\ (Oregon)\ Region.
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "us\-west\-2"
2018-03-19 10:06:13 +00:00
\ 4\ /\ US\ West\ (Northern\ California)\ Region.
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "us\-west\-1"
2018-03-19 10:06:13 +00:00
\ 5\ /\ Canada\ (Central)\ Region.
\ \ \ \\\ "ca\-central\-1"
\ 6\ /\ EU\ (Ireland)\ Region.
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "eu\-west\-1"
2018-03-19 10:06:13 +00:00
\ 7\ /\ EU\ (London)\ Region.
\ \ \ \\\ "eu\-west\-2"
\ 8\ /\ EU\ Region.
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "EU"
2018-03-19 10:06:13 +00:00
\ 9\ /\ Asia\ Pacific\ (Singapore)\ Region.
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "ap\-southeast\-1"
2018-03-19 10:06:13 +00:00
10\ /\ Asia\ Pacific\ (Sydney)\ Region.
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "ap\-southeast\-2"
2018-03-19 10:06:13 +00:00
11\ /\ Asia\ Pacific\ (Tokyo)\ Region.
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "ap\-northeast\-1"
2018-03-19 10:06:13 +00:00
12\ /\ Asia\ Pacific\ (Seoul)
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "ap\-northeast\-2"
2018-03-19 10:06:13 +00:00
13\ /\ Asia\ Pacific\ (Mumbai)
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "ap\-south\-1"
2018-03-19 10:06:13 +00:00
14\ /\ South\ America\ (Sao\ Paulo)\ Region.
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "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"
2018-03-19 10:06:13 +00:00
acl>\ 1
2017-09-30 13:19:47 +00:00
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"
2018-03-19 10:06:13 +00:00
server_side_encryption>\ 1
2017-09-30 13:19:47 +00:00
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"
2018-04-28 10:46:27 +00:00
\ 5\ /\ One\ Zone\ Infrequent\ Access\ storage\ class
\ \ \ \\\ "ONEZONE_IA"
2019-02-09 10:42:57 +00:00
\ 6\ /\ Glacier\ storage\ class
\ \ \ \\\ "GLACIER"
2018-03-19 10:06:13 +00:00
storage_class>\ 1
2017-09-30 13:19:47 +00:00
Remote\ config
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[remote]
2018-04-28 10:46:27 +00:00
type\ =\ s3
provider\ =\ AWS
2017-09-30 13:19:47 +00:00
env_auth\ =\ false
2018-03-19 10:06:13 +00:00
access_key_id\ =\ XXX
secret_access_key\ =\ YYY
2017-09-30 13:19:47 +00:00
region\ =\ us\-east\-1
2018-03-19 10:06:13 +00:00
endpoint\ =\
location_constraint\ =\
2017-09-30 13:19:47 +00:00
acl\ =\ private
2018-03-19 10:06:13 +00:00
server_side_encryption\ =\
storage_class\ =\
2017-09-30 13:19:47 +00:00
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
d)\ Delete\ this\ remote
2018-04-28 10:46:27 +00:00
y/e/d>\
2017-09-30 13:19:47 +00:00
\f[]
.fi
.SS \-\-fast\-list
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
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.
2018-04-28 10:46:27 +00:00
.SS \-\-update and \-\-use\-server\-modtime
.PP
As noted below, the modified time is stored on metadata on the object.
It is used by default for all operations that require checking the time
a file was last updated.
It allows rclone to treat the remote more like a true filesystem, but it
is inefficient because it requires an extra API call to retrieve the
metadata.
.PP
For many operations, the time the object was last uploaded to the remote
is sufficient to determine if it is "dirty".
By using \f[C]\-\-update\f[] along with
\f[C]\-\-use\-server\-modtime\f[], you can avoid the extra API call and
simply upload files whose local modtime is newer than the time it was
last uploaded.
2017-09-30 13:19:47 +00:00
.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.
2019-02-09 10:42:57 +00:00
.PP
2018-03-19 10:06:13 +00:00
Note that files uploaded \f[I]both\f[] with multipart upload
\f[I]and\f[] through crypt remotes do not have MD5 sums.
2019-02-09 10:42:57 +00:00
.PP
Rclone switches from single part uploads to multipart uploads at the
point specified by \f[C]\-\-s3\-upload\-cutoff\f[].
This can be a maximum of 5GB and a minimum of 0 (ie always upload
mulipart files).
.PP
The chunk sizes used in the multipart upload are specified by
\f[C]\-\-s3\-chunk\-size\f[] and the number of chunks uploaded
concurrently is specified by \f[C]\-\-s3\-upload\-concurrency\f[].
.PP
Multipart uploads will use \f[C]\-\-transfers\f[] *
\f[C]\-\-s3\-upload\-concurrency\f[] * \f[C]\-\-s3\-chunk\-size\f[]
extra memory.
Single part uploads to not use extra memory.
.PP
Single part transfers can be faster than multipart transfers or slower
depending on your latency from S3 \- the more latency, the more likely
single part transfers will be faster.
.PP
Increasing \f[C]\-\-s3\-upload\-concurrency\f[] will increase throughput
(8 would be a sensible value) and increasing
\f[C]\-\-s3\-chunk\-size\f[] also increases througput (16M would be
sensible).
Increasing either of these will use more memory.
The default values are high enough to gain most of the possible
performance without using too much memory.
2017-09-30 13:19:47 +00:00
.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
2018-04-28 10:46:27 +00:00
There are a number of ways to supply \f[C]rclone\f[] with a set of AWS
credentials, with and without using the environment.
.PP
The different authentication methods are tried in this order:
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
2018-04-28 10:46:27 +00:00
Directly in the rclone configuration file (\f[C]env_auth\ =\ false\f[]
in the config file):
.IP \[bu] 2
\f[C]access_key_id\f[] and \f[C]secret_access_key\f[] are required.
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
\f[C]session_token\f[] can be optionally set when using AWS STS.
.IP \[bu] 2
2018-04-28 10:46:27 +00:00
Runtime configuration (\f[C]env_auth\ =\ true\f[] in the config file):
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
2018-04-28 10:46:27 +00:00
Export the following environment variables before running
\f[C]rclone\f[]:
2017-09-30 13:19:47 +00:00
.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
2018-04-28 10:46:27 +00:00
Session Token: \f[C]AWS_SESSION_TOKEN\f[] (optional)
.RE
.IP \[bu] 2
Or, use a named
profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-multiple-profiles.html):
.RS 2
.IP \[bu] 2
Profile files are standard files used by AWS CLI tools
.IP \[bu] 2
By default it will use the profile in your home directory (eg
\f[C]~/.aws/credentials\f[] on unix based systems) file and the
"default" profile, to change set these environment variables:
.RS 2
.IP \[bu] 2
\f[C]AWS_SHARED_CREDENTIALS_FILE\f[] to control which file.
.IP \[bu] 2
\f[C]AWS_PROFILE\f[] to control which profile to use.
.RE
2017-09-30 13:19:47 +00:00
.RE
.IP \[bu] 2
2018-04-28 10:46:27 +00:00
Or, run \f[C]rclone\f[] in an ECS task with an IAM role (AWS only).
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
2018-04-28 10:46:27 +00:00
Or, run \f[C]rclone\f[] on an EC2 instance with an IAM role (AWS only).
2017-09-30 13:19:47 +00:00
.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[].
2018-03-19 10:06:13 +00:00
.SS Key Management System (KMS)
.PP
If you are using server side encryption with KMS then you will find you
can\[aq]t transfer small objects.
As a work\-around you can use the \f[C]\-\-ignore\-checksum\f[] flag.
.PP
A proper fix is being worked on in issue
#1824 (https://github.com/ncw/rclone/issues/1824).
2017-09-30 13:19:47 +00:00
.SS Glacier
.PP
2019-02-09 10:42:57 +00:00
You can upload objects using the glacier storage class or transition
them to glacier using a lifecycle
2017-09-30 13:19:47 +00:00
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
2019-02-09 10:42:57 +00:00
tries to access data from the glacier storage class you will see an
error like below.
2017-09-30 13:19:47 +00:00
.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.
2018-10-15 10:03:08 +00:00
.SS Standard Options
2017-09-30 13:19:47 +00:00
.PP
2018-10-15 10:03:08 +00:00
Here are the standard options specific to s3 (Amazon S3 Compliant
2019-02-09 10:42:57 +00:00
Storage Provider (AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS,
Minio, etc)).
2018-10-15 10:03:08 +00:00
.SS \-\-s3\-provider
2017-09-30 13:19:47 +00:00
.PP
2018-10-15 10:03:08 +00:00
Choose your S3 provider.
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
Config: provider
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
Env Var: RCLONE_S3_PROVIDER
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
Type: string
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"AWS"
.RS 2
.IP \[bu] 2
Amazon Web Services (AWS) S3
.RE
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
"Alibaba"
.RS 2
.IP \[bu] 2
Alibaba Cloud Object Storage System (OSS) formerly Aliyun
.RE
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
"Ceph"
.RS 2
.IP \[bu] 2
Ceph Object Storage
.RE
.IP \[bu] 2
"DigitalOcean"
.RS 2
.IP \[bu] 2
Digital Ocean Spaces
.RE
.IP \[bu] 2
"Dreamhost"
.RS 2
.IP \[bu] 2
Dreamhost DreamObjects
.RE
.IP \[bu] 2
"IBMCOS"
.RS 2
.IP \[bu] 2
IBM COS S3
.RE
.IP \[bu] 2
"Minio"
.RS 2
.IP \[bu] 2
Minio Object Storage
.RE
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
"Netease"
.RS 2
.IP \[bu] 2
Netease Object Storage (NOS)
.RE
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
"Wasabi"
.RS 2
.IP \[bu] 2
Wasabi Object Storage
.RE
.IP \[bu] 2
"Other"
.RS 2
.IP \[bu] 2
Any other S3 compatible provider
.RE
.RE
.SS \-\-s3\-env\-auth
2018-04-28 10:46:27 +00:00
.PP
2018-10-15 10:03:08 +00:00
Get AWS credentials from runtime (environment variables or EC2/ECS meta
data if no env vars).
Only applies if access_key_id and secret_access_key is blank.
.IP \[bu] 2
Config: env_auth
.IP \[bu] 2
Env Var: RCLONE_S3_ENV_AUTH
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"false"
.RS 2
.IP \[bu] 2
Enter AWS credentials in the next step
.RE
.IP \[bu] 2
"true"
.RS 2
.IP \[bu] 2
Get AWS credentials from the environment (env vars or IAM)
.RE
.RE
.SS \-\-s3\-access\-key\-id
2018-04-28 10:46:27 +00:00
.PP
2018-10-15 10:03:08 +00:00
AWS Access Key ID.
Leave blank for anonymous access or runtime credentials.
.IP \[bu] 2
Config: access_key_id
.IP \[bu] 2
Env Var: RCLONE_S3_ACCESS_KEY_ID
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-s3\-secret\-access\-key
2018-09-01 11:58:00 +00:00
.PP
2018-10-15 10:03:08 +00:00
AWS Secret Access Key (password) Leave blank for anonymous access or
runtime credentials.
.IP \[bu] 2
Config: secret_access_key
.IP \[bu] 2
Env Var: RCLONE_S3_SECRET_ACCESS_KEY
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-s3\-region
2018-09-01 11:58:00 +00:00
.PP
2018-10-15 10:03:08 +00:00
Region to connect to.
.IP \[bu] 2
Config: region
.IP \[bu] 2
Env Var: RCLONE_S3_REGION
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"us\-east\-1"
.RS 2
.IP \[bu] 2
The default endpoint \- a good choice if you are unsure.
.IP \[bu] 2
US Region, Northern Virginia or Pacific Northwest.
.IP \[bu] 2
Leave location constraint empty.
.RE
.IP \[bu] 2
"us\-east\-2"
.RS 2
.IP \[bu] 2
US East (Ohio) Region
.IP \[bu] 2
Needs location constraint us\-east\-2.
.RE
.IP \[bu] 2
"us\-west\-2"
.RS 2
.IP \[bu] 2
US West (Oregon) Region
.IP \[bu] 2
Needs location constraint us\-west\-2.
.RE
.IP \[bu] 2
"us\-west\-1"
.RS 2
.IP \[bu] 2
US West (Northern California) Region
.IP \[bu] 2
Needs location constraint us\-west\-1.
.RE
.IP \[bu] 2
"ca\-central\-1"
.RS 2
.IP \[bu] 2
Canada (Central) Region
.IP \[bu] 2
Needs location constraint ca\-central\-1.
.RE
.IP \[bu] 2
"eu\-west\-1"
.RS 2
.IP \[bu] 2
EU (Ireland) Region
.IP \[bu] 2
Needs location constraint EU or eu\-west\-1.
.RE
.IP \[bu] 2
"eu\-west\-2"
.RS 2
.IP \[bu] 2
EU (London) Region
.IP \[bu] 2
Needs location constraint eu\-west\-2.
.RE
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
"eu\-north\-1"
.RS 2
.IP \[bu] 2
EU (Stockholm) Region
.IP \[bu] 2
Needs location constraint eu\-north\-1.
.RE
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
"eu\-central\-1"
.RS 2
.IP \[bu] 2
EU (Frankfurt) Region
.IP \[bu] 2
Needs location constraint eu\-central\-1.
.RE
.IP \[bu] 2
"ap\-southeast\-1"
.RS 2
.IP \[bu] 2
Asia Pacific (Singapore) Region
.IP \[bu] 2
Needs location constraint ap\-southeast\-1.
.RE
.IP \[bu] 2
"ap\-southeast\-2"
.RS 2
.IP \[bu] 2
Asia Pacific (Sydney) Region
.IP \[bu] 2
Needs location constraint ap\-southeast\-2.
.RE
.IP \[bu] 2
"ap\-northeast\-1"
.RS 2
.IP \[bu] 2
Asia Pacific (Tokyo) Region
.IP \[bu] 2
Needs location constraint ap\-northeast\-1.
.RE
.IP \[bu] 2
"ap\-northeast\-2"
.RS 2
.IP \[bu] 2
Asia Pacific (Seoul)
.IP \[bu] 2
Needs location constraint ap\-northeast\-2.
.RE
.IP \[bu] 2
"ap\-south\-1"
.RS 2
.IP \[bu] 2
Asia Pacific (Mumbai)
.IP \[bu] 2
Needs location constraint ap\-south\-1.
.RE
.IP \[bu] 2
"sa\-east\-1"
.RS 2
.IP \[bu] 2
South America (Sao Paulo) Region
.IP \[bu] 2
Needs location constraint sa\-east\-1.
.RE
.RE
.SS \-\-s3\-region
2018-06-16 17:21:09 +00:00
.PP
2018-10-15 10:03:08 +00:00
Region to connect to.
Leave blank if you are using an S3 clone and you don\[aq]t have a
region.
.IP \[bu] 2
Config: region
.IP \[bu] 2
Env Var: RCLONE_S3_REGION
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
""
.RS 2
.IP \[bu] 2
Use this if unsure.
Will use v4 signatures and an empty region.
.RE
.IP \[bu] 2
"other\-v2\-signature"
.RS 2
.IP \[bu] 2
Use this only if v4 signatures don\[aq]t work, eg pre Jewel/v10 CEPH.
.RE
.RE
.SS \-\-s3\-endpoint
2018-06-16 17:21:09 +00:00
.PP
2018-10-15 10:03:08 +00:00
Endpoint for S3 API.
Leave blank if using AWS to use the default endpoint for the region.
.IP \[bu] 2
Config: endpoint
.IP \[bu] 2
Env Var: RCLONE_S3_ENDPOINT
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-s3\-endpoint
2017-09-30 13:19:47 +00:00
.PP
2018-10-15 10:03:08 +00:00
Endpoint for IBM COS S3 API.
Specify if using an IBM COS On Premise.
.IP \[bu] 2
Config: endpoint
.IP \[bu] 2
Env Var: RCLONE_S3_ENDPOINT
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"s3\-api.us\-geo.objectstorage.softlayer.net"
.RS 2
.IP \[bu] 2
US Cross Region Endpoint
.RE
.IP \[bu] 2
"s3\-api.dal.us\-geo.objectstorage.softlayer.net"
.RS 2
.IP \[bu] 2
US Cross Region Dallas Endpoint
.RE
.IP \[bu] 2
"s3\-api.wdc\-us\-geo.objectstorage.softlayer.net"
.RS 2
.IP \[bu] 2
US Cross Region Washington DC Endpoint
.RE
.IP \[bu] 2
"s3\-api.sjc\-us\-geo.objectstorage.softlayer.net"
.RS 2
.IP \[bu] 2
US Cross Region San Jose Endpoint
.RE
.IP \[bu] 2
"s3\-api.us\-geo.objectstorage.service.networklayer.com"
.RS 2
.IP \[bu] 2
US Cross Region Private Endpoint
.RE
.IP \[bu] 2
"s3\-api.dal\-us\-geo.objectstorage.service.networklayer.com"
.RS 2
.IP \[bu] 2
US Cross Region Dallas Private Endpoint
.RE
.IP \[bu] 2
"s3\-api.wdc\-us\-geo.objectstorage.service.networklayer.com"
.RS 2
.IP \[bu] 2
US Cross Region Washington DC Private Endpoint
.RE
.IP \[bu] 2
"s3\-api.sjc\-us\-geo.objectstorage.service.networklayer.com"
.RS 2
.IP \[bu] 2
US Cross Region San Jose Private Endpoint
.RE
.IP \[bu] 2
"s3.us\-east.objectstorage.softlayer.net"
.RS 2
.IP \[bu] 2
US Region East Endpoint
.RE
.IP \[bu] 2
"s3.us\-east.objectstorage.service.networklayer.com"
.RS 2
.IP \[bu] 2
US Region East Private Endpoint
.RE
.IP \[bu] 2
"s3.us\-south.objectstorage.softlayer.net"
.RS 2
.IP \[bu] 2
US Region South Endpoint
.RE
.IP \[bu] 2
"s3.us\-south.objectstorage.service.networklayer.com"
.RS 2
.IP \[bu] 2
US Region South Private Endpoint
.RE
.IP \[bu] 2
"s3.eu\-geo.objectstorage.softlayer.net"
.RS 2
.IP \[bu] 2
EU Cross Region Endpoint
.RE
.IP \[bu] 2
"s3.fra\-eu\-geo.objectstorage.softlayer.net"
.RS 2
.IP \[bu] 2
EU Cross Region Frankfurt Endpoint
.RE
.IP \[bu] 2
"s3.mil\-eu\-geo.objectstorage.softlayer.net"
.RS 2
.IP \[bu] 2
EU Cross Region Milan Endpoint
.RE
.IP \[bu] 2
"s3.ams\-eu\-geo.objectstorage.softlayer.net"
.RS 2
.IP \[bu] 2
EU Cross Region Amsterdam Endpoint
.RE
.IP \[bu] 2
"s3.eu\-geo.objectstorage.service.networklayer.com"
.RS 2
.IP \[bu] 2
EU Cross Region Private Endpoint
.RE
.IP \[bu] 2
"s3.fra\-eu\-geo.objectstorage.service.networklayer.com"
.RS 2
.IP \[bu] 2
EU Cross Region Frankfurt Private Endpoint
.RE
.IP \[bu] 2
"s3.mil\-eu\-geo.objectstorage.service.networklayer.com"
.RS 2
.IP \[bu] 2
EU Cross Region Milan Private Endpoint
.RE
.IP \[bu] 2
"s3.ams\-eu\-geo.objectstorage.service.networklayer.com"
.RS 2
.IP \[bu] 2
EU Cross Region Amsterdam Private Endpoint
.RE
.IP \[bu] 2
"s3.eu\-gb.objectstorage.softlayer.net"
.RS 2
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Great Britain Endpoint
2018-10-15 10:03:08 +00:00
.RE
.IP \[bu] 2
"s3.eu\-gb.objectstorage.service.networklayer.com"
.RS 2
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Great Britain Private Endpoint
2018-10-15 10:03:08 +00:00
.RE
.IP \[bu] 2
"s3.ap\-geo.objectstorage.softlayer.net"
.RS 2
.IP \[bu] 2
APAC Cross Regional Endpoint
.RE
.IP \[bu] 2
"s3.tok\-ap\-geo.objectstorage.softlayer.net"
.RS 2
.IP \[bu] 2
APAC Cross Regional Tokyo Endpoint
.RE
.IP \[bu] 2
"s3.hkg\-ap\-geo.objectstorage.softlayer.net"
.RS 2
.IP \[bu] 2
APAC Cross Regional HongKong Endpoint
.RE
.IP \[bu] 2
"s3.seo\-ap\-geo.objectstorage.softlayer.net"
.RS 2
.IP \[bu] 2
APAC Cross Regional Seoul Endpoint
.RE
.IP \[bu] 2
"s3.ap\-geo.objectstorage.service.networklayer.com"
.RS 2
.IP \[bu] 2
APAC Cross Regional Private Endpoint
.RE
.IP \[bu] 2
"s3.tok\-ap\-geo.objectstorage.service.networklayer.com"
.RS 2
.IP \[bu] 2
APAC Cross Regional Tokyo Private Endpoint
.RE
.IP \[bu] 2
"s3.hkg\-ap\-geo.objectstorage.service.networklayer.com"
.RS 2
.IP \[bu] 2
APAC Cross Regional HongKong Private Endpoint
.RE
.IP \[bu] 2
"s3.seo\-ap\-geo.objectstorage.service.networklayer.com"
.RS 2
.IP \[bu] 2
APAC Cross Regional Seoul Private Endpoint
.RE
.IP \[bu] 2
"s3.mel01.objectstorage.softlayer.net"
.RS 2
.IP \[bu] 2
Melbourne Single Site Endpoint
.RE
.IP \[bu] 2
"s3.mel01.objectstorage.service.networklayer.com"
.RS 2
.IP \[bu] 2
Melbourne Single Site Private Endpoint
.RE
.IP \[bu] 2
"s3.tor01.objectstorage.softlayer.net"
.RS 2
.IP \[bu] 2
Toronto Single Site Endpoint
.RE
.IP \[bu] 2
"s3.tor01.objectstorage.service.networklayer.com"
.RS 2
.IP \[bu] 2
Toronto Single Site Private Endpoint
.RE
.RE
.SS \-\-s3\-endpoint
.PP
2019-02-09 10:42:57 +00:00
Endpoint for OSS API.
.IP \[bu] 2
Config: endpoint
.IP \[bu] 2
Env Var: RCLONE_S3_ENDPOINT
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"oss\-cn\-hangzhou.aliyuncs.com"
.RS 2
.IP \[bu] 2
East China 1 (Hangzhou)
.RE
.IP \[bu] 2
"oss\-cn\-shanghai.aliyuncs.com"
.RS 2
.IP \[bu] 2
East China 2 (Shanghai)
.RE
.IP \[bu] 2
"oss\-cn\-qingdao.aliyuncs.com"
.RS 2
.IP \[bu] 2
North China 1 (Qingdao)
.RE
.IP \[bu] 2
"oss\-cn\-beijing.aliyuncs.com"
.RS 2
.IP \[bu] 2
North China 2 (Beijing)
.RE
.IP \[bu] 2
"oss\-cn\-zhangjiakou.aliyuncs.com"
.RS 2
.IP \[bu] 2
North China 3 (Zhangjiakou)
.RE
.IP \[bu] 2
"oss\-cn\-huhehaote.aliyuncs.com"
.RS 2
.IP \[bu] 2
North China 5 (Huhehaote)
.RE
.IP \[bu] 2
"oss\-cn\-shenzhen.aliyuncs.com"
.RS 2
.IP \[bu] 2
South China 1 (Shenzhen)
.RE
.IP \[bu] 2
"oss\-cn\-hongkong.aliyuncs.com"
.RS 2
.IP \[bu] 2
Hong Kong (Hong Kong)
.RE
.IP \[bu] 2
"oss\-us\-west\-1.aliyuncs.com"
.RS 2
.IP \[bu] 2
US West 1 (Silicon Valley)
.RE
.IP \[bu] 2
"oss\-us\-east\-1.aliyuncs.com"
.RS 2
.IP \[bu] 2
US East 1 (Virginia)
.RE
.IP \[bu] 2
"oss\-ap\-southeast\-1.aliyuncs.com"
.RS 2
.IP \[bu] 2
Southeast Asia Southeast 1 (Singapore)
.RE
.IP \[bu] 2
"oss\-ap\-southeast\-2.aliyuncs.com"
.RS 2
.IP \[bu] 2
Asia Pacific Southeast 2 (Sydney)
.RE
.IP \[bu] 2
"oss\-ap\-southeast\-3.aliyuncs.com"
.RS 2
.IP \[bu] 2
Southeast Asia Southeast 3 (Kuala Lumpur)
.RE
.IP \[bu] 2
"oss\-ap\-southeast\-5.aliyuncs.com"
.RS 2
.IP \[bu] 2
Asia Pacific Southeast 5 (Jakarta)
.RE
.IP \[bu] 2
"oss\-ap\-northeast\-1.aliyuncs.com"
.RS 2
.IP \[bu] 2
Asia Pacific Northeast 1 (Japan)
.RE
.IP \[bu] 2
"oss\-ap\-south\-1.aliyuncs.com"
.RS 2
.IP \[bu] 2
Asia Pacific South 1 (Mumbai)
.RE
.IP \[bu] 2
"oss\-eu\-central\-1.aliyuncs.com"
.RS 2
.IP \[bu] 2
Central Europe 1 (Frankfurt)
.RE
.IP \[bu] 2
"oss\-eu\-west\-1.aliyuncs.com"
.RS 2
.IP \[bu] 2
West Europe (London)
.RE
.IP \[bu] 2
"oss\-me\-east\-1.aliyuncs.com"
.RS 2
.IP \[bu] 2
Middle East 1 (Dubai)
.RE
.RE
.SS \-\-s3\-endpoint
.PP
2018-10-15 10:03:08 +00:00
Endpoint for S3 API.
Required when using an S3 clone.
.IP \[bu] 2
Config: endpoint
.IP \[bu] 2
Env Var: RCLONE_S3_ENDPOINT
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"objects\-us\-west\-1.dream.io"
.RS 2
.IP \[bu] 2
Dream Objects endpoint
.RE
.IP \[bu] 2
"nyc3.digitaloceanspaces.com"
.RS 2
.IP \[bu] 2
Digital Ocean Spaces New York 3
.RE
.IP \[bu] 2
"ams3.digitaloceanspaces.com"
.RS 2
.IP \[bu] 2
Digital Ocean Spaces Amsterdam 3
.RE
.IP \[bu] 2
"sgp1.digitaloceanspaces.com"
.RS 2
.IP \[bu] 2
Digital Ocean Spaces Singapore 1
.RE
.IP \[bu] 2
"s3.wasabisys.com"
.RS 2
.IP \[bu] 2
2018-11-24 13:44:25 +00:00
Wasabi US East endpoint
.RE
.IP \[bu] 2
"s3.us\-west\-1.wasabisys.com"
.RS 2
.IP \[bu] 2
Wasabi US West endpoint
2018-10-15 10:03:08 +00:00
.RE
.RE
.SS \-\-s3\-location\-constraint
.PP
Location constraint \- must be set to match the Region.
Used when creating buckets only.
.IP \[bu] 2
Config: location_constraint
.IP \[bu] 2
Env Var: RCLONE_S3_LOCATION_CONSTRAINT
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
""
.RS 2
.IP \[bu] 2
Empty for US Region, Northern Virginia or Pacific Northwest.
.RE
.IP \[bu] 2
"us\-east\-2"
.RS 2
.IP \[bu] 2
US East (Ohio) Region.
.RE
.IP \[bu] 2
"us\-west\-2"
.RS 2
.IP \[bu] 2
US West (Oregon) Region.
.RE
.IP \[bu] 2
"us\-west\-1"
.RS 2
.IP \[bu] 2
US West (Northern California) Region.
.RE
.IP \[bu] 2
"ca\-central\-1"
.RS 2
.IP \[bu] 2
Canada (Central) Region.
.RE
.IP \[bu] 2
"eu\-west\-1"
.RS 2
.IP \[bu] 2
EU (Ireland) Region.
.RE
.IP \[bu] 2
"eu\-west\-2"
.RS 2
.IP \[bu] 2
EU (London) Region.
.RE
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
"eu\-north\-1"
.RS 2
.IP \[bu] 2
EU (Stockholm) Region.
.RE
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
"EU"
.RS 2
.IP \[bu] 2
EU Region.
.RE
.IP \[bu] 2
"ap\-southeast\-1"
.RS 2
.IP \[bu] 2
Asia Pacific (Singapore) Region.
.RE
.IP \[bu] 2
"ap\-southeast\-2"
.RS 2
.IP \[bu] 2
Asia Pacific (Sydney) Region.
.RE
.IP \[bu] 2
"ap\-northeast\-1"
.RS 2
.IP \[bu] 2
Asia Pacific (Tokyo) Region.
.RE
.IP \[bu] 2
"ap\-northeast\-2"
.RS 2
.IP \[bu] 2
Asia Pacific (Seoul)
.RE
.IP \[bu] 2
"ap\-south\-1"
.RS 2
.IP \[bu] 2
Asia Pacific (Mumbai)
.RE
.IP \[bu] 2
"sa\-east\-1"
.RS 2
.IP \[bu] 2
South America (Sao Paulo) Region.
.RE
.RE
.SS \-\-s3\-location\-constraint
.PP
Location constraint \- must match endpoint when using IBM Cloud Public.
For on\-prem COS, do not make a selection from this list, hit enter
.IP \[bu] 2
Config: location_constraint
.IP \[bu] 2
Env Var: RCLONE_S3_LOCATION_CONSTRAINT
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"us\-standard"
.RS 2
.IP \[bu] 2
US Cross Region Standard
.RE
.IP \[bu] 2
"us\-vault"
.RS 2
.IP \[bu] 2
US Cross Region Vault
.RE
.IP \[bu] 2
"us\-cold"
.RS 2
.IP \[bu] 2
US Cross Region Cold
.RE
.IP \[bu] 2
"us\-flex"
.RS 2
.IP \[bu] 2
US Cross Region Flex
.RE
.IP \[bu] 2
"us\-east\-standard"
.RS 2
.IP \[bu] 2
US East Region Standard
.RE
.IP \[bu] 2
"us\-east\-vault"
.RS 2
.IP \[bu] 2
US East Region Vault
.RE
.IP \[bu] 2
"us\-east\-cold"
.RS 2
.IP \[bu] 2
US East Region Cold
.RE
.IP \[bu] 2
"us\-east\-flex"
.RS 2
.IP \[bu] 2
US East Region Flex
.RE
.IP \[bu] 2
"us\-south\-standard"
.RS 2
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
US South Region Standard
2018-10-15 10:03:08 +00:00
.RE
.IP \[bu] 2
"us\-south\-vault"
.RS 2
.IP \[bu] 2
US South Region Vault
.RE
.IP \[bu] 2
"us\-south\-cold"
.RS 2
.IP \[bu] 2
US South Region Cold
.RE
.IP \[bu] 2
"us\-south\-flex"
.RS 2
.IP \[bu] 2
US South Region Flex
.RE
.IP \[bu] 2
"eu\-standard"
.RS 2
.IP \[bu] 2
EU Cross Region Standard
.RE
.IP \[bu] 2
"eu\-vault"
.RS 2
.IP \[bu] 2
EU Cross Region Vault
.RE
.IP \[bu] 2
"eu\-cold"
.RS 2
.IP \[bu] 2
EU Cross Region Cold
.RE
.IP \[bu] 2
"eu\-flex"
.RS 2
.IP \[bu] 2
EU Cross Region Flex
.RE
.IP \[bu] 2
"eu\-gb\-standard"
.RS 2
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Great Britain Standard
2018-10-15 10:03:08 +00:00
.RE
.IP \[bu] 2
"eu\-gb\-vault"
.RS 2
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Great Britain Vault
2018-10-15 10:03:08 +00:00
.RE
.IP \[bu] 2
"eu\-gb\-cold"
.RS 2
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Great Britain Cold
2018-10-15 10:03:08 +00:00
.RE
.IP \[bu] 2
"eu\-gb\-flex"
.RS 2
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Great Britain Flex
2018-10-15 10:03:08 +00:00
.RE
.IP \[bu] 2
"ap\-standard"
.RS 2
.IP \[bu] 2
APAC Standard
.RE
.IP \[bu] 2
"ap\-vault"
.RS 2
.IP \[bu] 2
APAC Vault
.RE
.IP \[bu] 2
"ap\-cold"
.RS 2
.IP \[bu] 2
APAC Cold
.RE
.IP \[bu] 2
"ap\-flex"
.RS 2
.IP \[bu] 2
APAC Flex
.RE
.IP \[bu] 2
"mel01\-standard"
.RS 2
.IP \[bu] 2
Melbourne Standard
.RE
.IP \[bu] 2
"mel01\-vault"
.RS 2
.IP \[bu] 2
Melbourne Vault
.RE
.IP \[bu] 2
"mel01\-cold"
.RS 2
.IP \[bu] 2
Melbourne Cold
.RE
.IP \[bu] 2
"mel01\-flex"
.RS 2
.IP \[bu] 2
Melbourne Flex
.RE
.IP \[bu] 2
"tor01\-standard"
.RS 2
.IP \[bu] 2
Toronto Standard
.RE
.IP \[bu] 2
"tor01\-vault"
.RS 2
.IP \[bu] 2
Toronto Vault
.RE
.IP \[bu] 2
"tor01\-cold"
.RS 2
.IP \[bu] 2
Toronto Cold
.RE
.IP \[bu] 2
"tor01\-flex"
.RS 2
.IP \[bu] 2
Toronto Flex
.RE
.RE
.SS \-\-s3\-location\-constraint
.PP
Location constraint \- must be set to match the Region.
Leave blank if not sure.
Used when creating buckets only.
.IP \[bu] 2
Config: location_constraint
.IP \[bu] 2
Env Var: RCLONE_S3_LOCATION_CONSTRAINT
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-s3\-acl
.PP
2018-11-24 13:44:25 +00:00
Canned ACL used when creating buckets and storing or copying objects.
.PP
2019-02-09 10:42:57 +00:00
This ACL is used for creating objects and if bucket_acl isn\[aq]t set,
for creating buckets too.
.PP
2018-10-15 10:03:08 +00:00
For more info visit
https://docs.aws.amazon.com/AmazonS3/latest/dev/acl\-overview.html#canned\-acl
2018-11-24 13:44:25 +00:00
.PP
Note that this ACL is applied when server side copying objects as S3
doesn\[aq]t copy the ACL from the source but rather writes a fresh one.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: acl
.IP \[bu] 2
Env Var: RCLONE_S3_ACL
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"private"
.RS 2
.IP \[bu] 2
Owner gets FULL_CONTROL.
No one else has access rights (default).
.RE
.IP \[bu] 2
"public\-read"
.RS 2
.IP \[bu] 2
Owner gets FULL_CONTROL.
The AllUsers group gets READ access.
.RE
.IP \[bu] 2
"public\-read\-write"
.RS 2
.IP \[bu] 2
Owner gets FULL_CONTROL.
The AllUsers group gets READ and WRITE access.
.IP \[bu] 2
Granting this on a bucket is generally not recommended.
.RE
.IP \[bu] 2
"authenticated\-read"
.RS 2
.IP \[bu] 2
Owner gets FULL_CONTROL.
The AuthenticatedUsers group gets READ access.
.RE
.IP \[bu] 2
"bucket\-owner\-read"
.RS 2
.IP \[bu] 2
Object owner gets FULL_CONTROL.
Bucket owner gets READ access.
.IP \[bu] 2
If you specify this canned ACL when creating a bucket, Amazon S3 ignores
it.
.RE
.IP \[bu] 2
"bucket\-owner\-full\-control"
.RS 2
.IP \[bu] 2
Both the object owner and the bucket owner get FULL_CONTROL over the
object.
.IP \[bu] 2
If you specify this canned ACL when creating a bucket, Amazon S3 ignores
it.
.RE
.IP \[bu] 2
"private"
.RS 2
.IP \[bu] 2
Owner gets FULL_CONTROL.
No one else has access rights (default).
This acl is available on IBM Cloud (Infra), IBM Cloud (Storage),
On\-Premise COS
.RE
.IP \[bu] 2
"public\-read"
.RS 2
.IP \[bu] 2
Owner gets FULL_CONTROL.
The AllUsers group gets READ access.
This acl is available on IBM Cloud (Infra), IBM Cloud (Storage),
On\-Premise IBM COS
.RE
.IP \[bu] 2
"public\-read\-write"
.RS 2
.IP \[bu] 2
Owner gets FULL_CONTROL.
The AllUsers group gets READ and WRITE access.
This acl is available on IBM Cloud (Infra), On\-Premise IBM COS
.RE
.IP \[bu] 2
"authenticated\-read"
.RS 2
.IP \[bu] 2
Owner gets FULL_CONTROL.
The AuthenticatedUsers group gets READ access.
Not supported on Buckets.
This acl is available on IBM Cloud (Infra) and On\-Premise IBM COS
.RE
.RE
.SS \-\-s3\-server\-side\-encryption
.PP
The server\-side encryption algorithm used when storing this object in
S3.
.IP \[bu] 2
Config: server_side_encryption
.IP \[bu] 2
Env Var: RCLONE_S3_SERVER_SIDE_ENCRYPTION
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
""
.RS 2
.IP \[bu] 2
None
.RE
.IP \[bu] 2
"AES256"
.RS 2
.IP \[bu] 2
AES256
.RE
.IP \[bu] 2
"aws:kms"
.RS 2
.IP \[bu] 2
aws:kms
.RE
.RE
.SS \-\-s3\-sse\-kms\-key\-id
.PP
If using KMS ID you must provide the ARN of Key.
.IP \[bu] 2
Config: sse_kms_key_id
.IP \[bu] 2
Env Var: RCLONE_S3_SSE_KMS_KEY_ID
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
""
.RS 2
.IP \[bu] 2
None
.RE
.IP \[bu] 2
"arn:aws:kms:us\-east\-1:*"
.RS 2
.IP \[bu] 2
arn:aws:kms:*
.RE
.RE
.SS \-\-s3\-storage\-class
.PP
The storage class to use when storing new objects in S3.
.IP \[bu] 2
Config: storage_class
.IP \[bu] 2
Env Var: RCLONE_S3_STORAGE_CLASS
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
""
.RS 2
.IP \[bu] 2
Default
.RE
.IP \[bu] 2
"STANDARD"
.RS 2
.IP \[bu] 2
Standard storage class
.RE
.IP \[bu] 2
"REDUCED_REDUNDANCY"
.RS 2
.IP \[bu] 2
Reduced redundancy storage class
.RE
.IP \[bu] 2
"STANDARD_IA"
.RS 2
.IP \[bu] 2
Standard Infrequent Access storage class
.RE
.IP \[bu] 2
"ONEZONE_IA"
.RS 2
.IP \[bu] 2
One Zone Infrequent Access storage class
.RE
2019-02-09 10:42:57 +00:00
.IP \[bu] 2
"GLACIER"
.RS 2
.IP \[bu] 2
Glacier storage class
.RE
.RE
.SS \-\-s3\-storage\-class
.PP
The storage class to use when storing new objects in OSS.
.IP \[bu] 2
Config: storage_class
.IP \[bu] 2
Env Var: RCLONE_S3_STORAGE_CLASS
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
""
.RS 2
.IP \[bu] 2
Default
.RE
.IP \[bu] 2
"STANDARD"
.RS 2
.IP \[bu] 2
Standard storage class
.RE
.IP \[bu] 2
"GLACIER"
.RS 2
.IP \[bu] 2
Archive storage mode.
.RE
.IP \[bu] 2
"STANDARD_IA"
.RS 2
.IP \[bu] 2
Infrequent access storage mode.
.RE
2018-10-15 10:03:08 +00:00
.RE
.SS Advanced Options
.PP
Here are the advanced options specific to s3 (Amazon S3 Compliant
2019-02-09 10:42:57 +00:00
Storage Provider (AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS,
Minio, etc)).
.SS \-\-s3\-bucket\-acl
.PP
Canned ACL used when creating buckets.
.PP
For more info visit
https://docs.aws.amazon.com/AmazonS3/latest/dev/acl\-overview.html#canned\-acl
.PP
Note that this ACL is applied when only when creating buckets.
If it isn\[aq]t set then "acl" is used instead.
.IP \[bu] 2
Config: bucket_acl
.IP \[bu] 2
Env Var: RCLONE_S3_BUCKET_ACL
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"private"
.RS 2
.IP \[bu] 2
Owner gets FULL_CONTROL.
No one else has access rights (default).
.RE
.IP \[bu] 2
"public\-read"
.RS 2
.IP \[bu] 2
Owner gets FULL_CONTROL.
The AllUsers group gets READ access.
.RE
.IP \[bu] 2
"public\-read\-write"
.RS 2
.IP \[bu] 2
Owner gets FULL_CONTROL.
The AllUsers group gets READ and WRITE access.
.IP \[bu] 2
Granting this on a bucket is generally not recommended.
.RE
.IP \[bu] 2
"authenticated\-read"
.RS 2
.IP \[bu] 2
Owner gets FULL_CONTROL.
The AuthenticatedUsers group gets READ access.
.RE
.RE
.SS \-\-s3\-upload\-cutoff
.PP
Cutoff for switching to chunked upload
.PP
Any files larger than this will be uploaded in chunks of chunk_size.
The minimum is 0 and the maximum is 5GB.
.IP \[bu] 2
Config: upload_cutoff
.IP \[bu] 2
Env Var: RCLONE_S3_UPLOAD_CUTOFF
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 200M
2018-10-15 10:03:08 +00:00
.SS \-\-s3\-chunk\-size
.PP
Chunk size to use for uploading.
.PP
2019-02-09 10:42:57 +00:00
When uploading files larger than upload_cutoff they will be uploaded as
multipart uploads using this chunk size.
2018-10-15 10:03:08 +00:00
.PP
Note that "\-\-s3\-upload\-concurrency" chunks of this size are buffered
in memory per transfer.
.PP
If you are transferring large files over high speed links and you have
enough memory, then increasing this will speed up the transfers.
.IP \[bu] 2
Config: chunk_size
.IP \[bu] 2
Env Var: RCLONE_S3_CHUNK_SIZE
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 5M
.SS \-\-s3\-disable\-checksum
.PP
Don\[aq]t store MD5 checksum with object metadata
.IP \[bu] 2
Config: disable_checksum
.IP \[bu] 2
Env Var: RCLONE_S3_DISABLE_CHECKSUM
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS \-\-s3\-session\-token
.PP
An AWS session token
.IP \[bu] 2
Config: session_token
.IP \[bu] 2
Env Var: RCLONE_S3_SESSION_TOKEN
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-s3\-upload\-concurrency
.PP
Concurrency for multipart uploads.
.PP
This is the number of chunks of the same file that are uploaded
concurrently.
.PP
If you are uploading small numbers of large file over high speed link
and these uploads do not fully utilize your bandwidth, then increasing
this may help to speed up the transfers.
.IP \[bu] 2
Config: upload_concurrency
.IP \[bu] 2
Env Var: RCLONE_S3_UPLOAD_CONCURRENCY
.IP \[bu] 2
Type: int
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Default: 4
2018-10-15 10:03:08 +00:00
.SS \-\-s3\-force\-path\-style
.PP
If true use path style access if false use virtual hosted style.
.PP
If this is true (the default) then rclone will use path style access, if
false then rclone will use virtual path style.
See the AWS S3
docs (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html#access-bucket-intro)
for more info.
.PP
Some providers (eg Aliyun OSS or Netease COS) require this set to false.
.IP \[bu] 2
Config: force_path_style
.IP \[bu] 2
Env Var: RCLONE_S3_FORCE_PATH_STYLE
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: true
.SS \-\-s3\-v2\-auth
.PP
If true use v2 authentication.
.PP
If this is false (the default) then rclone will use v4 authentication.
If it is set then rclone will use v2 authentication.
.PP
Use this only if v4 signatures don\[aq]t work, eg pre Jewel/v10 CEPH.
.IP \[bu] 2
Config: v2_auth
.IP \[bu] 2
Env Var: RCLONE_S3_V2_AUTH
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.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[].
Your config should end up looking like this:
.IP
2017-09-30 13:19:47 +00:00
.nf
\f[C]
2018-04-28 10:46:27 +00:00
[anons3]
type\ =\ s3
provider\ =\ AWS
env_auth\ =\ false
access_key_id\ =\
secret_access_key\ =\
region\ =\ us\-east\-1
endpoint\ =\
location_constraint\ =\
acl\ =\ private
server_side_encryption\ =\
storage_class\ =\
2017-09-30 13:19:47 +00:00
\f[]
.fi
2018-03-19 10:06:13 +00:00
.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 (https://ceph.com/) is an open source unified, distributed storage
system designed for excellent performance, reliability and scalability.
It has an S3 compatible object storage interface.
.PP
To use rclone with Ceph, configure as above but leave the region blank
and set the endpoint.
You should end up with something like this in your config:
.IP
.nf
\f[C]
[ceph]
type\ =\ s3
2018-04-28 10:46:27 +00:00
provider\ =\ Ceph
2018-03-19 10:06:13 +00:00
env_auth\ =\ false
access_key_id\ =\ XXX
secret_access_key\ =\ YYY
2018-04-28 10:46:27 +00:00
region\ =
2018-03-19 10:06:13 +00:00
endpoint\ =\ https://ceph.endpoint.example.com
2018-04-28 10:46:27 +00:00
location_constraint\ =
acl\ =
server_side_encryption\ =
storage_class\ =
2018-03-19 10:06:13 +00:00
\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).
.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 Dreamhost
.PP
Dreamhost DreamObjects (https://www.dreamhost.com/cloud/storage/) is an
object storage system based on CEPH.
.PP
To use rclone with Dreamhost, configure as above but leave the region
blank and set the endpoint.
You should end up with something like this in your config:
.IP
.nf
\f[C]
[dreamobjects]
2018-04-28 10:46:27 +00:00
type\ =\ s3
provider\ =\ DreamHost
2018-03-19 10:06:13 +00:00
env_auth\ =\ false
access_key_id\ =\ your_access_key
secret_access_key\ =\ your_secret_key
region\ =
endpoint\ =\ objects\-us\-west\-1.dream.io
location_constraint\ =
acl\ =\ private
server_side_encryption\ =
storage_class\ =
\f[]
.fi
.SS DigitalOcean Spaces
.PP
Spaces (https://www.digitalocean.com/products/object-storage/) is an
S3\-interoperable (https://developers.digitalocean.com/documentation/spaces/)
object storage service from cloud provider DigitalOcean.
.PP
To connect to DigitalOcean Spaces you will need an access key and secret
key.
These can be retrieved on the "Applications &
API (https://cloud.digitalocean.com/settings/api/tokens)" page of the
DigitalOcean control panel.
They will be needed when promted by \f[C]rclone\ config\f[] for your
\f[C]access_key_id\f[] and \f[C]secret_access_key\f[].
.PP
When prompted for a \f[C]region\f[] or \f[C]location_constraint\f[],
press enter to use the default value.
The region must be included in the \f[C]endpoint\f[] setting (e.g.
\f[C]nyc3.digitaloceanspaces.com\f[]).
The defualt values can be used for other settings.
.PP
Going through the whole process of creating a new remote by running
\f[C]rclone\ config\f[], each prompt should be answered as shown below:
.IP
.nf
\f[C]
Storage>\ s3
env_auth>\ 1
access_key_id>\ YOUR_ACCESS_KEY
secret_access_key>\ YOUR_SECRET_KEY
2018-04-28 10:46:27 +00:00
region>
2018-03-19 10:06:13 +00:00
endpoint>\ nyc3.digitaloceanspaces.com
2018-04-28 10:46:27 +00:00
location_constraint>
acl>
storage_class>
2018-03-19 10:06:13 +00:00
\f[]
.fi
.PP
The resulting configuration file should look like:
.IP
.nf
\f[C]
[spaces]
type\ =\ s3
2018-04-28 10:46:27 +00:00
provider\ =\ DigitalOcean
2018-03-19 10:06:13 +00:00
env_auth\ =\ false
access_key_id\ =\ YOUR_ACCESS_KEY
secret_access_key\ =\ YOUR_SECRET_KEY
2018-04-28 10:46:27 +00:00
region\ =
2018-03-19 10:06:13 +00:00
endpoint\ =\ nyc3.digitaloceanspaces.com
2018-04-28 10:46:27 +00:00
location_constraint\ =
acl\ =
server_side_encryption\ =
storage_class\ =
2018-03-19 10:06:13 +00:00
\f[]
.fi
.PP
Once configured, you can create a new Space and begin copying files.
For example:
.IP
.nf
\f[C]
rclone\ mkdir\ spaces:my\-new\-space
rclone\ copy\ /path/to/files\ spaces:my\-new\-space
\f[]
.fi
.SS IBM COS (S3)
.PP
Information stored with IBM Cloud Object Storage is encrypted and
dispersed across multiple geographic locations, and accessed through an
implementation of the S3 API.
This service makes use of the distributed storage technologies provided
by IBM's Cloud Object Storage System (formerly Cleversafe).
2018-04-28 10:46:27 +00:00
For more information visit: (http://www.ibm.com/cloud/object\-storage)
2018-03-19 10:06:13 +00:00
.PP
To configure access to IBM COS S3, follow the steps below:
.IP " 1." 4
Run rclone config and select n for a new remote.
.RS 4
.IP
.nf
\f[C]
2018/02/14\ 14:13:11\ NOTICE:\ Config\ file\ "C:\\\\Users\\\\a\\\\.config\\\\rclone\\\\rclone.conf"\ not\ found\ \-\ using\ defaults
No\ remotes\ found\ \-\ make\ a\ new\ one
n)\ New\ remote
s)\ Set\ configuration\ password
q)\ Quit\ config
n/s/q>\ n
\f[]
.fi
.RE
.IP " 2." 4
Enter the name for the configuration
.RS 4
.IP
.nf
\f[C]
2018-04-28 10:46:27 +00:00
name>\ <YOUR\ NAME>
2018-03-19 10:06:13 +00:00
\f[]
.fi
.RE
.IP " 3." 4
Select "s3" storage.
.RS 4
.IP
.nf
\f[C]
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2018-04-28 10:46:27 +00:00
1\ /\ Alias\ for\ a\ existing\ remote
\\\ "alias"
2\ /\ Amazon\ Drive
2018-03-19 10:06:13 +00:00
\\\ "amazon\ cloud\ drive"
2018-04-28 10:46:27 +00:00
3\ /\ Amazon\ S3\ Complaint\ Storage\ Providers\ (Dreamhost,\ Ceph,\ Minio,\ IBM\ COS)
2018-03-19 10:06:13 +00:00
\\\ "s3"
2018-04-28 10:46:27 +00:00
4\ /\ Backblaze\ B2
\\\ "b2"
[snip]
23\ /\ http\ Connection
\\\ "http"
Storage>\ 3
2018-03-19 10:06:13 +00:00
\f[]
.fi
.RE
.IP " 4." 4
2018-04-28 10:46:27 +00:00
Select IBM COS as the S3 Storage Provider.
2018-03-19 10:06:13 +00:00
.RS 4
.IP
.nf
\f[C]
2018-04-28 10:46:27 +00:00
Choose\ the\ S3\ provider.
2018-03-19 10:06:13 +00:00
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2018-04-28 10:46:27 +00:00
\ 1\ /\ Choose\ this\ option\ to\ configure\ Storage\ to\ AWS\ S3
\ \ \ \\\ "AWS"
\ 2\ /\ Choose\ this\ option\ to\ configure\ Storage\ to\ Ceph\ Systems
\ \\\ "Ceph"
\ 3\ /\ \ Choose\ this\ option\ to\ configure\ Storage\ to\ Dreamhost
\ \\\ "Dreamhost"
\ \ \ 4\ /\ Choose\ this\ option\ to\ the\ configure\ Storage\ to\ IBM\ COS\ S3
\ \\\ "IBMCOS"
\ 5\ /\ Choose\ this\ option\ to\ the\ configure\ Storage\ to\ Minio
\ \\\ "Minio"
\ Provider>4
2018-03-19 10:06:13 +00:00
\f[]
.fi
.RE
.IP " 5." 4
Enter the Access Key and Secret.
.RS 4
.IP
.nf
\f[C]
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
.RE
.IP " 6." 4
2018-04-28 10:46:27 +00:00
Specify the endpoint for IBM COS.
For Public IBM COS, choose from the option below.
For On Premise IBM COS, enter an enpoint address.
2018-03-19 10:06:13 +00:00
.RS 4
.IP
.nf
\f[C]
2018-04-28 10:46:27 +00:00
Endpoint\ for\ IBM\ COS\ S3\ API.
Specify\ if\ using\ an\ IBM\ COS\ On\ Premise.
2018-03-19 10:06:13 +00:00
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2018-04-28 10:46:27 +00:00
\ 1\ /\ US\ Cross\ Region\ Endpoint
\ \ \ \\\ "s3\-api.us\-geo.objectstorage.softlayer.net"
\ 2\ /\ US\ Cross\ Region\ Dallas\ Endpoint
\ \ \ \\\ "s3\-api.dal.us\-geo.objectstorage.softlayer.net"
\ 3\ /\ US\ Cross\ Region\ Washington\ DC\ Endpoint
\ \ \ \\\ "s3\-api.wdc\-us\-geo.objectstorage.softlayer.net"
\ 4\ /\ US\ Cross\ Region\ San\ Jose\ Endpoint
\ \ \ \\\ "s3\-api.sjc\-us\-geo.objectstorage.softlayer.net"
\ 5\ /\ US\ Cross\ Region\ Private\ Endpoint
\ \ \ \\\ "s3\-api.us\-geo.objectstorage.service.networklayer.com"
\ 6\ /\ US\ Cross\ Region\ Dallas\ Private\ Endpoint
\ \ \ \\\ "s3\-api.dal\-us\-geo.objectstorage.service.networklayer.com"
\ 7\ /\ US\ Cross\ Region\ Washington\ DC\ Private\ Endpoint
\ \ \ \\\ "s3\-api.wdc\-us\-geo.objectstorage.service.networklayer.com"
\ 8\ /\ US\ Cross\ Region\ San\ Jose\ Private\ Endpoint
\ \ \ \\\ "s3\-api.sjc\-us\-geo.objectstorage.service.networklayer.com"
\ 9\ /\ US\ Region\ East\ Endpoint
\ \ \ \\\ "s3.us\-east.objectstorage.softlayer.net"
10\ /\ US\ Region\ East\ Private\ Endpoint
\ \ \ \\\ "s3.us\-east.objectstorage.service.networklayer.com"
11\ /\ US\ Region\ South\ Endpoint
[snip]
34\ /\ Toronto\ Single\ Site\ Private\ Endpoint
\ \ \ \\\ "s3.tor01.objectstorage.service.networklayer.com"
endpoint>1
2018-03-19 10:06:13 +00:00
\f[]
.fi
.RE
.IP " 7." 4
Specify a IBM COS Location Constraint.
2018-04-28 10:46:27 +00:00
The location constraint must match endpoint when using IBM Cloud Public.
For on\-prem COS, do not make a selection from this list, hit enter
2018-03-19 10:06:13 +00:00
.RS 4
2017-09-30 13:19:47 +00:00
.IP
.nf
\f[C]
2018-04-28 10:46:27 +00:00
\ 1\ /\ US\ Cross\ Region\ Standard
\ \ \ \\\ "us\-standard"
\ 2\ /\ US\ Cross\ Region\ Vault
\ \ \ \\\ "us\-vault"
\ 3\ /\ US\ Cross\ Region\ Cold
\ \ \ \\\ "us\-cold"
\ 4\ /\ US\ Cross\ Region\ Flex
\ \ \ \\\ "us\-flex"
\ 5\ /\ US\ East\ Region\ Standard
\ \ \ \\\ "us\-east\-standard"
\ 6\ /\ US\ East\ Region\ Vault
\ \ \ \\\ "us\-east\-vault"
\ 7\ /\ US\ East\ Region\ Cold
\ \ \ \\\ "us\-east\-cold"
\ 8\ /\ US\ East\ Region\ Flex
\ \ \ \\\ "us\-east\-flex"
\ 9\ /\ US\ South\ Region\ Standard
\ \ \ \\\ "us\-south\-standard"
10\ /\ US\ South\ Region\ Vault
\ \ \ \\\ "us\-south\-vault"
[snip]
32\ /\ Toronto\ Flex
\ \ \ \\\ "tor01\-flex"
location_constraint>1
2017-09-30 13:19:47 +00:00
\f[]
.fi
2018-03-19 10:06:13 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP " 8." 4
2018-03-19 10:06:13 +00:00
Specify a canned ACL.
2018-04-28 10:46:27 +00:00
IBM Cloud (Strorage) supports "public\-read" and "private".
IBM Cloud(Infra) supports all the canned ACLs.
On\-Premise COS supports all the canned ACLs.
2018-03-19 10:06:13 +00:00
.RS 4
2017-09-30 13:19:47 +00:00
.IP
.nf
\f[C]
2018-03-19 10:06:13 +00:00
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
2018-04-28 10:46:27 +00:00
\ \ 1\ /\ Owner\ gets\ FULL_CONTROL.\ No\ one\ else\ has\ access\ rights\ (default).\ This\ acl\ is\ available\ on\ IBM\ Cloud\ (Infra),\ IBM\ Cloud\ (Storage),\ On\-Premise\ COS
\ \ \\\ "private"
\ \ 2\ \ /\ Owner\ gets\ FULL_CONTROL.\ The\ AllUsers\ group\ gets\ READ\ access.\ This\ acl\ is\ available\ on\ IBM\ Cloud\ (Infra),\ IBM\ Cloud\ (Storage),\ On\-Premise\ IBM\ COS
\ \ \\\ "public\-read"
\ \ 3\ /\ Owner\ gets\ FULL_CONTROL.\ The\ AllUsers\ group\ gets\ READ\ and\ WRITE\ access.\ This\ acl\ is\ available\ on\ IBM\ Cloud\ (Infra),\ On\-Premise\ IBM\ COS
\ \ \\\ "public\-read\-write"
\ \ 4\ \ /\ Owner\ gets\ FULL_CONTROL.\ The\ AuthenticatedUsers\ group\ gets\ READ\ access.\ Not\ supported\ on\ Buckets.\ This\ acl\ is\ available\ on\ IBM\ Cloud\ (Infra)\ and\ On\-Premise\ IBM\ COS
\ \ \\\ "authenticated\-read"
2018-03-19 10:06:13 +00:00
acl>\ 1
2017-09-30 13:19:47 +00:00
\f[]
.fi
2018-03-19 10:06:13 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP " 9." 4
2018-03-19 10:06:13 +00:00
Review the displayed configuration and accept to save the "remote" then
quit.
2018-04-28 10:46:27 +00:00
The config file should look like this
2018-03-19 10:06:13 +00:00
.RS 4
.IP
.nf
\f[C]
2018-04-28 10:46:27 +00:00
[xxx]
type\ =\ s3
Provider\ =\ IBMCOS
access_key_id\ =\ xxx
secret_access_key\ =\ yyy
2018-03-19 10:06:13 +00:00
endpoint\ =\ s3\-api.us\-geo.objectstorage.softlayer.net
location_constraint\ =\ us\-standard
acl\ =\ private
2017-12-23 13:07:45 +00:00
\f[]
.fi
2018-03-19 10:06:13 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP "10." 4
2018-03-19 10:06:13 +00:00
Execute rclone commands
.RS 4
2017-12-23 13:07:45 +00:00
.IP
.nf
\f[C]
2018-03-19 10:06:13 +00:00
1)\ \ Create\ a\ bucket.
\ \ \ \ rclone\ mkdir\ IBM\-COS\-XREGION:newbucket
2)\ \ List\ available\ buckets.
\ \ \ \ rclone\ lsd\ IBM\-COS\-XREGION:
\ \ \ \ \-1\ 2017\-11\-08\ 21:16:22\ \ \ \ \ \ \ \ \-1\ test
\ \ \ \ \-1\ 2018\-02\-14\ 20:16:39\ \ \ \ \ \ \ \ \-1\ newbucket
3)\ \ List\ contents\ of\ a\ bucket.
\ \ \ \ rclone\ ls\ IBM\-COS\-XREGION:newbucket
\ \ \ \ 18685952\ test.exe
4)\ \ Copy\ a\ file\ from\ local\ to\ remote.
\ \ \ \ rclone\ copy\ /Users/file.txt\ IBM\-COS\-XREGION:newbucket
5)\ \ Copy\ a\ file\ from\ remote\ to\ local.
\ \ \ \ rclone\ copy\ IBM\-COS\-XREGION:newbucket/file.txt\ .
6)\ \ Delete\ a\ file\ on\ remote.
\ \ \ \ rclone\ delete\ IBM\-COS\-XREGION:newbucket/file.txt
2017-12-23 13:07:45 +00:00
\f[]
.fi
2018-03-19 10:06:13 +00:00
.RE
2017-09-30 13:19:47 +00:00
.SS Minio
2016-08-24 21:58:24 +00:00
.PP
2017-09-30 13:19:47 +00:00
Minio (https://minio.io/) is an object storage server built for cloud
application developers and devops.
2016-08-24 21:58:24 +00:00
.PP
2017-09-30 13:19:47 +00:00
It is very easy to install and provides an S3 compatible server which
can be used by rclone.
2016-08-24 21:58:24 +00:00
.PP
2017-09-30 13:19:47 +00:00
To use it, install Minio following the instructions
here (https://docs.minio.io/docs/minio-quickstart-guide).
2016-08-24 21:58:24 +00:00
.PP
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
Which makes the config file look like this
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
[minio]
2018-04-28 10:46:27 +00:00
type\ =\ s3
provider\ =\ Minio
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
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
2019-02-09 10:42:57 +00:00
.SS Scaleway
.PP
Scaleway (https://www.scaleway.com/object-storage/) The Object Storage
platform allows you to store anything from backups, logs and web assets
to documents and photos.
Files can be dropped from the Scaleway console or transferred through
our API and CLI or using any S3\-compatible tool.
.PP
Scaleway provides an S3 interface which can be configured for use with
rclone like this:
.IP
.nf
\f[C]
[scaleway]
type\ =\ s3
env_auth\ =\ false
endpoint\ =\ s3.nl\-ams.scw.cloud
access_key_id\ =\ SCWXXXXXXXXXXXXXX
secret_access_key\ =\ 1111111\-2222\-3333\-44444\-55555555555555
region\ =\ nl\-ams
location_constraint\ =
acl\ =\ private
force_path_style\ =\ false
server_side_encryption\ =
storage_class\ =
\f[]
.fi
2017-09-30 13:19:47 +00:00
.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]
No\ remotes\ found\ \-\ make\ a\ new\ one
n)\ New\ remote
2016-03-01 09:00:01 +00:00
s)\ Set\ configuration\ password
n/s>\ n
2017-09-30 13:19:47 +00:00
name>\ wasabi
2016-03-01 09:00:01 +00:00
Type\ of\ storage\ to\ configure.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2016-07-13 11:26:22 +00:00
\ 1\ /\ Amazon\ Drive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "amazon\ cloud\ drive"
2017-03-18 11:16:43 +00:00
\ 2\ /\ Amazon\ S3\ (also\ Dreamhost,\ Ceph,\ Minio)
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "s3"
2017-09-30 13:19:47 +00:00
[snip]
Storage>\ s3
2017-12-23 13:07:45 +00:00
Get\ AWS\ credentials\ from\ runtime\ (environment\ variables\ or\ EC2/ECS\ meta\ data\ if\ no\ env\ vars).\ Only\ applies\ if\ access_key_id\ and\ secret_access_key\ is\ blank.
2016-03-01 09:00:01 +00:00
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.
2017-09-30 13:19:47 +00:00
access_key_id>\ YOURACCESSKEY
2016-03-01 09:00:01 +00:00
AWS\ Secret\ Access\ Key\ (password)\ \-\ leave\ blank\ for\ anonymous\ access\ or\ runtime\ credentials.
2017-09-30 13:19:47 +00:00
secret_access_key>\ YOURSECRETACCESSKEY
Region\ to\ connect\ to.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2016-03-01 09:00:01 +00:00
\ \ \ /\ 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"
2017-09-30 13:19:47 +00:00
[snip]
region>\ us\-east\-1
Endpoint\ for\ S3\ API.
Leave\ blank\ if\ using\ AWS\ to\ use\ the\ default\ endpoint\ for\ the\ region.
2017-09-30 13:19:47 +00:00
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]
2018-04-28 10:46:27 +00:00
location_constraint>
2017-09-30 13:19:47 +00:00
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]
2018-04-28 10:46:27 +00:00
acl>
2016-06-18 15:29:53 +00:00
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"
2018-04-28 10:46:27 +00:00
server_side_encryption>
2016-11-06 10:17:52 +00:00
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"
2018-04-28 10:46:27 +00:00
storage_class>
Remote\ config
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
2017-09-30 13:19:47 +00:00
[wasabi]
2016-03-01 09:00:01 +00:00
env_auth\ =\ false
2017-09-30 13:19:47 +00:00
access_key_id\ =\ YOURACCESSKEY
secret_access_key\ =\ YOURSECRETACCESSKEY
region\ =\ us\-east\-1
endpoint\ =\ s3.wasabisys.com
2018-04-28 10:46:27 +00:00
location_constraint\ =
acl\ =
server_side_encryption\ =
storage_class\ =
2017-09-30 13:19:47 +00:00
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
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]
2018-04-28 10:46:27 +00:00
type\ =\ s3
provider\ =\ Wasabi
2017-09-30 13:19:47 +00:00
env_auth\ =\ false
access_key_id\ =\ YOURACCESSKEY
secret_access_key\ =\ YOURSECRETACCESSKEY
2018-04-28 10:46:27 +00:00
region\ =
2017-09-30 13:19:47 +00:00
endpoint\ =\ s3.wasabisys.com
2018-04-28 10:46:27 +00:00
location_constraint\ =
acl\ =
server_side_encryption\ =
storage_class\ =
2017-09-30 13:19:47 +00:00
\f[]
.fi
2019-02-09 10:42:57 +00:00
.SS Alibaba OSS
2018-09-01 11:58:00 +00:00
.PP
2019-02-09 10:42:57 +00:00
Here is an example of making an Alibaba Cloud (Aliyun)
OSS (https://www.alibabacloud.com/product/oss/) configuration.
First run:
.IP
.nf
\f[C]
rclone\ config
\f[]
.fi
2018-09-01 11:58:00 +00:00
.PP
2019-02-09 10:42:57 +00:00
This will guide you through an interactive setup process.
2018-09-01 11:58:00 +00:00
.IP
.nf
\f[C]
2019-02-09 10:42:57 +00:00
No\ remotes\ found\ \-\ make\ a\ new\ one
n)\ New\ remote
s)\ Set\ configuration\ password
q)\ Quit\ config
n/s/q>\ n
2018-09-01 11:58:00 +00:00
name>\ oss
Type\ of\ storage\ to\ configure.
Enter\ a\ string\ value.\ Press\ Enter\ for\ the\ default\ ("").
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2019-02-09 10:42:57 +00:00
[snip]
\ 4\ /\ Amazon\ S3\ Compliant\ Storage\ Provider\ (AWS,\ Alibaba,\ Ceph,\ Digital\ Ocean,\ Dreamhost,\ IBM\ COS,\ Minio,\ etc)
2018-09-01 11:58:00 +00:00
\ \ \ \\\ "s3"
2019-02-09 10:42:57 +00:00
[snip]
2018-09-01 11:58:00 +00:00
Storage>\ s3
Choose\ your\ S3\ provider.
Enter\ a\ string\ value.\ Press\ Enter\ for\ the\ default\ ("").
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2019-02-09 10:42:57 +00:00
\ 1\ /\ Amazon\ Web\ Services\ (AWS)\ S3
\ \ \ \\\ "AWS"
\ 2\ /\ Alibaba\ Cloud\ Object\ Storage\ System\ (OSS)\ formerly\ Aliyun
\ \ \ \\\ "Alibaba"
\ 3\ /\ Ceph\ Object\ Storage
\ \ \ \\\ "Ceph"
[snip]
provider>\ Alibaba
2018-09-01 11:58:00 +00:00
Get\ AWS\ credentials\ from\ runtime\ (environment\ variables\ or\ EC2/ECS\ meta\ data\ if\ no\ env\ vars).
Only\ applies\ if\ access_key_id\ and\ secret_access_key\ is\ blank.
Enter\ a\ boolean\ value\ (true\ or\ false).\ Press\ Enter\ for\ the\ default\ ("false").
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.
Enter\ a\ string\ value.\ Press\ Enter\ for\ the\ default\ ("").
2019-02-09 10:42:57 +00:00
access_key_id>\ accesskeyid
2018-09-01 11:58:00 +00:00
AWS\ Secret\ Access\ Key\ (password)
Leave\ blank\ for\ anonymous\ access\ or\ runtime\ credentials.
Enter\ a\ string\ value.\ Press\ Enter\ for\ the\ default\ ("").
2019-02-09 10:42:57 +00:00
secret_access_key>\ secretaccesskey
Endpoint\ for\ OSS\ API.
2018-09-01 11:58:00 +00:00
Enter\ a\ string\ value.\ Press\ Enter\ for\ the\ default\ ("").
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2019-02-09 10:42:57 +00:00
\ 1\ /\ East\ China\ 1\ (Hangzhou)
\ \ \ \\\ "oss\-cn\-hangzhou.aliyuncs.com"
\ 2\ /\ East\ China\ 2\ (Shanghai)
\ \ \ \\\ "oss\-cn\-shanghai.aliyuncs.com"
\ 3\ /\ North\ China\ 1\ (Qingdao)
\ \ \ \\\ "oss\-cn\-qingdao.aliyuncs.com"
[snip]
endpoint>\ 1
Canned\ ACL\ used\ when\ creating\ buckets\ and\ storing\ or\ copying\ objects.
Note\ that\ this\ ACL\ is\ applied\ when\ server\ side\ copying\ objects\ as\ S3
doesn\[aq]t\ copy\ the\ ACL\ from\ the\ source\ but\ rather\ writes\ a\ fresh\ one.
2018-09-01 11:58:00 +00:00
Enter\ a\ string\ value.\ Press\ Enter\ for\ the\ default\ ("").
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ 1\ /\ Owner\ gets\ FULL_CONTROL.\ No\ one\ else\ has\ access\ rights\ (default).
\ \ \ \\\ "private"
2019-02-09 10:42:57 +00:00
\ 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.
[snip]
2018-09-01 11:58:00 +00:00
acl>\ 1
2019-02-09 10:42:57 +00:00
The\ storage\ class\ to\ use\ when\ storing\ new\ objects\ in\ OSS.
Enter\ a\ string\ value.\ Press\ Enter\ for\ the\ default\ ("").
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ 1\ /\ Default
\ \ \ \\\ ""
\ 2\ /\ Standard\ storage\ class
\ \ \ \\\ "STANDARD"
\ 3\ /\ Archive\ storage\ mode.
\ \ \ \\\ "GLACIER"
\ 4\ /\ Infrequent\ access\ storage\ mode.
\ \ \ \\\ "STANDARD_IA"
storage_class>\ 1
2018-09-01 11:58:00 +00:00
Edit\ advanced\ config?\ (y/n)
y)\ Yes
n)\ No
2019-02-09 10:42:57 +00:00
y/n>\ n
2018-09-01 11:58:00 +00:00
Remote\ config
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[oss]
type\ =\ s3
2019-02-09 10:42:57 +00:00
provider\ =\ Alibaba
2018-09-01 11:58:00 +00:00
env_auth\ =\ false
2019-02-09 10:42:57 +00:00
access_key_id\ =\ accesskeyid
secret_access_key\ =\ secretaccesskey
endpoint\ =\ oss\-cn\-hangzhou.aliyuncs.com
2018-09-01 11:58:00 +00:00
acl\ =\ private
2019-02-09 10:42:57 +00:00
storage_class\ =\ Standard
2018-09-01 11:58:00 +00:00
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
d)\ Delete\ this\ remote
y/e/d>\ y
\f[]
.fi
2019-02-09 10:42:57 +00:00
.SS Netease NOS
.PP
For Netease NOS configure as per the configurator
\f[C]rclone\ config\f[] setting the provider \f[C]Netease\f[].
This will automatically set \f[C]force_path_style\ =\ false\f[] which is
necessary for it to run properly.
2017-09-30 13:19:47 +00:00
.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.
2019-02-09 10:42:57 +00:00
To authenticate you will either need your Account ID (a short hex
number) and Master Application Key (a long hex number) OR an Application
Key, which is the recommended method.
See below for further details on generating and using an Application
Key.
2017-09-30 13:19:47 +00:00
.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
2018-09-01 11:58:00 +00:00
Account\ ID\ or\ Application\ Key\ ID
2017-09-30 13:19:47 +00:00
account>\ 123456789abc
Application\ Key
key>\ 0123456789abcdef0123456789abcdef0123456789
Endpoint\ for\ the\ service\ \-\ leave\ blank\ normally.
endpoint>
Remote\ config
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[remote]
account\ =\ 123456789abc
key\ =\ 0123456789abcdef0123456789abcdef0123456789
2017-03-18 11:16:43 +00:00
endpoint\ =
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
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
2018-09-01 11:58:00 +00:00
Create 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
2018-09-01 11:58:00 +00:00
.SS Application Keys
.PP
B2 supports multiple Application Keys for different access permission to
B2 Buckets (https://www.backblaze.com/b2/docs/application_keys.html).
.PP
2019-02-09 10:42:57 +00:00
You can use these with rclone too; you will need to use rclone version
1.43 or later.
2018-09-01 11:58:00 +00:00
.PP
Follow Backblaze\[aq]s docs to create an Application Key with the
2019-02-09 10:42:57 +00:00
required permission and add the \f[C]applicationKeyId\f[] as the
2018-09-01 11:58:00 +00:00
\f[C]account\f[] and the \f[C]Application\ Key\f[] itself as the
\f[C]key\f[].
.PP
2019-02-09 10:42:57 +00:00
Note that you must put the \f[I]applicationKeyId\f[] as the
\f[C]account\f[] \[en] you can\[aq]t use the master Account ID.
2018-09-01 11:58:00 +00:00
If you try then B2 will return 401 errors.
.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
2017-09-30 13:19:47 +00:00
\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
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
The SHA1 checksums of the files are checked on upload and download and
will be used in the syncing process.
2016-03-01 09:00:01 +00:00
.PP
2017-12-23 13:07:45 +00:00
Large files (bigger than the limit in \f[C]\-\-b2\-upload\-cutoff\f[])
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.
.PP
For a large file to be uploaded with an SHA1 checksum, the source needs
to support SHA1 checksums.
The local disk supports SHA1 checksums so large file transfers from
local disk will have an SHA1.
See the overview (/overview/#features) for exactly which remotes support
SHA1.
.PP
Sources which don\[aq]t support SHA1, in particular \f[C]crypt\f[] will
upload large files without SHA1 checksums.
This may be fixed in the future (see
#1767 (https://github.com/ncw/rclone/issues/1767)).
.PP
Files sizes below \f[C]\-\-b2\-upload\-cutoff\f[] will always have an
SHA1 regardless of the source.
2017-09-30 13:19:47 +00:00
.SS Transfers
2016-03-01 09:00:01 +00:00
.PP
2017-09-30 13:19:47 +00:00
Backblaze recommends that you do lots of transfers simultaneously for
maximum speed.
2017-12-23 13:07:45 +00:00
In tests from my SSD equipped laptop the optimum setting is about
2017-09-30 13:19:47 +00:00
\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
2017-09-30 13:19:47 +00:00
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
2019-02-09 10:42:57 +00:00
Note that \f[C]cleanup\f[] will remove partially uploaded files from the
bucket if they are more than a day old.
2018-10-15 10:03:08 +00:00
.PP
2017-09-30 13:19:47 +00:00
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
2017-12-23 13:07:45 +00:00
Here is a session showing the listing and retrieval of an old version
followed by a \f[C]cleanup\f[] of the old versions.
2017-09-30 13:19:47 +00:00
.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
2017-12-23 13:07:45 +00:00
Retrieve an old version
2017-09-30 13:19:47 +00:00
.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
2017-09-30 13:19:47 +00:00
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]
2017-09-30 13:19:47 +00:00
/b2api/v1/b2_get_upload_url
/b2api/v1/b2_upload_file/
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
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
2018-10-15 10:03:08 +00:00
.SS Versions
2017-09-30 13:19:47 +00:00
.PP
2018-10-15 10:03:08 +00:00
Versions can be viewd with the \f[C]\-\-b2\-versions\f[] flag.
When it is set rclone will show and act on older versions of files.
2017-09-30 13:19:47 +00:00
For example
.PP
Listing without \f[C]\-\-b2\-versions\f[]
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
$\ rclone\ \-q\ ls\ b2:cleanup\-test
\ \ \ \ \ \ \ \ 9\ one.txt
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
And with
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
$\ 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
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
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.
2018-10-15 10:03:08 +00:00
.SS Standard Options
.PP
Here are the standard options specific to b2 (Backblaze B2).
.SS \-\-b2\-account
.PP
Account ID or Application Key ID
.IP \[bu] 2
Config: account
.IP \[bu] 2
Env Var: RCLONE_B2_ACCOUNT
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-b2\-key
.PP
Application Key
.IP \[bu] 2
Config: key
.IP \[bu] 2
Env Var: RCLONE_B2_KEY
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-b2\-hard\-delete
.PP
Permanently delete files on remote removal, otherwise hide files.
.IP \[bu] 2
Config: hard_delete
.IP \[bu] 2
Env Var: RCLONE_B2_HARD_DELETE
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS Advanced Options
.PP
Here are the advanced options specific to b2 (Backblaze B2).
.SS \-\-b2\-endpoint
.PP
Endpoint for the service.
Leave blank normally.
.IP \[bu] 2
Config: endpoint
.IP \[bu] 2
Env Var: RCLONE_B2_ENDPOINT
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-b2\-test\-mode
.PP
A flag string for X\-Bz\-Test\-Mode header for debugging.
.PP
This is for debugging purposes only.
Setting it to one of the strings below will cause b2 to return specific
errors:
.IP \[bu] 2
"fail_some_uploads"
.IP \[bu] 2
"expire_some_account_authorization_tokens"
.IP \[bu] 2
"force_cap_exceeded"
.PP
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).
.IP \[bu] 2
Config: test_mode
.IP \[bu] 2
Env Var: RCLONE_B2_TEST_MODE
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-b2\-versions
.PP
Include old versions in directory listings.
Note that when using this no file write operations are permitted, so you
can\[aq]t upload files or delete them.
.IP \[bu] 2
Config: versions
.IP \[bu] 2
Env Var: RCLONE_B2_VERSIONS
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS \-\-b2\-upload\-cutoff
.PP
Cutoff for switching to chunked upload.
.PP
Files above this size will be uploaded in chunks of
"\-\-b2\-chunk\-size".
.PP
This value should be set no larger than 4.657GiB (== 5GB).
.IP \[bu] 2
Config: upload_cutoff
.IP \[bu] 2
Env Var: RCLONE_B2_UPLOAD_CUTOFF
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 200M
.SS \-\-b2\-chunk\-size
.PP
Upload chunk size.
Must fit in memory.
.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 "\-\-transfers" chunks in progress at once.
2019-02-09 10:42:57 +00:00
5,000,000 Bytes is the minimum size.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: chunk_size
.IP \[bu] 2
Env Var: RCLONE_B2_CHUNK_SIZE
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 96M
2019-02-09 10:42:57 +00:00
.SS \-\-b2\-disable\-checksum
.PP
Disable checksums for large (> upload cutoff) files
.IP \[bu] 2
Config: disable_checksum
.IP \[bu] 2
Env Var: RCLONE_B2_DISABLE_CHECKSUM
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
2017-09-30 13:19:47 +00:00
.SS Box
.PP
2017-09-30 13:19:47 +00:00
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]
2017-09-30 13:19:47 +00:00
\ rclone\ config
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
This will guide you through an interactive setup process:
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
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
2016-07-13 11:26:22 +00:00
.PP
2017-09-30 13:19:47 +00:00
See the remote setup docs (https://rclone.org/remote_setup/) for how to
set it up on a machine with no Internet browser available.
2016-07-13 11:26:22 +00:00
.PP
2017-09-30 13:19:47 +00:00
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.
2016-07-13 11:26:22 +00:00
.PP
2017-09-30 13:19:47 +00:00
Once configured you can then use \f[C]rclone\f[] like this,
2016-07-13 11:26:22 +00:00
.PP
2017-09-30 13:19:47 +00:00
List directories in top level of your Box
2016-07-13 11:26:22 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ lsd\ remote:
2016-07-13 11:26:22 +00:00
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
List all the files in your Box
2016-07-13 11:26:22 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ ls\ remote:
2016-07-13 11:26:22 +00:00
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
To copy a local directory to an Box directory called backup
2016-07-13 11:26:22 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ copy\ /home/source\ remote:backup
2016-07-13 11:26:22 +00:00
\f[]
.fi
2019-02-09 10:42:57 +00:00
.SS Using rclone with an Enterprise account with SSO
.PP
If you have an "Enterprise" account type with Box with single sign on
(SSO), you need to create a password to use Box with rclone.
This can be done at your Enterprise Box account by going to Settings,
"Account" Tab, and then set the password in the "Authentication" field.
.PP
Once you have done this, you can setup your Enterprise Box account using
the same procedure detailed above in the, using the password you have
just set.
2017-09-30 13:19:47 +00:00
.SS Invalid refresh token
2016-07-13 11:26:22 +00:00
.PP
2017-09-30 13:19:47 +00:00
According to the box
docs (https://developer.box.com/v2.0/docs/oauth-20#section-6-using-the-access-and-refresh-tokens):
.RS
.PP
2017-09-30 13:19:47 +00:00
Each refresh_token is valid for one use in 60 days.
.RE
.PP
This means that if you
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
Don\[aq]t use the box remote for 60 days
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
then rclone will return an error which includes the text
\f[C]Invalid\ refresh\ token\f[].
.PP
2017-09-30 13:19:47 +00:00
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]
2017-09-30 13:19:47 +00:00
$\ 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
2017-12-23 13:07:45 +00:00
.SS Modified time and hashes
.PP
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
2018-09-01 11:58:00 +00:00
Box supports SHA1 type hashes, so you can use the \f[C]\-\-checksum\f[]
flag.
2017-12-23 13:07:45 +00:00
.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.
2018-10-15 10:03:08 +00:00
.SS Standard Options
.PP
Here are the standard options specific to box (Box).
.SS \-\-box\-client\-id
.PP
Box App Client Id.
Leave blank normally.
.IP \[bu] 2
Config: client_id
.IP \[bu] 2
Env Var: RCLONE_BOX_CLIENT_ID
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-box\-client\-secret
.PP
Box App Client Secret Leave blank normally.
.IP \[bu] 2
Config: client_secret
.IP \[bu] 2
Env Var: RCLONE_BOX_CLIENT_SECRET
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS Advanced Options
2017-12-23 13:07:45 +00:00
.PP
2018-10-15 10:03:08 +00:00
Here are the advanced options specific to box (Box).
.SS \-\-box\-upload\-cutoff
2017-12-23 13:07:45 +00:00
.PP
2018-10-15 10:03:08 +00:00
Cutoff for switching to multipart upload (>= 50MB).
.IP \[bu] 2
Config: upload_cutoff
.IP \[bu] 2
Env Var: RCLONE_BOX_UPLOAD_CUTOFF
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 50M
.SS \-\-box\-commit\-retries
2018-09-01 11:58:00 +00:00
.PP
Max number of times to try committing a multipart file.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: commit_retries
.IP \[bu] 2
Env Var: RCLONE_BOX_COMMIT_RETRIES
.IP \[bu] 2
Type: int
.IP \[bu] 2
Default: 100
2017-12-23 13:07:45 +00:00
.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 Cache (BETA)
.PP
The \f[C]cache\f[] remote wraps another existing remote and stores file
structure and its data for long running tasks like
\f[C]rclone\ mount\f[].
.PP
To get started you just need to have an existing remote which can be
configured with \f[C]cache\f[].
.PP
Here is an example of how to make a remote called \f[C]test\-cache\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>\ test\-cache
Type\ of\ storage\ to\ configure.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\&...
\ 5\ /\ Cache\ a\ remote
\ \ \ \\\ "cache"
\&...
Storage>\ 5
Remote\ to\ cache.
Normally\ should\ contain\ a\ \[aq]:\[aq]\ and\ a\ path,\ eg\ "myremote:path/to/dir",
"myremote:bucket"\ or\ maybe\ "myremote:"\ (not\ recommended).
remote>\ local:/test
Optional:\ The\ URL\ of\ the\ Plex\ server
plex_url>\ http://127.0.0.1:32400
Optional:\ The\ username\ of\ the\ Plex\ user
plex_username>\ dummyusername
Optional:\ The\ password\ of\ the\ Plex\ user
y)\ Yes\ type\ in\ my\ own\ password
g)\ Generate\ random\ password
n)\ No\ leave\ this\ optional\ password\ blank
y/g/n>\ y
Enter\ the\ password:
password:
Confirm\ the\ password:
password:
The\ size\ of\ a\ chunk.\ Lower\ value\ good\ for\ slow\ connections\ but\ can\ affect\ seamless\ reading.
Default:\ 5M
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ 1\ /\ 1MB
\ \ \ \\\ "1m"
\ 2\ /\ 5\ MB
\ \ \ \\\ "5M"
\ 3\ /\ 10\ MB
\ \ \ \\\ "10M"
chunk_size>\ 2
How\ much\ time\ should\ object\ info\ (file\ size,\ file\ hashes\ etc)\ be\ stored\ in\ cache.\ Use\ a\ very\ high\ value\ if\ you\ don\[aq]t\ plan\ on\ changing\ the\ source\ FS\ from\ outside\ the\ cache.
Accepted\ units\ are:\ "s",\ "m",\ "h".
Default:\ 5m
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ 1\ /\ 1\ hour
\ \ \ \\\ "1h"
\ 2\ /\ 24\ hours
\ \ \ \\\ "24h"
\ 3\ /\ 24\ hours
\ \ \ \\\ "48h"
info_age>\ 2
The\ maximum\ size\ of\ stored\ chunks.\ When\ the\ storage\ grows\ beyond\ this\ size,\ the\ oldest\ chunks\ will\ be\ deleted.
Default:\ 10G
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ 1\ /\ 500\ MB
\ \ \ \\\ "500M"
\ 2\ /\ 1\ GB
\ \ \ \\\ "1G"
\ 3\ /\ 10\ GB
\ \ \ \\\ "10G"
chunk_total_size>\ 3
Remote\ config
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[test\-cache]
remote\ =\ local:/test
plex_url\ =\ http://127.0.0.1:32400
plex_username\ =\ dummyusername
plex_password\ =\ ***\ ENCRYPTED\ ***
chunk_size\ =\ 5M
info_age\ =\ 48h
chunk_total_size\ =\ 10G
\f[]
.fi
.PP
You can then use it like this,
.PP
List directories in top level of your drive
.IP
.nf
\f[C]
rclone\ lsd\ test\-cache:
\f[]
.fi
.PP
2017-12-23 13:07:45 +00:00
List all the files in your drive
.IP
.nf
\f[C]
rclone\ ls\ test\-cache:
\f[]
.fi
2017-09-30 13:19:47 +00:00
.PP
2017-12-23 13:07:45 +00:00
To start a cached mount
.IP
.nf
\f[C]
rclone\ mount\ \-\-allow\-other\ test\-cache:\ /var/tmp/test\-cache
\f[]
.fi
2018-03-19 10:06:13 +00:00
.SS Write Features
.SS Offline uploading
.PP
In an effort to make writing through cache more reliable, the backend
now supports this feature which can be activated by specifying a
\f[C]cache\-tmp\-upload\-path\f[].
.PP
A files goes through these states when using this feature:
.IP "1." 3
An upload is started (usually by copying a file on the cache remote)
.IP "2." 3
When the copy to the temporary location is complete the file is part of
the cached remote and looks and behaves like any other file (reading
included)
.IP "3." 3
After \f[C]cache\-tmp\-wait\-time\f[] passes and the file is next in
line, \f[C]rclone\ move\f[] is used to move the file to the cloud
provider
.IP "4." 3
Reading the file still works during the upload but most modifications on
it will be prohibited
.IP "5." 3
Once the move is complete the file is unlocked for modifications as it
becomes as any other regular file
.IP "6." 3
If the file is being read through \f[C]cache\f[] when it\[aq]s actually
deleted from the temporary path then \f[C]cache\f[] will simply swap the
source to the cloud provider without interrupting the reading (small
blip can happen though)
.PP
Files are uploaded in sequence and only one file is uploaded at a time.
Uploads will be stored in a queue and be processed based on the order
they were added.
2018-10-15 10:03:08 +00:00
The queue and the temporary storage is persistent across restarts but
can be cleared on startup with the \f[C]\-\-cache\-db\-purge\f[] flag.
2017-12-23 13:07:45 +00:00
.SS Write Support
2017-09-30 13:19:47 +00:00
.PP
2017-12-23 13:07:45 +00:00
Writes are supported through \f[C]cache\f[].
One caveat is that a mounted cache remote does not add any retry or
fallback mechanism to the upload operation.
This will depend on the implementation of the wrapped remote.
2018-03-19 10:06:13 +00:00
Consider using \f[C]Offline\ uploading\f[] for reliable writes.
2017-09-30 13:19:47 +00:00
.PP
2017-12-23 13:07:45 +00:00
One special case is covered with \f[C]cache\-writes\f[] which will cache
the file data at the same time as the upload when it is enabled making
it available from the cache store immediately once the upload is
finished.
.SS Read Features
.SS Multiple connections
.PP
To counter the high latency between a local PC where rclone is running
and cloud providers, the cache remote can split multiple requests to the
cloud provider for smaller file chunks and combines them together
locally where they can be available almost immediately before the reader
usually needs them.
.PP
This is similar to buffering when media files are played online.
Rclone will stay around the current marker but always try its best to
stay ahead and prepare the data before.
.SS Plex Integration
.PP
There is a direct integration with Plex which allows cache to detect
during reading if the file is in playback or not.
This helps cache to adapt how it queries the cloud provider depending on
what is needed for.
.PP
Scans will have a minimum amount of workers (1) while in a confirmed
playback cache will deploy the configured number of workers.
.PP
This integration opens the doorway to additional performance
improvements which will be explored in the near future.
.PP
\f[B]Note:\f[] If Plex options are not configured, \f[C]cache\f[] will
function with its configured options without adapting any of its
settings.
.PP
How to enable?
Run \f[C]rclone\ config\f[] and add all the Plex options (endpoint,
username and password) in your remote and it will be automatically
enabled.
.PP
Affected settings: \- \f[C]cache\-workers\f[]: \f[I]Configured value\f[]
during confirmed playback or \f[I]1\f[] all the other times
2018-10-15 10:03:08 +00:00
.SS Certificate Validation
.PP
When the Plex server is configured to only accept secure connections, it
is possible to use \f[C]\&.plex.direct\f[] URL\[aq]s to ensure
certificate validation succeeds.
These URL\[aq]s are used by Plex internally to connect to the Plex
server securely.
.PP
The format for this URL\[aq]s is the following:
.PP
https://ip\-with\-dots\-replaced.server\-hash.plex.direct:32400/
.PP
The \f[C]ip\-with\-dots\-replaced\f[] part can be any IPv4 address,
where the dots have been replaced with dashes, e.g.
\f[C]127.0.0.1\f[] becomes \f[C]127\-0\-0\-1\f[].
.PP
To get the \f[C]server\-hash\f[] part, the easiest way is to visit
.PP
https://plex.tv/api/resources?includeHttps=1&X\-Plex\-Token=your\-plex\-token
.PP
This page will list all the available Plex servers for your account with
at least one \f[C]\&.plex.direct\f[] link for each.
Copy one URL and replace the IP address with the desired address.
This can be used as the \f[C]plex_url\f[] value.
2017-12-23 13:07:45 +00:00
.SS Known issues
2018-03-19 10:06:13 +00:00
.SS Mount and \-\-dir\-cache\-time
.PP
\-\-dir\-cache\-time controls the first layer of directory caching which
works at the mount layer.
Being an independent caching mechanism from the \f[C]cache\f[] backend,
it will manage its own entries based on the configured time.
.PP
To avoid getting in a scenario where dir cache has obsolete data and
cache would have the correct one, try to set
\f[C]\-\-dir\-cache\-time\f[] to a lower time than
\f[C]\-\-cache\-info\-age\f[].
Default values are already configured in this way.
2017-12-23 13:07:45 +00:00
.SS Windows support \- Experimental
.PP
There are a couple of issues with Windows \f[C]mount\f[] functionality
that still require some investigations.
It should be considered as experimental thus far as fixes come in for
this OS.
.PP
Most of the issues seem to be related to the difference between
filesystems on Linux flavors and Windows as cache is heavily dependant
on them.
.PP
Any reports or feedback on how cache behaves on this OS is greatly
appreciated.
.IP \[bu] 2
https://github.com/ncw/rclone/issues/1935
.IP \[bu] 2
https://github.com/ncw/rclone/issues/1907
.IP \[bu] 2
https://github.com/ncw/rclone/issues/1834
.SS Risk of throttling
.PP
Future iterations of the cache backend will make use of the pooling
functionality of the cloud provider to synchronize and at the same time
make writing through it more tolerant to failures.
.PP
There are a couple of enhancements in track to add these but in the
meantime there is a valid concern that the expiring cache listings can
lead to cloud provider throttles or bans due to repeated queries on it
for very large mounts.
.PP
Some recommendations: \- don\[aq]t use a very small interval for entry
informations (\f[C]\-\-cache\-info\-age\f[]) \- while writes aren\[aq]t
yet optimised, you can still write through \f[C]cache\f[] which gives
you the advantage of adding the file in the cache at the same time if
configured to do so.
.PP
Future enhancements:
.IP \[bu] 2
https://github.com/ncw/rclone/issues/1937
.IP \[bu] 2
https://github.com/ncw/rclone/issues/1936
.SS cache and crypt
.PP
One common scenario is to keep your data encrypted in the cloud provider
using the \f[C]crypt\f[] remote.
\f[C]crypt\f[] uses a similar technique to wrap around an existing
remote and handles this translation in a seamless way.
.PP
There is an issue with wrapping the remotes in this order: \f[B]cloud
remote\f[] \-> \f[B]crypt\f[] \-> \f[B]cache\f[]
.PP
During testing, I experienced a lot of bans with the remotes in this
order.
I suspect it might be related to how crypt opens files on the cloud
provider which makes it think we\[aq]re downloading the full file
instead of small chunks.
Organizing the remotes in this order yelds better results: \f[B]cloud
remote\f[] \-> \f[B]cache\f[] \-> \f[B]crypt\f[]
2018-10-15 10:03:08 +00:00
.SS absolute remote paths
.PP
\f[C]cache\f[] can not differentiate between relative and absolute paths
for the wrapped remote.
Any path given in the \f[C]remote\f[] config setting and on the command
line will be passed to the wrapped remote as is, but for storing the
chunks on disk the path will be made relative by removing any leading
\f[C]/\f[] character.
.PP
This behavior is irrelevant for most backend types, but there are
backends where a leading \f[C]/\f[] changes the effective directory,
e.g.
in the \f[C]sftp\f[] backend paths starting with a \f[C]/\f[] are
relative to the root of the SSH server and paths without are relative to
the user home directory.
As a result \f[C]sftp:bin\f[] and \f[C]sftp:/bin\f[] will share the same
cache folder, even if they represent a different directory on the SSH
server.
2018-03-19 10:06:13 +00:00
.SS Cache and Remote Control (\-\-rc)
.PP
Cache supports the new \f[C]\-\-rc\f[] mode in rclone and can be remote
controlled through the following end points: By default, the listener is
disabled if you do not add the flag.
.SS rc cache/expire
.PP
Purge a remote from the cache backend.
Supports either a directory or a file.
It supports both encrypted and unencrypted file names if cache is
wrapped by crypt.
.PP
Params: \- \f[B]remote\f[] = path to remote \f[B](required)\f[] \-
\f[B]withData\f[] = true/false to delete cached data (chunks) as well
\f[I](optional, false by default)\f[]
2018-10-15 10:03:08 +00:00
.SS Standard Options
2017-09-30 13:19:47 +00:00
.PP
2018-10-15 10:03:08 +00:00
Here are the standard options specific to cache (Cache a remote).
.SS \-\-cache\-remote
2018-09-01 11:58:00 +00:00
.PP
2018-10-15 10:03:08 +00:00
Remote to cache.
Normally should contain a \[aq]:\[aq] and a path, eg
"myremote:path/to/dir", "myremote:bucket" or maybe "myremote:" (not
recommended).
.IP \[bu] 2
Config: remote
.IP \[bu] 2
Env Var: RCLONE_CACHE_REMOTE
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-cache\-plex\-url
2017-09-30 13:19:47 +00:00
.PP
2018-10-15 10:03:08 +00:00
The URL of the Plex server
.IP \[bu] 2
Config: plex_url
.IP \[bu] 2
Env Var: RCLONE_CACHE_PLEX_URL
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-cache\-plex\-username
2017-12-23 13:07:45 +00:00
.PP
2018-10-15 10:03:08 +00:00
The username of the Plex user
.IP \[bu] 2
Config: plex_username
.IP \[bu] 2
Env Var: RCLONE_CACHE_PLEX_USERNAME
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-cache\-plex\-password
2017-12-23 13:07:45 +00:00
.PP
2018-10-15 10:03:08 +00:00
The password of the Plex user
.IP \[bu] 2
Config: plex_password
.IP \[bu] 2
Env Var: RCLONE_CACHE_PLEX_PASSWORD
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-cache\-chunk\-size
2017-12-23 13:07:45 +00:00
.PP
The size of a chunk (partial file data).
2018-10-15 10:03:08 +00:00
.PP
2017-12-23 13:07:45 +00:00
Use lower numbers for slower connections.
2018-04-28 10:46:27 +00:00
If the chunk size is changed, any downloaded chunks will be invalid and
cache\-chunk\-path will need to be cleared or unexpected EOF errors will
occur.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: chunk_size
.IP \[bu] 2
Env Var: RCLONE_CACHE_CHUNK_SIZE
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 5M
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"1m"
.RS 2
.IP \[bu] 2
1MB
.RE
.IP \[bu] 2
"5M"
.RS 2
.IP \[bu] 2
5 MB
.RE
.IP \[bu] 2
"10M"
.RS 2
.IP \[bu] 2
10 MB
.RE
.RE
.SS \-\-cache\-info\-age
2017-12-23 13:07:45 +00:00
.PP
2018-10-15 10:03:08 +00:00
How long to cache file structure information (directory listings, file
size, times etc).
If all write operations are done through the cache then you can safely
make this value very large as the cache store will also be updated in
real time.
.IP \[bu] 2
Config: info_age
.IP \[bu] 2
Env Var: RCLONE_CACHE_INFO_AGE
.IP \[bu] 2
Type: Duration
.IP \[bu] 2
Default: 6h0m0s
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"1h"
.RS 2
.IP \[bu] 2
1 hour
.RE
.IP \[bu] 2
"24h"
.RS 2
.IP \[bu] 2
24 hours
.RE
.IP \[bu] 2
"48h"
.RS 2
.IP \[bu] 2
48 hours
.RE
.RE
.SS \-\-cache\-chunk\-total\-size
2017-12-23 13:07:45 +00:00
.PP
The total size that the chunks can take up on the local disk.
.PP
2018-10-15 10:03:08 +00:00
If the cache exceeds this value then it will start to delete the oldest
chunks until it goes under this value.
.IP \[bu] 2
Config: chunk_total_size
.IP \[bu] 2
Env Var: RCLONE_CACHE_CHUNK_TOTAL_SIZE
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 10G
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"500M"
.RS 2
.IP \[bu] 2
500 MB
.RE
.IP \[bu] 2
"1G"
.RS 2
.IP \[bu] 2
1 GB
.RE
.IP \[bu] 2
"10G"
.RS 2
.IP \[bu] 2
10 GB
.RE
.RE
.SS Advanced Options
.PP
Here are the advanced options specific to cache (Cache a remote).
.SS \-\-cache\-plex\-token
2017-12-23 13:07:45 +00:00
.PP
2018-10-15 10:03:08 +00:00
The plex token for authentication \- auto set normally
.IP \[bu] 2
Config: plex_token
.IP \[bu] 2
Env Var: RCLONE_CACHE_PLEX_TOKEN
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-cache\-plex\-insecure
.PP
Skip all certificate verifications when connecting to the Plex server
.IP \[bu] 2
Config: plex_insecure
.IP \[bu] 2
Env Var: RCLONE_CACHE_PLEX_INSECURE
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-cache\-db\-path
.PP
Directory to store file structure metadata DB.
The remote name is used as the DB file name.
.IP \[bu] 2
Config: db_path
.IP \[bu] 2
Env Var: RCLONE_CACHE_DB_PATH
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: "/home/ncw/.cache/rclone/cache\-backend"
.SS \-\-cache\-chunk\-path
.PP
Directory to cache chunk files.
2017-12-23 13:07:45 +00:00
.PP
2018-10-15 10:03:08 +00:00
Path to where partial file data (chunks) are stored locally.
The remote name is appended to the final path.
2017-12-23 13:07:45 +00:00
.PP
2018-10-15 10:03:08 +00:00
This config follows the "\-\-cache\-db\-path".
If you specify a custom location for "\-\-cache\-db\-path" and don\[aq]t
specify one for "\-\-cache\-chunk\-path" then "\-\-cache\-chunk\-path"
will use the same path as "\-\-cache\-db\-path".
.IP \[bu] 2
Config: chunk_path
.IP \[bu] 2
Env Var: RCLONE_CACHE_CHUNK_PATH
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: "/home/ncw/.cache/rclone/cache\-backend"
.SS \-\-cache\-db\-purge
2017-12-23 13:07:45 +00:00
.PP
2018-10-15 10:03:08 +00:00
Clear all the cached data for this remote on start.
.IP \[bu] 2
Config: db_purge
.IP \[bu] 2
Env Var: RCLONE_CACHE_DB_PURGE
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS \-\-cache\-chunk\-clean\-interval
2017-12-23 13:07:45 +00:00
.PP
2018-10-15 10:03:08 +00:00
How often should the cache perform cleanups of the chunk storage.
The default value should be ok for most people.
If you find that the cache goes over "cache\-chunk\-total\-size" too
often then try to lower this value to force it to perform cleanups more
often.
.IP \[bu] 2
Config: chunk_clean_interval
.IP \[bu] 2
Env Var: RCLONE_CACHE_CHUNK_CLEAN_INTERVAL
.IP \[bu] 2
Type: Duration
.IP \[bu] 2
Default: 1m0s
.SS \-\-cache\-read\-retries
2017-12-23 13:07:45 +00:00
.PP
How many times to retry a read from a cache storage.
.PP
2018-10-15 10:03:08 +00:00
Since reading from a cache stream is independent from downloading file
data, readers can get to a point where there\[aq]s no more data in the
cache.
Most of the times this can indicate a connectivity issue if cache
isn\[aq]t able to provide file data anymore.
2017-12-23 13:07:45 +00:00
.PP
For really slow connections, increase this to a point where the stream
is able to provide data but your experience will be very stuttering.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: read_retries
.IP \[bu] 2
Env Var: RCLONE_CACHE_READ_RETRIES
.IP \[bu] 2
Type: int
.IP \[bu] 2
Default: 10
.SS \-\-cache\-workers
2017-12-23 13:07:45 +00:00
.PP
How many workers should run in parallel to download chunks.
.PP
Higher values will mean more parallel processing (better CPU needed) and
more concurrent requests on the cloud provider.
This impacts several aspects like the cloud provider API limits, more
stress on the hardware that rclone runs on but it also means that
streams will be more fluid and data will be available much more faster
to readers.
.PP
\f[B]Note\f[]: If the optional Plex integration is enabled then this
setting will adapt to the type of reading performed and the value
specified here will be used as a maximum number of workers to use.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: workers
.IP \[bu] 2
Env Var: RCLONE_CACHE_WORKERS
.IP \[bu] 2
Type: int
.IP \[bu] 2
Default: 4
2017-12-23 13:07:45 +00:00
.SS \-\-cache\-chunk\-no\-memory
.PP
2018-10-15 10:03:08 +00:00
Disable the in\-memory cache for storing chunks during streaming.
.PP
By default, cache will keep file data during streaming in RAM as well to
provide it to readers as fast as possible.
2017-12-23 13:07:45 +00:00
.PP
This transient data is evicted as soon as it is read and the number of
chunks stored doesn\[aq]t exceed the number of workers.
2018-10-15 10:03:08 +00:00
However, depending on other settings like "cache\-chunk\-size" and
"cache\-workers" this footprint can increase if there are parallel
streams too (multiple files being read at the same time).
2017-12-23 13:07:45 +00:00
.PP
If the hardware permits it, use this feature to provide an overall
better performance during streaming but it can also be disabled if RAM
is not available on the local machine.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: chunk_no_memory
.IP \[bu] 2
Env Var: RCLONE_CACHE_CHUNK_NO_MEMORY
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS \-\-cache\-rps
2017-12-23 13:07:45 +00:00
.PP
2018-10-15 10:03:08 +00:00
Limits the number of requests per second to the source FS (\-1 to
disable)
2017-12-23 13:07:45 +00:00
.PP
This setting places a hard limit on the number of requests per second
2018-10-15 10:03:08 +00:00
that cache will be doing to the cloud provider remote and try to respect
that value by setting waits between reads.
2017-12-23 13:07:45 +00:00
.PP
If you find that you\[aq]re getting banned or limited on the cloud
provider through cache and know that a smaller number of requests per
second will allow you to work with it then you can use this setting for
that.
.PP
A good balance of all the other settings should make this setting
useless but it is available to set for more special cases.
.PP
\f[B]NOTE\f[]: This will limit the number of requests during streams but
other API calls to the cloud provider like directory listings will still
pass.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: rps
.IP \[bu] 2
Env Var: RCLONE_CACHE_RPS
.IP \[bu] 2
Type: int
.IP \[bu] 2
Default: \-1
2017-12-23 13:07:45 +00:00
.SS \-\-cache\-writes
.PP
2018-10-15 10:03:08 +00:00
Cache file data on writes through the FS
.PP
2017-12-23 13:07:45 +00:00
If you need to read files immediately after you upload them through
2018-10-15 10:03:08 +00:00
cache you can enable this flag to have their data stored in the cache
store at the same time during upload.
.IP \[bu] 2
Config: writes
.IP \[bu] 2
Env Var: RCLONE_CACHE_WRITES
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS \-\-cache\-tmp\-upload\-path
2017-12-23 13:07:45 +00:00
.PP
2018-10-15 10:03:08 +00:00
Directory to keep temporary files until they are uploaded.
2018-03-19 10:06:13 +00:00
.PP
2018-10-15 10:03:08 +00:00
This is the path where cache will use as a temporary storage for new
files that need to be uploaded to the cloud provider.
2018-03-19 10:06:13 +00:00
.PP
Specifying a value will enable this feature.
Without it, it is completely disabled and files will be uploaded
directly to the cloud provider
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: tmp_upload_path
.IP \[bu] 2
Env Var: RCLONE_CACHE_TMP_UPLOAD_PATH
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-cache\-tmp\-wait\-time
2018-03-19 10:06:13 +00:00
.PP
2018-10-15 10:03:08 +00:00
How long should files be stored in local cache before being uploaded
2018-03-19 10:06:13 +00:00
.PP
This is the duration that a file must wait in the temporary location
\f[I]cache\-tmp\-upload\-path\f[] before it is selected for upload.
.PP
Note that only one file is uploaded at a time and it can take longer to
start the upload if a queue formed for this purpose.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: tmp_wait_time
.IP \[bu] 2
Env Var: RCLONE_CACHE_TMP_WAIT_TIME
.IP \[bu] 2
Type: Duration
.IP \[bu] 2
Default: 15s
.SS \-\-cache\-db\-wait\-time
2018-03-19 10:06:13 +00:00
.PP
2018-10-15 10:03:08 +00:00
How long to wait for the DB to be available \- 0 is unlimited
2018-03-19 10:06:13 +00:00
.PP
Only one process can have the DB open at any one time, so rclone waits
for this duration for the DB to become available before it gives an
error.
.PP
If you set it to 0 then it will wait forever.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: db_wait_time
.IP \[bu] 2
Env Var: RCLONE_CACHE_DB_WAIT_TIME
.IP \[bu] 2
Type: Duration
.IP \[bu] 2
Default: 1s
2017-09-30 13:19:47 +00:00
.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
2016-03-01 09:00:01 +00:00
s)\ Set\ configuration\ password
2017-09-30 13:19:47 +00:00
q)\ Quit\ config
n/s/q>\ n\ \ \
name>\ secret
2016-03-01 09:00:01 +00:00
Type\ of\ storage\ to\ configure.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2016-07-13 11:26:22 +00:00
\ 1\ /\ Amazon\ Drive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "amazon\ cloud\ drive"
2017-03-18 11:16:43 +00:00
\ 2\ /\ Amazon\ S3\ (also\ Dreamhost,\ Ceph,\ Minio)
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "s3"
\ 3\ /\ Backblaze\ B2
\ \ \ \\\ "b2"
\ 4\ /\ Dropbox
\ \ \ \\\ "dropbox"
2017-03-18 11:16:43 +00:00
\ 5\ /\ Encrypt/Decrypt\ a\ remote
\ \ \ \\\ "crypt"
\ 6\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "google\ cloud\ storage"
2017-03-18 11:16:43 +00:00
\ 7\ /\ Google\ Drive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "drive"
2017-03-18 11:16:43 +00:00
\ 8\ /\ Hubic
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "hubic"
2017-03-18 11:16:43 +00:00
\ 9\ /\ Local\ Disk
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "local"
2017-03-18 11:16:43 +00:00
10\ /\ Microsoft\ OneDrive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "onedrive"
2017-03-18 11:16:43 +00:00
11\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "swift"
2017-03-18 11:16:43 +00:00
12\ /\ SSH/SFTP\ Connection
\ \ \ \\\ "sftp"
13\ /\ Yandex\ Disk
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "yandex"
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
\ 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
2017-12-23 13:07:45 +00:00
Option\ to\ either\ encrypt\ directory\ names\ or\ leave\ them\ intact.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ 1\ /\ Encrypt\ directory\ names.
\ \ \ \\\ "true"
\ 2\ /\ Don\[aq]t\ encrypt\ directory\ names,\ leave\ them\ intact.
\ \ \ \\\ "false"
filename_encryption>\ 1
2017-09-30 13:19:47 +00:00
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
2017-03-18 11:16:43 +00:00
Remote\ config
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
2017-09-30 13:19:47 +00:00
[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
2017-09-30 13:19:47 +00:00
\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
2017-09-30 13:19:47 +00:00
Now see what that looked like when encrypted
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
$\ rclone\ \-q\ ls\ remote:path
\ \ \ \ \ \ \ 55\ hagjclgavj2mbiqm6u6cnjjqcg
\ \ \ \ \ \ \ 54\ v05749mltvv1tf4onltun46gls
\ \ \ \ \ \ \ 57\ 86vhrsv86mpbtd3a0akjuqslj8/dlj7fkq4kdq72emafg7a7s41uo
\ \ \ \ \ \ \ 58\ 86vhrsv86mpbtd3a0akjuqslj8/7uu829995du6o42n32otfhjqp4/b9pausrfansjth5ob3jkdqd4lc
\ \ \ \ \ \ \ 56\ 86vhrsv86mpbtd3a0akjuqslj8/8njh1sk437gttmep3p70g81aps
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
Note that this retains the directory structure which means you can do
this
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
$\ rclone\ \-q\ ls\ secret:subdir
\ \ \ \ \ \ \ \ 8\ file2.txt
\ \ \ \ \ \ \ \ 9\ file3.txt
\ \ \ \ \ \ \ 10\ subsubdir/file4.txt
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
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]
2017-09-30 13:19:47 +00:00
$\ 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
2017-09-30 13:19:47 +00:00
.SS File name encryption modes
.PP
2017-09-30 13:19:47 +00:00
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
2018-03-19 10:06:13 +00:00
file names can\[aq]t be as long (~143 characters)
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
can use sub paths and copy single files
.IP \[bu] 2
2017-12-23 13:07:45 +00:00
directory structure visible
2017-09-30 13:19:47 +00:00
.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
2017-12-23 13:07:45 +00:00
directory structure visible
2017-09-30 13:19:47 +00:00
.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.
2017-12-23 13:07:45 +00:00
.SS Directory name encryption
.PP
Crypt offers the option of encrypting dir names or leaving them intact.
There are two options:
.PP
True
.PP
Encrypts the whole file path including directory names Example:
\f[C]1/12/123.txt\f[] is encrypted to
\f[C]p0e52nreeaj0a5ea7s64m4j72s/l42g6771hnv3an9cgc8cr2n1ng/qgm4avr35m5loi1th53ato71v0\f[]
.PP
False
.PP
Only encrypts file names, skips directory names Example:
2018-03-19 10:06:13 +00:00
\f[C]1/12/123.txt\f[] is encrypted to
2017-12-23 13:07:45 +00:00
\f[C]1/12/qgm4avr35m5loi1th53ato71v0\f[]
2017-09-30 13:19:47 +00:00
.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.
2018-10-15 10:03:08 +00:00
.SS Standard Options
.PP
Here are the standard options specific to crypt (Encrypt/Decrypt a
remote).
.SS \-\-crypt\-remote
.PP
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).
.IP \[bu] 2
Config: remote
.IP \[bu] 2
Env Var: RCLONE_CRYPT_REMOTE
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-crypt\-filename\-encryption
.PP
How to encrypt the filenames.
.IP \[bu] 2
Config: filename_encryption
.IP \[bu] 2
Env Var: RCLONE_CRYPT_FILENAME_ENCRYPTION
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: "standard"
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"off"
.RS 2
.IP \[bu] 2
Don\[aq]t encrypt the file names.
Adds a ".bin" extension only.
.RE
.IP \[bu] 2
"standard"
.RS 2
.IP \[bu] 2
Encrypt the filenames see the docs for the details.
.RE
.IP \[bu] 2
"obfuscate"
.RS 2
.IP \[bu] 2
Very simple filename obfuscation.
.RE
.RE
.SS \-\-crypt\-directory\-name\-encryption
.PP
Option to either encrypt directory names or leave them intact.
.IP \[bu] 2
Config: directory_name_encryption
.IP \[bu] 2
Env Var: RCLONE_CRYPT_DIRECTORY_NAME_ENCRYPTION
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: true
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"true"
.RS 2
.IP \[bu] 2
Encrypt directory names.
.RE
.IP \[bu] 2
"false"
.RS 2
.IP \[bu] 2
Don\[aq]t encrypt directory names, leave them intact.
.RE
.RE
.SS \-\-crypt\-password
.PP
Password or pass phrase for encryption.
.IP \[bu] 2
Config: password
.IP \[bu] 2
Env Var: RCLONE_CRYPT_PASSWORD
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-crypt\-password2
.PP
Password or pass phrase for salt.
Optional but recommended.
Should be different to the previous password.
.IP \[bu] 2
Config: password2
.IP \[bu] 2
Env Var: RCLONE_CRYPT_PASSWORD2
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS Advanced Options
2017-09-30 13:19:47 +00:00
.PP
2018-10-15 10:03:08 +00:00
Here are the advanced options specific to crypt (Encrypt/Decrypt a
remote).
2017-09-30 13:19:47 +00:00
.SS \-\-crypt\-show\-mapping
.PP
2018-10-15 10:03:08 +00:00
For all files listed show how the names encrypt.
.PP
2017-09-30 13:19:47 +00:00
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.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: show_mapping
.IP \[bu] 2
Env Var: RCLONE_CRYPT_SHOW_MAPPING
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
2017-09-30 13:19:47 +00:00
.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
2017-12-23 13:07:45 +00:00
you don\[aq]t decrypt and encrypt unnecessarily
2017-09-30 13:19:47 +00:00
.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]
2017-09-30 13:19:47 +00:00
rclone\ sync\ remote:crypt\ remote2:crypt
\f[]
.fi
2016-11-06 10:17:52 +00:00
.PP
2017-09-30 13:19:47 +00:00
And to check the integrity you would do
2016-11-06 10:17:52 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ check\ remote:crypt\ remote2:crypt
2016-11-06 10:17:52 +00:00
\f[]
.fi
2017-09-30 13:19:47 +00:00
.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
2017-12-23 13:07:45 +00:00
random number generator.
2017-09-30 13:19:47 +00:00
The nonce is incremented for each chunk read making sure each nonce is
unique for each block written.
2017-12-23 13:07:45 +00:00
The chance of a nonce being re\-used is minuscule.
2017-09-30 13:19:47 +00:00
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
2016-11-06 10:17:52 +00:00
.PP
2017-09-30 13:19:47 +00:00
49 bytes total
2016-11-06 10:17:52 +00:00
.PP
2017-09-30 13:19:47 +00:00
1MB (1048576 bytes) file will encrypt to
.IP \[bu] 2
32 bytes header
.IP \[bu] 2
16 chunks of 65568 bytes
.PP
2017-09-30 13:19:47 +00:00
1049120 bytes total (a 0.05% overhead).
This is the overhead for big files.
.SS Name encryption
.PP
2017-09-30 13:19:47 +00:00
File names are encrypted segment by segment \- the path is broken up
into \f[C]/\f[] separated strings and these are encrypted individually.
.PP
2017-09-30 13:19:47 +00:00
File segments are padded using using PKCS#7 to a multiple of 16 bytes
before encryption.
.PP
2017-09-30 13:19:47 +00:00
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
2017-12-23 13:07:45 +00:00
This makes for deterministic 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.
2016-04-18 17:30:29 +00:00
.PP
2017-09-30 13:19:47 +00:00
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
2016-06-18 15:29:53 +00:00
.PP
2017-09-30 13:19:47 +00:00
This uses a 32 byte key (256 bits) and a 16 byte (128 bits) IV both of
which are derived from the user password.
2016-06-18 15:29:53 +00:00
.PP
2017-09-30 13:19:47 +00:00
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[]
2016-11-06 10:17:52 +00:00
.PP
2017-09-30 13:19:47 +00:00
\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
2016-06-18 15:29:53 +00:00
.PP
2017-09-30 13:19:47 +00:00
Rclone uses \f[C]scrypt\f[] with parameters \f[C]N=16384,\ r=8,\ p=1\f[]
2017-12-23 13:07:45 +00:00
with an optional user supplied salt (password2) to derive the 32+32+16 =
80 bytes of key material required.
2017-09-30 13:19:47 +00:00
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.
2017-12-23 13:07:45 +00:00
For full protection against this you should always use a salt.
.SS Dropbox
.PP
Paths are specified as \f[C]remote:path\f[]
.PP
Dropbox paths may be as deep as required, eg
\f[C]remote:directory/subdirectory\f[].
.PP
The initial setup for dropbox involves getting a token from Dropbox
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
d)\ Delete\ remote
q)\ Quit\ config
e/n/d/q>\ n
name>\ remote
2016-03-01 09:00:01 +00:00
Type\ of\ storage\ to\ configure.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2016-07-13 11:26:22 +00:00
\ 1\ /\ Amazon\ Drive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "amazon\ cloud\ drive"
2017-03-18 11:16:43 +00:00
\ 2\ /\ Amazon\ S3\ (also\ Dreamhost,\ Ceph,\ Minio)
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "s3"
\ 3\ /\ Backblaze\ B2
\ \ \ \\\ "b2"
\ 4\ /\ Dropbox
\ \ \ \\\ "dropbox"
2017-03-18 11:16:43 +00:00
\ 5\ /\ Encrypt/Decrypt\ a\ remote
\ \ \ \\\ "crypt"
\ 6\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "google\ cloud\ storage"
2017-03-18 11:16:43 +00:00
\ 7\ /\ Google\ Drive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "drive"
2017-03-18 11:16:43 +00:00
\ 8\ /\ Hubic
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "hubic"
2017-03-18 11:16:43 +00:00
\ 9\ /\ Local\ Disk
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "local"
2017-03-18 11:16:43 +00:00
10\ /\ Microsoft\ OneDrive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "onedrive"
2017-03-18 11:16:43 +00:00
11\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "swift"
2017-03-18 11:16:43 +00:00
12\ /\ SSH/SFTP\ Connection
\ \ \ \\\ "sftp"
13\ /\ Yandex\ Disk
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "yandex"
Storage>\ 4
Dropbox\ App\ Key\ \-\ leave\ blank\ normally.
2017-03-18 11:16:43 +00:00
app_key>
Dropbox\ App\ Secret\ \-\ leave\ blank\ normally.
2017-03-18 11:16:43 +00:00
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]
2017-03-18 11:16:43 +00:00
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
\f[]
.fi
.PP
You can then use it like this,
.PP
List directories in top level of your dropbox
.IP
.nf
\f[C]
rclone\ lsd\ remote:
\f[]
.fi
.PP
List all the files in your dropbox
.IP
.nf
\f[C]
rclone\ ls\ remote:
\f[]
.fi
.PP
To copy a local directory to a dropbox directory called backup
.IP
.nf
\f[C]
rclone\ copy\ /home/source\ remote:backup
\f[]
.fi
2018-06-16 17:21:09 +00:00
.SS Dropbox for business
.PP
Rclone supports Dropbox for business and Team Folders.
.PP
When using Dropbox for business \f[C]remote:\f[] and
\f[C]remote:path/to/file\f[] will refer to your personal folder.
.PP
If you wish to see Team Folders you must use a leading \f[C]/\f[] in the
path, so \f[C]rclone\ lsd\ remote:/\f[] will refer to the root and show
you all Team Folders and your User Folder.
.PP
You can then use team folders like this \f[C]remote:/TeamFolder\f[] and
\f[C]remote:/TeamFolder/path/to/file\f[].
.PP
A leading \f[C]/\f[] for a Dropbox personal account will do nothing, but
it will take an extra HTTP transaction so it should be avoided.
.SS Modified time and Hashes
2016-03-01 09:00:01 +00:00
.PP
Dropbox supports modified times, but the only way to set a modification
time is to re\-upload the file.
2016-03-01 09:00:01 +00:00
.PP
This means that if you uploaded your data with an older version of
rclone which didn\[aq]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\[aq]t want this to happen use \f[C]\-\-size\-only\f[] or
\f[C]\-\-checksum\f[] flag to stop it.
2016-03-01 09:00:01 +00:00
.PP
Dropbox supports its own hash
type (https://www.dropbox.com/developers/reference/content-hash) which
is checked for all transfers.
2018-10-15 10:03:08 +00:00
.SS Standard Options
.PP
Here are the standard options specific to dropbox (Dropbox).
.SS \-\-dropbox\-client\-id
.PP
Dropbox App Client Id Leave blank normally.
.IP \[bu] 2
Config: client_id
.IP \[bu] 2
Env Var: RCLONE_DROPBOX_CLIENT_ID
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-dropbox\-client\-secret
.PP
Dropbox App Client Secret Leave blank normally.
.IP \[bu] 2
Config: client_secret
.IP \[bu] 2
Env Var: RCLONE_DROPBOX_CLIENT_SECRET
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS Advanced Options
.PP
Here are the advanced options specific to dropbox (Dropbox).
.SS \-\-dropbox\-chunk\-size
.PP
2018-10-15 10:03:08 +00:00
Upload chunk size.
(< 150M).
.PP
2017-12-23 13:07:45 +00:00
Any files larger than this will be uploaded in chunks of this size.
.PP
Note that chunks are buffered in memory (one at a time) so rclone can
deal with retries.
Setting this larger will increase the speed slightly (at most 10% for
128MB in tests) at the cost of using more memory.
It can be set smaller if you are tight on memory.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: chunk_size
.IP \[bu] 2
Env Var: RCLONE_DROPBOX_CHUNK_SIZE
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 48M
2018-11-24 13:44:25 +00:00
.SS \-\-dropbox\-impersonate
.PP
Impersonate this user when using a business account.
.IP \[bu] 2
Config: impersonate
.IP \[bu] 2
Env Var: RCLONE_DROPBOX_IMPERSONATE
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS Limitations
.PP
Note that Dropbox is case insensitive so you can\[aq]t have a file
called "Hello.doc" and one called "hello.doc".
.PP
2017-09-30 13:19:47 +00:00
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
2018-04-28 10:46:27 +00:00
\f[C]File\ name\ disallowed\ \-\ not\ uploading\f[] if it attempts to
2017-09-30 13:19:47 +00:00
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.
2018-10-15 10:03:08 +00:00
.SS Standard Options
.PP
Here are the standard options specific to ftp (FTP Connection).
.SS \-\-ftp\-host
.PP
FTP host to connect to
.IP \[bu] 2
Config: host
.IP \[bu] 2
Env Var: RCLONE_FTP_HOST
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"ftp.example.com"
.RS 2
.IP \[bu] 2
Connect to ftp.example.com
.RE
.RE
.SS \-\-ftp\-user
.PP
FTP username, leave blank for current username, ncw
.IP \[bu] 2
Config: user
.IP \[bu] 2
Env Var: RCLONE_FTP_USER
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-ftp\-port
.PP
FTP port, leave blank to use default (21)
.IP \[bu] 2
Config: port
.IP \[bu] 2
Env Var: RCLONE_FTP_PORT
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-ftp\-pass
.PP
FTP password
.IP \[bu] 2
Config: pass
.IP \[bu] 2
Env Var: RCLONE_FTP_PASS
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
2017-09-30 13:19:47 +00:00
.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.
2016-04-18 17:30:29 +00:00
.PP
2017-09-30 13:19:47 +00:00
FTP could support server side move but doesn\[aq]t yet.
2019-02-09 10:42:57 +00:00
.PP
Note that the ftp backend does not support the \f[C]ftp_proxy\f[]
environment variable yet.
.SS Google Cloud Storage
.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
The initial setup for google cloud storage involves getting a token from
Google Cloud Storage 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
d)\ Delete\ remote
q)\ Quit\ config
e/n/d/q>\ n
name>\ remote
2016-03-01 09:00:01 +00:00
Type\ of\ storage\ to\ configure.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2016-07-13 11:26:22 +00:00
\ 1\ /\ Amazon\ Drive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "amazon\ cloud\ drive"
2017-03-18 11:16:43 +00:00
\ 2\ /\ Amazon\ S3\ (also\ Dreamhost,\ Ceph,\ Minio)
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "s3"
\ 3\ /\ Backblaze\ B2
\ \ \ \\\ "b2"
\ 4\ /\ Dropbox
\ \ \ \\\ "dropbox"
2017-03-18 11:16:43 +00:00
\ 5\ /\ Encrypt/Decrypt\ a\ remote
\ \ \ \\\ "crypt"
\ 6\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "google\ cloud\ storage"
2017-03-18 11:16:43 +00:00
\ 7\ /\ Google\ Drive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "drive"
2017-03-18 11:16:43 +00:00
\ 8\ /\ Hubic
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "hubic"
2017-03-18 11:16:43 +00:00
\ 9\ /\ Local\ Disk
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "local"
2017-03-18 11:16:43 +00:00
10\ /\ Microsoft\ OneDrive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "onedrive"
2017-03-18 11:16:43 +00:00
11\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "swift"
2017-03-18 11:16:43 +00:00
12\ /\ SSH/SFTP\ Connection
\ \ \ \\\ "sftp"
13\ /\ Yandex\ Disk
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "yandex"
2017-03-18 11:16:43 +00:00
Storage>\ 6
Google\ Application\ Client\ Id\ \-\ leave\ blank\ normally.
2017-03-18 11:16:43 +00:00
client_id>
Google\ Application\ Client\ Secret\ \-\ leave\ blank\ normally.
2017-03-18 11:16:43 +00:00
client_secret>
Project\ number\ optional\ \-\ needed\ only\ for\ list/create/delete\ buckets\ \-\ see\ your\ developer\ console.
project_number>\ 12345678
2016-06-18 15:29:53 +00:00
Service\ Account\ Credentials\ JSON\ file\ path\ \-\ needed\ only\ if\ you\ want\ use\ SA\ instead\ of\ interactive\ login.
2017-03-18 11:16:43 +00:00
service_account_file>
Access\ Control\ List\ for\ new\ objects.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2017-03-18 11:16:43 +00:00
\ 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
2017-03-18 11:16:43 +00:00
\ 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
2017-07-22 17:16:46 +00:00
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\[aq]t\ work
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\ =\ google\ cloud\ storage
2017-03-18 11:16:43 +00:00
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
\f[]
.fi
.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.
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.
.PP
This remote is called \f[C]remote\f[] and can now be used like this
.PP
See all the buckets in your project
.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
2016-06-18 15:29:53 +00:00
.SS Service Account support
.PP
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\[aq]t have actively logged\-in users, for example build machines.
.PP
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 \f[C]User\f[] 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\[aq]s credentials will be downloaded onto your machines.
These credentials are what rclone will use for authentication.
.PP
To use a Service Account instead of OAuth2 token flow, enter the path to
your Service Account credentials at the \f[C]service_account_file\f[]
prompt and rclone won\[aq]t use the browser based authentication flow.
2018-04-28 10:46:27 +00:00
If you\[aq]d rather stuff the contents of the credentials file into the
rclone config file, you can set \f[C]service_account_credentials\f[]
with the actual contents of the file instead, or set the equivalent
environment variable.
.SS \-\-fast\-list
.PP
This remote supports \f[C]\-\-fast\-list\f[] which allows you to use
2017-09-30 13:19:47 +00:00
fewer transactions in exchange for more memory.
See the rclone docs (/docs/#fast-list) for more details.
.SS Modified time
.PP
2018-10-15 10:03:08 +00:00
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 Standard Options
.PP
Here are the standard options specific to google cloud storage (Google
Cloud Storage (this is not Google Drive)).
.SS \-\-gcs\-client\-id
.PP
Google Application Client Id Leave blank normally.
.IP \[bu] 2
Config: client_id
.IP \[bu] 2
Env Var: RCLONE_GCS_CLIENT_ID
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-gcs\-client\-secret
.PP
Google Application Client Secret Leave blank normally.
.IP \[bu] 2
Config: client_secret
.IP \[bu] 2
Env Var: RCLONE_GCS_CLIENT_SECRET
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-gcs\-project\-number
.PP
Project number.
Optional \- needed only for list/create/delete buckets \- see your
developer console.
.IP \[bu] 2
Config: project_number
.IP \[bu] 2
Env Var: RCLONE_GCS_PROJECT_NUMBER
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-gcs\-service\-account\-file
.PP
Service Account Credentials JSON file path Leave blank normally.
Needed only if you want use SA instead of interactive login.
.IP \[bu] 2
Config: service_account_file
.IP \[bu] 2
Env Var: RCLONE_GCS_SERVICE_ACCOUNT_FILE
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-gcs\-service\-account\-credentials
.PP
Service Account Credentials JSON blob Leave blank normally.
Needed only if you want use SA instead of interactive login.
.IP \[bu] 2
Config: service_account_credentials
.IP \[bu] 2
Env Var: RCLONE_GCS_SERVICE_ACCOUNT_CREDENTIALS
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-gcs\-object\-acl
.PP
Access Control List for new objects.
.IP \[bu] 2
Config: object_acl
.IP \[bu] 2
Env Var: RCLONE_GCS_OBJECT_ACL
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"authenticatedRead"
.RS 2
.IP \[bu] 2
Object owner gets OWNER access, and all Authenticated Users get READER
access.
.RE
.IP \[bu] 2
"bucketOwnerFullControl"
.RS 2
.IP \[bu] 2
Object owner gets OWNER access, and project team owners get OWNER
access.
.RE
.IP \[bu] 2
"bucketOwnerRead"
.RS 2
.IP \[bu] 2
Object owner gets OWNER access, and project team owners get READER
access.
.RE
.IP \[bu] 2
"private"
.RS 2
.IP \[bu] 2
Object owner gets OWNER access [default if left blank].
.RE
.IP \[bu] 2
"projectPrivate"
.RS 2
.IP \[bu] 2
Object owner gets OWNER access, and project team members get access
according to their roles.
.RE
.IP \[bu] 2
"publicRead"
.RS 2
.IP \[bu] 2
Object owner gets OWNER access, and all Users get READER access.
.RE
.RE
.SS \-\-gcs\-bucket\-acl
.PP
Access Control List for new buckets.
.IP \[bu] 2
Config: bucket_acl
.IP \[bu] 2
Env Var: RCLONE_GCS_BUCKET_ACL
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"authenticatedRead"
.RS 2
.IP \[bu] 2
Project team owners get OWNER access, and all Authenticated Users get
READER access.
.RE
.IP \[bu] 2
"private"
.RS 2
.IP \[bu] 2
Project team owners get OWNER access [default if left blank].
.RE
.IP \[bu] 2
"projectPrivate"
.RS 2
.IP \[bu] 2
Project team members get access according to their roles.
.RE
.IP \[bu] 2
"publicRead"
.RS 2
.IP \[bu] 2
Project team owners get OWNER access, and all Users get READER access.
.RE
.IP \[bu] 2
"publicReadWrite"
.RS 2
.IP \[bu] 2
Project team owners get OWNER access, and all Users get WRITER access.
.RE
.RE
.SS \-\-gcs\-location
.PP
Location for the newly created buckets.
.IP \[bu] 2
Config: location
.IP \[bu] 2
Env Var: RCLONE_GCS_LOCATION
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
""
.RS 2
.IP \[bu] 2
Empty for default location (US).
.RE
.IP \[bu] 2
"asia"
.RS 2
.IP \[bu] 2
Multi\-regional location for Asia.
.RE
.IP \[bu] 2
"eu"
.RS 2
.IP \[bu] 2
Multi\-regional location for Europe.
.RE
.IP \[bu] 2
"us"
.RS 2
.IP \[bu] 2
Multi\-regional location for United States.
.RE
.IP \[bu] 2
"asia\-east1"
.RS 2
.IP \[bu] 2
Taiwan.
.RE
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
"asia\-east2"
.RS 2
.IP \[bu] 2
Hong Kong.
.RE
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
"asia\-northeast1"
.RS 2
.IP \[bu] 2
Tokyo.
.RE
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
"asia\-south1"
.RS 2
.IP \[bu] 2
Mumbai.
.RE
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
"asia\-southeast1"
.RS 2
.IP \[bu] 2
Singapore.
.RE
.IP \[bu] 2
"australia\-southeast1"
.RS 2
.IP \[bu] 2
Sydney.
.RE
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
"europe\-north1"
.RS 2
.IP \[bu] 2
Finland.
.RE
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
"europe\-west1"
.RS 2
.IP \[bu] 2
Belgium.
.RE
.IP \[bu] 2
"europe\-west2"
.RS 2
.IP \[bu] 2
London.
.RE
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
"europe\-west3"
.RS 2
.IP \[bu] 2
Frankfurt.
.RE
.IP \[bu] 2
"europe\-west4"
.RS 2
.IP \[bu] 2
Netherlands.
.RE
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
"us\-central1"
.RS 2
.IP \[bu] 2
Iowa.
.RE
.IP \[bu] 2
"us\-east1"
.RS 2
.IP \[bu] 2
South Carolina.
.RE
.IP \[bu] 2
"us\-east4"
.RS 2
.IP \[bu] 2
Northern Virginia.
.RE
.IP \[bu] 2
"us\-west1"
.RS 2
.IP \[bu] 2
Oregon.
.RE
2019-02-09 10:42:57 +00:00
.IP \[bu] 2
"us\-west2"
.RS 2
.IP \[bu] 2
California.
.RE
2018-10-15 10:03:08 +00:00
.RE
.SS \-\-gcs\-storage\-class
.PP
The storage class to use when storing objects in Google Cloud Storage.
.IP \[bu] 2
Config: storage_class
.IP \[bu] 2
Env Var: RCLONE_GCS_STORAGE_CLASS
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
""
.RS 2
.IP \[bu] 2
Default
.RE
.IP \[bu] 2
"MULTI_REGIONAL"
.RS 2
.IP \[bu] 2
Multi\-regional storage class
.RE
.IP \[bu] 2
"REGIONAL"
.RS 2
.IP \[bu] 2
Regional storage class
.RE
.IP \[bu] 2
"NEARLINE"
.RS 2
.IP \[bu] 2
Nearline storage class
.RE
.IP \[bu] 2
"COLDLINE"
.RS 2
.IP \[bu] 2
Coldline storage class
.RE
.IP \[bu] 2
"DURABLE_REDUCED_AVAILABILITY"
.RS 2
.IP \[bu] 2
Durable reduced availability storage class
.RE
.RE
2017-09-30 13:19:47 +00:00
.SS Google Drive
.PP
2017-09-30 13:19:47 +00:00
Paths are specified as \f[C]drive:path\f[]
.PP
2017-09-30 13:19:47 +00:00
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
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]
2016-03-01 09:00:01 +00:00
No\ remotes\ found\ \-\ make\ a\ new\ one
n)\ New\ remote
2017-09-30 13:19:47 +00:00
r)\ Rename\ remote
c)\ Copy\ remote
2016-03-01 09:00:01 +00:00
s)\ Set\ configuration\ password
2017-09-30 13:19:47 +00:00
q)\ Quit\ config
n/r/c/s/q>\ n
name>\ remote
2016-03-01 09:00:01 +00:00
Type\ of\ storage\ to\ configure.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2018-03-19 10:06:13 +00:00
[snip]
10\ /\ Google\ Drive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "drive"
2018-03-19 10:06:13 +00:00
[snip]
Storage>\ drive
2017-09-30 13:19:47 +00:00
Google\ Application\ Client\ Id\ \-\ leave\ blank\ normally.
2017-03-18 11:16:43 +00:00
client_id>
2017-09-30 13:19:47 +00:00
Google\ Application\ Client\ Secret\ \-\ leave\ blank\ normally.
2017-03-18 11:16:43 +00:00
client_secret>
2018-03-19 10:06:13 +00:00
Scope\ that\ rclone\ should\ use\ when\ requesting\ access\ from\ drive.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ 1\ /\ Full\ access\ all\ files,\ excluding\ Application\ Data\ Folder.
\ \ \ \\\ "drive"
\ 2\ /\ Read\-only\ access\ to\ file\ metadata\ and\ file\ contents.
\ \ \ \\\ "drive.readonly"
\ \ \ /\ Access\ to\ files\ created\ by\ rclone\ only.
\ 3\ |\ These\ are\ visible\ in\ the\ drive\ website.
\ \ \ |\ File\ authorization\ is\ revoked\ when\ the\ user\ deauthorizes\ the\ app.
\ \ \ \\\ "drive.file"
\ \ \ /\ Allows\ read\ and\ write\ access\ to\ the\ Application\ Data\ folder.
\ 4\ |\ This\ is\ not\ visible\ in\ the\ drive\ website.
\ \ \ \\\ "drive.appfolder"
\ \ \ /\ Allows\ read\-only\ access\ to\ file\ metadata\ but
\ 5\ |\ does\ not\ allow\ any\ access\ to\ read\ or\ download\ file\ content.
\ \ \ \\\ "drive.metadata.readonly"
scope>\ 1
ID\ of\ the\ root\ folder\ \-\ leave\ blank\ normally.\ \ Fill\ in\ to\ access\ "Computers"\ folders.\ (see\ docs).
root_folder_id>\
2017-12-23 13:07:45 +00:00
Service\ Account\ Credentials\ JSON\ file\ path\ \-\ needed\ only\ if\ you\ want\ use\ SA\ instead\ of\ interactive\ login.
service_account_file>
Remote\ config
2016-03-01 09:00:01 +00:00
Use\ auto\ config?
\ *\ Say\ Y\ if\ not\ sure
2017-09-30 13:19:47 +00:00
\ *\ Say\ N\ if\ you\ are\ working\ on\ a\ remote\ or\ headless\ machine\ or\ Y\ didn\[aq]t\ work
2016-03-01 09:00:01 +00:00
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
2017-09-30 13:19:47 +00:00
Configure\ this\ as\ a\ team\ drive?
y)\ Yes
n)\ No
y/n>\ n
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[remote]
2018-03-19 10:06:13 +00:00
client_id\ =\
client_secret\ =\
scope\ =\ drive
root_folder_id\ =\
service_account_file\ =
token\ =\ {"access_token":"XXX","token_type":"Bearer","refresh_token":"XXX","expiry":"2014\-03\-16T13:57:58.955387075Z"}
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
d)\ Delete\ this\ remote
y/e/d>\ y
\f[]
.fi
.PP
Note that rclone runs a webserver on your local machine to collect the
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
to unblock it temporarily if you are running a host firewall, or use
manual mode.
.PP
2017-09-30 13:19:47 +00:00
You can then use it like this,
.PP
2017-09-30 13:19:47 +00:00
List directories in top level of your drive
.IP
.nf
\f[C]
rclone\ lsd\ remote:
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
List all the files in your drive
.IP
.nf
\f[C]
rclone\ ls\ remote:
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
To copy a local directory to a drive directory called backup
.IP
.nf
\f[C]
rclone\ copy\ /home/source\ remote:backup
\f[]
.fi
2018-03-19 10:06:13 +00:00
.SS Scopes
.PP
Rclone allows you to select which scope you would like for rclone to
use.
This changes what type of token is granted to rclone.
The scopes are defined
here. (https://developers.google.com/drive/v3/web/about-auth).
.PP
The scope are
.SS drive
.PP
This is the default scope and allows full access to all files, except
for the Application Data Folder (see below).
.PP
Choose this one if you aren\[aq]t sure.
.SS drive.readonly
.PP
This allows read only access to all files.
Files may be listed and downloaded but not uploaded, renamed or deleted.
.SS drive.file
.PP
With this scope rclone can read/view/modify only those files and folders
it creates.
.PP
So if you uploaded files to drive via the web interface (or any other
means) they will not be visible to rclone.
.PP
This can be useful if you are using rclone to backup data and you want
to be sure confidential data on your drive is not visible to rclone.
.PP
Files created with this scope are visible in the web interface.
.SS drive.appfolder
.PP
This gives rclone its own private area to store files.
Rclone will not be able to see any other files on your drive and you
won\[aq]t be able to see rclone\[aq]s files from the web interface
either.
.SS drive.metadata.readonly
.PP
This allows read only access to file names only.
It does not allow rclone to download or upload data, or rename or delete
files or directories.
.SS Root folder ID
.PP
You can set the \f[C]root_folder_id\f[] for rclone.
This is the directory (identified by its \f[C]Folder\ ID\f[]) that
rclone considers to be a the root of your drive.
.PP
Normally you will leave this blank and rclone will determine the correct
root to use itself.
.PP
However you can set this to restrict rclone to a specific folder
hierarchy or to access data within the "Computers" tab on the drive web
interface (where files from Google\[aq]s Backup and Sync desktop program
go).
.PP
In order to do this you will have to find the \f[C]Folder\ ID\f[] of the
directory you wish rclone to display.
This will be the last segment of the URL when you open the relevant
folder in the drive web interface.
.PP
So if the folder you want rclone to use has a URL which looks like
\f[C]https://drive.google.com/drive/folders/1XyfxxxxxxxxxxxxxxxxxxxxxxxxxKHCh\f[]
in the browser, then you use \f[C]1XyfxxxxxxxxxxxxxxxxxxxxxxxxxKHCh\f[]
as the \f[C]root_folder_id\f[] in the config.
.PP
\f[B]NB\f[] folders under the "Computers" tab seem to be read only
(drive gives a 500 error) when using rclone.
.PP
There doesn\[aq]t appear to be an API to discover the folder IDs of the
"Computers" tab \- please contact us if you know otherwise!
.PP
Note also that rclone can\[aq]t access any data under the "Backups" tab
on the google drive web interface yet.
2017-12-23 13:07:45 +00:00
.SS Service Account support
.PP
You can set up rclone with Google Drive 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\[aq]t have actively logged\-in users, for example build machines.
.PP
To use a Service Account instead of OAuth2 token flow, enter the path to
your Service Account credentials at the \f[C]service_account_file\f[]
2018-03-19 10:06:13 +00:00
prompt during \f[C]rclone\ config\f[] and rclone won\[aq]t use the
browser based authentication flow.
2018-04-28 10:46:27 +00:00
If you\[aq]d rather stuff the contents of the credentials file into the
rclone config file, you can set \f[C]service_account_credentials\f[]
with the actual contents of the file instead, or set the equivalent
environment variable.
2018-03-19 10:06:13 +00:00
.SS Use case \- Google Apps/G\-suite account and individual Drive
.PP
Let\[aq]s say that you are the administrator of a Google Apps (old) or
G\-suite account.
The goal is to store data on an individual\[aq]s Drive account, who IS a
member of the domain.
We\[aq]ll call the domain \f[B]example.com\f[], and the user
\f[B]foo\@example.com\f[].
.PP
There\[aq]s a few steps we need to go through to accomplish this:
.SS 1. Create a service account for example.com
.IP \[bu] 2
To create a service account and obtain its credentials, go to the Google
Developer Console (https://console.developers.google.com).
.IP \[bu] 2
You must have a project \- create one if you don\[aq]t.
.IP \[bu] 2
Then go to "IAM & admin" \-> "Service Accounts".
.IP \[bu] 2
Use the "Create Credentials" button.
Fill in "Service account name" with something that identifies your
client.
"Role" can be empty.
.IP \[bu] 2
Tick "Furnish a new private key" \- select "Key type JSON".
.IP \[bu] 2
Tick "Enable G Suite Domain\-wide Delegation".
This option makes "impersonation" possible, as documented here:
Delegating domain\-wide authority to the service
account (https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority)
.IP \[bu] 2
These credentials are what rclone will use for authentication.
If you ever need to remove access, press the "Delete service account
key" button.
.SS 2. Allowing API access to example.com Google Drive
.IP \[bu] 2
Go to example.com\[aq]s admin console
.IP \[bu] 2
Go into "Security" (or use the search bar)
.IP \[bu] 2
Select "Show more" and then "Advanced settings"
.IP \[bu] 2
Select "Manage API client access" in the "Authentication" section
.IP \[bu] 2
In the "Client Name" field enter the service account\[aq]s "Client ID"
\- this can be found in the Developer Console under "IAM & Admin" \->
"Service Accounts", then "View Client ID" for the newly created service
account.
It is a ~21 character numerical string.
.IP \[bu] 2
In the next field, "One or More API Scopes", enter
\f[C]https://www.googleapis.com/auth/drive\f[] to grant access to Google
Drive specifically.
.SS 3. Configure rclone, assuming a new install
.IP
.nf
\f[C]
rclone\ config
n/s/q>\ n\ \ \ \ \ \ \ \ \ #\ New
name>gdrive\ \ \ \ \ \ #\ Gdrive\ is\ an\ example\ name
Storage>\ \ \ \ \ \ \ \ \ #\ Select\ the\ number\ shown\ for\ Google\ Drive
client_id>\ \ \ \ \ \ \ #\ Can\ be\ left\ blank
client_secret>\ \ \ #\ Can\ be\ left\ blank
scope>\ \ \ \ \ \ \ \ \ \ \ #\ Select\ your\ scope,\ 1\ for\ example
root_folder_id>\ \ #\ Can\ be\ left\ blank
service_account_file>\ /home/foo/myJSONfile.json\ #\ This\ is\ where\ the\ JSON\ file\ goes!
y/n>\ \ \ \ \ \ \ \ \ \ \ \ \ #\ Auto\ config,\ y
\f[]
.fi
.SS 4. Verify that it\[aq]s working
.IP \[bu] 2
\f[C]rclone\ \-v\ \-\-drive\-impersonate\ foo\@example.com\ lsf\ gdrive:backup\f[]
.IP \[bu] 2
The arguments do:
.RS 2
.IP \[bu] 2
\f[C]\-v\f[] \- verbose logging
.IP \[bu] 2
\f[C]\-\-drive\-impersonate\ foo\@example.com\f[] \- this is what does
the magic, pretending to be user foo.
.IP \[bu] 2
\f[C]lsf\f[] \- list files in a parsing friendly way
.IP \[bu] 2
\f[C]gdrive:backup\f[] \- use the remote called gdrive, work in the
folder named backup.
.RE
2017-09-30 13:19:47 +00:00
.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
2018-09-01 11:58:00 +00:00
.SS \-\-fast\-list
2017-09-30 13:19:47 +00:00
.PP
2018-09-01 11:58:00 +00:00
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.
2017-09-30 13:19:47 +00:00
.PP
2018-09-01 11:58:00 +00:00
It does this by combining multiple \f[C]list\f[] calls into a single API
request.
2017-09-30 13:19:47 +00:00
.PP
2018-09-01 11:58:00 +00:00
This works by combining many \f[C]\[aq]%s\[aq]\ in\ parents\f[] filters
into one expression.
To list the contents of directories a, b and c, the the following
requests will be send by the regular \f[C]List\f[] function:
.IP
.nf
\f[C]
trashed=false\ and\ \[aq]a\[aq]\ in\ parents
trashed=false\ and\ \[aq]b\[aq]\ in\ parents
trashed=false\ and\ \[aq]c\[aq]\ in\ parents
\f[]
.fi
2017-09-30 13:19:47 +00:00
.PP
2018-09-01 11:58:00 +00:00
These can now be combined into a single request:
.IP
.nf
\f[C]
trashed=false\ and\ (\[aq]a\[aq]\ in\ parents\ or\ \[aq]b\[aq]\ in\ parents\ or\ \[aq]c\[aq]\ in\ parents)
\f[]
.fi
.PP
The implementation of \f[C]ListR\f[] will put up to 50 \f[C]parents\f[]
filters into one request.
It will use the \f[C]\-\-checkers\f[] value to specify the number of
requests to run in parallel.
.PP
In tests, these batch requests were up to 20x faster than the regular
method.
Running the following command against different sized folders gives:
.IP
.nf
\f[C]
rclone\ lsjson\ \-vv\ \-R\ \-\-checkers=6\ gdrive:folder
\f[]
.fi
.PP
small folder (220 directories, 700 files):
.IP \[bu] 2
without \f[C]\-\-fast\-list\f[]: 38s
.IP \[bu] 2
with \f[C]\-\-fast\-list\f[]: 10s
.PP
large folder (10600 directories, 39000 files):
.IP \[bu] 2
without \f[C]\-\-fast\-list\f[]: 22:05 min
.IP \[bu] 2
with \f[C]\-\-fast\-list\f[]: 58s
.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
2017-09-30 13:19:47 +00:00
all your trashed files.
This command does not take any path arguments.
2018-04-28 10:46:27 +00:00
.SS Quota information
.PP
To view your current quota you can use the
\f[C]rclone\ about\ remote:\f[] command which will display your usage
limit (quota), the usage in Google Drive, the size of all files in the
Trash and the space used by other Google services such as Gmail.
This command does not take any path arguments.
2018-10-15 10:03:08 +00:00
.SS Import/Export of google documents
2017-09-30 13:19:47 +00:00
.PP
2018-10-15 10:03:08 +00:00
Google documents can be exported from and uploaded to Google Drive.
2017-09-30 13:19:47 +00:00
.PP
When rclone downloads a Google doc it chooses a format to download
2018-10-15 10:03:08 +00:00
depending upon the \f[C]\-\-drive\-export\-formats\f[] setting.
By default the export formats are \f[C]docx,xlsx,pptx,svg\f[] which are
a sensible default for an editable document.
2017-09-30 13:19:47 +00:00
.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
2018-10-15 10:03:08 +00:00
\f[C]\-\-drive\-export\-formats\ pdf\f[], or if you prefer
2017-09-30 13:19:47 +00:00
openoffice/libreoffice formats you might use
2018-10-15 10:03:08 +00:00
\f[C]\-\-drive\-export\-formats\ ods,odt,odp\f[].
2017-09-30 13:19:47 +00:00
.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
2018-10-15 10:03:08 +00:00
When importing files into Google Drive, rclone will conververt all files
with an extension in \f[C]\-\-drive\-import\-formats\f[] to their
associated document type.
rclone will not convert any files by default, since the conversion is
lossy process.
.PP
The conversion must result in a file with the same extension when the
\f[C]\-\-drive\-export\-formats\f[] rules are applied to the uploded
document.
.PP
Here are some examples for allowed and prohibited conversions.
.PP
.TS
tab(@);
l l l l l.
T{
export\-formats
T}@T{
import\-formats
T}@T{
Upload Ext
T}@T{
Document Ext
T}@T{
Allowed
T}
_
T{
odt
T}@T{
odt
T}@T{
odt
T}@T{
odt
T}@T{
Yes
T}
T{
odt
T}@T{
docx,odt
T}@T{
odt
T}@T{
odt
T}@T{
Yes
T}
T{
T}@T{
docx
T}@T{
docx
T}@T{
docx
T}@T{
Yes
T}
T{
T}@T{
odt
T}@T{
odt
T}@T{
docx
T}@T{
No
T}
T{
odt,docx
T}@T{
docx,odt
T}@T{
docx
T}@T{
odt
T}@T{
No
T}
T{
docx,odt
T}@T{
docx,odt
T}@T{
docx
T}@T{
docx
T}@T{
Yes
T}
T{
docx,odt
T}@T{
docx,odt
T}@T{
odt
T}@T{
docx
T}@T{
No
T}
.TE
.PP
This limitation can be disabled by specifying
\f[C]\-\-drive\-allow\-import\-name\-change\f[].
When using this flag, rclone can convert multiple files types resulting
in the same document type at once, eg with
\f[C]\-\-drive\-import\-formats\ docx,odt,txt\f[], all files having
these extension would result in a doument represented as a docx file.
This brings the additional risk of overwriting a document, if multiple
files have the same stem.
Many rclone operations will not handle this name change in any way.
They assume an equal name when copying files and might copy the file
again or delete them when the name changes.
.PP
Here are the possible export extensions with their corresponding mime
types.
Most of these can also be used for importing, but there more that are
not listed here.
Some of these additional ones might only be available when the operating
system provides the correct MIME type entries.
.PP
This list can be changed by Google Drive at any time and might not
represent the currently available converions.
2017-09-30 13:19:47 +00:00
.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{
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{
2018-10-15 10:03:08 +00:00
json
T}@T{
application/vnd.google\-apps.script+json
T}@T{
JSON Text Format
T}
T{
2017-09-30 13:19:47 +00:00
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{
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
2018-06-16 17:21:09 +00:00
.PP
2018-10-15 10:03:08 +00:00
Google douments can also be exported as link files.
These files will open a browser window for the Google Docs website of
that dument when opened.
The link file extension has to be specified as a
\f[C]\-\-drive\-export\-formats\f[] parameter.
They will match all available Google Documents.
.PP
.TS
tab(@);
l l l.
T{
Extension
T}@T{
Description
T}@T{
OS Support
T}
_
T{
desktop
T}@T{
freedesktop.org specified desktop entry
T}@T{
Linux
T}
T{
link.html
T}@T{
An HTML Document with a redirect
T}@T{
All
T}
T{
url
T}@T{
INI style link file
T}@T{
macOS, Windows
T}
T{
webloc
T}@T{
macOS specific XML format
T}@T{
macOS
T}
.TE
.SS Standard Options
.PP
Here are the standard options specific to drive (Google Drive).
.SS \-\-drive\-client\-id
.PP
Google Application Client Id Leave blank normally.
.IP \[bu] 2
Config: client_id
.IP \[bu] 2
Env Var: RCLONE_DRIVE_CLIENT_ID
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-drive\-client\-secret
.PP
Google Application Client Secret Leave blank normally.
.IP \[bu] 2
Config: client_secret
.IP \[bu] 2
Env Var: RCLONE_DRIVE_CLIENT_SECRET
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-drive\-scope
.PP
Scope that rclone should use when requesting access from drive.
.IP \[bu] 2
Config: scope
.IP \[bu] 2
Env Var: RCLONE_DRIVE_SCOPE
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"drive"
.RS 2
.IP \[bu] 2
Full access all files, excluding Application Data Folder.
.RE
.IP \[bu] 2
"drive.readonly"
.RS 2
.IP \[bu] 2
Read\-only access to file metadata and file contents.
.RE
.IP \[bu] 2
"drive.file"
.RS 2
.IP \[bu] 2
Access to files created by rclone only.
.IP \[bu] 2
These are visible in the drive website.
.IP \[bu] 2
File authorization is revoked when the user deauthorizes the app.
.RE
.IP \[bu] 2
"drive.appfolder"
.RS 2
.IP \[bu] 2
Allows read and write access to the Application Data folder.
.IP \[bu] 2
This is not visible in the drive website.
.RE
.IP \[bu] 2
"drive.metadata.readonly"
.RS 2
.IP \[bu] 2
Allows read\-only access to file metadata but
.IP \[bu] 2
does not allow any access to read or download file content.
.RE
.RE
.SS \-\-drive\-root\-folder\-id
.PP
ID of the root folder Leave blank normally.
Fill in to access "Computers" folders.
(see docs).
.IP \[bu] 2
Config: root_folder_id
.IP \[bu] 2
Env Var: RCLONE_DRIVE_ROOT_FOLDER_ID
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-drive\-service\-account\-file
2018-06-16 17:21:09 +00:00
.PP
2018-10-15 10:03:08 +00:00
Service Account Credentials JSON file path Leave blank normally.
Needed only if you want use SA instead of interactive login.
.IP \[bu] 2
Config: service_account_file
.IP \[bu] 2
Env Var: RCLONE_DRIVE_SERVICE_ACCOUNT_FILE
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS Advanced Options
2018-03-19 10:06:13 +00:00
.PP
2018-10-15 10:03:08 +00:00
Here are the advanced options specific to drive (Google Drive).
.SS \-\-drive\-service\-account\-credentials
2018-09-01 11:58:00 +00:00
.PP
2018-10-15 10:03:08 +00:00
Service Account Credentials JSON blob Leave blank normally.
Needed only if you want use SA instead of interactive login.
.IP \[bu] 2
Config: service_account_credentials
.IP \[bu] 2
Env Var: RCLONE_DRIVE_SERVICE_ACCOUNT_CREDENTIALS
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-drive\-team\-drive
.PP
2018-10-15 10:03:08 +00:00
ID of the Team Drive
.IP \[bu] 2
Config: team_drive
.IP \[bu] 2
Env Var: RCLONE_DRIVE_TEAM_DRIVE
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-drive\-auth\-owner\-only
.PP
Only consider files owned by the authenticated user.
.IP \[bu] 2
Config: auth_owner_only
.IP \[bu] 2
Env Var: RCLONE_DRIVE_AUTH_OWNER_ONLY
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS \-\-drive\-use\-trash
.PP
Send files to the trash instead of deleting permanently.
Defaults to true, namely sending files to the trash.
Use \f[C]\-\-drive\-use\-trash=false\f[] to delete files permanently
instead.
.IP \[bu] 2
Config: use_trash
.IP \[bu] 2
Env Var: RCLONE_DRIVE_USE_TRASH
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: true
.SS \-\-drive\-skip\-gdocs
.PP
Skip google documents in all listings.
If given, gdocs practically become invisible to rclone.
.IP \[bu] 2
Config: skip_gdocs
.IP \[bu] 2
Env Var: RCLONE_DRIVE_SKIP_GDOCS
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
2017-09-30 13:19:47 +00:00
.SS \-\-drive\-shared\-with\-me
.PP
2018-10-15 10:03:08 +00:00
Only show files that are shared with me.
.PP
2018-03-19 10:06:13 +00:00
Instructs rclone to operate on your "Shared with me" folder (where
Google Drive lets you access the files and folders others have shared
with you).
.PP
This works both with the "list" (lsd, lsl, etc) and the "copy" commands
(copy, sync, etc), and with all other commands too.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: shared_with_me
.IP \[bu] 2
Env Var: RCLONE_DRIVE_SHARED_WITH_ME
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
2017-09-30 13:19:47 +00:00
.SS \-\-drive\-trashed\-only
.PP
2017-09-30 13:19:47 +00:00
Only show files that are in the trash.
This will show trashed files in their original directory structure.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: trashed_only
.IP \[bu] 2
Env Var: RCLONE_DRIVE_TRASHED_ONLY
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS \-\-drive\-formats
.PP
2018-10-15 10:03:08 +00:00
Deprecated: see export_formats
.IP \[bu] 2
Config: formats
.IP \[bu] 2
Env Var: RCLONE_DRIVE_FORMATS
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-drive\-export\-formats
.PP
2018-10-15 10:03:08 +00:00
Comma separated list of preferred formats for downloading Google docs.
.IP \[bu] 2
Config: export_formats
.IP \[bu] 2
Env Var: RCLONE_DRIVE_EXPORT_FORMATS
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: "docx,xlsx,pptx,svg"
.SS \-\-drive\-import\-formats
.PP
Comma separated list of preferred formats for uploading Google docs.
.IP \[bu] 2
Config: import_formats
.IP \[bu] 2
Env Var: RCLONE_DRIVE_IMPORT_FORMATS
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-drive\-allow\-import\-name\-change
.PP
Allow the filetype to change when uploading Google docs (e.g.
file.doc to file.docx).
This will confuse sync and reupload every time.
.IP \[bu] 2
Config: allow_import_name_change
.IP \[bu] 2
Env Var: RCLONE_DRIVE_ALLOW_IMPORT_NAME_CHANGE
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
2018-03-19 10:06:13 +00:00
.SS \-\-drive\-use\-created\-date
.PP
2018-10-15 10:03:08 +00:00
Use file created date instead of modified date.,
2018-03-19 10:06:13 +00:00
.PP
Useful when downloading data and you want the creation date used in
place of the last modified date.
.PP
\f[B]WARNING\f[]: This flag may have some unexpected consequences.
.PP
When uploading to your drive all files will be overwritten unless they
haven\[aq]t been modified since their creation.
And the inverse will occur while downloading.
2018-10-15 10:03:08 +00:00
This side effect can be avoided by using the "\-\-checksum" flag.
2018-03-19 10:06:13 +00:00
.PP
This feature was implemented to retain photos capture date as recorded
by google photos.
You will first need to check the "Create a Google Photos folder" option
in your google drive settings.
You can then copy or move the photos locally and use the date the image
was taken (created) set as the modification date.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: use_created_date
.IP \[bu] 2
Env Var: RCLONE_DRIVE_USE_CREATED_DATE
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS \-\-drive\-list\-chunk
.PP
Size of listing chunk 100\-1000.
0 to disable.
.IP \[bu] 2
Config: list_chunk
.IP \[bu] 2
Env Var: RCLONE_DRIVE_LIST_CHUNK
.IP \[bu] 2
Type: int
.IP \[bu] 2
Default: 1000
.SS \-\-drive\-impersonate
.PP
Impersonate this user when using a service account.
.IP \[bu] 2
Config: impersonate
.IP \[bu] 2
Env Var: RCLONE_DRIVE_IMPERSONATE
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-drive\-alternate\-export
.PP
Use alternate export URLs for google documents export.,
.PP
If this option is set this instructs rclone to use an alternate set of
export URLs for drive documents.
Users have reported that the official export URLs can\[aq]t export large
documents, whereas these unofficial ones can.
.PP
See rclone issue #2243 (https://github.com/ncw/rclone/issues/2243) for
background, this google drive
issue (https://issuetracker.google.com/issues/36761333) and this helpful
post (https://www.labnol.org/internet/direct-links-for-google-drive/28356/).
.IP \[bu] 2
Config: alternate_export
.IP \[bu] 2
Env Var: RCLONE_DRIVE_ALTERNATE_EXPORT
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS \-\-drive\-upload\-cutoff
.PP
Cutoff for switching to chunked upload
.IP \[bu] 2
Config: upload_cutoff
.IP \[bu] 2
Env Var: RCLONE_DRIVE_UPLOAD_CUTOFF
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 8M
.SS \-\-drive\-chunk\-size
.PP
Upload chunk size.
Must a power of 2 >= 256k.
.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.
.IP \[bu] 2
Config: chunk_size
.IP \[bu] 2
Env Var: RCLONE_DRIVE_CHUNK_SIZE
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 8M
.SS \-\-drive\-acknowledge\-abuse
.PP
Set to allow files which return cannotDownloadAbusiveFile to be
downloaded.
.PP
If downloading a file returns the error "This file has been identified
as malware or spam and cannot be downloaded" with the error code
"cannotDownloadAbusiveFile" then supply this flag to rclone to indicate
you acknowledge the risks of downloading the file and rclone will
download it anyway.
.IP \[bu] 2
Config: acknowledge_abuse
.IP \[bu] 2
Env Var: RCLONE_DRIVE_ACKNOWLEDGE_ABUSE
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS \-\-drive\-keep\-revision\-forever
.PP
Keep new head revision of each file forever.
.IP \[bu] 2
Config: keep_revision_forever
.IP \[bu] 2
Env Var: RCLONE_DRIVE_KEEP_REVISION_FOREVER
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS \-\-drive\-v2\-download\-min\-size
.PP
If Object\[aq]s are greater, use drive v2 API to download.
.IP \[bu] 2
Config: v2_download_min_size
.IP \[bu] 2
Env Var: RCLONE_DRIVE_V2_DOWNLOAD_MIN_SIZE
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: off
2019-02-09 10:42:57 +00:00
.SS \-\-drive\-pacer\-min\-sleep
.PP
Minimum time to sleep between API calls.
.IP \[bu] 2
Config: pacer_min_sleep
.IP \[bu] 2
Env Var: RCLONE_DRIVE_PACER_MIN_SLEEP
.IP \[bu] 2
Type: Duration
.IP \[bu] 2
Default: 100ms
.SS \-\-drive\-pacer\-burst
.PP
Number of API calls to allow without sleeping.
.IP \[bu] 2
Config: pacer_burst
.IP \[bu] 2
Env Var: RCLONE_DRIVE_PACER_BURST
.IP \[bu] 2
Type: int
.IP \[bu] 2
Default: 100
.SS Limitations
.PP
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
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.
2018-03-19 10:06:13 +00:00
.SS Limitations of Google Docs
.PP
Google docs will appear as size \-1 in \f[C]rclone\ ls\f[] and as size 0
in anything which uses the VFS layer, eg \f[C]rclone\ mount\f[],
\f[C]rclone\ serve\f[].
.PP
This is because rclone can\[aq]t find out the size of the Google docs
without downloading them.
.PP
Google docs will transfer correctly with \f[C]rclone\ sync\f[],
\f[C]rclone\ copy\f[] etc as rclone knows to ignore the size when doing
the transfer.
.PP
However an unfortunate consequence of this is that you can\[aq]t
download Google docs using \f[C]rclone\ mount\f[] \- you will get a 0
sized file.
If you try again the doc may gain its correct size and be downloadable.
2017-09-30 13:19:47 +00:00
.SS Duplicated files
.PP
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
Duplicated files cause problems with the syncing and you will see
messages in the log about duplicates.
.PP
2017-09-30 13:19:47 +00:00
Use \f[C]rclone\ dedupe\f[] to fix duplicated files.
.PP
2017-09-30 13:19:47 +00:00
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
2018-03-19 10:06:13 +00:00
The most likely cause of this is the duplicated file issue above \- run
2017-09-30 13:19:47 +00:00
\f[C]rclone\ dedupe\f[] and check your logs for duplicate object or
directory messages.
.SS Making your own client_id
.PP
2017-09-30 13:19:47 +00:00
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
2019-02-09 10:42:57 +00:00
It is strongly recommended to use your own client ID as the default
rclone ID is heavily used.
If you have multiple services running, it is recommended to use an API
key for each service.
The default Google quota is 10 transactions per second so it is
recommended to stay under that number as if you use more than that, it
will cause rclone to rate limit and make things slower.
.PP
2017-09-30 13:19:47 +00:00
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
2017-12-23 13:07:45 +00:00
Under "ENABLE APIS AND SERVICES" search for "Drive", and enable the then
"Google Drive API".
2017-09-30 13:19:47 +00:00
.IP "4." 3
2017-12-23 13:07:45 +00:00
Click "Credentials" in the left\-side panel (not "Create credentials",
2017-09-30 13:19:47 +00:00
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.
2016-04-18 17:30:29 +00:00
.PP
2017-09-30 13:19:47 +00:00
(Thanks to \@balazer on github for these instructions.)
.SS HTTP
.PP
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
Paths are specified as \f[C]remote:\f[] or \f[C]remote:path/to/dir\f[].
.PP
2017-09-30 13:19:47 +00:00
Here is an example of how to make a remote called \f[C]remote\f[].
First run:
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
\ rclone\ config
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
This will guide you through an interactive setup process:
.IP
.nf
\f[C]
No\ remotes\ found\ \-\ make\ a\ new\ one
n)\ New\ remote
2017-09-30 13:19:47 +00:00
s)\ Set\ configuration\ password
q)\ Quit\ config
2017-09-30 13:19:47 +00:00
n/s/q>\ n
name>\ remote
2016-03-01 09:00:01 +00:00
Type\ of\ storage\ to\ configure.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2016-07-13 11:26:22 +00:00
\ 1\ /\ Amazon\ Drive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "amazon\ cloud\ drive"
2017-03-18 11:16:43 +00:00
\ 2\ /\ Amazon\ S3\ (also\ Dreamhost,\ Ceph,\ Minio)
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "s3"
\ 3\ /\ Backblaze\ B2
\ \ \ \\\ "b2"
\ 4\ /\ Dropbox
\ \ \ \\\ "dropbox"
2017-03-18 11:16:43 +00:00
\ 5\ /\ Encrypt/Decrypt\ a\ remote
\ \ \ \\\ "crypt"
2017-09-30 13:19:47 +00:00
\ 6\ /\ FTP\ Connection
\ \ \ \\\ "ftp"
\ 7\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "google\ cloud\ storage"
2017-09-30 13:19:47 +00:00
\ 8\ /\ Google\ Drive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "drive"
2017-09-30 13:19:47 +00:00
\ 9\ /\ Hubic
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "hubic"
2017-09-30 13:19:47 +00:00
10\ /\ Local\ Disk
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "local"
2017-09-30 13:19:47 +00:00
11\ /\ Microsoft\ OneDrive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "onedrive"
2017-09-30 13:19:47 +00:00
12\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "swift"
2017-09-30 13:19:47 +00:00
13\ /\ SSH/SFTP\ Connection
2017-03-18 11:16:43 +00:00
\ \ \ \\\ "sftp"
2017-09-30 13:19:47 +00:00
14\ /\ Yandex\ Disk
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "yandex"
2017-09-30 13:19:47 +00:00
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]
2017-09-30 13:19:47 +00:00
url\ =\ https://beta.rclone.org
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
d)\ Delete\ this\ remote
y/e/d>\ y
2017-09-30 13:19:47 +00:00
Current\ remotes:
2016-07-13 11:26:22 +00:00
2017-09-30 13:19:47 +00:00
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
2016-07-13 11:26:22 +00:00
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
This remote is called \f[C]remote\f[] and can now be used like this
.PP
See all the top level directories
2016-07-13 11:26:22 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ lsd\ remote:
2016-07-13 11:26:22 +00:00
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
List the contents of a directory
2016-07-13 11:26:22 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ ls\ remote:directory
2016-07-13 11:26:22 +00:00
\f[]
.fi
2016-11-06 10:17:52 +00:00
.PP
2017-09-30 13:19:47 +00:00
Sync the remote \f[C]directory\f[] to \f[C]/home/local/directory\f[],
deleting any excess files.
2016-11-06 10:17:52 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ sync\ remote:directory\ /home/local/directory
2016-11-06 10:17:52 +00:00
\f[]
.fi
2017-09-30 13:19:47 +00:00
.SS Read only
2016-11-06 10:17:52 +00:00
.PP
2017-09-30 13:19:47 +00:00
This remote is read only \- you can\[aq]t upload files to an HTTP
server.
.SS Modified time
2016-11-06 10:17:52 +00:00
.PP
2017-09-30 13:19:47 +00:00
Most HTTP servers store time accurate to 1 second.
.SS Checksum
.PP
No checksums are stored.
.SS Usage without a config file
.PP
2018-09-01 11:58:00 +00:00
Since the http remote only has one config parameter it is easy to use
without a config file:
2016-11-06 10:17:52 +00:00
.IP
.nf
\f[C]
2018-09-01 11:58:00 +00:00
rclone\ lsd\ \-\-http\-url\ https://beta.rclone.org\ :http:
2016-11-06 10:17:52 +00:00
\f[]
.fi
2018-10-15 10:03:08 +00:00
.SS Standard Options
.PP
Here are the standard options specific to http (http Connection).
.SS \-\-http\-url
.PP
URL of http host to connect to
.IP \[bu] 2
Config: url
.IP \[bu] 2
Env Var: RCLONE_HTTP_URL
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"https://example.com"
.RS 2
.IP \[bu] 2
Connect to example.com
.RE
2019-02-09 10:42:57 +00:00
.IP \[bu] 2
"https://user:pass\@example.com"
.RS 2
.IP \[bu] 2
Connect to example.com using a username and password
.RE
2018-10-15 10:03:08 +00:00
.RE
2017-09-30 13:19:47 +00:00
.SS Hubic
2016-11-06 10:17:52 +00:00
.PP
2017-09-30 13:19:47 +00:00
Paths are specified as \f[C]remote:path\f[]
2016-06-18 15:29:53 +00:00
.PP
2017-09-30 13:19:47 +00:00
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[].
2016-06-18 15:29:53 +00:00
.PP
2017-09-30 13:19:47 +00:00
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.
2016-06-18 15:29:53 +00:00
.PP
2017-09-30 13:19:47 +00:00
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
2016-07-13 16:32:39 +00:00
.PP
2017-09-30 13:19:47 +00:00
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
2016-07-13 11:26:22 +00:00
.PP
2017-09-30 13:19:47 +00:00
See the remote setup docs (https://rclone.org/remote_setup/) for how to
set it up on a machine with no Internet browser available.
2016-07-13 11:26:22 +00:00
.PP
2017-09-30 13:19:47 +00:00
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.
2016-07-13 11:26:22 +00:00
.PP
2017-09-30 13:19:47 +00:00
Once configured you can then use \f[C]rclone\f[] like this,
2016-07-13 11:26:22 +00:00
.PP
2017-09-30 13:19:47 +00:00
List containers in the top level of your Hubic
.IP
.nf
\f[C]
rclone\ lsd\ remote:
\f[]
.fi
2016-07-13 11:26:22 +00:00
.PP
2017-09-30 13:19:47 +00:00
List all the files in your Hubic
2016-07-13 11:26:22 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ ls\ remote:
2016-07-13 11:26:22 +00:00
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
To copy a local directory to an Hubic directory called backup
2016-07-13 11:26:22 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ copy\ /home/source\ remote:backup
2016-07-13 11:26:22 +00:00
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
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.
2018-10-15 10:03:08 +00:00
.SS Standard Options
.PP
Here are the standard options specific to hubic (Hubic).
.SS \-\-hubic\-client\-id
.PP
Hubic Client Id Leave blank normally.
.IP \[bu] 2
Config: client_id
.IP \[bu] 2
Env Var: RCLONE_HUBIC_CLIENT_ID
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-hubic\-client\-secret
.PP
Hubic Client Secret Leave blank normally.
.IP \[bu] 2
Config: client_secret
.IP \[bu] 2
Env Var: RCLONE_HUBIC_CLIENT_SECRET
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS Advanced Options
.PP
Here are the advanced options specific to hubic (Hubic).
.SS \-\-hubic\-chunk\-size
.PP
Above this size files will be chunked into a _segments container.
.PP
Above this size files will be chunked into a _segments container.
The default for this is 5GB which is its maximum value.
.IP \[bu] 2
Config: chunk_size
.IP \[bu] 2
Env Var: RCLONE_HUBIC_CHUNK_SIZE
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 5G
2019-02-09 10:42:57 +00:00
.SS \-\-hubic\-no\-chunk
.PP
Don\[aq]t chunk files during streaming upload.
.PP
When doing streaming uploads (eg using rcat or mount) setting this flag
will cause the swift backend to not upload chunked files.
.PP
This will limit the maximum upload size to 5GB.
However non chunked files are easier to deal with and have an MD5SUM.
.PP
Rclone will still chunk files bigger than chunk_size when doing normal
copy operations.
.IP \[bu] 2
Config: no_chunk
.IP \[bu] 2
Env Var: RCLONE_HUBIC_NO_CHUNK
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
2017-09-30 13:19:47 +00:00
.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.
2018-09-01 11:58:00 +00:00
.SS Jottacloud
.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
To configure Jottacloud you will need to enter your username and
password and select a mountpoint.
.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
s)\ Set\ configuration\ password
q)\ Quit\ config
n/s/q>\ n
name>\ remote
Type\ of\ storage\ to\ configure.
Enter\ a\ string\ value.\ Press\ Enter\ for\ the\ default\ ("").
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
[snip]
13\ /\ JottaCloud
\ \ \ \\\ "jottacloud"
[snip]
Storage>\ jottacloud
User\ Name
Enter\ a\ string\ value.\ Press\ Enter\ for\ the\ default\ ("").
user>\ user
Password.
y)\ Yes\ type\ in\ my\ own\ password
g)\ Generate\ random\ password
n)\ No\ leave\ this\ optional\ password\ blank
y/g/n>\ y
Enter\ the\ password:
password:
Confirm\ the\ password:
password:
The\ mountpoint\ to\ use.
Enter\ a\ string\ value.\ Press\ Enter\ for\ the\ default\ ("").
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ 1\ /\ Will\ be\ synced\ by\ the\ official\ client.
\ \ \ \\\ "Sync"
\ 2\ /\ Archive
\ \ \ \\\ "Archive"
mountpoint>\ Archive
Remote\ config
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[remote]
type\ =\ jottacloud
user\ =\ user
pass\ =\ ***\ ENCRYPTED\ ***
mountpoint\ =\ Archive
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
d)\ Delete\ this\ remote
y/e/d>\ y
\f[]
.fi
.PP
Once configured you can then use \f[C]rclone\f[] like this,
.PP
List directories in top level of your Jottacloud
.IP
.nf
\f[C]
rclone\ lsd\ remote:
\f[]
.fi
.PP
List all the files in your Jottacloud
.IP
.nf
\f[C]
rclone\ ls\ remote:
\f[]
.fi
.PP
To copy a local directory to an Jottacloud directory called backup
.IP
.nf
\f[C]
rclone\ copy\ /home/source\ remote:backup
\f[]
.fi
2018-10-15 10:03:08 +00:00
.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.
.PP
Note that the implementation in Jottacloud always uses only a single API
request to get the entire list, so for large folders this could lead to
long wait time before the first results are shown.
2018-09-01 11:58:00 +00:00
.SS Modified time and hashes
.PP
Jottacloud 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
2018-10-15 10:03:08 +00:00
Jottacloud supports MD5 type hashes, so you can use the
\f[C]\-\-checksum\f[] flag.
.PP
Note that Jottacloud requires the MD5 hash before upload so if the
source does not have an MD5 checksum then the file will be cached
temporarily on disk (wherever the \f[C]TMPDIR\f[] environment variable
points to) before it is uploaded.
Small files will be cached in memory \- see the
\f[C]\-\-jottacloud\-md5\-memory\-limit\f[] flag.
.SS Deleting files
.PP
By default rclone will send all files to the trash when deleting files.
Due to a lack of API documentation emptying the trash is currently only
possible via the Jottacloud website.
If deleting permanently is required then use the
\f[C]\-\-jottacloud\-hard\-delete\f[] flag, or set the equivalent
environment variable.
.SS Versions
.PP
Jottacloud supports file versioning.
When rclone uploads a new version of a file it creates a new version of
it.
Currently rclone only supports retrieving the current version but older
versions can be accessed via the Jottacloud Website.
.SS Quota information
.PP
To view your current quota you can use the
\f[C]rclone\ about\ remote:\f[] command which will display your usage
limit (unless it is unlimited) and the current usage.
.SS Standard Options
.PP
Here are the standard options specific to jottacloud (JottaCloud).
.SS \-\-jottacloud\-user
.PP
2019-02-09 10:42:57 +00:00
User Name:
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: user
.IP \[bu] 2
Env Var: RCLONE_JOTTACLOUD_USER
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-jottacloud\-mountpoint
.PP
The mountpoint to use.
.IP \[bu] 2
Config: mountpoint
.IP \[bu] 2
Env Var: RCLONE_JOTTACLOUD_MOUNTPOINT
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"Sync"
.RS 2
.IP \[bu] 2
Will be synced by the official client.
.RE
.IP \[bu] 2
"Archive"
.RS 2
.IP \[bu] 2
Archive
.RE
.RE
.SS Advanced Options
.PP
Here are the advanced options specific to jottacloud (JottaCloud).
.SS \-\-jottacloud\-md5\-memory\-limit
2018-09-01 11:58:00 +00:00
.PP
2018-10-15 10:03:08 +00:00
Files bigger than this will be cached on disk to calculate the MD5 if
required.
.IP \[bu] 2
Config: md5_memory_limit
.IP \[bu] 2
Env Var: RCLONE_JOTTACLOUD_MD5_MEMORY_LIMIT
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 10M
.SS \-\-jottacloud\-hard\-delete
2018-09-01 11:58:00 +00:00
.PP
2018-10-15 10:03:08 +00:00
Delete files permanently rather than putting them into the trash.
.IP \[bu] 2
Config: hard_delete
.IP \[bu] 2
Env Var: RCLONE_JOTTACLOUD_HARD_DELETE
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS \-\-jottacloud\-unlink
2018-09-01 11:58:00 +00:00
.PP
2018-10-15 10:03:08 +00:00
Remove existing public link to file/folder with link command rather than
creating.
Default is false, meaning link command will create or retrieve public
link.
.IP \[bu] 2
Config: unlink
.IP \[bu] 2
Env Var: RCLONE_JOTTACLOUD_UNLINK
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
2019-02-09 10:42:57 +00:00
.SS \-\-jottacloud\-upload\-resume\-limit
.PP
Files bigger than this can be resumed if the upload fail\[aq]s.
.IP \[bu] 2
Config: upload_resume_limit
.IP \[bu] 2
Env Var: RCLONE_JOTTACLOUD_UPLOAD_RESUME_LIMIT
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 10M
2018-09-01 11:58:00 +00:00
.SS Limitations
.PP
Note that Jottacloud is case insensitive so you can\[aq]t have a file
called "Hello.doc" and one called "hello.doc".
.PP
There are quite a few characters that can\[aq]t be in Jottacloud file
names.
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.
.PP
Jottacloud only supports filenames up to 255 characters in length.
.SS Troubleshooting
.PP
Jottacloud exhibits some inconsistent behaviours regarding deleted files
and folders which may cause Copy, Move and DirMove operations to
previously deleted paths to fail.
Emptying the trash should help in such cases.
2018-04-28 10:46:27 +00:00
.SS Mega
.PP
Mega (https://mega.nz/) is a cloud storage and file hosting service
known for its security feature where all files are encrypted locally
before they are uploaded.
This prevents anyone (including employees of Mega) from accessing the
files without knowledge of the key used for encryption.
.PP
This is an rclone backend for Mega which supports the file transfer
features of Mega using the same client side encryption.
.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
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
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\ /\ Alias\ for\ a\ existing\ remote
\ \ \ \\\ "alias"
[snip]
14\ /\ Mega
\ \ \ \\\ "mega"
[snip]
23\ /\ http\ Connection
\ \ \ \\\ "http"
Storage>\ mega
User\ name
user>\ you\@example.com
Password.
y)\ Yes\ type\ in\ my\ own\ password
g)\ Generate\ random\ password
n)\ No\ leave\ this\ optional\ password\ blank
y/g/n>\ y
Enter\ the\ password:
password:
Confirm\ the\ password:
password:
Remote\ config
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[remote]
type\ =\ mega
user\ =\ you\@example.com
pass\ =\ ***\ ENCRYPTED\ ***
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
d)\ Delete\ this\ remote
y/e/d>\ y
\f[]
.fi
.PP
2018-11-24 13:44:25 +00:00
\f[B]NOTE:\f[] The encryption keys need to have been already generated
after a regular login via the browser, otherwise attempting to use the
credentials in \f[C]rclone\f[] will fail.
.PP
2018-04-28 10:46:27 +00:00
Once configured you can then use \f[C]rclone\f[] like this,
.PP
List directories in top level of your Mega
.IP
.nf
\f[C]
rclone\ lsd\ remote:
\f[]
.fi
.PP
List all the files in your Mega
.IP
.nf
\f[C]
rclone\ ls\ remote:
\f[]
.fi
.PP
To copy a local directory to an Mega directory called backup
.IP
.nf
\f[C]
rclone\ copy\ /home/source\ remote:backup
\f[]
.fi
.SS Modified time and hashes
.PP
Mega does not support modification times or hashes yet.
.SS Duplicated files
.PP
Mega can have two files with exactly the same name and path (unlike a
normal file system).
.PP
Duplicated files cause problems with the syncing and you will see
messages in the log about duplicates.
.PP
Use \f[C]rclone\ dedupe\f[] to fix duplicated files.
2018-10-15 10:03:08 +00:00
.SS Standard Options
.PP
Here are the standard options specific to mega (Mega).
.SS \-\-mega\-user
.PP
User name
.IP \[bu] 2
Config: user
.IP \[bu] 2
Env Var: RCLONE_MEGA_USER
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-mega\-pass
.PP
Password.
.IP \[bu] 2
Config: pass
.IP \[bu] 2
Env Var: RCLONE_MEGA_PASS
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS Advanced Options
2018-09-01 11:58:00 +00:00
.PP
2018-10-15 10:03:08 +00:00
Here are the advanced options specific to mega (Mega).
2018-09-01 11:58:00 +00:00
.SS \-\-mega\-debug
.PP
2018-10-15 10:03:08 +00:00
Output more debug from Mega.
.PP
If this flag is set (along with \-vv) it will print further debugging
information from the mega backend.
.IP \[bu] 2
Config: debug
.IP \[bu] 2
Env Var: RCLONE_MEGA_DEBUG
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
2018-09-01 11:58:00 +00:00
.SS \-\-mega\-hard\-delete
.PP
2018-10-15 10:03:08 +00:00
Delete files permanently rather than putting them into the trash.
.PP
2018-09-01 11:58:00 +00:00
Normally the mega backend will put all deletions into the trash rather
than permanently deleting them.
2018-10-15 10:03:08 +00:00
If you specify this then rclone will permanently delete objects instead.
.IP \[bu] 2
Config: hard_delete
.IP \[bu] 2
Env Var: RCLONE_MEGA_HARD_DELETE
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
2018-04-28 10:46:27 +00:00
.SS Limitations
.PP
This backend uses the go\-mega go
library (https://github.com/t3rm1n4l/go-mega) which is an opensource go
library implementing the Mega API.
There doesn\[aq]t appear to be any documentation for the mega protocol
beyond the mega C++ SDK (https://github.com/meganz/sdk) source code so
there are likely quite a few errors still remaining in this library.
.PP
Mega allows duplicate files which may confuse rclone.
2017-09-30 13:19:47 +00:00
.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
2017-09-30 13:19:47 +00:00
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]
2017-09-30 13:19:47 +00:00
\ 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
2016-03-01 09:00:01 +00:00
s)\ Set\ configuration\ password
2017-09-30 13:19:47 +00:00
q)\ Quit\ config
n/s/q>\ n
name>\ remote
2016-03-01 09:00:01 +00:00
Type\ of\ storage\ to\ configure.
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2016-07-13 11:26:22 +00:00
\ 1\ /\ Amazon\ Drive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "amazon\ cloud\ drive"
2017-03-18 11:16:43 +00:00
\ 2\ /\ Amazon\ S3\ (also\ Dreamhost,\ Ceph,\ Minio)
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "s3"
\ 3\ /\ Backblaze\ B2
\ \ \ \\\ "b2"
2017-09-30 13:19:47 +00:00
\ 4\ /\ Box
\ \ \ \\\ "box"
\ 5\ /\ Dropbox
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "dropbox"
2017-09-30 13:19:47 +00:00
\ 6\ /\ Encrypt/Decrypt\ a\ remote
2017-03-18 11:16:43 +00:00
\ \ \ \\\ "crypt"
2017-09-30 13:19:47 +00:00
\ 7\ /\ FTP\ Connection
\ \ \ \\\ "ftp"
\ 8\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "google\ cloud\ storage"
2017-09-30 13:19:47 +00:00
\ 9\ /\ Google\ Drive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "drive"
2017-09-30 13:19:47 +00:00
10\ /\ Hubic
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "hubic"
2017-09-30 13:19:47 +00:00
11\ /\ Local\ Disk
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "local"
2017-09-30 13:19:47 +00:00
12\ /\ Microsoft\ Azure\ Blob\ Storage
\ \ \ \\\ "azureblob"
13\ /\ Microsoft\ OneDrive
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "onedrive"
2017-09-30 13:19:47 +00:00
14\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "swift"
2017-09-30 13:19:47 +00:00
15\ /\ SSH/SFTP\ Connection
2017-03-18 11:16:43 +00:00
\ \ \ \\\ "sftp"
2017-09-30 13:19:47 +00:00
16\ /\ Yandex\ Disk
2016-03-01 09:00:01 +00:00
\ \ \ \\\ "yandex"
2017-09-30 13:19:47 +00:00
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]
2017-09-30 13:19:47 +00:00
account\ =\ account_name
key\ =\ base64encodedkey==
endpoint\ =\
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
d)\ Delete\ this\ remote
y/e/d>\ y
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
See all containers
.IP
.nf
\f[C]
rclone\ lsd\ remote:
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
Make a new container
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ mkdir\ remote:container
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
List the contents of a container
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ ls\ remote:container
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
Sync \f[C]/home/local/directory\f[] to the remote container, deleting
any excess files in the container.
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ sync\ /home/local/directory\ remote:container
\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
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
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.
2018-09-01 11:58:00 +00:00
.SS Authenticating with Azure Blob Storage
.PP
Rclone has 3 ways of authenticating with Azure Blob Storage:
.SS Account and Key
.PP
This is the most straight forward and least flexible way.
Just fill in the \f[C]account\f[] and \f[C]key\f[] lines and leave the
rest blank.
.SS SAS URL
.PP
This can be an account level SAS URL or container level SAS URL
.PP
To use it leave \f[C]account\f[], \f[C]key\f[] blank and fill in
\f[C]sas_url\f[].
.PP
Account level SAS URL or container level SAS URL can be obtained from
Azure portal or Azure Storage Explorer.
To get a container level SAS URL right click on a container in the Azure
Blob explorer in the Azure portal.
.PP
If You use container level SAS URL, rclone operations are permitted only
on particular container, eg
.IP
.nf
\f[C]
rclone\ ls\ azureblob:container\ or\ rclone\ ls\ azureblob:
\f[]
.fi
.PP
Since container name already exists in SAS URL, you can leave it empty
as well.
.PP
However these will not work
.IP
.nf
\f[C]
rclone\ lsd\ azureblob:
rclone\ ls\ azureblob:othercontainer
\f[]
.fi
.PP
This would be useful for temporarily allowing third parties access to a
single container or putting credentials into an untrusted environment.
2017-09-30 13:19:47 +00:00
.SS Multipart uploads
2017-03-18 11:16:43 +00:00
.PP
2017-09-30 13:19:47 +00:00
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.
2018-10-15 10:03:08 +00:00
.SS Standard Options
2017-03-18 11:16:43 +00:00
.PP
2018-10-15 10:03:08 +00:00
Here are the standard options specific to azureblob (Microsoft Azure
Blob Storage).
.SS \-\-azureblob\-account
2017-03-18 11:16:43 +00:00
.PP
2018-10-15 10:03:08 +00:00
Storage Account Name (leave blank to use connection string or SAS URL)
.IP \[bu] 2
Config: account
.IP \[bu] 2
Env Var: RCLONE_AZUREBLOB_ACCOUNT
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-azureblob\-key
.PP
Storage Account Key (leave blank to use connection string or SAS URL)
.IP \[bu] 2
Config: key
.IP \[bu] 2
Env Var: RCLONE_AZUREBLOB_KEY
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-azureblob\-sas\-url
.PP
SAS URL for container level access only (leave blank if using
account/key or connection string)
.IP \[bu] 2
Config: sas_url
.IP \[bu] 2
Env Var: RCLONE_AZUREBLOB_SAS_URL
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS Advanced Options
.PP
Here are the advanced options specific to azureblob (Microsoft Azure
Blob Storage).
.SS \-\-azureblob\-endpoint
.PP
Endpoint for the service Leave blank normally.
.IP \[bu] 2
Config: endpoint
.IP \[bu] 2
Env Var: RCLONE_AZUREBLOB_ENDPOINT
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-azureblob\-upload\-cutoff
.PP
Cutoff for switching to chunked upload (<= 256MB).
.IP \[bu] 2
Config: upload_cutoff
.IP \[bu] 2
Env Var: RCLONE_AZUREBLOB_UPLOAD_CUTOFF
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 256M
.SS \-\-azureblob\-chunk\-size
.PP
Upload chunk size (<= 100MB).
2017-03-18 11:16:43 +00:00
.PP
2017-09-30 13:19:47 +00:00
Note that this is stored in memory and there may be up to
2018-10-15 10:03:08 +00:00
"\-\-transfers" chunks stored at once in memory.
.IP \[bu] 2
Config: chunk_size
.IP \[bu] 2
Env Var: RCLONE_AZUREBLOB_CHUNK_SIZE
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 4M
.SS \-\-azureblob\-list\-chunk
.PP
Size of blob list.
.PP
This sets the number of blobs requested in each listing chunk.
Default is the maximum, 5000.
"List blobs" requests are permitted 2 minutes per megabyte to complete.
If an operation is taking longer than 2 minutes per megabyte on average,
it will time out (
source (https://docs.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-blob-service-operations#exceptions-to-default-timeout-interval)
).
This can be used to limit the number of blobs items to return, to avoid
the time out.
.IP \[bu] 2
Config: list_chunk
.IP \[bu] 2
Env Var: RCLONE_AZUREBLOB_LIST_CHUNK
.IP \[bu] 2
Type: int
.IP \[bu] 2
Default: 5000
.SS \-\-azureblob\-access\-tier
.PP
Access tier of blob: hot, cool or archive.
.PP
Archived blobs can be restored by setting access tier to hot or cool.
Leave blank if you intend to use default access tier, which is set at
account level
.PP
If there is no "access tier" specified, rclone doesn\[aq]t apply any
tier.
rclone performs "Set Tier" operation on blobs while uploading, if
objects are not modified, specifying "access tier" to new one will have
no effect.
If blobs are in "archive tier" at remote, trying to perform data
2018-09-01 11:58:00 +00:00
transfer operations from remote will not be allowed.
2018-10-15 10:03:08 +00:00
User should first restore by tiering blob to "Hot" or "Cool".
.IP \[bu] 2
Config: access_tier
.IP \[bu] 2
Env Var: RCLONE_AZUREBLOB_ACCESS_TIER
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
2017-09-30 13:19:47 +00:00
.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:
2017-03-18 11:16:43 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
\ rclone\ config
2017-03-18 11:16:43 +00:00
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
This will guide you through an interactive setup process:
2017-03-18 11:16:43 +00:00
.IP
.nf
\f[C]
2018-10-15 10:03:08 +00:00
e)\ Edit\ existing\ remote
2017-03-18 11:16:43 +00:00
n)\ New\ remote
2018-10-15 10:03:08 +00:00
d)\ Delete\ remote
r)\ Rename\ remote
c)\ Copy\ remote
2017-03-18 11:16:43 +00:00
s)\ Set\ configuration\ password
2018-10-15 10:03:08 +00:00
q)\ Quit\ config
e/n/d/r/c/s/q>\ n
2017-03-18 11:16:43 +00:00
name>\ remote
Type\ of\ storage\ to\ configure.
2018-10-15 10:03:08 +00:00
Enter\ a\ string\ value.\ Press\ Enter\ for\ the\ default\ ("").
2017-03-18 11:16:43 +00:00
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2018-10-15 10:03:08 +00:00
\&...
17\ /\ Microsoft\ OneDrive
2017-03-18 11:16:43 +00:00
\ \ \ \\\ "onedrive"
2018-10-15 10:03:08 +00:00
\&...
Storage>\ 17
Microsoft\ App\ Client\ Id
Leave\ blank\ normally.
Enter\ a\ string\ value.\ Press\ Enter\ for\ the\ default\ ("").
2017-09-30 13:19:47 +00:00
client_id>
2018-10-15 10:03:08 +00:00
Microsoft\ App\ Client\ Secret
Leave\ blank\ normally.
Enter\ a\ string\ value.\ Press\ Enter\ for\ the\ default\ ("").
2017-09-30 13:19:47 +00:00
client_secret>
2018-10-15 10:03:08 +00:00
Edit\ advanced\ config?\ (y/n)
y)\ Yes
n)\ No
y/n>\ n
2017-03-18 11:16:43 +00:00
Remote\ config
2017-09-30 13:19:47 +00:00
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
2018-10-15 10:03:08 +00:00
Choose\ a\ number\ from\ below,\ or\ type\ in\ an\ existing\ value
\ 1\ /\ OneDrive\ Personal\ or\ Business
\ \ \ \\\ "onedrive"
\ 2\ /\ Sharepoint\ site
\ \ \ \\\ "sharepoint"
\ 3\ /\ Type\ in\ driveID
\ \ \ \\\ "driveid"
\ 4\ /\ Type\ in\ SiteID
\ \ \ \\\ "siteid"
\ 5\ /\ Search\ a\ Sharepoint\ site
\ \ \ \\\ "search"
Your\ choice>\ 1
Found\ 1\ drives,\ please\ select\ the\ one\ you\ want\ to\ use:
0:\ OneDrive\ (business)\ id=b!Eqwertyuiopasdfghjklzxcvbnm\-7mnbvcxzlkjhgfdsapoiuytrewqk
Chose\ drive\ to\ use:>\ 0
Found\ drive\ \[aq]root\[aq]\ of\ type\ \[aq]business\[aq],\ URL:\ https://org\-my.sharepoint.com/personal/you/Documents
Is\ that\ okay?
y)\ Yes
n)\ No
y/n>\ y
2017-03-18 11:16:43 +00:00
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[remote]
2018-10-15 10:03:08 +00:00
type\ =\ onedrive
token\ =\ {"access_token":"youraccesstoken","token_type":"Bearer","refresh_token":"yourrefreshtoken","expiry":"2018\-08\-26T22:39:52.486512262+08:00"}
drive_id\ =\ b!Eqwertyuiopasdfghjklzxcvbnm\-7mnbvcxzlkjhgfdsapoiuytrewqk
drive_type\ =\ business
2017-03-18 11:16:43 +00:00
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
d)\ Delete\ this\ remote
y/e/d>\ y
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
See the remote setup docs (https://rclone.org/remote_setup/) for how to
set it up on a machine with no Internet browser available.
2017-03-18 11:16:43 +00:00
.PP
2017-09-30 13:19:47 +00:00
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
2017-03-18 11:16:43 +00:00
.IP
.nf
\f[C]
rclone\ lsd\ remote:
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
List all the files in your OneDrive
2017-03-18 11:16:43 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ ls\ remote:
2017-03-18 11:16:43 +00:00
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
To copy a local directory to an OneDrive directory called backup
2017-03-18 11:16:43 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ copy\ /home/source\ remote:backup
2017-03-18 11:16:43 +00:00
\f[]
.fi
2018-10-15 10:03:08 +00:00
.SS Getting your own Client ID and Key
2017-03-18 11:16:43 +00:00
.PP
2018-10-15 10:03:08 +00:00
rclone uses a pair of Client ID and Key shared by all rclone users when
performing requests by default.
If you are having problems with them (E.g., seeing a lot of throttling),
you can get your own Client ID and Key by following the steps below:
.IP "1." 3
Open https://apps.dev.microsoft.com/#/appList, then click
\f[C]Add\ an\ app\f[] (Choose \f[C]Converged\ applications\f[] if
applicable)
.IP "2." 3
Enter a name for your app, and click continue.
Copy and keep the \f[C]Application\ Id\f[] under the app name for later
use.
.IP "3." 3
Under section \f[C]Application\ Secrets\f[], click
\f[C]Generate\ New\ Password\f[].
Copy and keep that password for later use.
.IP "4." 3
Under section \f[C]Platforms\f[], click \f[C]Add\ platform\f[], then
\f[C]Web\f[].
Enter \f[C]http://localhost:53682/\f[] in \f[C]Redirect\ URLs\f[].
.IP "5." 3
Under section \f[C]Microsoft\ Graph\ Permissions\f[], \f[C]Add\f[] these
\f[C]delegated\ permissions\f[]: \f[C]Files.Read\f[],
\f[C]Files.ReadWrite\f[], \f[C]Files.Read.All\f[],
\f[C]Files.ReadWrite.All\f[], \f[C]offline_access\f[],
\f[C]User.Read\f[].
.IP "6." 3
Scroll to the bottom and click \f[C]Save\f[].
2017-07-22 17:16:46 +00:00
.PP
2018-10-15 10:03:08 +00:00
Now the application is complete.
Run \f[C]rclone\ config\f[] to create or edit a OneDrive remote.
Supply the app ID and password as Client ID and Secret, respectively.
rclone will walk you through the remaining steps.
2017-09-30 13:19:47 +00:00
.SS Modified time and hashes
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
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.
2017-07-22 17:16:46 +00:00
.PP
2018-04-28 10:46:27 +00:00
OneDrive personal supports SHA1 type hashes.
OneDrive for business and Sharepoint Server support
QuickXorHash (https://docs.microsoft.com/en-us/onedrive/developer/code-snippets/quickxorhash).
.PP
For all types of OneDrive you can use the \f[C]\-\-checksum\f[] flag.
2017-09-30 13:19:47 +00:00
.SS Deleting files
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
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.
2018-10-15 10:03:08 +00:00
.SS Standard Options
.PP
Here are the standard options specific to onedrive (Microsoft OneDrive).
.SS \-\-onedrive\-client\-id
.PP
Microsoft App Client Id Leave blank normally.
.IP \[bu] 2
Config: client_id
.IP \[bu] 2
Env Var: RCLONE_ONEDRIVE_CLIENT_ID
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-onedrive\-client\-secret
.PP
Microsoft App Client Secret Leave blank normally.
.IP \[bu] 2
Config: client_secret
.IP \[bu] 2
Env Var: RCLONE_ONEDRIVE_CLIENT_SECRET
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS Advanced Options
2017-07-22 17:16:46 +00:00
.PP
2018-10-15 10:03:08 +00:00
Here are the advanced options specific to onedrive (Microsoft OneDrive).
.SS \-\-onedrive\-chunk\-size
.PP
Chunk size to upload files with \- must be multiple of 320k.
2017-03-18 11:16:43 +00:00
.PP
2017-09-30 13:19:47 +00:00
Above this size files will be chunked \- must be multiple of 320k.
Note that the chunks will be buffered into memory.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: chunk_size
.IP \[bu] 2
Env Var: RCLONE_ONEDRIVE_CHUNK_SIZE
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 10M
.SS \-\-onedrive\-drive\-id
.PP
The ID of the drive to use
.IP \[bu] 2
Config: drive_id
.IP \[bu] 2
Env Var: RCLONE_ONEDRIVE_DRIVE_ID
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-onedrive\-drive\-type
.PP
The type of the drive ( personal | business | documentLibrary )
.IP \[bu] 2
Config: drive_type
.IP \[bu] 2
Env Var: RCLONE_ONEDRIVE_DRIVE_TYPE
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-onedrive\-expose\-onenote\-files
.PP
Set to make OneNote files show up in directory listings.
.PP
By default rclone will hide OneNote files in directory listings because
operations like "Open" and "Update" won\[aq]t work on them.
But this behaviour may also prevent you from deleting them.
If you want to delete OneNote files or otherwise want them to show up in
directory listing, set this option.
.IP \[bu] 2
Config: expose_onenote_files
.IP \[bu] 2
Env Var: RCLONE_ONEDRIVE_EXPOSE_ONENOTE_FILES
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
2017-03-18 11:16:43 +00:00
.SS Limitations
.PP
2017-09-30 13:19:47 +00:00
Note that OneDrive is case insensitive so you can\[aq]t have a file
called "Hello.doc" and one called "hello.doc".
2017-03-18 11:16:43 +00:00
.PP
2017-09-30 13:19:47 +00:00
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.
2017-03-18 11:16:43 +00:00
.PP
2019-02-09 10:42:57 +00:00
The largest allowed file sizes are 15GB for OneDrive for Business and
35GB for OneDrive Personal (Updated 4 Jan 2019).
.PP
The entire path, including the file name, must contain fewer than 400
characters for OneDrive, OneDrive for Business and SharePoint Online.
If you are encrypting file and folder names with rclone, you may want to
pay attention to this limitation because the encrypted names are
typically longer than the original ones.
2018-11-24 13:44:25 +00:00
.PP
OneDrive seems to be OK with at least 50,000 files in a folder, but at
100,000 rclone will get errors listing the directory like
\f[C]couldn't\ list\ files:\ UnknownError:\f[].
See #2707 (https://github.com/ncw/rclone/issues/2707) for more info.
2019-02-09 10:42:57 +00:00
.PP
An official document about the limitations for different types of
OneDrive can be found
here (https://support.office.com/en-us/article/invalid-file-names-and-file-types-in-onedrive-onedrive-for-business-and-sharepoint-64883a5d-228e-48f5-b3d2-eb39e07630fa).
2018-03-19 10:06:13 +00:00
.SS Versioning issue
.PP
Every change in OneDrive causes the service to create a new version.
This counts against a users quota.
For example changing the modification time of a file creates a second
version, so the file is using twice the space.
.PP
The \f[C]copy\f[] is the only rclone command affected by this as we copy
the file and then afterwards set the modification time to match the
source file.
.PP
2019-02-09 10:42:57 +00:00
\f[B]Note\f[]: Starting October 2018, users will no longer be able to
disable versioning by default.
This is because Microsoft has brought an
update (https://techcommunity.microsoft.com/t5/Microsoft-OneDrive-Blog/New-Updates-to-OneDrive-and-SharePoint-Team-Site-Versioning/ba-p/204390)
to the mechanism.
To change this new default setting, a PowerShell command is required to
be run by a SharePoint admin.
If you are an admin, you can run these commands in PowerShell to change
that setting:
.IP "1." 3
\f[C]Install\-Module\ \-Name\ Microsoft.Online.SharePoint.PowerShell\f[]
(in case you haven\[aq]t installed this already)
.IP "2." 3
\f[C]Import\-Module\ Microsoft.Online.SharePoint.PowerShell\ \-DisableNameChecking\f[]
.IP "3." 3
\f[C]Connect\-SPOService\ \-Url\ https://YOURSITE\-admin.sharepoint.com\ \-Credential\ YOU\@YOURSITE.COM\f[]
(replacing \f[C]YOURSITE\f[], \f[C]YOU\f[], \f[C]YOURSITE.COM\f[] with
the actual values; this will prompt for your credentials)
.IP "4." 3
\f[C]Set\-SPOTenant\ \-EnableMinimumVersionRequirement\ $False\f[]
.IP "5." 3
\f[C]Disconnect\-SPOService\f[] (to disconnect from the server)
.PP
\f[I]Below are the steps for normal users to disable versioning. If you
don\[aq]t see the "No Versioning" option, make sure the above
requirements are met.\f[]
.PP
2018-03-19 10:06:13 +00:00
User Weropol (https://github.com/Weropol) has found a method to disable
versioning on OneDrive
.IP "1." 3
Open the settings menu by clicking on the gear symbol at the top of the
OneDrive Business page.
.IP "2." 3
Click Site settings.
.IP "3." 3
Once on the Site settings page, navigate to Site Administration > Site
libraries and lists.
.IP "4." 3
Click Customize "Documents".
.IP "5." 3
Click General Settings > Versioning Settings.
.IP "6." 3
Under Document Version History select the option No versioning.
Note: This will disable the creation of new file versions, but will not
remove any previous versions.
Your documents are safe.
.IP "7." 3
Apply the changes by clicking OK.
.IP "8." 3
Use rclone to upload or modify files.
(I also use the \-\-no\-update\-modtime flag)
.IP "9." 3
Restore the versioning settings after using rclone.
(Optional)
2018-06-16 17:21:09 +00:00
.SS Troubleshooting
.IP
.nf
\f[C]
Error:\ access_denied
Code:\ AADSTS65005
Description:\ Using\ application\ \[aq]rclone\[aq]\ is\ currently\ not\ supported\ for\ your\ organization\ [YOUR_ORGANIZATION]\ because\ it\ is\ in\ an\ unmanaged\ state.\ An\ administrator\ needs\ to\ claim\ ownership\ of\ the\ company\ by\ DNS\ validation\ of\ [YOUR_ORGANIZATION]\ before\ the\ application\ rclone\ can\ be\ provisioned.
\f[]
.fi
.PP
This means that rclone can\[aq]t use the OneDrive for Business API with
your account.
You can\[aq]t do much about it, maybe write an email to your admins.
.PP
However, there are other ways to interact with your OneDrive account.
Have a look at the webdav backend: https://rclone.org/webdav/#sharepoint
.SS OpenDrive
.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
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
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\ /\ OpenDrive
\ \ \ \\\ "opendrive"
11\ /\ Microsoft\ OneDrive
\ \ \ \\\ "onedrive"
12\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
\ \ \ \\\ "swift"
13\ /\ SSH/SFTP\ Connection
\ \ \ \\\ "sftp"
14\ /\ Yandex\ Disk
\ \ \ \\\ "yandex"
Storage>\ 10
Username
username>
Password
y)\ Yes\ type\ in\ my\ own\ password
g)\ Generate\ random\ password
y/g>\ y
Enter\ the\ password:
password:
Confirm\ the\ password:
password:
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[remote]
username\ =
password\ =\ ***\ ENCRYPTED\ ***
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
d)\ Delete\ this\ remote
y/e/d>\ y
\f[]
.fi
.PP
List directories in top level of your OpenDrive
.IP
.nf
\f[C]
rclone\ lsd\ remote:
\f[]
.fi
.PP
List all the files in your OpenDrive
.IP
.nf
\f[C]
rclone\ ls\ remote:
\f[]
.fi
.PP
To copy a local directory to an OpenDrive directory called backup
.IP
.nf
\f[C]
rclone\ copy\ /home/source\ remote:backup
\f[]
.fi
.SS Modified time and MD5SUMs
.PP
OpenDrive allows modification times to be set on objects accurate to 1
second.
These will be used to detect whether objects need syncing or not.
2018-10-15 10:03:08 +00:00
.SS Standard Options
2018-06-16 17:21:09 +00:00
.PP
2018-10-15 10:03:08 +00:00
Here are the standard options specific to opendrive (OpenDrive).
.SS \-\-opendrive\-username
.PP
Username
.IP \[bu] 2
Config: username
.IP \[bu] 2
Env Var: RCLONE_OPENDRIVE_USERNAME
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-opendrive\-password
.PP
Password.
.IP \[bu] 2
Config: password
.IP \[bu] 2
Env Var: RCLONE_OPENDRIVE_PASSWORD
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
2018-06-16 17:21:09 +00:00
.SS Limitations
.PP
Note that OpenDrive is case insensitive so you can\[aq]t have a file
called "Hello.doc" and one called "hello.doc".
.PP
There are quite a few characters that can\[aq]t be in OpenDrive 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.
2017-09-30 13:19:47 +00:00
.SS QingStor
2016-08-24 21:58:24 +00:00
.PP
2017-09-30 13:19:47 +00:00
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[].
2016-08-24 21:58:24 +00:00
.PP
2017-09-30 13:19:47 +00:00
Here is an example of making an QingStor configuration.
2017-07-22 17:16:46 +00:00
First run
.IP
.nf
\f[C]
rclone\ config
\f[]
.fi
2016-08-24 21:58:24 +00:00
.PP
2017-07-22 17:16:46 +00:00
This will guide you through an interactive setup process.
2016-08-24 21:58:24 +00:00
.IP
.nf
\f[C]
No\ remotes\ found\ \-\ make\ a\ new\ one
n)\ New\ remote
2017-07-22 17:16:46 +00:00
r)\ Rename\ remote
c)\ Copy\ remote
2016-08-24 21:58:24 +00:00
s)\ Set\ configuration\ password
q)\ Quit\ config
2017-07-22 17:16:46 +00:00
n/r/c/s/q>\ n
name>\ remote
2016-08-24 21:58:24 +00:00
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"
2017-09-30 13:19:47 +00:00
\ 6\ /\ FTP\ Connection
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "ftp"
\ 7\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
2016-08-24 21:58:24 +00:00
\ \ \ \\\ "google\ cloud\ storage"
2017-07-22 17:16:46 +00:00
\ 8\ /\ Google\ Drive
2016-08-24 21:58:24 +00:00
\ \ \ \\\ "drive"
2017-07-22 17:16:46 +00:00
\ 9\ /\ Hubic
2016-08-24 21:58:24 +00:00
\ \ \ \\\ "hubic"
2017-07-22 17:16:46 +00:00
10\ /\ Local\ Disk
2016-08-24 21:58:24 +00:00
\ \ \ \\\ "local"
2017-07-22 17:16:46 +00:00
11\ /\ Microsoft\ OneDrive
2016-08-24 21:58:24 +00:00
\ \ \ \\\ "onedrive"
2017-07-22 17:16:46 +00:00
12\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
2016-08-24 21:58:24 +00:00
\ \ \ \\\ "swift"
2017-09-30 13:19:47 +00:00
13\ /\ QingStor\ Object\ Storage
\ \ \ \\\ "qingstor"
14\ /\ SSH/SFTP\ Connection
2017-03-18 11:16:43 +00:00
\ \ \ \\\ "sftp"
2017-09-30 13:19:47 +00:00
15\ /\ Yandex\ Disk
2016-08-24 21:58:24 +00:00
\ \ \ \\\ "yandex"
2017-09-30 13:19:47 +00:00
Storage>\ 13
Get\ QingStor\ credentials\ from\ runtime.\ Only\ applies\ if\ access_key_id\ and\ secret_access_key\ is\ blank.
2016-08-24 21:58:24 +00:00
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2017-09-30 13:19:47 +00:00
\ 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>
2016-08-24 21:58:24 +00:00
Remote\ config
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
2017-07-22 17:16:46 +00:00
[remote]
2017-09-30 13:19:47 +00:00
env_auth\ =\ false
access_key_id\ =\ access_key
secret_access_key\ =\ secret_key
endpoint\ =
zone\ =\ pek3a
connection_retries\ =
2016-08-24 21:58:24 +00:00
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
d)\ Delete\ this\ remote
y/e/d>\ y
\f[]
.fi
.PP
2017-07-22 17:16:46 +00:00
This remote is called \f[C]remote\f[] and can now be used like this
2016-08-24 21:58:24 +00:00
.PP
2017-09-30 13:19:47 +00:00
See all buckets
2017-07-22 17:16:46 +00:00
.IP
.nf
\f[C]
rclone\ lsd\ remote:
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
Make a new bucket
2017-07-22 17:16:46 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ mkdir\ remote:bucket
2017-07-22 17:16:46 +00:00
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
List the contents of a bucket
2017-07-22 17:16:46 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ ls\ remote:bucket
2017-07-22 17:16:46 +00:00
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
Sync \f[C]/home/local/directory\f[] to the remote bucket, deleting any
excess files in the bucket.
2017-07-22 17:16:46 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ sync\ /home/local/directory\ remote:bucket
2017-07-22 17:16:46 +00:00
\f[]
.fi
2017-09-30 13:19:47 +00:00
.SS \-\-fast\-list
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
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
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
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
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
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
2017-07-22 17:16:46 +00:00
.PP
2018-10-15 10:03:08 +00:00
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 Standard Options
.PP
Here are the standard options specific to qingstor (QingCloud Object
Storage).
.SS \-\-qingstor\-env\-auth
.PP
Get QingStor credentials from runtime.
Only applies if access_key_id and secret_access_key is blank.
.IP \[bu] 2
Config: env_auth
.IP \[bu] 2
Env Var: RCLONE_QINGSTOR_ENV_AUTH
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"false"
.RS 2
.IP \[bu] 2
Enter QingStor credentials in the next step
.RE
.IP \[bu] 2
"true"
.RS 2
.IP \[bu] 2
Get QingStor credentials from the environment (env vars or IAM)
.RE
.RE
.SS \-\-qingstor\-access\-key\-id
.PP
QingStor Access Key ID Leave blank for anonymous access or runtime
2017-09-30 13:19:47 +00:00
credentials.
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
Config: access_key_id
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
Env Var: RCLONE_QINGSTOR_ACCESS_KEY_ID
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
Type: string
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
Default: ""
.SS \-\-qingstor\-secret\-access\-key
.PP
QingStor Secret Access Key (password) Leave blank for anonymous access
or runtime credentials.
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
Config: secret_access_key
.IP \[bu] 2
Env Var: RCLONE_QINGSTOR_SECRET_ACCESS_KEY
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-qingstor\-endpoint
.PP
Enter a endpoint URL to connection QingStor API.
Leave blank will use the default value "https://qingstor.com:443"
.IP \[bu] 2
Config: endpoint
.IP \[bu] 2
Env Var: RCLONE_QINGSTOR_ENDPOINT
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-qingstor\-zone
.PP
Zone to connect to.
Default is "pek3a".
.IP \[bu] 2
Config: zone
.IP \[bu] 2
Env Var: RCLONE_QINGSTOR_ZONE
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
2017-09-30 13:19:47 +00:00
.RS 2
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
"pek3a"
.RS 2
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
2018-10-15 10:03:08 +00:00
The Beijing (China) Three Zone
.IP \[bu] 2
Needs location constraint pek3a.
.RE
.IP \[bu] 2
"sh1a"
.RS 2
.IP \[bu] 2
The Shanghai (China) First Zone
.IP \[bu] 2
Needs location constraint sh1a.
.RE
.IP \[bu] 2
"gd2a"
.RS 2
.IP \[bu] 2
The Guangdong (China) Second Zone
.IP \[bu] 2
Needs location constraint gd2a.
2017-09-30 13:19:47 +00:00
.RE
2018-10-15 10:03:08 +00:00
.RE
.SS Advanced Options
.PP
2019-02-09 10:42:57 +00:00
Here are the advanced options specific to qingstor (QingCloud Object
Storage).
.SS \-\-qingstor\-connection\-retries
.PP
Number of connection retries.
.IP \[bu] 2
Config: connection_retries
.IP \[bu] 2
Env Var: RCLONE_QINGSTOR_CONNECTION_RETRIES
.IP \[bu] 2
Type: int
.IP \[bu] 2
Default: 3
.SS \-\-qingstor\-upload\-cutoff
.PP
Cutoff for switching to chunked upload
.PP
Any files larger than this will be uploaded in chunks of chunk_size.
The minimum is 0 and the maximum is 5GB.
.IP \[bu] 2
Config: upload_cutoff
.IP \[bu] 2
Env Var: RCLONE_QINGSTOR_UPLOAD_CUTOFF
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 200M
.SS \-\-qingstor\-chunk\-size
.PP
Chunk size to use for uploading.
.PP
When uploading files larger than upload_cutoff they will be uploaded as
multipart uploads using this chunk size.
.PP
Note that "\-\-qingstor\-upload\-concurrency" chunks of this size are
buffered in memory per transfer.
.PP
If you are transferring large files over high speed links and you have
enough memory, then increasing this will speed up the transfers.
.IP \[bu] 2
Config: chunk_size
.IP \[bu] 2
Env Var: RCLONE_QINGSTOR_CHUNK_SIZE
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 4M
.SS \-\-qingstor\-upload\-concurrency
.PP
Concurrency for multipart uploads.
.PP
This is the number of chunks of the same file that are uploaded
concurrently.
.PP
NB if you set this to > 1 then the checksums of multpart uploads become
corrupted (the uploads themselves are not corrupted though).
2018-10-15 10:03:08 +00:00
.PP
2019-02-09 10:42:57 +00:00
If you are uploading small numbers of large file over high speed link
and these uploads do not fully utilize your bandwidth, then increasing
this may help to speed up the transfers.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Config: upload_concurrency
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Env Var: RCLONE_QINGSTOR_UPLOAD_CONCURRENCY
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Type: int
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Default: 1
2017-09-30 13:19:47 +00:00
.SS Swift
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
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)
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
IBM Bluemix Cloud ObjectStorage
Swift (https://console.bluemix.net/docs/infrastructure/objectstorage-swift/index.html)
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
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[].
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
Here is an example of making a swift configuration.
First run
2017-07-22 17:16:46 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ config
2017-07-22 17:16:46 +00:00
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
This will guide you through an interactive setup process.
2017-07-22 17:16:46 +00:00
.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
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"
2017-09-30 13:19:47 +00:00
\ 4\ /\ Box
\ \ \ \\\ "box"
2017-12-23 13:07:45 +00:00
\ 5\ /\ Cache\ a\ remote
\ \ \ \\\ "cache"
\ 6\ /\ Dropbox
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "dropbox"
2017-12-23 13:07:45 +00:00
\ 7\ /\ Encrypt/Decrypt\ a\ remote
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "crypt"
2017-12-23 13:07:45 +00:00
\ 8\ /\ FTP\ Connection
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "ftp"
2017-12-23 13:07:45 +00:00
\ 9\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "google\ cloud\ storage"
2017-12-23 13:07:45 +00:00
10\ /\ Google\ Drive
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "drive"
2017-12-23 13:07:45 +00:00
11\ /\ Hubic
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "hubic"
2017-12-23 13:07:45 +00:00
12\ /\ Local\ Disk
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "local"
2017-12-23 13:07:45 +00:00
13\ /\ Microsoft\ Azure\ Blob\ Storage
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "azureblob"
2017-12-23 13:07:45 +00:00
14\ /\ Microsoft\ OneDrive
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "onedrive"
2017-12-23 13:07:45 +00:00
15\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "swift"
2017-12-23 13:07:45 +00:00
16\ /\ Pcloud
\ \ \ \\\ "pcloud"
17\ /\ QingCloud\ Object\ Storage
2017-09-30 13:19:47 +00:00
\ \ \ \\\ "qingstor"
2017-12-23 13:07:45 +00:00
18\ /\ SSH/SFTP\ Connection
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "sftp"
2017-12-23 13:07:45 +00:00
19\ /\ Webdav
\ \ \ \\\ "webdav"
20\ /\ Yandex\ Disk
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "yandex"
2017-12-23 13:07:45 +00:00
21\ /\ http\ Connection
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "http"
2017-09-30 13:19:47 +00:00
Storage>\ swift
Get\ swift\ credentials\ from\ environment\ variables\ in\ standard\ OpenStack\ form.
2017-07-22 17:16:46 +00:00
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2017-09-30 13:19:47 +00:00
\ 1\ /\ Enter\ swift\ credentials\ in\ the\ next\ step
\ \ \ \\\ "false"
\ 2\ /\ Get\ swift\ credentials\ from\ environment\ vars.\ Leave\ other\ fields\ blank\ if\ using\ this.
\ \ \ \\\ "true"
2017-12-23 13:07:45 +00:00
env_auth>\ true
User\ name\ to\ log\ in\ (OS_USERNAME).
user>\
API\ key\ or\ password\ (OS_PASSWORD).
key>\
Authentication\ URL\ for\ server\ (OS_AUTH_URL).
2017-09-30 13:19:47 +00:00
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"
2017-12-23 13:07:45 +00:00
auth>\
User\ ID\ to\ log\ in\ \-\ optional\ \-\ most\ swift\ systems\ use\ user\ and\ leave\ this\ blank\ (v3\ auth)\ (OS_USER_ID).
user_id>\
User\ domain\ \-\ optional\ (v3\ auth)\ (OS_USER_DOMAIN_NAME)
domain>\
Tenant\ name\ \-\ optional\ for\ v1\ auth,\ this\ or\ tenant_id\ required\ otherwise\ (OS_TENANT_NAME\ or\ OS_PROJECT_NAME)
tenant>\
Tenant\ ID\ \-\ optional\ for\ v1\ auth,\ this\ or\ tenant\ required\ otherwise\ (OS_TENANT_ID)
tenant_id>\
Tenant\ domain\ \-\ optional\ (v3\ auth)\ (OS_PROJECT_DOMAIN_NAME)
tenant_domain>\
Region\ name\ \-\ optional\ (OS_REGION_NAME)
region>\
Storage\ URL\ \-\ optional\ (OS_STORAGE_URL)
storage_url>\
Auth\ Token\ from\ alternate\ authentication\ \-\ optional\ (OS_AUTH_TOKEN)
auth_token>\
AuthVersion\ \-\ optional\ \-\ set\ to\ (1,2,3)\ if\ your\ auth\ URL\ has\ no\ version\ (ST_AUTH_VERSION)
auth_version>\
Endpoint\ type\ to\ choose\ from\ the\ service\ catalogue\ (OS_ENDPOINT_TYPE)
2017-09-30 13:19:47 +00:00
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"
2017-12-23 13:07:45 +00:00
endpoint_type>\
2017-07-22 17:16:46 +00:00
Remote\ config
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
2017-12-23 13:07:45 +00:00
[test]
env_auth\ =\ true
user\ =\
key\ =\
auth\ =\
user_id\ =\
domain\ =\
tenant\ =\
tenant_id\ =\
tenant_domain\ =\
region\ =\
storage_url\ =\
auth_token\ =\
auth_version\ =\
endpoint_type\ =\
2017-07-22 17:16:46 +00:00
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
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
2017-09-30 13:19:47 +00:00
See all containers
2017-07-22 17:16:46 +00:00
.IP
.nf
\f[C]
rclone\ lsd\ remote:
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
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)
2017-07-22 17:16:46 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
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
2017-07-22 17:16:46 +00:00
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
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.
2017-07-22 17:16:46 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
[remote]
type\ =\ swift
user\ =\ $OS_USERNAME
key\ =\ $OS_PASSWORD
auth\ =\ $OS_AUTH_URL
tenant\ =\ $OS_TENANT_NAME
2017-07-22 17:16:46 +00:00
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
Note that you may (or may not) need to set \f[C]region\f[] too \- try
without first.
.SS Configuration from the environment
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
If you prefer you can configure rclone to use swift using a standard set
of OpenStack environment variables.
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
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.
2017-07-22 17:16:46 +00:00
.PP
2017-12-23 13:07:45 +00:00
rclone will then set any empty config parameters from the environment
2017-09-30 13:19:47 +00:00
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.
2017-12-23 13:07:45 +00:00
.SS Using an alternate authentication method
.PP
If your OpenStack installation uses a non\-standard authentication
method that might not be yet supported by rclone or the underlying swift
library, you can authenticate externally (e.g.
calling manually the \f[C]openstack\f[] commands to get a token).
Then, you just need to pass the two configuration variables
\f[C]auth_token\f[] and \f[C]storage_url\f[].
If they are both provided, the other variables are ignored.
rclone will not try to authenticate but instead assume it is already
authenticated and use these two variables to access the OpenStack
installation.
2017-09-30 13:19:47 +00:00
.SS Using rclone without a config file
.PP
You can use rclone with swift without a config file, if desired, like
this:
2017-07-22 17:16:46 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
source\ openstack\-credentials\-file
export\ RCLONE_CONFIG_MYREMOTE_TYPE=swift
export\ RCLONE_CONFIG_MYREMOTE_ENV_AUTH=true
rclone\ lsd\ myremote:
2017-07-22 17:16:46 +00:00
\f[]
.fi
2017-09-30 13:19:47 +00:00
.SS \-\-fast\-list
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
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.
2018-04-28 10:46:27 +00:00
.SS \-\-update and \-\-use\-server\-modtime
.PP
As noted below, the modified time is stored on metadata on the object.
It is used by default for all operations that require checking the time
a file was last updated.
It allows rclone to treat the remote more like a true filesystem, but it
is inefficient because it requires an extra API call to retrieve the
metadata.
.PP
For many operations, the time the object was last uploaded to the remote
is sufficient to determine if it is "dirty".
By using \f[C]\-\-update\f[] along with
\f[C]\-\-use\-server\-modtime\f[], you can avoid the extra API call and
simply upload files whose local modtime is newer than the time it was
last uploaded.
2018-10-15 10:03:08 +00:00
.SS Standard Options
.PP
Here are the standard options specific to swift (Openstack Swift
(Rackspace Cloud Files, Memset Memstore, OVH)).
.SS \-\-swift\-env\-auth
.PP
Get swift credentials from environment variables in standard OpenStack
form.
.IP \[bu] 2
Config: env_auth
.IP \[bu] 2
Env Var: RCLONE_SWIFT_ENV_AUTH
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"false"
.RS 2
.IP \[bu] 2
Enter swift credentials in the next step
.RE
.IP \[bu] 2
"true"
.RS 2
.IP \[bu] 2
Get swift credentials from environment vars.
Leave other fields blank if using this.
.RE
.RE
.SS \-\-swift\-user
.PP
User name to log in (OS_USERNAME).
.IP \[bu] 2
Config: user
.IP \[bu] 2
Env Var: RCLONE_SWIFT_USER
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-swift\-key
.PP
API key or password (OS_PASSWORD).
.IP \[bu] 2
Config: key
.IP \[bu] 2
Env Var: RCLONE_SWIFT_KEY
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-swift\-auth
.PP
Authentication URL for server (OS_AUTH_URL).
.IP \[bu] 2
Config: auth
.IP \[bu] 2
Env Var: RCLONE_SWIFT_AUTH
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"https://auth.api.rackspacecloud.com/v1.0"
.RS 2
.IP \[bu] 2
Rackspace US
.RE
.IP \[bu] 2
"https://lon.auth.api.rackspacecloud.com/v1.0"
.RS 2
.IP \[bu] 2
Rackspace UK
.RE
.IP \[bu] 2
"https://identity.api.rackspacecloud.com/v2.0"
.RS 2
.IP \[bu] 2
Rackspace v2
.RE
.IP \[bu] 2
"https://auth.storage.memset.com/v1.0"
.RS 2
.IP \[bu] 2
Memset Memstore UK
.RE
.IP \[bu] 2
"https://auth.storage.memset.com/v2.0"
.RS 2
.IP \[bu] 2
Memset Memstore UK v2
.RE
.IP \[bu] 2
"https://auth.cloud.ovh.net/v2.0"
.RS 2
.IP \[bu] 2
OVH
.RE
.RE
.SS \-\-swift\-user\-id
.PP
User ID to log in \- optional \- most swift systems use user and leave
this blank (v3 auth) (OS_USER_ID).
.IP \[bu] 2
Config: user_id
.IP \[bu] 2
Env Var: RCLONE_SWIFT_USER_ID
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-swift\-domain
.PP
User domain \- optional (v3 auth) (OS_USER_DOMAIN_NAME)
.IP \[bu] 2
Config: domain
.IP \[bu] 2
Env Var: RCLONE_SWIFT_DOMAIN
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-swift\-tenant
.PP
Tenant name \- optional for v1 auth, this or tenant_id required
otherwise (OS_TENANT_NAME or OS_PROJECT_NAME)
.IP \[bu] 2
Config: tenant
.IP \[bu] 2
Env Var: RCLONE_SWIFT_TENANT
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-swift\-tenant\-id
.PP
Tenant ID \- optional for v1 auth, this or tenant required otherwise
(OS_TENANT_ID)
.IP \[bu] 2
Config: tenant_id
.IP \[bu] 2
Env Var: RCLONE_SWIFT_TENANT_ID
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-swift\-tenant\-domain
.PP
Tenant domain \- optional (v3 auth) (OS_PROJECT_DOMAIN_NAME)
.IP \[bu] 2
Config: tenant_domain
.IP \[bu] 2
Env Var: RCLONE_SWIFT_TENANT_DOMAIN
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-swift\-region
.PP
Region name \- optional (OS_REGION_NAME)
.IP \[bu] 2
Config: region
.IP \[bu] 2
Env Var: RCLONE_SWIFT_REGION
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-swift\-storage\-url
.PP
Storage URL \- optional (OS_STORAGE_URL)
.IP \[bu] 2
Config: storage_url
.IP \[bu] 2
Env Var: RCLONE_SWIFT_STORAGE_URL
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-swift\-auth\-token
.PP
Auth Token from alternate authentication \- optional (OS_AUTH_TOKEN)
.IP \[bu] 2
Config: auth_token
.IP \[bu] 2
Env Var: RCLONE_SWIFT_AUTH_TOKEN
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
2019-02-09 10:42:57 +00:00
.SS \-\-swift\-application\-credential\-id
.PP
Application Credential ID (OS_APPLICATION_CREDENTIAL_ID)
.IP \[bu] 2
Config: application_credential_id
.IP \[bu] 2
Env Var: RCLONE_SWIFT_APPLICATION_CREDENTIAL_ID
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-swift\-application\-credential\-name
.PP
Application Credential Name (OS_APPLICATION_CREDENTIAL_NAME)
.IP \[bu] 2
Config: application_credential_name
.IP \[bu] 2
Env Var: RCLONE_SWIFT_APPLICATION_CREDENTIAL_NAME
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-swift\-application\-credential\-secret
.PP
Application Credential Secret (OS_APPLICATION_CREDENTIAL_SECRET)
.IP \[bu] 2
Config: application_credential_secret
.IP \[bu] 2
Env Var: RCLONE_SWIFT_APPLICATION_CREDENTIAL_SECRET
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
2018-10-15 10:03:08 +00:00
.SS \-\-swift\-auth\-version
.PP
AuthVersion \- optional \- set to (1,2,3) if your auth URL has no
version (ST_AUTH_VERSION)
.IP \[bu] 2
Config: auth_version
.IP \[bu] 2
Env Var: RCLONE_SWIFT_AUTH_VERSION
.IP \[bu] 2
Type: int
.IP \[bu] 2
Default: 0
.SS \-\-swift\-endpoint\-type
.PP
Endpoint type to choose from the service catalogue (OS_ENDPOINT_TYPE)
.IP \[bu] 2
Config: endpoint_type
.IP \[bu] 2
Env Var: RCLONE_SWIFT_ENDPOINT_TYPE
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: "public"
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"public"
.RS 2
.IP \[bu] 2
Public (default, choose this if not sure)
.RE
.IP \[bu] 2
"internal"
.RS 2
.IP \[bu] 2
Internal (use internal service net)
.RE
.IP \[bu] 2
"admin"
.RS 2
.IP \[bu] 2
Admin
.RE
.RE
.SS \-\-swift\-storage\-policy
2017-09-30 13:19:47 +00:00
.PP
2018-10-15 10:03:08 +00:00
The storage policy to use when creating a new container
2018-09-01 11:58:00 +00:00
.PP
2018-10-15 10:03:08 +00:00
This applies the specified storage policy when creating a new container.
2018-09-01 11:58:00 +00:00
The policy cannot be changed afterwards.
The allowed configuration values and their meaning depend on your Swift
storage provider.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: storage_policy
.IP \[bu] 2
Env Var: RCLONE_SWIFT_STORAGE_POLICY
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
""
.RS 2
.IP \[bu] 2
Default
.RE
.IP \[bu] 2
"pcs"
.RS 2
.IP \[bu] 2
OVH Public Cloud Storage
.RE
.IP \[bu] 2
"pca"
.RS 2
.IP \[bu] 2
OVH Public Cloud Archive
.RE
.RE
.SS Advanced Options
.PP
Here are the advanced options specific to swift (Openstack Swift
(Rackspace Cloud Files, Memset Memstore, OVH)).
.SS \-\-swift\-chunk\-size
.PP
Above this size files will be chunked into a _segments container.
2017-09-30 13:19:47 +00:00
.PP
Above this size files will be chunked into a _segments container.
The default for this is 5GB which is its maximum value.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: chunk_size
.IP \[bu] 2
Env Var: RCLONE_SWIFT_CHUNK_SIZE
.IP \[bu] 2
Type: SizeSuffix
.IP \[bu] 2
Default: 5G
2019-02-09 10:42:57 +00:00
.SS \-\-swift\-no\-chunk
.PP
Don\[aq]t chunk files during streaming upload.
.PP
When doing streaming uploads (eg using rcat or mount) setting this flag
will cause the swift backend to not upload chunked files.
.PP
This will limit the maximum upload size to 5GB.
However non chunked files are easier to deal with and have an MD5SUM.
.PP
Rclone will still chunk files bigger than chunk_size when doing normal
copy operations.
.IP \[bu] 2
Config: no_chunk
.IP \[bu] 2
Env Var: RCLONE_SWIFT_NO_CHUNK
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
2017-09-30 13:19:47 +00:00
.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
2017-12-23 13:07:45 +00:00
This is most likely caused by forgetting to specify your tenant when
setting up a swift remote.
.SS pCloud
.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 pCloud involves getting a token from pCloud 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]
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\ /\ Pcloud
\ \ \ \\\ "pcloud"
16\ /\ QingCloud\ Object\ Storage
\ \ \ \\\ "qingstor"
17\ /\ SSH/SFTP\ Connection
\ \ \ \\\ "sftp"
18\ /\ Yandex\ Disk
\ \ \ \\\ "yandex"
19\ /\ http\ Connection
\ \ \ \\\ "http"
Storage>\ pcloud
Pcloud\ App\ Client\ Id\ \-\ leave\ blank\ normally.
client_id>\
Pcloud\ 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","expiry":"0001\-01\-01T00:00:00Z"}
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
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 pCloud.
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 pCloud
.IP
.nf
\f[C]
rclone\ lsd\ remote:
\f[]
.fi
.PP
List all the files in your pCloud
.IP
.nf
\f[C]
rclone\ ls\ remote:
\f[]
.fi
.PP
To copy a local directory to an pCloud directory called backup
.IP
.nf
\f[C]
rclone\ copy\ /home/source\ remote:backup
\f[]
.fi
.SS Modified time and hashes
.PP
pCloud allows modification times to be set on objects accurate to 1
second.
These will be used to detect whether objects need syncing or not.
In order to set a Modification time pCloud requires the object be
re\-uploaded.
.PP
pCloud supports MD5 and SHA1 type hashes, so you can use the
\f[C]\-\-checksum\f[] flag.
.SS Deleting files
.PP
Deleted files will be moved to the trash.
Your subscription level will determine how long items stay in the trash.
\f[C]rclone\ cleanup\f[] can be used to empty the trash.
2018-10-15 10:03:08 +00:00
.SS Standard Options
.PP
Here are the standard options specific to pcloud (Pcloud).
.SS \-\-pcloud\-client\-id
.PP
Pcloud App Client Id Leave blank normally.
.IP \[bu] 2
Config: client_id
.IP \[bu] 2
Env Var: RCLONE_PCLOUD_CLIENT_ID
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-pcloud\-client\-secret
.PP
Pcloud App Client Secret Leave blank normally.
.IP \[bu] 2
Config: client_secret
.IP \[bu] 2
Env Var: RCLONE_PCLOUD_CLIENT_SECRET
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
2017-09-30 13:19:47 +00:00
.SS SFTP
.PP
SFTP is the Secure (or SSH) File Transfer
Protocol (https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol).
.PP
2018-04-28 10:46:27 +00:00
SFTP runs over SSH v2 and is installed as standard with most modern SSH
installations.
2017-09-30 13:19:47 +00:00
.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.
2017-12-23 13:07:45 +00:00
An empty path \f[C]remote:\f[] refers to the user\[aq]s home directory.
2017-09-30 13:19:47 +00:00
.PP
2018-04-28 10:46:27 +00:00
Note that some SFTP servers will need the leading \f[C]/\f[] \- Synology
is a good example of this.
.PP
2017-12-23 13:07:45 +00:00
Here is an example of making an SFTP configuration.
2017-09-30 13:19:47 +00:00
First run
2017-07-22 17:16:46 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ config
2017-07-22 17:16:46 +00:00
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
This will guide you through an interactive setup process.
2017-07-22 17:16:46 +00:00
.IP
.nf
\f[C]
No\ remotes\ found\ \-\ make\ a\ new\ one
n)\ New\ remote
s)\ Set\ configuration\ password
q)\ Quit\ config
2017-09-30 13:19:47 +00:00
n/s/q>\ n
name>\ remote
2017-07-22 17:16:46 +00:00
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"
2017-09-30 13:19:47 +00:00
\ 6\ /\ FTP\ Connection
\ \ \ \\\ "ftp"
\ 7\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "google\ cloud\ storage"
2017-09-30 13:19:47 +00:00
\ 8\ /\ Google\ Drive
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "drive"
2017-09-30 13:19:47 +00:00
\ 9\ /\ Hubic
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "hubic"
2017-09-30 13:19:47 +00:00
10\ /\ Local\ Disk
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "local"
2017-09-30 13:19:47 +00:00
11\ /\ Microsoft\ OneDrive
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "onedrive"
2017-09-30 13:19:47 +00:00
12\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "swift"
2017-09-30 13:19:47 +00:00
13\ /\ SSH/SFTP\ Connection
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "sftp"
2017-09-30 13:19:47 +00:00
14\ /\ Yandex\ Disk
2017-07-22 17:16:46 +00:00
\ \ \ \\\ "yandex"
2017-09-30 13:19:47 +00:00
15\ /\ http\ Connection
\ \ \ \\\ "http"
Storage>\ sftp
SSH\ host\ to\ connect\ to
2017-07-22 17:16:46 +00:00
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
2017-09-30 13:19:47 +00:00
\ 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.
2017-07-22 17:16:46 +00:00
y)\ Yes\ type\ in\ my\ own\ password
g)\ Generate\ random\ password
n)\ No\ leave\ this\ optional\ password\ blank
2017-09-30 13:19:47 +00:00
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
2016-08-24 21:58:24 +00:00
\f[]
.fi
.PP
2017-12-23 13:07:45 +00:00
This remote is called \f[C]remote\f[] and can now be used like this:
2017-09-30 13:19:47 +00:00
.PP
See all directories in the home directory
2016-08-24 21:58:24 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ lsd\ remote:
2016-08-24 21:58:24 +00:00
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
Make a new directory
2016-08-24 21:58:24 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ mkdir\ remote:path/to/directory
2016-08-24 21:58:24 +00:00
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
List the contents of a directory
2016-08-24 21:58:24 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ ls\ remote:path/to/directory
2016-08-24 21:58:24 +00:00
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
Sync \f[C]/home/local/directory\f[] to the remote directory, deleting
any excess files in the directory.
2016-08-24 21:58:24 +00:00
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ sync\ /home/local/directory\ remote:directory
2016-08-24 21:58:24 +00:00
\f[]
.fi
2017-09-30 13:19:47 +00:00
.SS SSH Authentication
2016-08-24 21:58:24 +00:00
.PP
2017-12-23 13:07:45 +00:00
The SFTP remote supports three authentication methods:
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
Password
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
Key file
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
ssh\-agent
2016-08-24 21:58:24 +00:00
.PP
2019-02-09 10:42:57 +00:00
Key files should be PEM\-encoded private key files.
2017-09-30 13:19:47 +00:00
For instance \f[C]/home/$USER/.ssh/id_rsa\f[].
2019-02-09 10:42:57 +00:00
Only unencrypted OpenSSH or PEM encrypted files are supported.
2016-08-24 21:58:24 +00:00
.PP
2017-12-23 13:07:45 +00:00
If you don\[aq]t specify \f[C]pass\f[] or \f[C]key_file\f[] then rclone
will attempt to contact an ssh\-agent.
2018-03-19 10:06:13 +00:00
.PP
2019-02-09 10:42:57 +00:00
You can also specify \f[C]key_use_agent\f[] to force the usage of an
ssh\-agent.
In this case \f[C]key_file\f[] can also be specified to force the usage
of a specific key in the ssh\-agent.
.PP
Using an ssh\-agent is the only way to load encrypted OpenSSH keys at
the moment.
.PP
2018-03-19 10:06:13 +00:00
If you set the \f[C]\-\-sftp\-ask\-password\f[] option, rclone will
prompt for a password when needed and no password has been configured.
2017-09-30 13:19:47 +00:00
.SS ssh\-agent on macOS
.PP
2017-09-30 13:19:47 +00:00
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
2017-09-30 13:19:47 +00:00
And then at the end of the session
.IP
.nf
\f[C]
eval\ `ssh\-agent\ \-k`
\f[]
.fi
.PP
2018-10-15 10:03:08 +00:00
These commands can be used in scripts of course.
.SS Modified time
.PP
Modified times are stored on the server to 1 second precision.
.PP
Modified times are used in syncing and are fully supported.
.PP
Some SFTP servers disable setting/modifying the file modification time
after upload (for example, certain configurations of ProFTPd with
mod_sftp).
If you are using one of these servers, you can set the option
\f[C]set_modtime\ =\ false\f[] in your RClone backend configuration to
disable this behaviour.
.SS Standard Options
.PP
Here are the standard options specific to sftp (SSH/SFTP Connection).
.SS \-\-sftp\-host
.PP
SSH host to connect to
.IP \[bu] 2
Config: host
.IP \[bu] 2
Env Var: RCLONE_SFTP_HOST
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"example.com"
.RS 2
.IP \[bu] 2
Connect to example.com
.RE
.RE
.SS \-\-sftp\-user
.PP
SSH username, leave blank for current username, ncw
.IP \[bu] 2
Config: user
.IP \[bu] 2
Env Var: RCLONE_SFTP_USER
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-sftp\-port
.PP
SSH port, leave blank to use default (22)
.IP \[bu] 2
Config: port
.IP \[bu] 2
Env Var: RCLONE_SFTP_PORT
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-sftp\-pass
.PP
SSH password, leave blank to use ssh\-agent.
.IP \[bu] 2
Config: pass
.IP \[bu] 2
Env Var: RCLONE_SFTP_PASS
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-sftp\-key\-file
.PP
2019-02-09 10:42:57 +00:00
Path to PEM\-encoded private key file, leave blank or set
key\-use\-agent to use ssh\-agent.
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: key_file
.IP \[bu] 2
Env Var: RCLONE_SFTP_KEY_FILE
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
2019-02-09 10:42:57 +00:00
.SS \-\-sftp\-key\-file\-pass
.PP
The passphrase to decrypt the PEM\-encoded private key file.
.PP
Only PEM encrypted key files (old OpenSSH format) are supported.
Encrypted keys in the new OpenSSH format can\[aq]t be used.
.IP \[bu] 2
Config: key_file_pass
.IP \[bu] 2
Env Var: RCLONE_SFTP_KEY_FILE_PASS
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-sftp\-key\-use\-agent
.PP
When set forces the usage of the ssh\-agent.
.PP
When key\-file is also set, the ".pub" file of the specified key\-file
is read and only the associated key is requested from the ssh\-agent.
This allows to avoid
\f[C]Too\ many\ authentication\ failures\ for\ *username*\f[] errors
when the ssh\-agent contains many keys.
.IP \[bu] 2
Config: key_use_agent
.IP \[bu] 2
Env Var: RCLONE_SFTP_KEY_USE_AGENT
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
2018-10-15 10:03:08 +00:00
.SS \-\-sftp\-use\-insecure\-cipher
.PP
Enable the use of the aes128\-cbc cipher.
This cipher is insecure and may allow plaintext data to be recovered by
an attacker.
.IP \[bu] 2
Config: use_insecure_cipher
.IP \[bu] 2
Env Var: RCLONE_SFTP_USE_INSECURE_CIPHER
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"false"
.RS 2
.IP \[bu] 2
Use default Cipher list.
.RE
.IP \[bu] 2
"true"
.RS 2
.IP \[bu] 2
Enables the use of the aes128\-cbc cipher.
.RE
.RE
.SS \-\-sftp\-disable\-hashcheck
2018-03-19 10:06:13 +00:00
.PP
2018-10-15 10:03:08 +00:00
Disable the execution of SSH commands to determine if remote file
hashing is available.
Leave blank or set to false to enable hashing (recommended), set to true
to disable hashing.
.IP \[bu] 2
Config: disable_hashcheck
.IP \[bu] 2
Env Var: RCLONE_SFTP_DISABLE_HASHCHECK
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS Advanced Options
.PP
Here are the advanced options specific to sftp (SSH/SFTP Connection).
2018-03-19 10:06:13 +00:00
.SS \-\-sftp\-ask\-password
.PP
2018-10-15 10:03:08 +00:00
Allow asking for SFTP password when needed.
.IP \[bu] 2
Config: ask_password
.IP \[bu] 2
Env Var: RCLONE_SFTP_ASK_PASSWORD
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS \-\-sftp\-path\-override
2018-06-16 17:21:09 +00:00
.PP
Override path used by SSH connection.
2018-10-15 10:03:08 +00:00
.PP
This allows checksum calculation when SFTP and SSH paths are different.
2018-06-16 17:21:09 +00:00
This issue affects among others Synology NAS boxes.
.PP
Shared folders can be found in directories representing volumes
.IP
.nf
\f[C]
rclone\ sync\ /home/local/directory\ remote:/directory\ \-\-ssh\-path\-override\ /volume2/directory
\f[]
.fi
.PP
2018-10-15 10:03:08 +00:00
Home directory can be found in a shared folder called "home"
2018-06-16 17:21:09 +00:00
.IP
.nf
\f[C]
rclone\ sync\ /home/local/directory\ remote:/home/directory\ \-\-ssh\-path\-override\ /volume1/homes/USER/directory
\f[]
.fi
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Config: path_override
.IP \[bu] 2
Env Var: RCLONE_SFTP_PATH_OVERRIDE
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-sftp\-set\-modtime
2018-03-19 10:06:13 +00:00
.PP
2018-10-15 10:03:08 +00:00
Set the modified time on the remote if set.
.IP \[bu] 2
Config: set_modtime
.IP \[bu] 2
Env Var: RCLONE_SFTP_SET_MODTIME
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: true
2017-09-30 13:19:47 +00:00
.SS Limitations
2016-11-06 10:17:52 +00:00
.PP
2017-09-30 13:19:47 +00:00
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.
2018-04-28 10:46:27 +00:00
This remote checksumming (file hashing) is recommended and enabled by
default.
Disabling the checksumming may be required if you are connecting to SFTP
servers which are not under your control, and to which the execution of
remote commands is prohibited.
Set the configuration option \f[C]disable_hashcheck\f[] to \f[C]true\f[]
to disable checksumming.
.PP
Note that some SFTP servers (eg Synology) the paths are different for
SSH and SFTP so the hashes can\[aq]t be calculated properly.
For them using \f[C]disable_hashcheck\f[] is a good idea.
2016-11-06 10:17:52 +00:00
.PP
2017-12-23 13:07:45 +00:00
The only ssh agent supported under Windows is Putty\[aq]s pageant.
.PP
The Go SSH library disables the use of the aes128\-cbc cipher by
default, due to security concerns.
This can be re\-enabled on a per\-connection basis by setting the
\f[C]use_insecure_cipher\f[] setting in the configuration file to
\f[C]true\f[].
Further details on the insecurity of this cipher can be found [in this
paper] (http://www.isg.rhul.ac.uk/~kp/SandPfinal.pdf).
2017-03-18 11:16:43 +00:00
.PP
2017-09-30 13:19:47 +00:00
SFTP isn\[aq]t supported under plan9 until this
issue (https://github.com/pkg/sftp/issues/156) is fixed.
2017-03-18 11:16:43 +00:00
.PP
2017-09-30 13:19:47 +00:00
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[]
2017-03-18 11:16:43 +00:00
.PP
2017-09-30 13:19:47 +00:00
Note that \f[C]\-\-timeout\f[] isn\[aq]t supported (but
\f[C]\-\-contimeout\f[] is).
2018-10-15 10:03:08 +00:00
.SS Union
.PP
The \f[C]union\f[] remote provides a unification similar to UnionFS
using other remotes.
.PP
Paths may be as deep as required or a local path, eg
\f[C]remote:directory/subdirectory\f[] or
\f[C]/directory/subdirectory\f[].
.PP
During the initial setup with \f[C]rclone\ config\f[] you will specify
the target remotes as a space separated list.
The target remotes can either be a local paths or other remotes.
.PP
The order of the remotes is important as it defines which remotes take
precedence over others if there are files with the same name in the same
logical path.
The last remote is the topmost remote and replaces files with the same
name from previous remotes.
.PP
Only the last remote is used to write to and delete from, all other
remotes are read\-only.
.PP
Subfolders can be used in target remote.
Asume a union remote named \f[C]backup\f[] with the remotes
\f[C]mydrive:private/backup\ mydrive2:/backup\f[].
Invoking \f[C]rclone\ mkdir\ backup:desktop\f[] is exactly the same as
invoking \f[C]rclone\ mkdir\ mydrive2:/backup/desktop\f[].
.PP
There will be no special handling of paths containing \f[C]\&..\f[]
segments.
Invoking \f[C]rclone\ mkdir\ backup:../desktop\f[] is exactly the same
as invoking \f[C]rclone\ mkdir\ mydrive2:/backup/../desktop\f[].
.PP
Here is an example of how to make a union called \f[C]remote\f[] for
local folders.
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
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\ /\ Alias\ for\ a\ existing\ remote
\ \ \ \\\ "alias"
\ 2\ /\ Amazon\ Drive
\ \ \ \\\ "amazon\ cloud\ drive"
\ 3\ /\ Amazon\ S3\ Compliant\ Storage\ Providers\ (AWS,\ Ceph,\ Dreamhost,\ IBM\ COS,\ Minio)
\ \ \ \\\ "s3"
\ 4\ /\ Backblaze\ B2
\ \ \ \\\ "b2"
\ 5\ /\ Box
\ \ \ \\\ "box"
\ 6\ /\ Builds\ a\ stackable\ unification\ remote,\ which\ can\ appear\ to\ merge\ the\ contents\ of\ several\ remotes
\ \ \ \\\ "union"
\ 7\ /\ Cache\ a\ remote
\ \ \ \\\ "cache"
\ 8\ /\ Dropbox
\ \ \ \\\ "dropbox"
\ 9\ /\ Encrypt/Decrypt\ a\ remote
\ \ \ \\\ "crypt"
10\ /\ FTP\ Connection
\ \ \ \\\ "ftp"
11\ /\ Google\ Cloud\ Storage\ (this\ is\ not\ Google\ Drive)
\ \ \ \\\ "google\ cloud\ storage"
12\ /\ Google\ Drive
\ \ \ \\\ "drive"
13\ /\ Hubic
\ \ \ \\\ "hubic"
14\ /\ JottaCloud
\ \ \ \\\ "jottacloud"
15\ /\ Local\ Disk
\ \ \ \\\ "local"
16\ /\ Mega
\ \ \ \\\ "mega"
17\ /\ Microsoft\ Azure\ Blob\ Storage
\ \ \ \\\ "azureblob"
18\ /\ Microsoft\ OneDrive
\ \ \ \\\ "onedrive"
19\ /\ OpenDrive
\ \ \ \\\ "opendrive"
20\ /\ Openstack\ Swift\ (Rackspace\ Cloud\ Files,\ Memset\ Memstore,\ OVH)
\ \ \ \\\ "swift"
21\ /\ Pcloud
\ \ \ \\\ "pcloud"
22\ /\ QingCloud\ Object\ Storage
\ \ \ \\\ "qingstor"
23\ /\ SSH/SFTP\ Connection
\ \ \ \\\ "sftp"
24\ /\ Webdav
\ \ \ \\\ "webdav"
25\ /\ Yandex\ Disk
\ \ \ \\\ "yandex"
26\ /\ http\ Connection
\ \ \ \\\ "http"
Storage>\ union
List\ of\ space\ separated\ remotes.
Can\ be\ \[aq]remotea:test/dir\ remoteb:\[aq],\ \[aq]"remotea:test/space\ dir"\ remoteb:\[aq],\ etc.
The\ last\ remote\ is\ used\ to\ write\ to.
Enter\ a\ string\ value.\ Press\ Enter\ for\ the\ default\ ("").
remotes>
Remote\ config
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[remote]
type\ =\ union
remotes\ =\ C:\\dir1\ C:\\dir2\ C:\\dir3
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
d)\ Delete\ this\ remote
y/e/d>\ y
Current\ remotes:
Name\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Type
====\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ====
remote\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ union
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
Once configured you can then use \f[C]rclone\f[] like this,
.PP
List directories in top level in \f[C]C:\\dir1\f[], \f[C]C:\\dir2\f[]
and \f[C]C:\\dir3\f[]
.IP
.nf
\f[C]
rclone\ lsd\ remote:
\f[]
.fi
.PP
List all the files in \f[C]C:\\dir1\f[], \f[C]C:\\dir2\f[] and
\f[C]C:\\dir3\f[]
.IP
.nf
\f[C]
rclone\ ls\ remote:
\f[]
.fi
.PP
Copy another local directory to the union directory called source, which
will be placed into \f[C]C:\\dir3\f[]
.IP
.nf
\f[C]
rclone\ copy\ C:\\source\ remote:source
\f[]
.fi
.SS Standard Options
.PP
Here are the standard options specific to union (A stackable unification
remote, which can appear to merge the contents of several remotes).
.SS \-\-union\-remotes
.PP
List of space separated remotes.
Can be \[aq]remotea:test/dir remoteb:\[aq], \[aq]"remotea:test/space
dir" remoteb:\[aq], etc.
The last remote is used to write to.
.IP \[bu] 2
Config: remotes
.IP \[bu] 2
Env Var: RCLONE_UNION_REMOTES
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
2017-12-23 13:07:45 +00:00
.SS WebDAV
.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
To configure the WebDAV remote you will need to have a URL for it, and a
username and password.
If you know what kind of system you are connecting to then rclone can
enable extra features.
.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
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
2018-09-01 11:58:00 +00:00
[snip]
22\ /\ Webdav
2017-12-23 13:07:45 +00:00
\ \ \ \\\ "webdav"
2018-09-01 11:58:00 +00:00
[snip]
2017-12-23 13:07:45 +00:00
Storage>\ webdav
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://example.com/remote.php/webdav/
2018-09-01 11:58:00 +00:00
Name\ of\ the\ Webdav\ site/service/software\ you\ are\ using
2017-12-23 13:07:45 +00:00
Choose\ a\ number\ from\ below,\ or\ type\ in\ your\ own\ value
\ 1\ /\ Nextcloud
\ \ \ \\\ "nextcloud"
\ 2\ /\ Owncloud
\ \ \ \\\ "owncloud"
2018-04-28 10:46:27 +00:00
\ 3\ /\ Sharepoint
\ \ \ \\\ "sharepoint"
\ 4\ /\ Other\ site/service\ or\ software
2017-12-23 13:07:45 +00:00
\ \ \ \\\ "other"
vendor>\ 1
User\ name
user>\ user
Password.
y)\ Yes\ type\ in\ my\ own\ password
g)\ Generate\ random\ password
n)\ No\ leave\ this\ optional\ password\ blank
y/g/n>\ y
Enter\ the\ password:
password:
Confirm\ the\ password:
password:
2018-09-01 11:58:00 +00:00
Bearer\ token\ instead\ of\ user/pass\ (eg\ a\ Macaroon)
bearer_token>\
2017-12-23 13:07:45 +00:00
Remote\ config
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
[remote]
2018-09-01 11:58:00 +00:00
type\ =\ webdav
2017-12-23 13:07:45 +00:00
url\ =\ https://example.com/remote.php/webdav/
vendor\ =\ nextcloud
user\ =\ user
pass\ =\ ***\ ENCRYPTED\ ***
2018-09-01 11:58:00 +00:00
bearer_token\ =\
2017-12-23 13:07:45 +00:00
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
y)\ Yes\ this\ is\ OK
e)\ Edit\ this\ remote
d)\ Delete\ this\ remote
y/e/d>\ y
\f[]
.fi
.PP
Once configured you can then use \f[C]rclone\f[] like this,
.PP
List directories in top level of your WebDAV
.IP
.nf
\f[C]
rclone\ lsd\ remote:
\f[]
.fi
.PP
List all the files in your WebDAV
.IP
.nf
\f[C]
rclone\ ls\ remote:
\f[]
.fi
.PP
To copy a local directory to an WebDAV directory called backup
.IP
.nf
\f[C]
rclone\ copy\ /home/source\ remote:backup
\f[]
.fi
.SS Modified time and hashes
.PP
Plain WebDAV does not support modified times.
However when used with Owncloud or Nextcloud rclone will support
modified times.
.PP
2019-02-09 10:42:57 +00:00
Likewise plain WebDAV does not support hashes, however when used with
Owncloud or Nexcloud rclone will support SHA1 and MD5 hashes.
Depending on the exact version of Owncloud or Nextcloud hashes may
appear on all objects, or only on objects which had a hash uploaded with
them.
2018-10-15 10:03:08 +00:00
.SS Standard Options
.PP
Here are the standard options specific to webdav (Webdav).
.SS \-\-webdav\-url
.PP
URL of http host to connect to
.IP \[bu] 2
Config: url
.IP \[bu] 2
Env Var: RCLONE_WEBDAV_URL
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"https://example.com"
.RS 2
.IP \[bu] 2
Connect to example.com
.RE
.RE
.SS \-\-webdav\-vendor
.PP
Name of the Webdav site/service/software you are using
.IP \[bu] 2
Config: vendor
.IP \[bu] 2
Env Var: RCLONE_WEBDAV_VENDOR
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"nextcloud"
.RS 2
.IP \[bu] 2
Nextcloud
.RE
.IP \[bu] 2
"owncloud"
.RS 2
.IP \[bu] 2
Owncloud
.RE
.IP \[bu] 2
"sharepoint"
.RS 2
.IP \[bu] 2
Sharepoint
.RE
.IP \[bu] 2
"other"
.RS 2
.IP \[bu] 2
Other site/service or software
.RE
.RE
.SS \-\-webdav\-user
.PP
User name
.IP \[bu] 2
Config: user
.IP \[bu] 2
Env Var: RCLONE_WEBDAV_USER
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-webdav\-pass
.PP
Password.
.IP \[bu] 2
Config: pass
.IP \[bu] 2
Env Var: RCLONE_WEBDAV_PASS
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-webdav\-bearer\-token
.PP
Bearer token instead of user/pass (eg a Macaroon)
.IP \[bu] 2
Config: bearer_token
.IP \[bu] 2
Env Var: RCLONE_WEBDAV_BEARER_TOKEN
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
2018-09-01 11:58:00 +00:00
.SS Provider notes
.PP
See below for notes on specific providers.
2017-12-23 13:07:45 +00:00
.SS Owncloud
.PP
Click on the settings cog in the bottom right of the page and this will
show the WebDAV URL that rclone needs in the config step.
It will look something like
\f[C]https://example.com/remote.php/webdav/\f[].
.PP
Owncloud supports modified times using the \f[C]X\-OC\-Mtime\f[] header.
.SS Nextcloud
.PP
This is configured in an identical way to Owncloud.
Note that Nextcloud does not support streaming of files (\f[C]rcat\f[])
whereas Owncloud does.
This may be
fixed (https://github.com/nextcloud/nextcloud-snap/issues/365) in the
future.
.SS Put.io
.PP
put.io can be accessed in a read only way using webdav.
.PP
Configure the \f[C]url\f[] as \f[C]https://webdav.put.io\f[] and use
your normal account username and password for \f[C]user\f[] and
\f[C]pass\f[].
Set the \f[C]vendor\f[] to \f[C]other\f[].
.PP
Your config file should end up looking like this:
.IP
.nf
\f[C]
[putio]
type\ =\ webdav
url\ =\ https://webdav.put.io
vendor\ =\ other
user\ =\ YourUserName
pass\ =\ encryptedpassword
\f[]
.fi
.PP
If you are using \f[C]put.io\f[] with \f[C]rclone\ mount\f[] then use
the \f[C]\-\-read\-only\f[] flag to signal to the OS that it can\[aq]t
write to the mount.
.PP
For more help see the put.io webdav
docs (http://help.put.io/apps-and-integrations/ftp-and-webdav).
2018-04-28 10:46:27 +00:00
.SS Sharepoint
.PP
2018-09-01 11:58:00 +00:00
Rclone can be used with Sharepoint provided by OneDrive for Business or
2018-04-28 10:46:27 +00:00
Office365 Education Accounts.
This feature is only needed for a few of these Accounts, mostly
Office365 Education ones.
These accounts are sometimes not verified by the domain owner
github#1975 (https://github.com/ncw/rclone/issues/1975)
.PP
This means that these accounts can\[aq]t be added using the official API
(other Accounts should work with the "onedrive" option).
However, it is possible to access them using webdav.
.PP
To use a sharepoint remote with rclone, add it like this: First, you
need to get your remote\[aq]s URL:
.IP \[bu] 2
Go here (https://onedrive.live.com/about/en-us/signin/) to open your
OneDrive or to sign in
.IP \[bu] 2
Now take a look at your address bar, the URL should look like this:
\f[C]https://[YOUR\-DOMAIN]\-my.sharepoint.com/personal/[YOUR\-EMAIL]/_layouts/15/onedrive.aspx\f[]
.PP
You\[aq]ll only need this URL upto the email address.
After that, you\[aq]ll most likely want to add "/Documents".
That subdirectory contains the actual data stored on your OneDrive.
.PP
Add the remote to rclone like this: Configure the \f[C]url\f[] as
\f[C]https://[YOUR\-DOMAIN]\-my.sharepoint.com/personal/[YOUR\-EMAIL]/Documents\f[]
and use your normal account email and password for \f[C]user\f[] and
\f[C]pass\f[].
If you have 2FA enabled, you have to generate an app password.
Set the \f[C]vendor\f[] to \f[C]sharepoint\f[].
.PP
Your config file should look like this:
.IP
.nf
\f[C]
[sharepoint]
type\ =\ webdav
url\ =\ https://[YOUR\-DOMAIN]\-my.sharepoint.com/personal/[YOUR\-EMAIL]/Documents
vendor\ =\ other
user\ =\ YourEmailAddress
pass\ =\ encryptedpassword
\f[]
.fi
2018-09-01 11:58:00 +00:00
.SS dCache
.PP
2019-02-09 10:42:57 +00:00
dCache (https://www.dcache.org/) is a storage system with WebDAV doors
that support, beside basic and x509, authentication with
2018-09-01 11:58:00 +00:00
Macaroons (https://www.dcache.org/manuals/workshop-2017-05-29-Umea/000-Final/anupam_macaroons_v02.pdf)
(bearer tokens).
.PP
Configure as normal using the \f[C]other\f[] type.
Don\[aq]t enter a username or password, instead enter your Macaroon as
the \f[C]bearer_token\f[].
.PP
The config will end up looking something like this.
.IP
.nf
\f[C]
[dcache]
type\ =\ webdav
url\ =\ https://dcache...
vendor\ =\ other
user\ =
pass\ =
bearer_token\ =\ your\-macaroon
\f[]
.fi
.PP
There is a
2019-02-09 10:42:57 +00:00
script (https://github.com/sara-nl/GridScripts/blob/master/get-macaroon)
2018-09-01 11:58:00 +00:00
that obtains a Macaroon from a dCache WebDAV endpoint, and creates an
rclone config file.
2017-09-30 13:19:47 +00:00
.SS Yandex Disk
2017-03-18 11:16:43 +00:00
.PP
2017-09-30 13:19:47 +00:00
Yandex Disk (https://disk.yandex.com) is a cloud storage solution
created by Yandex (https://yandex.com).
2017-03-18 11:16:43 +00:00
.PP
2017-09-30 13:19:47 +00:00
Yandex paths may be as deep as required, eg
\f[C]remote:directory/subdirectory\f[].
2017-03-18 11:16:43 +00:00
.PP
2017-09-30 13:19:47 +00:00
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.
2017-03-18 11:16:43 +00:00
.PP
2017-09-30 13:19:47 +00:00
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.
2017-03-18 11:16:43 +00:00
.PP
2017-09-30 13:19:47 +00:00
Once configured you can then use \f[C]rclone\f[] like this,
.PP
See top level directories
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ lsd\ remote:
\f[]
.fi
.PP
2017-09-30 13:19:47 +00:00
Make a new directory
.IP
.nf
\f[C]
2017-09-30 13:19:47 +00:00
rclone\ mkdir\ remote:directory
\f[]
.fi
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
List the contents of a directory
.IP
.nf
\f[C]
rclone\ ls\ remote:directory
\f[]
.fi
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
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 Modified time
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
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
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
MD5 checksums are natively supported by Yandex Disk.
.SS Emptying Trash
2017-07-22 17:16:46 +00:00
.PP
2017-09-30 13:19:47 +00:00
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.
2018-11-24 13:44:25 +00:00
.SS Quota information
.PP
To view your current quota you can use the
\f[C]rclone\ about\ remote:\f[] command which will display your usage
limit (quota) and the current usage.
2019-02-09 10:42:57 +00:00
.SS Limitations
.PP
When uploading very large files (bigger than about 5GB) you will need to
increase the \f[C]\-\-timeout\f[] parameter.
This is because Yandex pauses (perhaps to calculate the MD5SUM for the
entire file) before returning confirmation that the file has been
uploaded.
The default handling of timeouts in rclone is to assume a 5 minute pause
is an error and close the connection \- you\[aq]ll see
\f[C]net/http:\ timeout\ awaiting\ response\ headers\f[] errors in the
logs if this is happening.
Setting the timeout to twice the max size of file in GB should be
enough, so if you want to upload a 30GB file set a timeout of
\f[C]2\ *\ 30\ =\ 60m\f[], that is \f[C]\-\-timeout\ 60m\f[].
2018-10-15 10:03:08 +00:00
.SS Standard Options
.PP
Here are the standard options specific to yandex (Yandex Disk).
.SS \-\-yandex\-client\-id
.PP
Yandex Client Id Leave blank normally.
.IP \[bu] 2
Config: client_id
.IP \[bu] 2
Env Var: RCLONE_YANDEX_CLIENT_ID
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.SS \-\-yandex\-client\-secret
.PP
Yandex Client Secret Leave blank normally.
.IP \[bu] 2
Config: client_secret
.IP \[bu] 2
Env Var: RCLONE_YANDEX_CLIENT_SECRET
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
2018-11-24 13:44:25 +00:00
.SS Advanced Options
.PP
Here are the advanced options specific to yandex (Yandex Disk).
.SS \-\-yandex\-unlink
.PP
Remove existing public link to file/folder with link command rather than
creating.
Default is false, meaning link command will create or retrieve public
link.
.IP \[bu] 2
Config: unlink
.IP \[bu] 2
Env Var: RCLONE_YANDEX_UNLINK
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS Local Filesystem
.PP
Local paths are specified as normal filesystem paths, eg
\f[C]/path/to/wherever\f[], so
.IP
.nf
\f[C]
rclone\ sync\ /home/source\ /tmp/destination
\f[]
.fi
.PP
Will sync \f[C]/home/source\f[] to \f[C]/tmp/destination\f[]
.PP
These can be configured into the config file for consistencies sake, but
it is probably easier not to.
.SS Modified time
.PP
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.
.SS Filenames
.PP
Filenames are expected to be encoded in UTF\-8 on disk.
This is the normal case for Windows and OS X.
2016-03-01 09:00:01 +00:00
.PP
There is a bit more uncertainty in the Linux world, but new
distributions will have UTF\-8 encoded files names.
2016-03-01 09:00:01 +00:00
If you are using an old Linux filesystem with non UTF\-8 file names (eg
latin1) then you can use the \f[C]convmv\f[] tool to convert the
filesystem to UTF\-8.
This tool is available in most distributions\[aq] package managers.
.PP
2017-12-23 13:07:45 +00:00
If an invalid (non\-UTF8) filename is read, the invalid characters will
be replaced with the unicode replacement character, \[aq]�\[aq].
\f[C]rclone\f[] will emit a debug message in this case (use \f[C]\-v\f[]
to see), eg
.IP
.nf
\f[C]
Local\ file\ system\ at\ .:\ Replacing\ invalid\ UTF\-8\ characters\ in\ "gro\\xdf"
\f[]
.fi
.SS Long paths on Windows
.PP
Rclone handles long paths automatically, by converting all paths to long
UNC
paths (https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#maxpath)
which allows paths up to 32,767 characters.
.PP
This is why you will see that your paths, for instance
\f[C]c:\\files\f[] is converted to the UNC path
\f[C]\\\\?\\c:\\files\f[] in the output, and \f[C]\\\\server\\share\f[]
is converted to \f[C]\\\\?\\UNC\\server\\share\f[].
.PP
However, in rare cases this may cause problems with buggy file system
drivers like EncFS (https://github.com/ncw/rclone/issues/261).
To disable UNC conversion globally, add this to your
\f[C]\&.rclone.conf\f[] file:
.IP
.nf
\f[C]
[local]
nounc\ =\ true
\f[]
.fi
.PP
If you want to selectively disable UNC, you can add it to a separate
entry like this:
.IP
.nf
\f[C]
[nounc]
type\ =\ local
nounc\ =\ true
\f[]
.fi
.PP
And use rclone like this:
.PP
\f[C]rclone\ copy\ c:\\src\ nounc:z:\\dst\f[]
.PP
This will use UNC paths on \f[C]c:\\src\f[] but not on \f[C]z:\\dst\f[].
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.
2018-10-15 10:03:08 +00:00
.SS Symlinks / Junction points
2017-03-18 11:16:43 +00:00
.PP
Normally rclone will ignore symlinks or junction points (which behave
like symlinks under Windows).
.PP
2018-10-15 10:03:08 +00:00
If you supply \f[C]\-\-copy\-links\f[] or \f[C]\-L\f[] then rclone will
follow the symlink and copy the pointed to file or directory.
2019-02-09 10:42:57 +00:00
Note that this flag is incompatible with \f[C]\-links\f[] /
\f[C]\-l\f[].
2017-03-18 11:16:43 +00:00
.PP
This flag applies to all commands.
.PP
For example, supposing you have a directory structure like this
.IP
.nf
\f[C]
$\ tree\ /tmp/a
/tmp/a
├──\ b\ \->\ ../b
├──\ expected\ \->\ ../expected
├──\ one
└──\ two
\ \ \ \ └──\ three
\f[]
.fi
.PP
Then you can see the difference with and without the flag like this
.IP
.nf
\f[C]
$\ rclone\ ls\ /tmp/a
\ \ \ \ \ \ \ \ 6\ one
\ \ \ \ \ \ \ \ 6\ two/three
\f[]
.fi
.PP
and
.IP
.nf
\f[C]
$\ rclone\ \-L\ ls\ /tmp/a
\ \ \ \ \ 4174\ expected
\ \ \ \ \ \ \ \ 6\ one
\ \ \ \ \ \ \ \ 6\ two/three
\ \ \ \ \ \ \ \ 6\ b/two
\ \ \ \ \ \ \ \ 6\ b/one
\f[]
.fi
2019-02-09 10:42:57 +00:00
.SS \-\-links, \-l
.PP
Normally rclone will ignore symlinks or junction points (which behave
like symlinks under Windows).
.PP
If you supply this flag then rclone will copy symbolic links from the
local storage, and store them as text files, with a
\[aq].rclonelink\[aq] suffix in the remote storage.
.PP
The text file will contain the target of the symbolic link (see
example).
.PP
This flag applies to all commands.
.PP
For example, supposing you have a directory structure like this
.IP
.nf
\f[C]
$\ tree\ /tmp/a
/tmp/a
├──\ file1\ \->\ ./file4
└──\ file2\ \->\ /home/user/file3
\f[]
.fi
.PP
Copying the entire directory with \[aq]\-l\[aq]
.IP
.nf
\f[C]
$\ rclone\ copyto\ \-l\ /tmp/a/file1\ remote:/tmp/a/
\f[]
.fi
.PP
The remote files are created with a \[aq].rclonelink\[aq] suffix
.IP
.nf
\f[C]
$\ rclone\ ls\ remote:/tmp/a
\ \ \ \ \ \ \ 5\ file1.rclonelink
\ \ \ \ \ \ 14\ file2.rclonelink
\f[]
.fi
.PP
The remote files will contain the target of the symbolic links
.IP
.nf
\f[C]
$\ rclone\ cat\ remote:/tmp/a/file1.rclonelink
\&./file4
$\ rclone\ cat\ remote:/tmp/a/file2.rclonelink
/home/user/file3
\f[]
.fi
.PP
Copying them back with \[aq]\-l\[aq]
.IP
.nf
\f[C]
$\ rclone\ copyto\ \-l\ remote:/tmp/a/\ /tmp/b/
$\ tree\ /tmp/b
/tmp/b
├──\ file1\ \->\ ./file4
└──\ file2\ \->\ /home/user/file3
\f[]
.fi
.PP
However, if copied back without \[aq]\-l\[aq]
.IP
.nf
\f[C]
$\ rclone\ copyto\ remote:/tmp/a/\ /tmp/b/
$\ tree\ /tmp/b
/tmp/b
├──\ file1.rclonelink
└──\ file2.rclonelink
\f[]
.fi
.PP
Note that this flag is incompatible with \f[C]\-copy\-links\f[] /
\f[C]\-L\f[].
2018-10-15 10:03:08 +00:00
.SS Restricting filesystems with \-\-one\-file\-system
2018-04-28 10:46:27 +00:00
.PP
2018-10-15 10:03:08 +00:00
Normally rclone will recurse through filesystems as mounted.
2016-11-06 10:17:52 +00:00
.PP
2018-10-15 10:03:08 +00:00
However if you set \f[C]\-\-one\-file\-system\f[] or \f[C]\-x\f[] this
tells rclone to stay in the filesystem specified by the root and not to
recurse into different file systems.
2016-11-06 10:17:52 +00:00
.PP
2017-12-23 13:07:45 +00:00
For example if you have a directory hierarchy like this
2016-11-06 10:17:52 +00:00
.IP
.nf
\f[C]
root
├──\ disk1\ \ \ \ \ \-\ disk1\ mounted\ on\ the\ root
\ \ \ └──\ file3\ \-\ stored\ on\ disk1
├──\ disk2\ \ \ \ \ \-\ disk2\ mounted\ on\ the\ root
\ \ \ └──\ file4\ \-\ stored\ on\ disk12
├──\ file1\ \ \ \ \ \-\ stored\ on\ the\ root\ disk
└──\ file2\ \ \ \ \ \-\ stored\ on\ the\ root\ disk
\f[]
.fi
.PP
Using \f[C]rclone\ \-\-one\-file\-system\ copy\ root\ remote:\f[] will
only copy \f[C]file1\f[] and \f[C]file2\f[].
Eg
.IP
.nf
\f[C]
$\ rclone\ \-q\ \-\-one\-file\-system\ ls\ root
\ \ \ \ \ \ \ \ 0\ file1
\ \ \ \ \ \ \ \ 0\ file2
\f[]
.fi
.IP
.nf
\f[C]
$\ rclone\ \-q\ ls\ root
\ \ \ \ \ \ \ \ 0\ disk1/file3
\ \ \ \ \ \ \ \ 0\ disk2/file4
\ \ \ \ \ \ \ \ 0\ file1
\ \ \ \ \ \ \ \ 0\ file2
\f[]
.fi
.PP
2018-10-15 10:03:08 +00:00
\f[B]NB\f[] Rclone (like most unix tools such as \f[C]du\f[],
\f[C]rsync\f[] and \f[C]tar\f[]) treats a bind mount to the same device
as being on the same filesystem.
.PP
\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 be ignored.
.SS Standard Options
.PP
Here are the standard options specific to local (Local Disk).
.SS \-\-local\-nounc
.PP
Disable UNC (long path names) conversion on Windows
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Config: nounc
.IP \[bu] 2
Env Var: RCLONE_LOCAL_NOUNC
.IP \[bu] 2
Type: string
.IP \[bu] 2
Default: ""
.IP \[bu] 2
Examples:
.RS 2
.IP \[bu] 2
"true"
.RS 2
.IP \[bu] 2
Disables long file names
.RE
.RE
.SS Advanced Options
.PP
Here are the advanced options specific to local (Local Disk).
.SS \-\-copy\-links
.PP
Follow symlinks and copy the pointed to item.
.IP \[bu] 2
Config: copy_links
.IP \[bu] 2
Env Var: RCLONE_LOCAL_COPY_LINKS
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS \-\-links
.PP
Translate symlinks to/from regular files with a \[aq].rclonelink\[aq]
extension
.IP \[bu] 2
Config: links
.IP \[bu] 2
Env Var: RCLONE_LOCAL_LINKS
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS \-\-skip\-links
.PP
Don\[aq]t warn about skipped symlinks.
This flag disables warning messages on skipped symlinks or junction
points, as you explicitly acknowledge that they should be skipped.
.IP \[bu] 2
Config: skip_links
.IP \[bu] 2
Env Var: RCLONE_LOCAL_SKIP_LINKS
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS \-\-local\-no\-unicode\-normalization
.PP
Don\[aq]t apply unicode normalization to paths and filenames
(Deprecated)
.PP
This flag is deprecated now.
Rclone no longer normalizes unicode file names, but it compares them
with unicode normalization in the sync routine instead.
.IP \[bu] 2
Config: no_unicode_normalization
.IP \[bu] 2
Env Var: RCLONE_LOCAL_NO_UNICODE_NORMALIZATION
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS \-\-local\-no\-check\-updated
.PP
Don\[aq]t check to see if the files change during upload
.PP
Normally rclone checks the size and modification time of files as they
are being uploaded and aborts with a message which starts "can\[aq]t
copy \- source file is being updated" if the file changes during upload.
.PP
However on some file systems this modification time check may fail (eg
Glusterfs #2206 (https://github.com/ncw/rclone/issues/2206)) so this
check can be disabled with this flag.
.IP \[bu] 2
Config: no_check_updated
.IP \[bu] 2
Env Var: RCLONE_LOCAL_NO_CHECK_UPDATED
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SS \-\-one\-file\-system
.PP
Don\[aq]t cross filesystem boundaries (unix/macOS only).
.IP \[bu] 2
Config: one_file_system
.IP \[bu] 2
Env Var: RCLONE_LOCAL_ONE_FILE_SYSTEM
.IP \[bu] 2
Type: bool
.IP \[bu] 2
Default: false
.SH Changelog
.SS v1.46 \- 2019\-02\-09
.IP \[bu] 2
New backends
.RS 2
.IP \[bu] 2
Support Alibaba Cloud (Aliyun) OSS via the s3 backend (Nick Craig\-Wood)
.RE
.IP \[bu] 2
New commands
.RS 2
.IP \[bu] 2
serve dlna: serves a remove via DLNA for the local network (nicolov)
.RE
.IP \[bu] 2
New Features
.RS 2
.IP \[bu] 2
copy, move: Restore deprecated \f[C]\-\-no\-traverse\f[] flag (Nick
Craig\-Wood)
.RS 2
.IP \[bu] 2
This is useful for when transferring a small number of files into a
large destination
.RE
.IP \[bu] 2
genautocomplete: Add remote path completion for bash completion
(Christopher Peterson & Danil Semelenov)
.IP \[bu] 2
Buffer memory handling reworked to return memory to the OS better (Nick
Craig\-Wood)
.RS 2
.IP \[bu] 2
Buffer recycling library to replace sync.Pool
.IP \[bu] 2
Optionally use memory mapped memory for better memory shrinking
.IP \[bu] 2
Enable with \f[C]\-\-use\-mmap\f[] if having memory problems \- not
default yet
.RE
.IP \[bu] 2
Parallelise reading of files specified by \f[C]\-\-files\-from\f[] (Nick
Craig\-Wood)
.IP \[bu] 2
check: Add stats showing total files matched.
(Dario Guzik)
.IP \[bu] 2
Allow rename/delete open files under Windows (Nick Craig\-Wood)
.IP \[bu] 2
lsjson: Use exactly the correct number of decimal places in the seconds
(Nick Craig\-Wood)
.IP \[bu] 2
Add cookie support with cmdline switch \f[C]\-\-use\-cookies\f[] for all
HTTP based remotes (qip)
.IP \[bu] 2
Warn if \f[C]\-\-checksum\f[] is set but there are no hashes available
(Nick Craig\-Wood)
.IP \[bu] 2
Rework rate limiting (pacer) to be more accurate and allow bursting
(Nick Craig\-Wood)
.IP \[bu] 2
Improve error reporting for too many/few arguments in commands (Nick
Craig\-Wood)
.IP \[bu] 2
listremotes: Remove \f[C]\-l\f[] short flag as it conflicts with the new
global flag (weetmuts)
.IP \[bu] 2
Make http serving with auth generate INFO messages on auth fail (Nick
Craig\-Wood)
.RE
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Bug Fixes
.RS 2
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Fix layout of stats (Nick Craig\-Wood)
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Fix \f[C]\-\-progress\f[] crash under Windows Jenkins (Nick Craig\-Wood)
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Fix transfer of google/onedrive docs by calling Rcat in Copy when size
is \-1 (Cnly)
.IP \[bu] 2
copyurl: Fix checking of \f[C]\-\-dry\-run\f[] (Denis Skovpen)
.RE
.IP \[bu] 2
Mount
2018-10-15 10:03:08 +00:00
.RS 2
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Check that mountpoint and local directory to mount don\[aq]t overlap
(Nick Craig\-Wood)
.IP \[bu] 2
Fix mount size under 32 bit Windows (Nick Craig\-Wood)
.RE
.IP \[bu] 2
VFS
2018-10-15 10:03:08 +00:00
.RS 2
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Implement renaming of directories for backends without DirMove (Nick
Craig\-Wood)
.RS 2
.IP \[bu] 2
now all backends except b2 support renaming directories
2018-10-15 10:03:08 +00:00
.RE
2019-02-09 10:42:57 +00:00
.IP \[bu] 2
Implement \f[C]\-\-vfs\-cache\-max\-size\f[] to limit the total size of
the cache (Nick Craig\-Wood)
.IP \[bu] 2
Add \f[C]\-\-dir\-perms\f[] and \f[C]\-\-file\-perms\f[] flags to set
default permissions (Nick Craig\-Wood)
.IP \[bu] 2
Fix deadlock on concurrent operations on a directory (Nick Craig\-Wood)
.IP \[bu] 2
Fix deadlock between RWFileHandle.close and File.Remove (Nick
Craig\-Wood)
.IP \[bu] 2
Fix renaming/deleting open files with cache mode "writes" under Windows
(Nick Craig\-Wood)
.IP \[bu] 2
Fix panic on rename with \f[C]\-\-dry\-run\f[] set (Nick Craig\-Wood)
.IP \[bu] 2
Fix vfs/refresh with recurse=true needing the \f[C]\-\-fast\-list\f[]
flag
2018-10-15 10:03:08 +00:00
.RE
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Local
.RS 2
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Add support for \f[C]\-l\f[]/\f[C]\-\-links\f[] (symbolic link
translation) (yair\@unicorn)
.RS 2
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
this works by showing links as \f[C]link.rclonelink\f[] \- see local
backend docs for more info
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
this errors if used with \f[C]\-L\f[]/\f[C]\-\-copy\-links\f[]
.RE
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Fix renaming/deleting open files on Windows (Nick Craig\-Wood)
.RE
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Crypt
.RS 2
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Check for maximum length before decrypting filename to fix panic (Garry
McNulty)
.RE
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Azure Blob
.RS 2
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Allow building azureblob backend on *BSD (themylogin)
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Use the rclone HTTP client to support \f[C]\-\-dump\ headers\f[],
\f[C]\-\-tpslimit\f[] etc (Nick Craig\-Wood)
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Use the s3 pacer for 0 delay in non error conditions (Nick Craig\-Wood)
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Ignore directory markers (Nick Craig\-Wood)
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Stop Mkdir attempting to create existing containers (Nick Craig\-Wood)
.RE
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
B2
.RS 2
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
cleanup: will remove unfinished large files >24hrs old (Garry McNulty)
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
For a bucket limited application key check the bucket name (Nick
Craig\-Wood)
.RS 2
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
before this, rclone would use the authorised bucket regardless of what
you put on the command line
.RE
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Added \f[C]\-\-b2\-disable\-checksum\f[] flag (Wojciech Smigielski)
.RS 2
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
this enables large files to be uploaded without a SHA\-1 hash for speed
reasons
.RE
.RE
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
2019-02-09 10:42:57 +00:00
Drive
.RS 2
.IP \[bu] 2
Set default pacer to 100ms for 10 tps (Nick Craig\-Wood)
.RS 2
.IP \[bu] 2
This fits the Google defaults much better and reduces the 403 errors
massively
.IP \[bu] 2
Add \f[C]\-\-drive\-pacer\-min\-sleep\f[] and
\f[C]\-\-drive\-pacer\-burst\f[] to control the pacer
.RE
.IP \[bu] 2
Improve ChangeNotify support for items with multiple parents (Fabian
Möller)
.IP \[bu] 2
Fix ListR for items with multiple parents \- this fixes oddities with
\f[C]vfs/refresh\f[] (Fabian Möller)
.IP \[bu] 2
Fix using \f[C]\-\-drive\-impersonate\f[] and appfolders (Nick
Craig\-Wood)
.IP \[bu] 2
Fix google docs in rclone mount for some (not all) applications (Nick
Craig\-Wood)
.RE
.IP \[bu] 2
Dropbox
.RS 2
.IP \[bu] 2
Retry\-After support for Dropbox backend (Mathieu Carbou)
.RE
.IP \[bu] 2
FTP
.RS 2
.IP \[bu] 2
Wait for 60 seconds for a connection to Close then declare it dead (Nick
Craig\-Wood)
.RS 2
.IP \[bu] 2
helps with indefinite hangs on some FTP servers
.RE
.RE
.IP \[bu] 2
Google Cloud Storage
.RS 2
.IP \[bu] 2
Update google cloud storage endpoints (weetmuts)
.RE
.IP \[bu] 2
HTTP
.RS 2
.IP \[bu] 2
Add an example with username and password which is supported but
wasn\[aq]t documented (Nick Craig\-Wood)
.IP \[bu] 2
Fix backend with \f[C]\-\-files\-from\f[] and non\-existent files (Nick
Craig\-Wood)
.RE
.IP \[bu] 2
Hubic
.RS 2
.IP \[bu] 2
Make error message more informative if authentication fails (Nick
Craig\-Wood)
.RE
.IP \[bu] 2
Jottacloud
.RS 2
.IP \[bu] 2
Resume and deduplication support (Oliver Heyme)
.IP \[bu] 2
Use token auth for all API requests Don\[aq]t store password anymore
(Sebastian Bünger)
.IP \[bu] 2
Add support for 2\-factor authentification (Sebastian Bünger)
.RE
.IP \[bu] 2
Mega
.RS 2
.IP \[bu] 2
Implement v2 account login which fixes logins for newer Mega accounts
(Nick Craig\-Wood)
.IP \[bu] 2
Return error if an unknown length file is attempted to be uploaded (Nick
Craig\-Wood)
.IP \[bu] 2
Add new error codes for better error reporting (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Onedrive
.RS 2
.IP \[bu] 2
Fix broken support for "shared with me" folders (Alex Chen)
.IP \[bu] 2
Fix root ID not normalised (Cnly)
.IP \[bu] 2
Return err instead of panic on unknown\-sized uploads (Cnly)
.RE
.IP \[bu] 2
Qingstor
.RS 2
.IP \[bu] 2
Fix go routine leak on multipart upload errors (Nick Craig\-Wood)
.IP \[bu] 2
Add upload chunk size/concurrency/cutoff control (Nick Craig\-Wood)
.IP \[bu] 2
Default \f[C]\-\-qingstor\-upload\-concurrency\f[] to 1 to work around
bug (Nick Craig\-Wood)
.RE
.IP \[bu] 2
S3
.RS 2
.IP \[bu] 2
Implement \f[C]\-\-s3\-upload\-cutoff\f[] for single part uploads below
this (Nick Craig\-Wood)
.IP \[bu] 2
Change \f[C]\-\-s3\-upload\-concurrency\f[] default to 4 to increase
perfomance (Nick Craig\-Wood)
.IP \[bu] 2
Add \f[C]\-\-s3\-bucket\-acl\f[] to control bucket ACL (Nick
Craig\-Wood)
.IP \[bu] 2
Auto detect region for buckets on operation failure (Nick Craig\-Wood)
.IP \[bu] 2
Add GLACIER storage class (William Cocker)
.IP \[bu] 2
Add Scaleway to s3 documentation (Rémy Léone)
.IP \[bu] 2
Add AWS endpoint eu\-north\-1 (weetmuts)
.RE
.IP \[bu] 2
SFTP
.RS 2
.IP \[bu] 2
Add support for PEM encrypted private keys (Fabian Möller)
.IP \[bu] 2
Add option to force the usage of an ssh\-agent (Fabian Möller)
.IP \[bu] 2
Perform environment variable expansion on key\-file (Fabian Möller)
.IP \[bu] 2
Fix rmdir on Windows based servers (eg CrushFTP) (Nick Craig\-Wood)
.IP \[bu] 2
Fix rmdir deleting directory contents on some SFTP servers (Nick
Craig\-Wood)
.IP \[bu] 2
Fix error on dangling symlinks (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Swift
.RS 2
.IP \[bu] 2
Add \f[C]\-\-swift\-no\-chunk\f[] to disable segmented uploads in
rcat/mount (Nick Craig\-Wood)
.IP \[bu] 2
Introduce application credential auth support (kayrus)
.IP \[bu] 2
Fix memory usage by slimming Object (Nick Craig\-Wood)
.IP \[bu] 2
Fix extra requests on upload (Nick Craig\-Wood)
.IP \[bu] 2
Fix reauth on big files (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Union
.RS 2
.IP \[bu] 2
Fix poll\-interval not working (Nick Craig\-Wood)
.RE
.IP \[bu] 2
WebDAV
.RS 2
.IP \[bu] 2
Support About which means rclone mount will show the correct disk size
(Nick Craig\-Wood)
.IP \[bu] 2
Support MD5 and SHA1 hashes with Owncloud and Nextcloud (Nick
Craig\-Wood)
.IP \[bu] 2
Fail soft on time parsing errors (Nick Craig\-Wood)
.IP \[bu] 2
Fix infinite loop on failed directory creation (Nick Craig\-Wood)
.IP \[bu] 2
Fix identification of directories for Bitrix Site Manager (Nick
Craig\-Wood)
.IP \[bu] 2
Fix upload of 0 length files on some servers (Nick Craig\-Wood)
.IP \[bu] 2
Fix if MKCOL fails with 423 Locked assume the directory exists (Nick
Craig\-Wood)
.RE
2018-11-24 13:44:25 +00:00
.SS v1.45 \- 2018\-11\-24
.IP \[bu] 2
New backends
.RS 2
.IP \[bu] 2
The Yandex backend was re\-written \- see below for details (Sebastian
Bünger)
.RE
.IP \[bu] 2
New commands
.RS 2
.IP \[bu] 2
rcd: New command just to serve the remote control API (Nick Craig\-Wood)
.RE
.IP \[bu] 2
New Features
.RS 2
.IP \[bu] 2
The remote control API (rc) was greatly expanded to allow full control
over rclone (Nick Craig\-Wood)
.RS 2
.IP \[bu] 2
sensitive operations require authorization or the
\f[C]\-\-rc\-no\-auth\f[] flag
.IP \[bu] 2
config/* operations to configure rclone
.IP \[bu] 2
options/* for reading/setting command line flags
.IP \[bu] 2
operations/* for all low level operations, eg copy file, list directory
.IP \[bu] 2
sync/* for sync, copy and move
.IP \[bu] 2
\f[C]\-\-rc\-files\f[] flag to serve files on the rc http server
.IP \[bu] 2
this is for building web native GUIs for rclone
.IP \[bu] 2
Optionally serving objects on the rc http server
.IP \[bu] 2
Ensure rclone fails to start up if the \f[C]\-\-rc\f[] port is in use
already
.IP \[bu] 2
See the rc docs (https://rclone.org/rc/) for more info
.RE
.IP \[bu] 2
sync/copy/move
.RS 2
.IP \[bu] 2
Make \f[C]\-\-files\-from\f[] only read the objects specified and
don\[aq]t scan directories (Nick Craig\-Wood)
.RS 2
.IP \[bu] 2
This is a huge speed improvement for destinations with lots of files
.RE
.RE
.IP \[bu] 2
filter: Add \f[C]\-\-ignore\-case\f[] flag (Nick Craig\-Wood)
.IP \[bu] 2
ncdu: Add remove function (\[aq]d\[aq] key) (Henning Surmeier)
.IP \[bu] 2
rc command
.RS 2
.IP \[bu] 2
Add \f[C]\-\-json\f[] flag for structured JSON input (Nick Craig\-Wood)
.IP \[bu] 2
Add \f[C]\-\-user\f[] and \f[C]\-\-pass\f[] flags and interpret
\f[C]\-\-rc\-user\f[], \f[C]\-\-rc\-pass\f[], \f[C]\-\-rc\-addr\f[]
(Nick Craig\-Wood)
.RE
.IP \[bu] 2
build
.RS 2
.IP \[bu] 2
Require go1.8 or later for compilation (Nick Craig\-Wood)
.IP \[bu] 2
Enable softfloat on MIPS arch (Scott Edlund)
.IP \[bu] 2
Integration test framework revamped with a better report and better
retries (Nick Craig\-Wood)
.RE
.RE
.IP \[bu] 2
Bug Fixes
.RS 2
.IP \[bu] 2
cmd: Make \-\-progress update the stats correctly at the end (Nick
Craig\-Wood)
.IP \[bu] 2
config: Create config directory on save if it is missing (Nick
Craig\-Wood)
.IP \[bu] 2
dedupe: Check for existing filename before renaming a dupe file (ssaqua)
.IP \[bu] 2
move: Don\[aq]t create directories with \-\-dry\-run (Nick Craig\-Wood)
.IP \[bu] 2
operations: Fix Purge and Rmdirs when dir is not the root (Nick
Craig\-Wood)
.IP \[bu] 2
serve http/webdav/restic: Ensure rclone exits if the port is in use
(Nick Craig\-Wood)
.RE
.IP \[bu] 2
Mount
.RS 2
.IP \[bu] 2
Make \f[C]\-\-volname\f[] work for Windows and macOS (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Azure Blob
.RS 2
.IP \[bu] 2
Avoid context deadline exceeded error by setting a large TryTimeout
value (brused27)
.IP \[bu] 2
Fix erroneous Rmdir error "directory not empty" (Nick Craig\-Wood)
.IP \[bu] 2
Wait for up to 60s to create a just deleted container (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Dropbox
.RS 2
.IP \[bu] 2
Add dropbox impersonate support (Jake Coggiano)
.RE
.IP \[bu] 2
Jottacloud
.RS 2
.IP \[bu] 2
Fix bug in \f[C]\-\-fast\-list\f[] handing of empty folders (albertony)
.RE
.IP \[bu] 2
Opendrive
.RS 2
.IP \[bu] 2
Fix transfer of files with \f[C]+\f[] and \f[C]&\f[] in (Nick
Craig\-Wood)
.IP \[bu] 2
Fix retries of upload chunks (Nick Craig\-Wood)
.RE
.IP \[bu] 2
S3
.RS 2
.IP \[bu] 2
Set ACL for server side copies to that provided by the user (Nick
Craig\-Wood)
.IP \[bu] 2
Fix role_arn, credential_source, ...
(Erik Swanson)
.IP \[bu] 2
Add config info for Wasabi\[aq]s US\-West endpoint (Henry Ptasinski)
.RE
.IP \[bu] 2
SFTP
.RS 2
.IP \[bu] 2
Ensure file hash checking is really disabled (Jon Fautley)
.RE
.IP \[bu] 2
Swift
.RS 2
.IP \[bu] 2
Add pacer for retries to make swift more reliable (Nick Craig\-Wood)
.RE
.IP \[bu] 2
WebDAV
.RS 2
.IP \[bu] 2
Add Content\-Type to PUT requests (Nick Craig\-Wood)
.IP \[bu] 2
Fix config parsing so \f[C]\-\-webdav\-user\f[] and
\f[C]\-\-webdav\-pass\f[] flags work (Nick Craig\-Wood)
.IP \[bu] 2
Add RFC3339 date format (Ralf Hemberger)
.RE
.IP \[bu] 2
Yandex
.RS 2
.IP \[bu] 2
The yandex backend was re\-written (Sebastian Bünger)
.RS 2
.IP \[bu] 2
This implements low level retries (Sebastian Bünger)
.IP \[bu] 2
Copy, Move, DirMove, PublicLink and About optional interfaces (Sebastian
Bünger)
.IP \[bu] 2
Improved general error handling (Sebastian Bünger)
.IP \[bu] 2
Removed ListR for now due to inconsistent behaviour (Sebastian Bünger)
.RE
.RE
2018-10-15 10:03:08 +00:00
.SS v1.44 \- 2018\-10\-15
.IP \[bu] 2
New commands
.RS 2
.IP \[bu] 2
serve ftp: Add ftp server (Antoine GIRARD)
.IP \[bu] 2
settier: perform storage tier changes on supported remotes (sandeepkru)
.RE
.IP \[bu] 2
New Features
.RS 2
.IP \[bu] 2
Reworked command line help
.RS 2
.IP \[bu] 2
Make default help less verbose (Nick Craig\-Wood)
.IP \[bu] 2
Split flags up into global and backend flags (Nick Craig\-Wood)
.IP \[bu] 2
Implement specialised help for flags and backends (Nick Craig\-Wood)
.IP \[bu] 2
Show URL of backend help page when starting config (Nick Craig\-Wood)
.RE
.IP \[bu] 2
stats: Long names now split in center (Joanna Marek)
.IP \[bu] 2
Add \-\-log\-format flag for more control over log output (dcpu)
.IP \[bu] 2
rc: Add support for OPTIONS and basic CORS (frenos)
.IP \[bu] 2
stats: show FatalErrors and NoRetryErrors in stats (Cédric Connes)
.RE
.IP \[bu] 2
Bug Fixes
.RS 2
.IP \[bu] 2
Fix \-P not ending with a new line (Nick Craig\-Wood)
.IP \[bu] 2
config: don\[aq]t create default config dir when user supplies
\-\-config (albertony)
.IP \[bu] 2
Don\[aq]t print non\-ASCII characters with \-\-progress on windows (Nick
Craig\-Wood)
.IP \[bu] 2
Correct logs for excluded items (ssaqua)
.RE
.IP \[bu] 2
Mount
.RS 2
.IP \[bu] 2
Remove EXPERIMENTAL tags (Nick Craig\-Wood)
.RE
.IP \[bu] 2
VFS
.RS 2
.IP \[bu] 2
Fix race condition detected by serve ftp tests (Nick Craig\-Wood)
.IP \[bu] 2
Add vfs/poll\-interval rc command (Fabian Möller)
.IP \[bu] 2
Enable rename for nearly all remotes using server side Move or Copy
(Nick Craig\-Wood)
.IP \[bu] 2
Reduce directory cache cleared by poll\-interval (Fabian Möller)
.IP \[bu] 2
Remove EXPERIMENTAL tags (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Local
.RS 2
.IP \[bu] 2
Skip bad symlinks in dir listing with \-L enabled (Cédric Connes)
.IP \[bu] 2
Preallocate files on Windows to reduce fragmentation (Nick Craig\-Wood)
.IP \[bu] 2
Preallocate files on linux with fallocate(2) (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Cache
.RS 2
.IP \[bu] 2
Add cache/fetch rc function (Fabian Möller)
.IP \[bu] 2
Fix worker scale down (Fabian Möller)
.IP \[bu] 2
Improve performance by not sending info requests for cached chunks
(dcpu)
.IP \[bu] 2
Fix error return value of cache/fetch rc method (Fabian Möller)
.IP \[bu] 2
Documentation fix for cache\-chunk\-total\-size (Anagh Kumar Baranwal)
.IP \[bu] 2
Preserve leading / in wrapped remote path (Fabian Möller)
.IP \[bu] 2
Add plex_insecure option to skip certificate validation (Fabian Möller)
.IP \[bu] 2
Remove entries that no longer exist in the source (dcpu)
.RE
.IP \[bu] 2
Crypt
.RS 2
.IP \[bu] 2
Preserve leading / in wrapped remote path (Fabian Möller)
.RE
.IP \[bu] 2
Alias
.RS 2
.IP \[bu] 2
Fix handling of Windows network paths (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Azure Blob
.RS 2
.IP \[bu] 2
Add \-\-azureblob\-list\-chunk parameter (Santiago Rodríguez)
.IP \[bu] 2
Implemented settier command support on azureblob remote.
(sandeepkru)
.IP \[bu] 2
Work around SDK bug which causes errors for chunk\-sized files (Nick
Craig\-Wood)
.RE
.IP \[bu] 2
Box
.RS 2
.IP \[bu] 2
Implement link sharing.
(Sebastian Bünger)
.RE
.IP \[bu] 2
Drive
.RS 2
.IP \[bu] 2
Add \-\-drive\-import\-formats \- google docs can now be imported
(Fabian Möller)
.RS 2
.IP \[bu] 2
Rewrite mime type and extension handling (Fabian Möller)
.IP \[bu] 2
Add document links (Fabian Möller)
.IP \[bu] 2
Add support for multipart document extensions (Fabian Möller)
.IP \[bu] 2
Add support for apps\-script to json export (Fabian Möller)
.IP \[bu] 2
Fix escaped chars in documents during list (Fabian Möller)
.RE
.IP \[bu] 2
Add \-\-drive\-v2\-download\-min\-size a workaround for slow downloads
(Fabian Möller)
.IP \[bu] 2
Improve directory notifications in ChangeNotify (Fabian Möller)
.IP \[bu] 2
When listing team drives in config, continue on failure (Nick
Craig\-Wood)
.RE
.IP \[bu] 2
FTP
.RS 2
.IP \[bu] 2
Add a small pause after failed upload before deleting file (Nick
Craig\-Wood)
.RE
.IP \[bu] 2
Google Cloud Storage
.RS 2
.IP \[bu] 2
Fix service_account_file being ignored (Fabian Möller)
.RE
.IP \[bu] 2
Jottacloud
.RS 2
.IP \[bu] 2
Minor improvement in quota info (omit if unlimited) (albertony)
.IP \[bu] 2
Add \-\-fast\-list support (albertony)
.IP \[bu] 2
Add permanent delete support: \-\-jottacloud\-hard\-delete (albertony)
.IP \[bu] 2
Add link sharing support (albertony)
.IP \[bu] 2
Fix handling of reserved characters.
(Sebastian Bünger)
.IP \[bu] 2
Fix socket leak on Object.Remove (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Onedrive
.RS 2
.IP \[bu] 2
Rework to support Microsoft Graph (Cnly)
.RS 2
.IP \[bu] 2
\f[B]NB\f[] this will require re\-authenticating the remote
.RE
.IP \[bu] 2
Removed upload cutoff and always do session uploads (Oliver Heyme)
.IP \[bu] 2
Use single\-part upload for empty files (Cnly)
.IP \[bu] 2
Fix new fields not saved when editing old config (Alex Chen)
.IP \[bu] 2
Fix sometimes special chars in filenames not replaced (Alex Chen)
.IP \[bu] 2
Ignore OneNote files by default (Alex Chen)
.IP \[bu] 2
Add link sharing support (jackyzy823)
.RE
.IP \[bu] 2
S3
.RS 2
.IP \[bu] 2
Use custom pacer, to retry operations when reasonable (Craig Miskell)
.IP \[bu] 2
Use configured server\-side\-encryption and storace class options when
calling CopyObject() (Paul Kohout)
.IP \[bu] 2
Make \-\-s3\-v2\-auth flag (Nick Craig\-Wood)
.IP \[bu] 2
Fix v2 auth on files with spaces (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Union
.RS 2
.IP \[bu] 2
Implement union backend which reads from multiple backends (Felix
Brucker)
.IP \[bu] 2
Implement optional interfaces (Move, DirMove, Copy etc) (Nick
Craig\-Wood)
.IP \[bu] 2
Fix ChangeNotify to support multiple remotes (Fabian Möller)
.IP \[bu] 2
Fix \-\-backup\-dir on union backend (Nick Craig\-Wood)
.RE
.IP \[bu] 2
WebDAV
.RS 2
.IP \[bu] 2
Add another time format (Nick Craig\-Wood)
.IP \[bu] 2
Add a small pause after failed upload before deleting file (Nick
Craig\-Wood)
.IP \[bu] 2
Add workaround for missing mtime (buergi)
.IP \[bu] 2
Sharepoint: Renew cookies after 12hrs (Henning Surmeier)
.RE
.IP \[bu] 2
Yandex
.RS 2
.IP \[bu] 2
Remove redundant nil checks (teresy)
.RE
.SS v1.43.1 \- 2018\-09\-07
.PP
Point release to fix hubic and azureblob backends.
.IP \[bu] 2
Bug Fixes
.RS 2
.IP \[bu] 2
ncdu: Return error instead of log.Fatal in Show (Fabian Möller)
.IP \[bu] 2
cmd: Fix crash with \-\-progress and \-\-stats 0 (Nick Craig\-Wood)
.IP \[bu] 2
docs: Tidy website display (Anagh Kumar Baranwal)
.RE
.IP \[bu] 2
Azure Blob:
.RS 2
.IP \[bu] 2
Fix multi\-part uploads.
(sandeepkru)
.RE
.IP \[bu] 2
Hubic
.RS 2
.IP \[bu] 2
Fix uploads (Nick Craig\-Wood)
.IP \[bu] 2
Retry auth fetching if it fails to make hubic more reliable (Nick
Craig\-Wood)
.RE
.SS v1.43 \- 2018\-09\-01
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
New backends
2018-09-01 11:58:00 +00:00
.RS 2
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
2018-09-01 11:58:00 +00:00
Jottacloud (Sebastian Bünger)
.RE
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
New commands
2018-09-01 11:58:00 +00:00
.RS 2
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
2018-09-01 11:58:00 +00:00
copyurl: copies a URL to a remote (Denis)
.RE
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
New Features
2018-09-01 11:58:00 +00:00
.RS 2
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
2018-09-01 11:58:00 +00:00
Reworked config for backends (Nick Craig\-Wood)
2018-06-16 17:21:09 +00:00
.RS 2
.IP \[bu] 2
2018-09-01 11:58:00 +00:00
All backend config can now be supplied by command line, env var or
config file
.IP \[bu] 2
Advanced section in the config wizard for the optional items
.IP \[bu] 2
A large step towards rclone backends being usable in other go software
.IP \[bu] 2
Allow on the fly remotes with :backend: syntax
2018-06-16 17:21:09 +00:00
.RE
.IP \[bu] 2
2018-09-01 11:58:00 +00:00
Stats revamp
2018-06-16 17:21:09 +00:00
.RS 2
.IP \[bu] 2
2018-09-01 11:58:00 +00:00
Add \f[C]\-\-progress\f[]/\f[C]\-P\f[] flag to show interactive progress
(Nick Craig\-Wood)
.IP \[bu] 2
Show the total progress of the sync in the stats (Nick Craig\-Wood)
.IP \[bu] 2
Add \f[C]\-\-stats\-one\-line\f[] flag for single line stats (Nick
Craig\-Wood)
2018-06-16 17:21:09 +00:00
.RE
.IP \[bu] 2
2018-09-01 11:58:00 +00:00
Added weekday schedule into \f[C]\-\-bwlimit\f[] (Mateusz)
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
2018-09-01 11:58:00 +00:00
lsjson: Add option to show the original object IDs (Fabian Möller)
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
2018-09-01 11:58:00 +00:00
serve webdav: Make Content\-Type without reading the file and add
\f[C]\-\-etag\-hash\f[] (Nick Craig\-Wood)
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
2018-09-01 11:58:00 +00:00
build
2018-06-16 17:21:09 +00:00
.RS 2
.IP \[bu] 2
2018-09-01 11:58:00 +00:00
Build macOS with native compiler (Nick Craig\-Wood)
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
2018-09-01 11:58:00 +00:00
Update to use go1.11 for the build (Nick Craig\-Wood)
.RE
.IP \[bu] 2
rc
.RS 2
.IP \[bu] 2
Added core/stats to return the stats (reddi1)
.RE
.IP \[bu] 2
\f[C]version\ \-\-check\f[]: Prints the current release and beta
versions (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Bug Fixes
.RS 2
.IP \[bu] 2
accounting
.RS 2
.IP \[bu] 2
Fix time to completion estimates (Nick Craig\-Wood)
.IP \[bu] 2
Fix moving average speed for file stats (Nick Craig\-Wood)
.RE
.IP \[bu] 2
config: Fix error reading password from piped input (Nick Craig\-Wood)
.IP \[bu] 2
move: Fix \f[C]\-\-delete\-empty\-src\-dirs\f[] flag to delete all empty
dirs on move (ishuah)
.RE
.IP \[bu] 2
Mount
.RS 2
.IP \[bu] 2
Implement \f[C]\-\-daemon\-timeout\f[] flag for OSXFUSE (Nick
Craig\-Wood)
.IP \[bu] 2
Fix mount \f[C]\-\-daemon\f[] not working with encrypted config (Alex
Chen)
.IP \[bu] 2
Clip the number of blocks to 2^32\-1 on macOS \- fixes borg backup (Nick
Craig\-Wood)
.RE
.IP \[bu] 2
VFS
.RS 2
.IP \[bu] 2
Enable vfs\-read\-chunk\-size by default (Fabian Möller)
.IP \[bu] 2
Add the vfs/refresh rc command (Fabian Möller)
.IP \[bu] 2
Add non recursive mode to vfs/refresh rc command (Fabian Möller)
.IP \[bu] 2
Try to seek buffer on read only files (Fabian Möller)
.RE
.IP \[bu] 2
Local
.RS 2
.IP \[bu] 2
Fix crash when deprecated \f[C]\-\-local\-no\-unicode\-normalization\f[]
is supplied (Nick Craig\-Wood)
.IP \[bu] 2
Fix mkdir error when trying to copy files to the root of a drive on
windows (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Cache
.RS 2
.IP \[bu] 2
Fix nil pointer deref when using lsjson on cached directory (Nick
Craig\-Wood)
.IP \[bu] 2
Fix nil pointer deref for occasional crash on playback (Nick
Craig\-Wood)
.RE
.IP \[bu] 2
Crypt
.RS 2
.IP \[bu] 2
Fix accounting when checking hashes on upload (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Amazon Cloud Drive
.RS 2
.IP \[bu] 2
Make very clear in the docs that rclone has no ACD keys (Nick
Craig\-Wood)
.RE
.IP \[bu] 2
Azure Blob
.RS 2
.IP \[bu] 2
Add connection string and SAS URL auth (Nick Craig\-Wood)
.IP \[bu] 2
List the container to see if it exists (Nick Craig\-Wood)
.IP \[bu] 2
Port new Azure Blob Storage SDK (sandeepkru)
.IP \[bu] 2
Added blob tier, tier between Hot, Cool and Archive.
(sandeepkru)
.IP \[bu] 2
Remove leading / from paths (Nick Craig\-Wood)
.RE
.IP \[bu] 2
B2
.RS 2
.IP \[bu] 2
Support Application Keys (Nick Craig\-Wood)
.IP \[bu] 2
Remove leading / from paths (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Box
.RS 2
.IP \[bu] 2
Fix upload of > 2GB files on 32 bit platforms (Nick Craig\-Wood)
.IP \[bu] 2
Make \f[C]\-\-box\-commit\-retries\f[] flag defaulting to 100 to fix
large uploads (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Drive
.RS 2
.IP \[bu] 2
Add \f[C]\-\-drive\-keep\-revision\-forever\f[] flag (lewapm)
.IP \[bu] 2
Handle gdocs when filtering file names in list (Fabian Möller)
.IP \[bu] 2
Support using \f[C]\-\-fast\-list\f[] for large speedups (Fabian Möller)
.RE
.IP \[bu] 2
FTP
.RS 2
.IP \[bu] 2
Fix Put mkParentDir failed: 521 for BunnyCDN (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Google Cloud Storage
.RS 2
.IP \[bu] 2
Fix index out of range error with \f[C]\-\-fast\-list\f[] (Nick
Craig\-Wood)
.RE
.IP \[bu] 2
Jottacloud
.RS 2
.IP \[bu] 2
Fix MD5 error check (Oliver Heyme)
.IP \[bu] 2
Handle empty time values (Martin Polden)
.IP \[bu] 2
Calculate missing MD5s (Oliver Heyme)
.IP \[bu] 2
Docs, fixes and tests for MD5 calculation (Nick Craig\-Wood)
.IP \[bu] 2
Add optional MimeTyper interface.
(Sebastian Bünger)
.IP \[bu] 2
Implement optional About interface (for \f[C]df\f[] support).
(Sebastian Bünger)
.RE
.IP \[bu] 2
Mega
.RS 2
.IP \[bu] 2
Wait for events instead of arbitrary sleeping (Nick Craig\-Wood)
.IP \[bu] 2
Add \f[C]\-\-mega\-hard\-delete\f[] flag (Nick Craig\-Wood)
.IP \[bu] 2
Fix failed logins with upper case chars in email (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Onedrive
.RS 2
.IP \[bu] 2
Shared folder support (Yoni Jah)
.IP \[bu] 2
Implement DirMove (Cnly)
.IP \[bu] 2
Fix rmdir sometimes deleting directories with contents (Nick
Craig\-Wood)
.RE
.IP \[bu] 2
Pcloud
.RS 2
.IP \[bu] 2
Delete half uploaded files on upload error (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Qingstor
.RS 2
.IP \[bu] 2
Remove leading / from paths (Nick Craig\-Wood)
.RE
.IP \[bu] 2
S3
.RS 2
.IP \[bu] 2
Fix index out of range error with \f[C]\-\-fast\-list\f[] (Nick
Craig\-Wood)
.IP \[bu] 2
Add \f[C]\-\-s3\-force\-path\-style\f[] (Nick Craig\-Wood)
.IP \[bu] 2
Add support for KMS Key ID (bsteiss)
.IP \[bu] 2
Remove leading / from paths (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Swift
.RS 2
.IP \[bu] 2
Add \f[C]storage_policy\f[] (Ruben Vandamme)
.IP \[bu] 2
Make it so just \f[C]storage_url\f[] or \f[C]auth_token\f[] can be
overidden (Nick Craig\-Wood)
.IP \[bu] 2
Fix server side copy bug for unusal file names (Nick Craig\-Wood)
.IP \[bu] 2
Remove leading / from paths (Nick Craig\-Wood)
.RE
.IP \[bu] 2
WebDAV
.RS 2
.IP \[bu] 2
Ensure we call MKCOL with a URL with a trailing / for QNAP interop (Nick
Craig\-Wood)
.IP \[bu] 2
If root ends with / then don\[aq]t check if it is a file (Nick
Craig\-Wood)
.IP \[bu] 2
Don\[aq]t accept redirects when reading metadata (Nick Craig\-Wood)
.IP \[bu] 2
Add bearer token (Macaroon) support for dCache (Nick Craig\-Wood)
.IP \[bu] 2
Document dCache and Macaroons (Onno Zweers)
.IP \[bu] 2
Sharepoint recursion with different depth (Henning)
.IP \[bu] 2
Attempt to remove failed uploads (Nick Craig\-Wood)
.RE
.IP \[bu] 2
Yandex
.RS 2
.IP \[bu] 2
Fix listing/deleting files in the root (Nick Craig\-Wood)
.RE
.SS v1.42 \- 2018\-06\-16
.IP \[bu] 2
New backends
.RS 2
.IP \[bu] 2
OpenDrive (Oliver Heyme, Jakub Karlicek, ncw)
.RE
.IP \[bu] 2
New commands
.RS 2
.IP \[bu] 2
deletefile command (Filip Bartodziej)
.RE
.IP \[bu] 2
New Features
.RS 2
.IP \[bu] 2
copy, move: Copy single files directly, don\[aq]t use
\f[C]\-\-files\-from\f[] work\-around
.RS 2
.IP \[bu] 2
this makes them much more efficient
.RE
.IP \[bu] 2
Implement \f[C]\-\-max\-transfer\f[] flag to quit transferring at a
limit
.RS 2
.IP \[bu] 2
make exit code 8 for \f[C]\-\-max\-transfer\f[] exceeded
.RE
.IP \[bu] 2
copy: copy empty source directories to destination (Ishuah Kariuki)
.IP \[bu] 2
check: Add \f[C]\-\-one\-way\f[] flag (Kasper Byrdal Nielsen)
.IP \[bu] 2
Add siginfo handler for macOS for ctrl\-T stats (kubatasiemski)
.IP \[bu] 2
rc
.RS 2
.IP \[bu] 2
add core/gc to run a garbage collection on demand
.IP \[bu] 2
enable go profiling by default on the \f[C]\-\-rc\f[] port
.IP \[bu] 2
return error from remote on failure
2018-06-16 17:21:09 +00:00
.RE
.IP \[bu] 2
lsf
.RS 2
.IP \[bu] 2
Add \f[C]\-\-absolute\f[] flag to add a leading / onto path names
.IP \[bu] 2
Add \f[C]\-\-csv\f[] flag for compliant CSV output
.IP \[bu] 2
Add \[aq]m\[aq] format specifier to show the MimeType
.IP \[bu] 2
Implement \[aq]i\[aq] format for showing object ID
.RE
.IP \[bu] 2
lsjson
.RS 2
.IP \[bu] 2
Add MimeType to the output
.IP \[bu] 2
Add ID field to output to show Object ID
.RE
.IP \[bu] 2
Add \f[C]\-\-retries\-sleep\f[] flag (Benjamin Joseph Dag)
.IP \[bu] 2
Oauth tidy up web page and error handling (Henning Surmeier)
2018-09-01 11:58:00 +00:00
.RE
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Bug Fixes
2018-09-01 11:58:00 +00:00
.RS 2
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Password prompt output with \f[C]\-\-log\-file\f[] fixed for unix (Filip
Bartodziej)
.IP \[bu] 2
Calculate ModifyWindow each time on the fly to fix various problems
(Stefan Breunig)
2018-09-01 11:58:00 +00:00
.RE
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Mount
2018-09-01 11:58:00 +00:00
.RS 2
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Only print "File.rename error" if there actually is an error (Stefan
Breunig)
.IP \[bu] 2
Delay rename if file has open writers instead of failing outright
(Stefan Breunig)
.IP \[bu] 2
Ensure atexit gets run on interrupt
.IP \[bu] 2
macOS enhancements
.RS 2
.IP \[bu] 2
Make \f[C]\-\-noappledouble\f[] \f[C]\-\-noapplexattr\f[]
.IP \[bu] 2
Add \f[C]\-\-volname\f[] flag and remove special chars from it
.IP \[bu] 2
Make Get/List/Set/Remove xattr return ENOSYS for efficiency
.IP \[bu] 2
Make \f[C]\-\-daemon\f[] work for macOS without CGO
.RE
2018-09-01 11:58:00 +00:00
.RE
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
VFS
.RS 2
.IP \[bu] 2
Add \f[C]\-\-vfs\-read\-chunk\-size\f[] and
\f[C]\-\-vfs\-read\-chunk\-size\-limit\f[] (Fabian Möller)
.IP \[bu] 2
Fix ChangeNotify for new or changed folders (Fabian Möller)
.RE
.IP \[bu] 2
Local
2018-09-01 11:58:00 +00:00
.RS 2
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Fix symlink/junction point directory handling under Windows
.RS 2
.IP \[bu] 2
\f[B]NB\f[] you will need to add \f[C]\-L\f[] to your command line to
copy files with reparse points
.RE
2018-09-01 11:58:00 +00:00
.RE
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Cache
2018-09-01 11:58:00 +00:00
.RS 2
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Add non cached dirs on notifications (Remus Bunduc)
.IP \[bu] 2
Allow root to be expired from rc (Remus Bunduc)
.IP \[bu] 2
Clean remaining empty folders from temp upload path (Remus Bunduc)
.IP \[bu] 2
Cache lists using batch writes (Remus Bunduc)
.IP \[bu] 2
Use secure websockets for HTTPS Plex addresses (John Clayton)
.IP \[bu] 2
Reconnect plex websocket on failures (Remus Bunduc)
.IP \[bu] 2
Fix panic when running without plex configs (Remus Bunduc)
.IP \[bu] 2
Fix root folder caching (Remus Bunduc)
2018-09-01 11:58:00 +00:00
.RE
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Crypt
2018-09-01 11:58:00 +00:00
.RS 2
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Check the crypted hash of files when uploading for extra data security
2018-09-01 11:58:00 +00:00
.RE
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Dropbox
2018-09-01 11:58:00 +00:00
.RS 2
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Make Dropbox for business folders accessible using an initial \f[C]/\f[]
in the path
2018-09-01 11:58:00 +00:00
.RE
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Google Cloud Storage
2018-09-01 11:58:00 +00:00
.RS 2
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Low level retry all operations if necessary
2018-09-01 11:58:00 +00:00
.RE
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Google Drive
2018-09-01 11:58:00 +00:00
.RS 2
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Add \f[C]\-\-drive\-acknowledge\-abuse\f[] to download flagged files
.IP \[bu] 2
Add \f[C]\-\-drive\-alternate\-export\f[] to fix large doc export
.IP \[bu] 2
Don\[aq]t attempt to choose Team Drives when using rclone config create
.IP \[bu] 2
Fix change list polling with team drives
.IP \[bu] 2
Fix ChangeNotify for folders (Fabian Möller)
.IP \[bu] 2
Fix about (and df on a mount) for team drives
2018-09-01 11:58:00 +00:00
.RE
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Onedrive
2018-09-01 11:58:00 +00:00
.RS 2
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Errorhandler for onedrive for business requests (Henning Surmeier)
2018-09-01 11:58:00 +00:00
.RE
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
S3
2018-09-01 11:58:00 +00:00
.RS 2
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Adjust upload concurrency with \f[C]\-\-s3\-upload\-concurrency\f[]
(themylogin)
.IP \[bu] 2
Fix \f[C]\-\-s3\-chunk\-size\f[] which was always using the minimum
2018-09-01 11:58:00 +00:00
.RE
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
SFTP
2018-09-01 11:58:00 +00:00
.RS 2
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Add \f[C]\-\-ssh\-path\-override\f[] flag (Piotr Oleszczyk)
.IP \[bu] 2
Fix slow downloads for long latency connections
2018-09-01 11:58:00 +00:00
.RE
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Webdav
2018-09-01 11:58:00 +00:00
.RS 2
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Add workarounds for biz.mail.ru
.IP \[bu] 2
Ignore Reason\-Phrase in status line to fix 4shared (Rodrigo)
.IP \[bu] 2
Better error message generation
.RE
2018-09-01 11:58:00 +00:00
.SS v1.41 \- 2018\-04\-28
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
New backends
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Mega support added
.IP \[bu] 2
Webdav now supports SharePoint cookie authentication (hensur)
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
New commands
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
link: create public link to files and folders (Stefan Breunig)
.IP \[bu] 2
about: gets quota info from a remote (a\-roussos, ncw)
.IP \[bu] 2
hashsum: a generic tool for any hash to produce md5sum like output
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
New Features
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
lsd: Add \-R flag and fix and update docs for all ls commands
.IP \[bu] 2
ncdu: added a "refresh" key \- CTRL\-L (Keith Goldfarb)
.IP \[bu] 2
serve restic: Add append\-only mode (Steve Kriss)
.IP \[bu] 2
serve restic: Disallow overwriting files in append\-only mode (Alexander
Neumann)
.IP \[bu] 2
serve restic: Print actual listener address (Matt Holt)
.IP \[bu] 2
size: Add \-\-json flag (Matthew Holt)
.IP \[bu] 2
sync: implement \-\-ignore\-errors (Mateusz Pabian)
.IP \[bu] 2
dedupe: Add dedupe largest functionality (Richard Yang)
.IP \[bu] 2
fs: Extend SizeSuffix to include TB and PB for rclone about
.IP \[bu] 2
fs: add \-\-dump goroutines and \-\-dump openfiles for debugging
.IP \[bu] 2
rc: implement core/memstats to print internal memory usage info
.IP \[bu] 2
rc: new call rc/pid (Michael P.
Dubner)
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Compile
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Drop support for go1.6
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Release
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Fix \f[C]make\ tarball\f[] (Chih\-Hsuan Yen)
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Bug Fixes
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
filter: fix \-\-min\-age and \-\-max\-age together check
.IP \[bu] 2
fs: limit MaxIdleConns and MaxIdleConnsPerHost in transport
.IP \[bu] 2
lsd,lsf: make sure all times we output are in local time
.IP \[bu] 2
rc: fix setting bwlimit to unlimited
.IP \[bu] 2
rc: take note of the \-\-rc\-addr flag too as per the docs
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Mount
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Use About to return the correct disk total/used/free (eg in \f[C]df\f[])
.IP \[bu] 2
Set \f[C]\-\-attr\-timeout\ default\f[] to \f[C]1s\f[] \- fixes:
.RS 2
.IP \[bu] 2
rclone using too much memory
.IP \[bu] 2
rclone not serving files to samba
.IP \[bu] 2
excessive time listing directories
.RE
.IP \[bu] 2
Fix \f[C]df\ \-i\f[] (upstream fix)
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
VFS
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Filter files \f[C]\&.\f[] and \f[C]\&..\f[] from directory listing
.IP \[bu] 2
Only make the VFS cache if \-\-vfs\-cache\-mode > Off
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Local
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Add \-\-local\-no\-check\-updated to disable updated file checks
.IP \[bu] 2
Retry remove on Windows sharing violation error
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Cache
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Flush the memory cache after close
.IP \[bu] 2
Purge file data on notification
.IP \[bu] 2
Always forget parent dir for notifications
.IP \[bu] 2
Integrate with Plex websocket
.IP \[bu] 2
Add rc cache/stats (seuffert)
.IP \[bu] 2
Add info log on notification
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Box
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Fix failure reading large directories \- parse file/directory size as
float
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Dropbox
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Fix crypt+obfuscate on dropbox
.IP \[bu] 2
Fix repeatedly uploading the same files
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
FTP
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Work around strange response from box FTP server
.IP \[bu] 2
More workarounds for FTP servers to fix mkParentDir error
.IP \[bu] 2
Fix no error on listing non\-existent directory
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Google Cloud Storage
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Add service_account_credentials (Matt Holt)
.IP \[bu] 2
Detect bucket presence by listing it \- minimises permissions needed
.IP \[bu] 2
Ignore zero length directory markers
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Google Drive
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Add service_account_credentials (Matt Holt)
.IP \[bu] 2
Fix directory move leaving a hardlinked directory behind
.IP \[bu] 2
Return proper google errors when Opening files
.IP \[bu] 2
When initialized with a filepath, optional features used incorrect root
path (Stefan Breunig)
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
HTTP
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Fix sync for servers which don\[aq]t return Content\-Length in HEAD
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Onedrive
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Add QuickXorHash support for OneDrive for business
.IP \[bu] 2
Fix socket leak in multipart session upload
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
S3
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Look in S3 named profile files for credentials
.IP \[bu] 2
Add \f[C]\-\-s3\-disable\-checksum\f[] to disable checksum uploading
(Chris Redekop)
.IP \[bu] 2
Hierarchical configuration support (Giri Badanahatti)
.IP \[bu] 2
Add in config for all the supported S3 providers
.IP \[bu] 2
Add One Zone Infrequent Access storage class (Craig Rachel)
.IP \[bu] 2
Add \-\-use\-server\-modtime support (Peter Baumgartner)
.IP \[bu] 2
Add \-\-s3\-chunk\-size option to control multipart uploads
.IP \[bu] 2
Ignore zero length directory markers
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
SFTP
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Update docs to match code, fix typos and clarify disable_hashcheck
prompt (Michael G.
Noll)
.IP \[bu] 2
Update docs with Synology quirks
.IP \[bu] 2
Fail soft with a debug on hash failure
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Swift
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Add \-\-use\-server\-modtime support (Peter Baumgartner)
2018-09-01 11:58:00 +00:00
.RE
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Webdav
2018-09-01 11:58:00 +00:00
.RS 2
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Support SharePoint cookie authentication (hensur)
.IP \[bu] 2
Strip leading and trailing / off root
.RE
2018-09-01 11:58:00 +00:00
.SS v1.40 \- 2018\-03\-19
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
New backends
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Alias backend to create aliases for existing remote names (Fabian
Möller)
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
New commands
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
\f[C]lsf\f[]: list for parsing purposes (Jakub Tasiemski)
.RS 2
.IP \[bu] 2
by default this is a simple non recursive list of files and directories
.IP \[bu] 2
it can be configured to add more info in an easy to parse way
.RE
.IP \[bu] 2
\f[C]serve\ restic\f[]: for serving a remote as a Restic REST endpoint
.RS 2
.IP \[bu] 2
This enables restic to use any backends that rclone can access
.IP \[bu] 2
Thanks Alexander Neumann for help, patches and review
.RE
.IP \[bu] 2
\f[C]rc\f[]: enable the remote control of a running rclone
.RS 2
.IP \[bu] 2
The running rclone must be started with \-\-rc and related flags.
.IP \[bu] 2
Currently there is support for bwlimit, and flushing for mount and
cache.
.RE
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
New Features
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
\f[C]\-\-max\-delete\f[] flag to add a delete threshold (Bjørn Erik
Pedersen)
.IP \[bu] 2
All backends now support RangeOption for ranged Open
.RS 2
.IP \[bu] 2
\f[C]cat\f[]: Use RangeOption for limited fetches to make more efficient
.IP \[bu] 2
\f[C]cryptcheck\f[]: make reading of nonce more efficient with
RangeOption
.RE
.IP \[bu] 2
serve http/webdav/restic
.RS 2
.IP \[bu] 2
support SSL/TLS
.IP \[bu] 2
add \f[C]\-\-user\f[] \f[C]\-\-pass\f[] and \f[C]\-\-htpasswd\f[] for
authentication
.RE
.IP \[bu] 2
\f[C]copy\f[]/\f[C]move\f[]: detect file size change during copy/move
and abort transfer (ishuah)
.IP \[bu] 2
\f[C]cryptdecode\f[]: added option to return encrypted file names.
(ishuah)
.IP \[bu] 2
\f[C]lsjson\f[]: add \f[C]\-\-encrypted\f[] to show encrypted name
(Jakub Tasiemski)
.IP \[bu] 2
Add \f[C]\-\-stats\-file\-name\-length\f[] to specify the printed file
name length for stats (Will Gunn)
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Compile
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Code base was shuffled and factored
.RS 2
.IP \[bu] 2
backends moved into a backend directory
.IP \[bu] 2
large packages split up
.IP \[bu] 2
See the CONTRIBUTING.md doc for info as to what lives where now
.RE
.IP \[bu] 2
Update to using go1.10 as the default go version
.IP \[bu] 2
Implement daily full integration
tests (https://pub.rclone.org/integration-tests/)
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Release
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Include a source tarball and sign it and the binaries
.IP \[bu] 2
Sign the git tags as part of the release process
.IP \[bu] 2
Add .deb and .rpm packages as part of the build
.IP \[bu] 2
Make a beta release for all branches on the main repo (but not pull
requests)
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Bug Fixes
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
config: fixes errors on non existing config by loading config file only
on first access
.IP \[bu] 2
config: retry saving the config after failure (Mateusz)
.IP \[bu] 2
sync: when using \f[C]\-\-backup\-dir\f[] don\[aq]t delete files if we
can\[aq]t set their modtime
.RS 2
.IP \[bu] 2
this fixes odd behaviour with Dropbox and \f[C]\-\-backup\-dir\f[]
.RE
.IP \[bu] 2
fshttp: fix idle timeouts for HTTP connections
.IP \[bu] 2
\f[C]serve\ http\f[]: fix serving files with : in \- fixes
.IP \[bu] 2
Fix \f[C]\-\-exclude\-if\-present\f[] to ignore directories which it
doesn\[aq]t have permission for (Iakov Davydov)
.IP \[bu] 2
Make accounting work properly with crypt and b2
.IP \[bu] 2
remove \f[C]\-\-no\-traverse\f[] flag because it is obsolete
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Mount
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Add \f[C]\-\-attr\-timeout\f[] flag to control attribute caching in
kernel
.RS 2
.IP \[bu] 2
this now defaults to 0 which is correct but less efficient
.IP \[bu] 2
see the mount docs (/commands/rclone_mount/#attribute-caching) for more
info
.RE
.IP \[bu] 2
Add \f[C]\-\-daemon\f[] flag to allow mount to run in the background
(ishuah)
.IP \[bu] 2
Fix: Return ENOSYS rather than EIO on attempted link
.RS 2
.IP \[bu] 2
This fixes FileZilla accessing an rclone mount served over sftp.
.RE
.IP \[bu] 2
Fix setting modtime twice
.IP \[bu] 2
Mount tests now run on CI for Linux (mount & cmount)/Mac/Windows
.IP \[bu] 2
Many bugs fixed in the VFS layer \- see below
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
VFS
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Many fixes for \f[C]\-\-vfs\-cache\-mode\f[] writes and above
.RS 2
.IP \[bu] 2
Update cached copy if we know it has changed (fixes stale data)
.IP \[bu] 2
Clean path names before using them in the cache
.IP \[bu] 2
Disable cache cleaner if \f[C]\-\-vfs\-cache\-poll\-interval=0\f[]
.IP \[bu] 2
Fill and clean the cache immediately on startup
.RE
.IP \[bu] 2
Fix Windows opening every file when it stats the file
.IP \[bu] 2
Fix applying modtime for an open Write Handle
.IP \[bu] 2
Fix creation of files when truncating
.IP \[bu] 2
Write 0 bytes when flushing unwritten handles to avoid race conditions
in FUSE
.IP \[bu] 2
Downgrade "poll\-interval is not supported" message to Info
.IP \[bu] 2
Make OpenFile and friends return EINVAL if O_RDONLY and O_TRUNC
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Local
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Downgrade "invalid cross\-device link: trying copy" to debug
.IP \[bu] 2
Make DirMove return fs.ErrorCantDirMove to allow fallback to Copy for
cross device
.IP \[bu] 2
Fix race conditions updating the hashes
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Cache
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Add support for polling \- cache will update when remote changes on
supported backends
.IP \[bu] 2
Reduce log level for Plex api
.IP \[bu] 2
Fix dir cache issue
.IP \[bu] 2
Implement \f[C]\-\-cache\-db\-wait\-time\f[] flag
.IP \[bu] 2
Improve efficiency with RangeOption and RangeSeek
.IP \[bu] 2
Fix dirmove with temp fs enabled
.IP \[bu] 2
Notify vfs when using temp fs
.IP \[bu] 2
Offline uploading
.IP \[bu] 2
Remote control support for path flushing
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Amazon cloud drive
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Rclone no longer has any working keys \- disable integration tests
.IP \[bu] 2
Implement DirChangeNotify to notify cache/vfs/mount of changes
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Azureblob
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Don\[aq]t check for bucket/container presense if listing was OK
.RS 2
.IP \[bu] 2
this makes rclone do one less request per invocation
.RE
.IP \[bu] 2
Improve accounting for chunked uploads
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Backblaze B2
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Don\[aq]t check for bucket/container presense if listing was OK
.RS 2
.IP \[bu] 2
this makes rclone do one less request per invocation
.RE
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Box
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Improve accounting for chunked uploads
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Dropbox
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Fix custom oauth client parameters
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Google Cloud Storage
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Don\[aq]t check for bucket/container presense if listing was OK
.RS 2
.IP \[bu] 2
this makes rclone do one less request per invocation
.RE
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Google Drive
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Migrate to api v3 (Fabian Möller)
.IP \[bu] 2
Add scope configuration and root folder selection
.IP \[bu] 2
Add \f[C]\-\-drive\-impersonate\f[] for service accounts
.RS 2
.IP \[bu] 2
thanks to everyone who tested, explored and contributed docs
.RE
.IP \[bu] 2
Add \f[C]\-\-drive\-use\-created\-date\f[] to use created date as
modified date (nbuchanan)
.IP \[bu] 2
Request the export formats only when required
.RS 2
.IP \[bu] 2
This makes rclone quicker when there are no google docs
.RE
.IP \[bu] 2
Fix finding paths with latin1 chars (a workaround for a drive bug)
.IP \[bu] 2
Fix copying of a single Google doc file
.IP \[bu] 2
Fix \f[C]\-\-drive\-auth\-owner\-only\f[] to look in all directories
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
HTTP
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Fix handling of directories with & in
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Onedrive
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Removed upload cutoff and always do session uploads
.RS 2
.IP \[bu] 2
this stops the creation of multiple versions on business onedrive
.RE
.IP \[bu] 2
Overwrite object size value with real size when reading file.
(Victor)
.RS 2
.IP \[bu] 2
this fixes oddities when onedrive misreports the size of images
.RE
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Pcloud
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Remove unused chunked upload flag and code
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Qingstor
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Don\[aq]t check for bucket/container presense if listing was OK
.RS 2
.IP \[bu] 2
this makes rclone do one less request per invocation
.RE
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
S3
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Support hashes for multipart files (Chris Redekop)
.IP \[bu] 2
Initial support for IBM COS (S3) (Giri Badanahatti)
.IP \[bu] 2
Update docs to discourage use of v2 auth with CEPH and others
.IP \[bu] 2
Don\[aq]t check for bucket/container presense if listing was OK
.RS 2
.IP \[bu] 2
this makes rclone do one less request per invocation
.RE
.IP \[bu] 2
Fix server side copy and set modtime on files with + in
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
SFTP
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Add option to disable remote hash check command execution (Jon Fautley)
.IP \[bu] 2
Add \f[C]\-\-sftp\-ask\-password\f[] flag to prompt for password when
needed (Leo R.
Lundgren)
.IP \[bu] 2
Add \f[C]set_modtime\f[] configuration option
.IP \[bu] 2
Fix following of symlinks
.IP \[bu] 2
Fix reading config file outside of Fs setup
.IP \[bu] 2
Fix reading $USER in username fallback not $HOME
.IP \[bu] 2
Fix running under crontab \- Use correct OS way of reading username
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Swift
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Fix refresh of authentication token
.RS 2
.IP \[bu] 2
in v1.39 a bug was introduced which ignored new tokens \- this fixes it
.RE
.IP \[bu] 2
Fix extra HEAD transaction when uploading a new file
.IP \[bu] 2
Don\[aq]t check for bucket/container presense if listing was OK
.RS 2
.IP \[bu] 2
this makes rclone do one less request per invocation
.RE
2018-09-01 11:58:00 +00:00
.RE
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Webdav
2018-09-01 11:58:00 +00:00
.RS 2
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Add new time formats to support mydrive.ch and others
.RE
2018-09-01 11:58:00 +00:00
.SS v1.39 \- 2017\-12\-23
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
New backends
2018-09-01 11:58:00 +00:00
.RS 2
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
WebDAV
.RS 2
.IP \[bu] 2
tested with nextcloud, owncloud, put.io and others!
.RE
.IP \[bu] 2
Pcloud
.IP \[bu] 2
cache \- wraps a cache around other backends (Remus Bunduc)
.RS 2
.IP \[bu] 2
useful in combination with mount
.IP \[bu] 2
NB this feature is in beta so use with care
.RE
2018-09-01 11:58:00 +00:00
.RE
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
New commands
2018-09-01 11:58:00 +00:00
.RS 2
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
serve command with subcommands:
.RS 2
.IP \[bu] 2
serve webdav: this implements a webdav server for any rclone remote.
.IP \[bu] 2
serve http: command to serve a remote over HTTP
.RE
.IP \[bu] 2
config: add sub commands for full config file management
.RS 2
.IP \[bu] 2
create/delete/dump/edit/file/password/providers/show/update
.RE
.IP \[bu] 2
touch: to create or update the timestamp of a file (Jakub Tasiemski)
2018-09-01 11:58:00 +00:00
.RE
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
New Features
2018-09-01 11:58:00 +00:00
.RS 2
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
curl install for rclone (Filip Bartodziej)
.IP \[bu] 2
\-\-stats now shows percentage, size, rate and ETA in condensed form
(Ishuah Kariuki)
.IP \[bu] 2
\-\-exclude\-if\-present to exclude a directory if a file is present
(Iakov Davydov)
.IP \[bu] 2
rmdirs: add \-\-leave\-root flag (lewpam)
.IP \[bu] 2
move: add \-\-delete\-empty\-src\-dirs flag to remove dirs after move
(Ishuah Kariuki)
.IP \[bu] 2
Add \-\-dump flag, introduce \-\-dump requests, responses and remove
\-\-dump\-auth, \-\-dump\-filters
.RS 2
.IP \[bu] 2
Obscure X\-Auth\-Token: from headers when dumping too
.RE
.IP \[bu] 2
Document and implement exit codes for different failure modes (Ishuah
Kariuki)
2018-09-01 11:58:00 +00:00
.RE
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Compile
.IP \[bu] 2
Bug Fixes
2018-09-01 11:58:00 +00:00
.RS 2
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Retry lots more different types of errors to make multipart transfers
more reliable
.IP \[bu] 2
Save the config before asking for a token, fixes disappearing oauth
config
.IP \[bu] 2
Warn the user if \-\-include and \-\-exclude are used together (Ernest
Borowski)
.IP \[bu] 2
Fix duplicate files (eg on Google drive) causing spurious copies
.IP \[bu] 2
Allow trailing and leading whitespace for passwords (Jason Rose)
.IP \[bu] 2
ncdu: fix crashes on empty directories
.IP \[bu] 2
rcat: fix goroutine leak
.IP \[bu] 2
moveto/copyto: Fix to allow copying to the same name
2018-09-01 11:58:00 +00:00
.RE
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Mount
2018-09-01 11:58:00 +00:00
.RS 2
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
\-\-vfs\-cache mode to make writes into mounts more reliable.
.RS 2
.IP \[bu] 2
this requires caching files on the disk (see \-\-cache\-dir)
.IP \[bu] 2
As this is a new feature, use with care
.RE
.IP \[bu] 2
Use sdnotify to signal systemd the mount is ready (Fabian Möller)
.IP \[bu] 2
Check if directory is not empty before mounting (Ernest Borowski)
2018-09-01 11:58:00 +00:00
.RE
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Local
2018-09-01 11:58:00 +00:00
.RS 2
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Add error message for cross file system moves
.IP \[bu] 2
Fix equality check for times
2018-09-01 11:58:00 +00:00
.RE
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Dropbox
2018-09-01 11:58:00 +00:00
.RS 2
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Rework multipart upload
.RS 2
.IP \[bu] 2
buffer the chunks when uploading large files so they can be retried
.IP \[bu] 2
change default chunk size to 48MB now we are buffering them in memory
.IP \[bu] 2
retry every error after the first chunk is done successfully
.RE
.IP \[bu] 2
Fix error when renaming directories
2018-09-01 11:58:00 +00:00
.RE
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Swift
2018-09-01 11:58:00 +00:00
.RS 2
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Fix crash on bad authentication
2018-09-01 11:58:00 +00:00
.RE
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Google Drive
2018-09-01 11:58:00 +00:00
.RS 2
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Add service account support (Tim Cooijmans)
2018-09-01 11:58:00 +00:00
.RE
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
S3
2018-09-01 11:58:00 +00:00
.RS 2
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Make it work properly with Digital Ocean Spaces (Andrew
Starr\-Bochicchio)
.IP \[bu] 2
Fix crash if a bad listing is received
.IP \[bu] 2
Add support for ECS task IAM roles (David Minor)
2018-09-01 11:58:00 +00:00
.RE
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Backblaze B2
2018-09-01 11:58:00 +00:00
.RS 2
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Fix multipart upload retries
.IP \[bu] 2
Fix \-\-hard\-delete to make it work 100% of the time
2018-09-01 11:58:00 +00:00
.RE
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Swift
2018-09-01 11:58:00 +00:00
.RS 2
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Allow authentication with storage URL and auth key (Giovanni Pizzi)
.IP \[bu] 2
Add new fields for swift configuration to support IBM Bluemix Swift
(Pierre Carlson)
.IP \[bu] 2
Add OS_TENANT_ID and OS_USER_ID to config
.IP \[bu] 2
Allow configs with user id instead of user name
.IP \[bu] 2
Check if swift segments container exists before creating (John Leach)
.IP \[bu] 2
Fix memory leak in swift transfers (upstream fix)
2018-09-01 11:58:00 +00:00
.RE
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
SFTP
2018-09-01 11:58:00 +00:00
.RS 2
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Add option to enable the use of aes128\-cbc cipher (Jon Fautley)
2018-09-01 11:58:00 +00:00
.RE
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Amazon cloud drive
2018-09-01 11:58:00 +00:00
.RS 2
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Fix download of large files failing with "Only one auth mechanism
allowed"
2018-09-01 11:58:00 +00:00
.RE
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
crypt
2018-09-01 11:58:00 +00:00
.RS 2
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Option to encrypt directory names or leave them intact
.IP \[bu] 2
Implement DirChangeNotify (Fabian Möller)
2018-09-01 11:58:00 +00:00
.RE
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
onedrive
2018-09-01 11:58:00 +00:00
.RS 2
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Add option to choose resourceURL during setup of OneDrive Business
account if more than one is available for user
.RE
2018-09-01 11:58:00 +00:00
.SS v1.38 \- 2017\-09\-30
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
New backends
2018-09-01 11:58:00 +00:00
.RS 2
2017-09-30 13:19:47 +00:00
.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)
2018-09-01 11:58:00 +00:00
.RE
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
New commands
2018-09-01 11:58:00 +00:00
.RS 2
2017-09-30 13:19:47 +00:00
.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
2018-09-01 11:58:00 +00:00
.RE
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
New Features
2018-09-01 11:58:00 +00:00
.RS 2
2017-09-30 13:19:47 +00:00
.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[]
2018-09-01 11:58:00 +00:00
.RE
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
Compile
2018-09-01 11:58:00 +00:00
.RS 2
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
Update to using go1.9 as the default go version
.IP \[bu] 2
Remove snapd build due to maintenance problems
2018-09-01 11:58:00 +00:00
.RE
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
Bug Fixes
2018-09-01 11:58:00 +00:00
.RS 2
2017-09-30 13:19:47 +00:00
.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
2018-09-01 11:58:00 +00:00
.RE
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
Local
2018-09-01 11:58:00 +00:00
.RS 2
2017-09-30 13:19:47 +00:00
.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)
2018-09-01 11:58:00 +00:00
.RE
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
Mount
2018-09-01 11:58:00 +00:00
.RS 2
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
Re\-use \f[C]rcat\f[] internals to support uploads from all remotes
2018-09-01 11:58:00 +00:00
.RE
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
Dropbox
2018-09-01 11:58:00 +00:00
.RS 2
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
Fix "entry doesn\[aq]t belong in directory" error
.IP \[bu] 2
Stop using deprecated API methods
2018-09-01 11:58:00 +00:00
.RE
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
Swift
2018-09-01 11:58:00 +00:00
.RS 2
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
Fix server side copy to empty container with \f[C]\-\-fast\-list\f[]
2018-09-01 11:58:00 +00:00
.RE
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
Google Drive
2018-09-01 11:58:00 +00:00
.RS 2
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
Change the default for \f[C]\-\-drive\-use\-trash\f[] to \f[C]true\f[]
2018-09-01 11:58:00 +00:00
.RE
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
S3
2018-09-01 11:58:00 +00:00
.RS 2
2017-09-30 13:19:47 +00:00
.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
2018-09-01 11:58:00 +00:00
.RE
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
Backblaze B2
2018-09-01 11:58:00 +00:00
.RS 2
2017-09-30 13:19:47 +00:00
.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)
2018-09-01 11:58:00 +00:00
.RE
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
Hubic
2018-09-01 11:58:00 +00:00
.RS 2
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
Fix creating containers \- no longer have to use the \f[C]default\f[]
container
2018-09-01 11:58:00 +00:00
.RE
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
Swift
2018-09-01 11:58:00 +00:00
.RS 2
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
Optionally configure from a standard set of OpenStack environment vars
.IP \[bu] 2
Add \f[C]endpoint_type\f[] config
2018-09-01 11:58:00 +00:00
.RE
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
Google Cloud Storage
2018-09-01 11:58:00 +00:00
.RS 2
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
Fix bucket creation to work with limited permission users
2018-09-01 11:58:00 +00:00
.RE
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
SFTP
2018-09-01 11:58:00 +00:00
.RS 2
2017-09-30 13:19:47 +00:00
.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)
2018-09-01 11:58:00 +00:00
.RE
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
HTTP
2018-09-01 11:58:00 +00:00
.RS 2
2017-09-30 13:19:47 +00:00
.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
2018-09-01 11:58:00 +00:00
.SS v1.37 \- 2017\-07\-22
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
New backends
2018-09-01 11:58:00 +00:00
.RS 2
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
FTP \- thanks to Antonio Messina
.IP \[bu] 2
HTTP \- thanks to Vasiliy Tolstov
2018-09-01 11:58:00 +00:00
.RE
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
New commands
2018-09-01 11:58:00 +00:00
.RS 2
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
rclone ncdu \- for exploring a remote with a text based user interface.
.IP \[bu] 2
rclone lsjson \- for listing with a machine readable output
.IP \[bu] 2
rclone dbhashsum \- to show Dropbox style hashes of files (local or
Dropbox)
2018-09-01 11:58:00 +00:00
.RE
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
New Features
2018-09-01 11:58:00 +00:00
.RS 2
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Implement \-\-fast\-list flag
.RS 2
.IP \[bu] 2
This allows remotes to list recursively if they can
.IP \[bu] 2
This uses less transactions (important if you pay for them)
.IP \[bu] 2
This may or may not be quicker
.IP \[bu] 2
2017-09-30 13:19:47 +00:00
This will use more memory as it has to hold the listing in memory
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
\-\-old\-sync\-method deprecated \- the remaining uses are covered by
\-\-fast\-list
.IP \[bu] 2
This involved a major re\-write of all the listing code
.RE
.IP \[bu] 2
Add \-\-tpslimit and \-\-tpslimit\-burst to limit transactions per
second
.RS 2
.IP \[bu] 2
this is useful in conjuction with \f[C]rclone\ mount\f[] to limit
external apps
.RE
.IP \[bu] 2
Add \-\-stats\-log\-level so can see \-\-stats without \-v
.IP \[bu] 2
Print password prompts to stderr \- Hraban Luyat
.IP \[bu] 2
Warn about duplicate files when syncing
.IP \[bu] 2
Oauth improvements
.RS 2
.IP \[bu] 2
allow auth_url and token_url to be set in the config file
.IP \[bu] 2
Print redirection URI if using own credentials.
.RE
.IP \[bu] 2
Don\[aq]t Mkdir at the start of sync to save transactions
2018-09-01 11:58:00 +00:00
.RE
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Compile
2018-09-01 11:58:00 +00:00
.RS 2
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Update build to go1.8.3
.IP \[bu] 2
Require go1.6 for building rclone
.IP \[bu] 2
Compile 386 builds with "GO386=387" for maximum compatibility
2018-09-01 11:58:00 +00:00
.RE
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Bug Fixes
2018-09-01 11:58:00 +00:00
.RS 2
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Fix menu selection when no remotes
.IP \[bu] 2
Config saving reworked to not kill the file if disk gets full
.IP \[bu] 2
Don\[aq]t delete remote if name does not change while renaming
.IP \[bu] 2
moveto, copyto: report transfers and checks as per move and copy
2018-09-01 11:58:00 +00:00
.RE
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Local
2018-09-01 11:58:00 +00:00
.RS 2
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Add \-\-local\-no\-unicode\-normalization flag \- Bob Potter
2018-09-01 11:58:00 +00:00
.RE
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Mount
2018-09-01 11:58:00 +00:00
.RS 2
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Now supported on Windows using cgofuse and WinFsp \- thanks to Bill
Zissimopoulos for much help
.IP \[bu] 2
Compare checksums on upload/download via FUSE
.IP \[bu] 2
Unmount when program ends with SIGINT (Ctrl+C) or SIGTERM \- Jérôme
Vizcaino
.IP \[bu] 2
On read only open of file, make open pending until first read
.IP \[bu] 2
Make \-\-read\-only reject modify operations
.IP \[bu] 2
Implement ModTime via FUSE for remotes that support it
.IP \[bu] 2
Allow modTime to be changed even before all writers are closed
.IP \[bu] 2
Fix panic on renames
.IP \[bu] 2
Fix hang on errored upload
2018-09-01 11:58:00 +00:00
.RE
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Crypt
2018-09-01 11:58:00 +00:00
.RS 2
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Report the name:root as specified by the user
.IP \[bu] 2
Add an "obfuscate" option for filename encryption \- Stephen Harris
2018-09-01 11:58:00 +00:00
.RE
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Amazon Drive
2018-09-01 11:58:00 +00:00
.RS 2
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Fix initialization order for token renewer
.IP \[bu] 2
Remove revoked credentials, allow oauth proxy config and update docs
2018-09-01 11:58:00 +00:00
.RE
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
B2
2018-09-01 11:58:00 +00:00
.RS 2
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Reduce minimum chunk size to 5MB
2018-09-01 11:58:00 +00:00
.RE
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Drive
2018-09-01 11:58:00 +00:00
.RS 2
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Add team drive support
.IP \[bu] 2
Reduce bandwidth by adding fields for partial responses \- Martin
Kristensen
.IP \[bu] 2
Implement \-\-drive\-shared\-with\-me flag to view shared with me files
\- Danny Tsai
.IP \[bu] 2
Add \-\-drive\-trashed\-only to read only the files in the trash
.IP \[bu] 2
Remove obsolete \-\-drive\-full\-list
.IP \[bu] 2
Add missing seek to start on retries of chunked uploads
.IP \[bu] 2
Fix stats accounting for upload
.IP \[bu] 2
Convert / in names to a unicode equivalent (/)
.IP \[bu] 2
Poll for Google Drive changes when mounted
2018-09-01 11:58:00 +00:00
.RE
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
OneDrive
2018-09-01 11:58:00 +00:00
.RS 2
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Fix the uploading of files with spaces
.IP \[bu] 2
Fix initialization order for token renewer
.IP \[bu] 2
Display speeds accurately when uploading \- Yoni Jah
.IP \[bu] 2
Swap to using http://localhost:53682/ as redirect URL \- Michael Ledin
.IP \[bu] 2
Retry on token expired error, reset upload body on retry \- Yoni Jah
2018-09-01 11:58:00 +00:00
.RE
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Google Cloud Storage
2018-09-01 11:58:00 +00:00
.RS 2
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Add ability to specify location and storage class via config and command
line \- thanks gdm85
.IP \[bu] 2
Create container if necessary on server side copy
.IP \[bu] 2
Increase directory listing chunk to 1000 to increase performance
.IP \[bu] 2
Obtain a refresh token for GCS \- Steven Lu
2018-09-01 11:58:00 +00:00
.RE
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Yandex
2018-09-01 11:58:00 +00:00
.RS 2
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Fix the name reported in log messages (was empty)
.IP \[bu] 2
Correct error return for listing empty directory
2018-09-01 11:58:00 +00:00
.RE
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Dropbox
2018-09-01 11:58:00 +00:00
.RS 2
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Rewritten to use the v2 API
.RS 2
.IP \[bu] 2
Now supports ModTime
2018-09-01 11:58:00 +00:00
.RS 2
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Can only set by uploading the file again
.IP \[bu] 2
If you uploaded with an old rclone, rclone may upload everything again
.IP \[bu] 2
Use \f[C]\-\-size\-only\f[] or \f[C]\-\-checksum\f[] to avoid this
2018-09-01 11:58:00 +00:00
.RE
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Now supports the Dropbox content hashing scheme
.IP \[bu] 2
Now supports low level retries
.RE
2018-09-01 11:58:00 +00:00
.RE
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
S3
2018-09-01 11:58:00 +00:00
.RS 2
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Work around eventual consistency in bucket creation
.IP \[bu] 2
Create container if necessary on server side copy
.IP \[bu] 2
Add us\-east\-2 (Ohio) and eu\-west\-2 (London) S3 regions \- Zahiar
Ahmed
2018-09-01 11:58:00 +00:00
.RE
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Swift, Hubic
2018-09-01 11:58:00 +00:00
.RS 2
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Fix zero length directory markers showing in the subdirectory listing
.RS 2
.IP \[bu] 2
this caused lots of duplicate transfers
.RE
.IP \[bu] 2
Fix paged directory listings
.RS 2
.IP \[bu] 2
this caused duplicate directory errors
.RE
.IP \[bu] 2
Create container if necessary on server side copy
.IP \[bu] 2
Increase directory listing chunk to 1000 to increase performance
.IP \[bu] 2
Make sensible error if the user forgets the container
2018-09-01 11:58:00 +00:00
.RE
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
SFTP
2018-09-01 11:58:00 +00:00
.RS 2
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Add support for using ssh key files
.IP \[bu] 2
Fix under Windows
.IP \[bu] 2
Fix ssh agent on Windows
.IP \[bu] 2
Adapt to latest version of library \- Igor Kharin
.RE
2018-09-01 11:58:00 +00:00
.SS v1.36 \- 2017\-03\-18
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
New Features
2018-09-01 11:58:00 +00:00
.RS 2
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
SFTP remote (Jack Schmidt)
.IP \[bu] 2
Re\-implement sync routine to work a directory at a time reducing memory
usage
.IP \[bu] 2
2018-09-01 11:58:00 +00:00
Logging revamped to be more inline with rsync \- now much quieter * \-v
only shows transfers * \-vv is for full debug * \-\-syslog to log to
syslog on capable platforms
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Implement \-\-backup\-dir and \-\-suffix
.IP \[bu] 2
Implement \-\-track\-renames (initial implementation by Bjørn Erik
Pedersen)
.IP \[bu] 2
Add time\-based bandwidth limits (Lukas Loesche)
.IP \[bu] 2
rclone cryptcheck: checks integrity of crypt remotes
.IP \[bu] 2
Allow all config file variables and options to be set from environment
variables
.IP \[bu] 2
Add \-\-buffer\-size parameter to control buffer size for copy
.IP \[bu] 2
Make \-\-delete\-after the default
.IP \[bu] 2
Add \-\-ignore\-checksum flag (fixed by Hisham Zarka)
.IP \[bu] 2
rclone check: Add \-\-download flag to check all the data, not just
hashes
.IP \[bu] 2
rclone cat: add \-\-head, \-\-tail, \-\-offset, \-\-count and
\-\-discard
.IP \[bu] 2
rclone config: when choosing from a list, allow the value to be entered
too
.IP \[bu] 2
rclone config: allow rename and copy of remotes
.IP \[bu] 2
rclone obscure: for generating encrypted passwords for rclone\[aq]s
config (T.C.
Ferguson)
.IP \[bu] 2
Comply with XDG Base Directory specification (Dario Giovannetti)
.RS 2
.IP \[bu] 2
this moves the default location of the config file in a backwards
compatible way
.RE
.IP \[bu] 2
Release changes
.RS 2
.IP \[bu] 2
Ubuntu snap support (Dedsec1)
.IP \[bu] 2
Compile with go 1.8
.IP \[bu] 2
MIPS/Linux big and little endian support
.RE
2018-09-01 11:58:00 +00:00
.RE
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Bug Fixes
2018-09-01 11:58:00 +00:00
.RS 2
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Fix copyto copying things to the wrong place if the destination dir
didn\[aq]t exist
.IP \[bu] 2
Fix parsing of remotes in moveto and copyto
.IP \[bu] 2
Fix \-\-delete\-before deleting files on copy
.IP \[bu] 2
Fix \-\-files\-from with an empty file copying everything
.IP \[bu] 2
Fix sync: don\[aq]t update mod times if \-\-dry\-run set
.IP \[bu] 2
Fix MimeType propagation
.IP \[bu] 2
Fix filters to add ** rules to directory rules
2018-09-01 11:58:00 +00:00
.RE
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Local
2018-09-01 11:58:00 +00:00
.RS 2
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Implement \-L, \-\-copy\-links flag to allow rclone to follow symlinks
.IP \[bu] 2
Open files in write only mode so rclone can write to an rclone mount
.IP \[bu] 2
Fix unnormalised unicode causing problems reading directories
.IP \[bu] 2
Fix interaction between \-x flag and \-\-max\-depth
2018-09-01 11:58:00 +00:00
.RE
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Mount
2018-09-01 11:58:00 +00:00
.RS 2
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Implement proper directory handling (mkdir, rmdir, renaming)
.IP \[bu] 2
Make include and exclude filters apply to mount
.IP \[bu] 2
Implement read and write async buffers \- control with \-\-buffer\-size
.IP \[bu] 2
Fix fsync on for directories
.IP \[bu] 2
Fix retry on network failure when reading off crypt
2018-09-01 11:58:00 +00:00
.RE
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Crypt
2018-09-01 11:58:00 +00:00
.RS 2
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Add \-\-crypt\-show\-mapping to show encrypted file mapping
.IP \[bu] 2
Fix crypt writer getting stuck in a loop
.RS 2
.IP \[bu] 2
\f[B]IMPORTANT\f[] this bug had the potential to cause data corruption
when
2018-09-01 11:58:00 +00:00
.RS 2
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
reading data from a network based remote and
.IP \[bu] 2
writing to a crypt on Google Drive
2018-09-01 11:58:00 +00:00
.RE
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Use the cryptcheck command to validate your data if you are concerned
.IP \[bu] 2
If syncing two crypt remotes, sync the unencrypted remote
.RE
2018-09-01 11:58:00 +00:00
.RE
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Amazon Drive
2018-09-01 11:58:00 +00:00
.RS 2
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Fix panics on Move (rename)
.IP \[bu] 2
Fix panic on token expiry
2018-09-01 11:58:00 +00:00
.RE
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
B2
2018-09-01 11:58:00 +00:00
.RS 2
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Fix inconsistent listings and rclone check
.IP \[bu] 2
Fix uploading empty files with go1.8
.IP \[bu] 2
Constrain memory usage when doing multipart uploads
.IP \[bu] 2
Fix upload url not being refreshed properly
2018-09-01 11:58:00 +00:00
.RE
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Drive
2018-09-01 11:58:00 +00:00
.RS 2
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Fix Rmdir on directories with trashed files
.IP \[bu] 2
Fix "Ignoring unknown object" when downloading
.IP \[bu] 2
Add \-\-drive\-list\-chunk
.IP \[bu] 2
Add \-\-drive\-skip\-gdocs (Károly Oláh)
2018-09-01 11:58:00 +00:00
.RE
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
OneDrive
2018-09-01 11:58:00 +00:00
.RS 2
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Implement Move
.IP \[bu] 2
Fix Copy
.RS 2
.IP \[bu] 2
Fix overwrite detection in Copy
.IP \[bu] 2
Fix waitForJob to parse errors correctly
.RE
.IP \[bu] 2
Use token renewer to stop auth errors on long uploads
.IP \[bu] 2
Fix uploading empty files with go1.8
2018-09-01 11:58:00 +00:00
.RE
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Google Cloud Storage
2018-09-01 11:58:00 +00:00
.RS 2
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Fix depth 1 directory listings
2018-09-01 11:58:00 +00:00
.RE
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Yandex
2018-09-01 11:58:00 +00:00
.RS 2
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Fix single level directory listing
2018-09-01 11:58:00 +00:00
.RE
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Dropbox
2018-09-01 11:58:00 +00:00
.RS 2
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Normalise the case for single level directory listings
.IP \[bu] 2
Fix depth 1 listing
2018-09-01 11:58:00 +00:00
.RE
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
S3
2018-09-01 11:58:00 +00:00
.RS 2
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Added ca\-central\-1 region (Jon Yergatian)
.RE
2018-09-01 11:58:00 +00:00
.SS v1.35 \- 2017\-01\-02
2017-01-02 15:30:34 +00:00
.IP \[bu] 2
New Features
2018-09-01 11:58:00 +00:00
.RS 2
2017-01-02 15:30:34 +00:00
.IP \[bu] 2
moveto and copyto commands for choosing a destination name on copy/move
.IP \[bu] 2
rmdirs command to recursively delete empty directories
.IP \[bu] 2
Allow repeated \-\-include/\-\-exclude/\-\-filter options
.IP \[bu] 2
Only show transfer stats on commands which transfer stuff
.RS 2
.IP \[bu] 2
show stats on any command using the \f[C]\-\-stats\f[] flag
.RE
.IP \[bu] 2
Allow overlapping directories in move when server side dir move is
supported
.IP \[bu] 2
Add \-\-stats\-unit option \- thanks Scott McGillivray
2018-09-01 11:58:00 +00:00
.RE
2017-01-02 15:30:34 +00:00
.IP \[bu] 2
Bug Fixes
2018-09-01 11:58:00 +00:00
.RS 2
2017-01-02 15:30:34 +00:00
.IP \[bu] 2
Fix the config file being overwritten when two rclones are running
.IP \[bu] 2
Make rclone lsd obey the filters properly
.IP \[bu] 2
Fix compilation on mips
.IP \[bu] 2
Fix not transferring files that don\[aq]t differ in size
.IP \[bu] 2
Fix panic on nil retry/fatal error
2018-09-01 11:58:00 +00:00
.RE
2017-01-02 15:30:34 +00:00
.IP \[bu] 2
Mount
2018-09-01 11:58:00 +00:00
.RS 2
2017-01-02 15:30:34 +00:00
.IP \[bu] 2
Retry reads on error \- should help with reliability a lot
.IP \[bu] 2
Report the modification times for directories from the remote
.IP \[bu] 2
Add bandwidth accounting and limiting (fixes \-\-bwlimit)
.IP \[bu] 2
If \-\-stats provided will show stats and which files are transferring
.IP \[bu] 2
Support R/W files if truncate is set.
.IP \[bu] 2
Implement statfs interface so df works
.IP \[bu] 2
Note that write is now supported on Amazon Drive
.IP \[bu] 2
Report number of blocks in a file \- thanks Stefan Breunig
2018-09-01 11:58:00 +00:00
.RE
2017-01-02 15:30:34 +00:00
.IP \[bu] 2
Crypt
2018-09-01 11:58:00 +00:00
.RS 2
2017-01-02 15:30:34 +00:00
.IP \[bu] 2
Prevent the user pointing crypt at itself
.IP \[bu] 2
Fix failed to authenticate decrypted block errors
.RS 2
.IP \[bu] 2
these will now return the underlying unexpected EOF instead
.RE
2018-09-01 11:58:00 +00:00
.RE
2017-01-02 15:30:34 +00:00
.IP \[bu] 2
Amazon Drive
2018-09-01 11:58:00 +00:00
.RS 2
2017-01-02 15:30:34 +00:00
.IP \[bu] 2
Add support for server side move and directory move \- thanks Stefan
Breunig
.IP \[bu] 2
Fix nil pointer deref on size attribute
2018-09-01 11:58:00 +00:00
.RE
2017-01-02 15:30:34 +00:00
.IP \[bu] 2
B2
2018-09-01 11:58:00 +00:00
.RS 2
2017-01-02 15:30:34 +00:00
.IP \[bu] 2
Use new prefix and delimiter parameters in directory listings
.RS 2
.IP \[bu] 2
This makes \-\-max\-depth 1 dir listings as used in mount much faster
.RE
.IP \[bu] 2
Reauth the account while doing uploads too \- should help with token
expiry
2018-09-01 11:58:00 +00:00
.RE
2017-01-02 15:30:34 +00:00
.IP \[bu] 2
Drive
2018-09-01 11:58:00 +00:00
.RS 2
2017-01-02 15:30:34 +00:00
.IP \[bu] 2
Make DirMove more efficient and complain about moving the root
.IP \[bu] 2
Create destination directory on Move()
.RE
2018-09-01 11:58:00 +00:00
.SS v1.34 \- 2016\-11\-06
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
New Features
2018-09-01 11:58:00 +00:00
.RS 2
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
Stop single file and \f[C]\-\-files\-from\f[] operations iterating
through the source bucket.
.IP \[bu] 2
Stop removing failed upload to cloud storage remotes
.IP \[bu] 2
Make ContentType be preserved for cloud to cloud copies
.IP \[bu] 2
Add support to toggle bandwidth limits via SIGUSR2 \- thanks Marco
Paganini
.IP \[bu] 2
\f[C]rclone\ check\f[] shows count of hashes that couldn\[aq]t be
checked
.IP \[bu] 2
\f[C]rclone\ listremotes\f[] command
.IP \[bu] 2
Support linux/arm64 build \- thanks Fredrik Fornwall
.IP \[bu] 2
Remove \f[C]Authorization:\f[] lines from \f[C]\-\-dump\-headers\f[]
output
2018-09-01 11:58:00 +00:00
.RE
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
Bug Fixes
2018-09-01 11:58:00 +00:00
.RS 2
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
Ignore files with control characters in the names
.IP \[bu] 2
Fix \f[C]rclone\ move\f[] command
.RS 2
.IP \[bu] 2
Delete src files which already existed in dst
.IP \[bu] 2
Fix deletion of src file when dst file older
.RE
.IP \[bu] 2
Fix \f[C]rclone\ check\f[] on crypted file systems
.IP \[bu] 2
Make failed uploads not count as "Transferred"
.IP \[bu] 2
Make sure high level retries show with \f[C]\-q\f[]
.IP \[bu] 2
Use a vendor directory with godep for repeatable builds
2018-09-01 11:58:00 +00:00
.RE
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
\f[C]rclone\ mount\f[] \- FUSE
2018-09-01 11:58:00 +00:00
.RS 2
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
Implement FUSE mount options
.RS 2
.IP \[bu] 2
\f[C]\-\-no\-modtime\f[], \f[C]\-\-debug\-fuse\f[],
\f[C]\-\-read\-only\f[], \f[C]\-\-allow\-non\-empty\f[],
\f[C]\-\-allow\-root\f[], \f[C]\-\-allow\-other\f[]
.IP \[bu] 2
\f[C]\-\-default\-permissions\f[], \f[C]\-\-write\-back\-cache\f[],
\f[C]\-\-max\-read\-ahead\f[], \f[C]\-\-umask\f[], \f[C]\-\-uid\f[],
\f[C]\-\-gid\f[]
.RE
.IP \[bu] 2
Add \f[C]\-\-dir\-cache\-time\f[] to control caching of directory
entries
.IP \[bu] 2
Implement seek for files opened for read (useful for video players)
.RS 2
.IP \[bu] 2
with \f[C]\-no\-seek\f[] flag to disable
.RE
.IP \[bu] 2
Fix crash on 32 bit ARM (alignment of 64 bit counter)
.IP \[bu] 2
\&...and many more internal fixes and improvements!
2018-09-01 11:58:00 +00:00
.RE
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
Crypt
2018-09-01 11:58:00 +00:00
.RS 2
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
Don\[aq]t show encrypted password in configurator to stop confusion
2018-09-01 11:58:00 +00:00
.RE
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
Amazon Drive
2018-09-01 11:58:00 +00:00
.RS 2
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
New wait for upload option \f[C]\-\-acd\-upload\-wait\-per\-gb\f[]
.RS 2
.IP \[bu] 2
upload timeouts scale by file size and can be disabled
.RE
.IP \[bu] 2
Add 502 Bad Gateway to list of errors we retry
.IP \[bu] 2
Fix overwriting a file with a zero length file
.IP \[bu] 2
Fix ACD file size warning limit \- thanks Felix Bünemann
2018-09-01 11:58:00 +00:00
.RE
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
Local
2018-09-01 11:58:00 +00:00
.RS 2
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
Unix: implement \f[C]\-x\f[]/\f[C]\-\-one\-file\-system\f[] to stay on a
single file system
.RS 2
.IP \[bu] 2
thanks Durval Menezes and Luiz Carlos Rumbelsperger Viana
.RE
.IP \[bu] 2
Windows: ignore the symlink bit on files
.IP \[bu] 2
Windows: Ignore directory based junction points
2018-09-01 11:58:00 +00:00
.RE
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
B2
2018-09-01 11:58:00 +00:00
.RS 2
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
Make sure each upload has at least one upload slot \- fixes strange
upload stats
.IP \[bu] 2
Fix uploads when using crypt
.IP \[bu] 2
Fix download of large files (sha1 mismatch)
.IP \[bu] 2
Return error when we try to create a bucket which someone else owns
.IP \[bu] 2
Update B2 docs with Data usage, and Crypt section \- thanks Tomasz Mazur
2018-09-01 11:58:00 +00:00
.RE
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
S3
2018-09-01 11:58:00 +00:00
.RS 2
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
Command line and config file support for
.RS 2
.IP \[bu] 2
Setting/overriding ACL \- thanks Radek Senfeld
.IP \[bu] 2
Setting storage class \- thanks Asko Tamm
.RE
2018-09-01 11:58:00 +00:00
.RE
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
Drive
2018-09-01 11:58:00 +00:00
.RS 2
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
Make exponential backoff work exactly as per Google specification
.IP \[bu] 2
add \f[C]\&.epub\f[], \f[C]\&.odp\f[] and \f[C]\&.tsv\f[] as export
formats.
2018-09-01 11:58:00 +00:00
.RE
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
Swift
2018-09-01 11:58:00 +00:00
.RS 2
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
Don\[aq]t read metadata for directory marker objects
.RE
2018-09-01 11:58:00 +00:00
.SS v1.33 \- 2016\-08\-24
2016-08-24 21:58:24 +00:00
.IP \[bu] 2
New Features
2018-09-01 11:58:00 +00:00
.RS 2
2016-08-24 21:58:24 +00:00
.IP \[bu] 2
Implement encryption
.RS 2
.IP \[bu] 2
data encrypted in NACL secretbox format
.IP \[bu] 2
with optional file name encryption
.RE
.IP \[bu] 2
New commands
.RS 2
.IP \[bu] 2
rclone mount \- implements FUSE mounting of remotes (EXPERIMENTAL)
2018-09-01 11:58:00 +00:00
.RS 2
2016-08-24 21:58:24 +00:00
.IP \[bu] 2
works on Linux, FreeBSD and OS X (need testers for the last 2!)
2018-09-01 11:58:00 +00:00
.RE
2016-08-24 21:58:24 +00:00
.IP \[bu] 2
rclone cat \- outputs remote file or files to the terminal
.IP \[bu] 2
rclone genautocomplete \- command to make a bash completion script for
rclone
.RE
.IP \[bu] 2
Editing a remote using \f[C]rclone\ config\f[] now goes through the
wizard
.IP \[bu] 2
Compile with go 1.7 \- this fixes rclone on macOS Sierra and on 386
processors
.IP \[bu] 2
Use cobra for sub commands and docs generation
2018-09-01 11:58:00 +00:00
.RE
2016-08-24 21:58:24 +00:00
.IP \[bu] 2
drive
2018-09-01 11:58:00 +00:00
.RS 2
2016-08-24 21:58:24 +00:00
.IP \[bu] 2
Document how to make your own client_id
2018-09-01 11:58:00 +00:00
.RE
2016-08-24 21:58:24 +00:00
.IP \[bu] 2
s3
2018-09-01 11:58:00 +00:00
.RS 2
2016-08-24 21:58:24 +00:00
.IP \[bu] 2
User\-configurable Amazon S3 ACL (thanks Radek Šenfeld)
2018-09-01 11:58:00 +00:00
.RE
2016-08-24 21:58:24 +00:00
.IP \[bu] 2
b2
2018-09-01 11:58:00 +00:00
.RS 2
2016-08-24 21:58:24 +00:00
.IP \[bu] 2
Fix stats accounting for upload \- no more jumping to 100% done
.IP \[bu] 2
On cleanup delete hide marker if it is the current file
.IP \[bu] 2
New B2 API endpoint (thanks Per Cederberg)
.IP \[bu] 2
Set maximum backoff to 5 Minutes
2018-09-01 11:58:00 +00:00
.RE
2016-08-24 21:58:24 +00:00
.IP \[bu] 2
onedrive
2018-09-01 11:58:00 +00:00
.RS 2
2016-08-24 21:58:24 +00:00
.IP \[bu] 2
Fix URL escaping in file names \- eg uploading files with \f[C]+\f[] in
them.
2018-09-01 11:58:00 +00:00
.RE
2016-08-24 21:58:24 +00:00
.IP \[bu] 2
amazon cloud drive
2018-09-01 11:58:00 +00:00
.RS 2
2016-08-24 21:58:24 +00:00
.IP \[bu] 2
Fix token expiry during large uploads
.IP \[bu] 2
Work around 408 REQUEST_TIMEOUT and 504 GATEWAY_TIMEOUT errors
2018-09-01 11:58:00 +00:00
.RE
2016-08-24 21:58:24 +00:00
.IP \[bu] 2
local
2018-09-01 11:58:00 +00:00
.RS 2
2016-08-24 21:58:24 +00:00
.IP \[bu] 2
Fix filenames with invalid UTF\-8 not being uploaded
.IP \[bu] 2
Fix problem with some UTF\-8 characters on OS X
.RE
2018-09-01 11:58:00 +00:00
.SS v1.32 \- 2016\-07\-13
2016-07-13 16:32:39 +00:00
.IP \[bu] 2
Backblaze B2
2018-09-01 11:58:00 +00:00
.RS 2
2016-07-13 16:32:39 +00:00
.IP \[bu] 2
Fix upload of files large files not in root
.RE
2018-09-01 11:58:00 +00:00
.SS v1.31 \- 2016\-07\-13
2016-07-13 11:26:22 +00:00
.IP \[bu] 2
New Features
2018-09-01 11:58:00 +00:00
.RS 2
2016-07-13 11:26:22 +00:00
.IP \[bu] 2
Reduce memory on sync by about 50%
.IP \[bu] 2
Implement \-\-no\-traverse flag to stop copy traversing the destination
remote.
.RS 2
.IP \[bu] 2
This can be used to reduce memory usage down to the smallest possible.
.IP \[bu] 2
Useful to copy a small number of files into a large destination folder.
.RE
.IP \[bu] 2
Implement cleanup command for emptying trash / removing old versions of
files
.RS 2
.IP \[bu] 2
Currently B2 only
.RE
.IP \[bu] 2
Single file handling improved
.RS 2
.IP \[bu] 2
Now copied with \-\-files\-from
.IP \[bu] 2
Automatically sets \-\-no\-traverse when copying a single file
.RE
.IP \[bu] 2
Info on using installing with ansible \- thanks Stefan Weichinger
.IP \[bu] 2
Implement \-\-no\-update\-modtime flag to stop rclone fixing the remote
modified times.
2018-09-01 11:58:00 +00:00
.RE
2016-07-13 11:26:22 +00:00
.IP \[bu] 2
Bug Fixes
2018-09-01 11:58:00 +00:00
.RS 2
2016-07-13 11:26:22 +00:00
.IP \[bu] 2
Fix move command \- stop it running for overlapping Fses \- this was
causing data loss.
2018-09-01 11:58:00 +00:00
.RE
2016-07-13 11:26:22 +00:00
.IP \[bu] 2
Local
2018-09-01 11:58:00 +00:00
.RS 2
2016-07-13 11:26:22 +00:00
.IP \[bu] 2
Fix incomplete hashes \- this was causing problems for B2.
2018-09-01 11:58:00 +00:00
.RE
2016-07-13 11:26:22 +00:00
.IP \[bu] 2
Amazon Drive
2018-09-01 11:58:00 +00:00
.RS 2
2016-07-13 11:26:22 +00:00
.IP \[bu] 2
Rename Amazon Cloud Drive to Amazon Drive \- no changes to config file
needed.
2018-09-01 11:58:00 +00:00
.RE
2016-07-13 11:26:22 +00:00
.IP \[bu] 2
Swift
2018-09-01 11:58:00 +00:00
.RS 2
2016-07-13 11:26:22 +00:00
.IP \[bu] 2
Add support for non\-default project domain \- thanks Antonio Messina.
2018-09-01 11:58:00 +00:00
.RE
2016-07-13 11:26:22 +00:00
.IP \[bu] 2
S3
2018-09-01 11:58:00 +00:00
.RS 2
2016-07-13 11:26:22 +00:00
.IP \[bu] 2
Add instructions on how to use rclone with minio.
.IP \[bu] 2
Add ap\-northeast\-2 (Seoul) and ap\-south\-1 (Mumbai) regions.
.IP \[bu] 2
Skip setting the modified time for objects > 5GB as it isn\[aq]t
possible.
2018-09-01 11:58:00 +00:00
.RE
2016-07-13 11:26:22 +00:00
.IP \[bu] 2
Backblaze B2
2018-09-01 11:58:00 +00:00
.RS 2
2016-07-13 11:26:22 +00:00
.IP \[bu] 2
Add \-\-b2\-versions flag so old versions can be listed and retreived.
.IP \[bu] 2
Treat 403 errors (eg cap exceeded) as fatal.
.IP \[bu] 2
Implement cleanup command for deleting old file versions.
.IP \[bu] 2
Make error handling compliant with B2 integrations notes.
.IP \[bu] 2
Fix handling of token expiry.
.IP \[bu] 2
Implement \-\-b2\-test\-mode to set \f[C]X\-Bz\-Test\-Mode\f[] header.
.IP \[bu] 2
Set cutoff for chunked upload to 200MB as per B2 guidelines.
.IP \[bu] 2
Make upload multi\-threaded.
2018-09-01 11:58:00 +00:00
.RE
2016-07-13 11:26:22 +00:00
.IP \[bu] 2
Dropbox
2018-09-01 11:58:00 +00:00
.RS 2
2016-07-13 11:26:22 +00:00
.IP \[bu] 2
Don\[aq]t retry 461 errors.
.RE
2018-09-01 11:58:00 +00:00
.SS v1.30 \- 2016\-06\-18
2016-06-18 15:29:53 +00:00
.IP \[bu] 2
New Features
2018-09-01 11:58:00 +00:00
.RS 2
2016-06-18 15:29:53 +00:00
.IP \[bu] 2
Directory listing code reworked for more features and better error
reporting (thanks to Klaus Post for help).
This enables
.RS 2
.IP \[bu] 2
Directory include filtering for efficiency
.IP \[bu] 2
\-\-max\-depth parameter
.IP \[bu] 2
Better error reporting
.IP \[bu] 2
More to come
.RE
.IP \[bu] 2
Retry more errors
.IP \[bu] 2
Add \-\-ignore\-size flag \- for uploading images to onedrive
.IP \[bu] 2
Log \-v output to stdout by default
.IP \[bu] 2
Display the transfer stats in more human readable form
.IP \[bu] 2
Make 0 size files specifiable with \f[C]\-\-max\-size\ 0b\f[]
.IP \[bu] 2
Add \f[C]b\f[] suffix so we can specify bytes in \-\-bwlimit,
\-\-min\-size etc
.IP \[bu] 2
Use "password:" instead of "password>" prompt \- thanks Klaus Post and
Leigh Klotz
2018-09-01 11:58:00 +00:00
.RE
2016-06-18 15:29:53 +00:00
.IP \[bu] 2
Bug Fixes
2018-09-01 11:58:00 +00:00
.RS 2
2016-06-18 15:29:53 +00:00
.IP \[bu] 2
Fix retry doing one too many retries
2018-09-01 11:58:00 +00:00
.RE
2016-06-18 15:29:53 +00:00
.IP \[bu] 2
Local
2018-09-01 11:58:00 +00:00
.RS 2
2016-06-18 15:29:53 +00:00
.IP \[bu] 2
Fix problems with OS X and UTF\-8 characters
2018-09-01 11:58:00 +00:00
.RE
2016-06-18 15:29:53 +00:00
.IP \[bu] 2
Amazon Drive
2018-09-01 11:58:00 +00:00
.RS 2
2016-06-18 15:29:53 +00:00
.IP \[bu] 2
Check a file exists before uploading to help with 408 Conflict errors
.IP \[bu] 2
Reauth on 401 errors \- this has been causing a lot of problems
.IP \[bu] 2
Work around spurious 403 errors
.IP \[bu] 2
Restart directory listings on error
2018-09-01 11:58:00 +00:00
.RE
2016-06-18 15:29:53 +00:00
.IP \[bu] 2
Google Drive
2018-09-01 11:58:00 +00:00
.RS 2
2016-06-18 15:29:53 +00:00
.IP \[bu] 2
Check a file exists before uploading to help with duplicates
.IP \[bu] 2
Fix retry of multipart uploads
2018-09-01 11:58:00 +00:00
.RE
2016-06-18 15:29:53 +00:00
.IP \[bu] 2
Backblaze B2
2018-09-01 11:58:00 +00:00
.RS 2
2016-06-18 15:29:53 +00:00
.IP \[bu] 2
Implement large file uploading
2018-09-01 11:58:00 +00:00
.RE
2016-06-18 15:29:53 +00:00
.IP \[bu] 2
S3
2018-09-01 11:58:00 +00:00
.RS 2
2016-06-18 15:29:53 +00:00
.IP \[bu] 2
Add AES256 server\-side encryption for \- thanks Justin R.
Wilson
2018-09-01 11:58:00 +00:00
.RE
2016-06-18 15:29:53 +00:00
.IP \[bu] 2
Google Cloud Storage
2018-09-01 11:58:00 +00:00
.RS 2
2016-06-18 15:29:53 +00:00
.IP \[bu] 2
Make sure we don\[aq]t use conflicting content types on upload
.IP \[bu] 2
Add service account support \- thanks Michal Witkowski
2018-09-01 11:58:00 +00:00
.RE
2016-06-18 15:29:53 +00:00
.IP \[bu] 2
Swift
2018-09-01 11:58:00 +00:00
.RS 2
2016-06-18 15:29:53 +00:00
.IP \[bu] 2
Add auth version parameter
.IP \[bu] 2
Add domain option for openstack (v3 auth) \- thanks Fabian Ruff
.RE
2018-09-01 11:58:00 +00:00
.SS v1.29 \- 2016\-04\-18
2016-04-18 17:30:29 +00:00
.IP \[bu] 2
New Features
2018-09-01 11:58:00 +00:00
.RS 2
2016-04-18 17:30:29 +00:00
.IP \[bu] 2
Implement \f[C]\-I,\ \-\-ignore\-times\f[] for unconditional upload
.IP \[bu] 2
Improve \f[C]dedupe\f[]command
.RS 2
.IP \[bu] 2
Now removes identical copies without asking
.IP \[bu] 2
Now obeys \f[C]\-\-dry\-run\f[]
.IP \[bu] 2
Implement \f[C]\-\-dedupe\-mode\f[] for non interactive running
2018-09-01 11:58:00 +00:00
.RS 2
2016-04-18 17:30:29 +00:00
.IP \[bu] 2
\f[C]\-\-dedupe\-mode\ interactive\f[] \- interactive the default.
.IP \[bu] 2
\f[C]\-\-dedupe\-mode\ skip\f[] \- removes identical files then skips
anything left.
.IP \[bu] 2
\f[C]\-\-dedupe\-mode\ first\f[] \- removes identical files then keeps
the first one.
.IP \[bu] 2
\f[C]\-\-dedupe\-mode\ newest\f[] \- removes identical files then keeps
the newest one.
.IP \[bu] 2
\f[C]\-\-dedupe\-mode\ oldest\f[] \- removes identical files then keeps
the oldest one.
.IP \[bu] 2
\f[C]\-\-dedupe\-mode\ rename\f[] \- removes identical files then
renames the rest to be different.
.RE
2018-09-01 11:58:00 +00:00
.RE
.RE
2016-04-18 17:30:29 +00:00
.IP \[bu] 2
Bug fixes
2018-09-01 11:58:00 +00:00
.RS 2
2016-04-18 17:30:29 +00:00
.IP \[bu] 2
Make rclone check obey the \f[C]\-\-size\-only\f[] flag.
.IP \[bu] 2
Use "application/octet\-stream" if discovered mime type is invalid.
.IP \[bu] 2
Fix missing "quit" option when there are no remotes.
2018-09-01 11:58:00 +00:00
.RE
2016-04-18 17:30:29 +00:00
.IP \[bu] 2
Google Drive
2018-09-01 11:58:00 +00:00
.RS 2
2016-04-18 17:30:29 +00:00
.IP \[bu] 2
Increase default chunk size to 8 MB \- increases upload speed of big
files
.IP \[bu] 2
Speed up directory listings and make more reliable
.IP \[bu] 2
Add missing retries for Move and DirMove \- increases reliability
.IP \[bu] 2
Preserve mime type on file update
2018-09-01 11:58:00 +00:00
.RE
2016-04-18 17:30:29 +00:00
.IP \[bu] 2
Backblaze B2
2018-09-01 11:58:00 +00:00
.RS 2
2016-04-18 17:30:29 +00:00
.IP \[bu] 2
Enable mod time syncing
.RS 2
.IP \[bu] 2
This means that B2 will now check modification times
.IP \[bu] 2
It will upload new files to update the modification times
.IP \[bu] 2
(there isn\[aq]t an API to just set the mod time.)
.IP \[bu] 2
If you want the old behaviour use \f[C]\-\-size\-only\f[].
.RE
.IP \[bu] 2
Update API to new version
.IP \[bu] 2
Fix parsing of mod time when not in metadata
2018-09-01 11:58:00 +00:00
.RE
2016-04-18 17:30:29 +00:00
.IP \[bu] 2
Swift/Hubic
2018-09-01 11:58:00 +00:00
.RS 2
2016-04-18 17:30:29 +00:00
.IP \[bu] 2
Don\[aq]t return an MD5SUM for static large objects
2018-09-01 11:58:00 +00:00
.RE
2016-04-18 17:30:29 +00:00
.IP \[bu] 2
S3
2018-09-01 11:58:00 +00:00
.RS 2
2016-04-18 17:30:29 +00:00
.IP \[bu] 2
Fix uploading files bigger than 50GB
.RE
2018-09-01 11:58:00 +00:00
.SS v1.28 \- 2016\-03\-01
.IP \[bu] 2
New Features
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Configuration file encryption \- thanks Klaus Post
.IP \[bu] 2
Improve \f[C]rclone\ config\f[] adding more help and making it easier to
understand
.IP \[bu] 2
Implement \f[C]\-u\f[]/\f[C]\-\-update\f[] so creation times can be used
on all remotes
.IP \[bu] 2
Implement \f[C]\-\-low\-level\-retries\f[] flag
.IP \[bu] 2
Optionally disable gzip compression on downloads with
\f[C]\-\-no\-gzip\-encoding\f[]
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Bug fixes
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Don\[aq]t make directories if \f[C]\-\-dry\-run\f[] set
.IP \[bu] 2
Fix and document the \f[C]move\f[] command
.IP \[bu] 2
Fix redirecting stderr on unix\-like OSes when using
\f[C]\-\-log\-file\f[]
.IP \[bu] 2
Fix \f[C]delete\f[] command to wait until all finished \- fixes missing
deletes.
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Backblaze B2
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Use one upload URL per go routine fixes
\f[C]more\ than\ one\ upload\ using\ auth\ token\f[]
.IP \[bu] 2
Add pacing, retries and reauthentication \- fixes token expiry problems
.IP \[bu] 2
Upload without using a temporary file from local (and remotes which
support SHA1)
.IP \[bu] 2
Fix reading metadata for all files when it shouldn\[aq]t have been
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Drive
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Fix listing drive documents at root
.IP \[bu] 2
Disable copy and move for Google docs
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Swift
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Fix uploading of chunked files with non ASCII characters
.IP \[bu] 2
Allow setting of \f[C]storage_url\f[] in the config \- thanks Xavier
Lucas
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
S3
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Allow IAM role and credentials from environment variables \- thanks
Brian Stengaard
.IP \[bu] 2
Allow low privilege users to use S3 (check if directory exists during
Mkdir) \- thanks Jakub Gedeon
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Amazon Drive
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Retry on more things to make directory listings more reliable
.RE
2018-09-01 11:58:00 +00:00
.SS v1.27 \- 2016\-01\-31
.IP \[bu] 2
New Features
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Easier headless configuration with \f[C]rclone\ authorize\f[]
.IP \[bu] 2
Add support for multiple hash types \- we now check SHA1 as well as MD5
hashes.
.IP \[bu] 2
\f[C]delete\f[] command which does obey the filters (unlike
\f[C]purge\f[])
.IP \[bu] 2
\f[C]dedupe\f[] command to deduplicate a remote.
Useful with Google Drive.
.IP \[bu] 2
Add \f[C]\-\-ignore\-existing\f[] flag to skip all files that exist on
destination.
.IP \[bu] 2
Add \f[C]\-\-delete\-before\f[], \f[C]\-\-delete\-during\f[],
\f[C]\-\-delete\-after\f[] flags.
.IP \[bu] 2
Add \f[C]\-\-memprofile\f[] flag to debug memory use.
.IP \[bu] 2
Warn the user about files with same name but different case
.IP \[bu] 2
Make \f[C]\-\-include\f[] rules add their implict exclude * at the end
of the filter list
.IP \[bu] 2
Deprecate compiling with go1.3
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Amazon Drive
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Fix download of files > 10 GB
.IP \[bu] 2
Fix directory traversal ("Next token is expired") for large directory
listings
.IP \[bu] 2
Remove 409 conflict from error codes we will retry \- stops very long
pauses
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Backblaze B2
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
SHA1 hashes now checked by rclone core
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Drive
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Add \f[C]\-\-drive\-auth\-owner\-only\f[] to only consider files owned
by the user \- thanks Björn Harrtell
.IP \[bu] 2
Export Google documents
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Dropbox
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Make file exclusion error controllable with \-q
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Swift
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Fix upload from unprivileged user.
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
S3
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Fix updating of mod times of files with \f[C]+\f[] in.
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Local
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Add local file system option to disable UNC on Windows.
.RE
2018-09-01 11:58:00 +00:00
.SS v1.26 \- 2016\-01\-02
.IP \[bu] 2
New Features
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Yandex storage backend \- thank you Dmitry Burdeev ("dibu")
.IP \[bu] 2
Implement Backblaze B2 storage backend
.IP \[bu] 2
Add \-\-min\-age and \-\-max\-age flags \- thank you Adriano Aurélio
Meirelles
.IP \[bu] 2
Make ls/lsl/md5sum/size/check obey includes and excludes
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Fixes
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Fix crash in http logging
.IP \[bu] 2
Upload releases to github too
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Swift
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Fix sync for chunked files
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
OneDrive
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Re\-enable server side copy
.IP \[bu] 2
Don\[aq]t mask HTTP error codes with JSON decode error
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
S3
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Fix corrupting Content\-Type on mod time update (thanks Joseph Spurrier)
.RE
2018-09-01 11:58:00 +00:00
.SS v1.25 \- 2015\-11\-14
.IP \[bu] 2
New features
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Implement Hubic storage system
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Fixes
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Fix deletion of some excluded files without \-\-delete\-excluded
.RS 2
.IP \[bu] 2
This could have deleted files unexpectedly on sync
.IP \[bu] 2
Always check first with \f[C]\-\-dry\-run\f[]!
.RE
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Swift
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Stop SetModTime losing metadata (eg X\-Object\-Manifest)
.RS 2
.IP \[bu] 2
This could have caused data loss for files > 5GB in size
.RE
.IP \[bu] 2
Use ContentType from Object to avoid lookups in listings
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
OneDrive
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
disable server side copy as it seems to be broken at Microsoft
.RE
2018-09-01 11:58:00 +00:00
.SS v1.24 \- 2015\-11\-07
.IP \[bu] 2
New features
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Add support for Microsoft OneDrive
.IP \[bu] 2
Add \f[C]\-\-no\-check\-certificate\f[] option to disable server
certificate verification
.IP \[bu] 2
Add async readahead buffer for faster transfer of big files
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Fixes
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Allow spaces in remotes and check remote names for validity at creation
time
.IP \[bu] 2
Allow \[aq]&\[aq] and disallow \[aq]:\[aq] in Windows filenames.
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Swift
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Ignore directory marker objects where appropriate \- allows working with
Hubic
.IP \[bu] 2
Don\[aq]t delete the container if fs wasn\[aq]t at root
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
S3
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Don\[aq]t delete the bucket if fs wasn\[aq]t at root
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Google Cloud Storage
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Don\[aq]t delete the bucket if fs wasn\[aq]t at root
.RE
2018-09-01 11:58:00 +00:00
.SS v1.23 \- 2015\-10\-03
.IP \[bu] 2
New features
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Implement \f[C]rclone\ size\f[] for measuring remotes
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Fixes
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Fix headless config for drive and gcs
.IP \[bu] 2
Tell the user they should try again if the webserver method failed
.IP \[bu] 2
Improve output of \f[C]\-\-dump\-headers\f[]
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
S3
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Allow anonymous access to public buckets
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Swift
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Stop chunked operations logging "Failed to read info: Object Not Found"
.IP \[bu] 2
Use Content\-Length on uploads for extra reliability
.RE
2018-09-01 11:58:00 +00:00
.SS v1.22 \- 2015\-09\-28
.IP \[bu] 2
Implement rsync like include and exclude flags
.IP \[bu] 2
swift
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Support files > 5GB \- thanks Sergey Tolmachev
.RE
2018-09-01 11:58:00 +00:00
.SS v1.21 \- 2015\-09\-22
.IP \[bu] 2
New features
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Display individual transfer progress
.IP \[bu] 2
Make lsl output times in localtime
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Fixes
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Fix allowing user to override credentials again in Drive, GCS and ACD
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Amazon Drive
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Implement compliant pacing scheme
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Google Drive
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Make directory reads concurrent for increased speed.
.RE
2018-09-01 11:58:00 +00:00
.SS v1.20 \- 2015\-09\-15
.IP \[bu] 2
New features
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Amazon Drive support
.IP \[bu] 2
Oauth support redone \- fix many bugs and improve usability
.RS 2
.IP \[bu] 2
Use "golang.org/x/oauth2" as oauth libary of choice
.IP \[bu] 2
Improve oauth usability for smoother initial signup
.IP \[bu] 2
drive, googlecloudstorage: optionally use auto config for the oauth
token
.RE
.IP \[bu] 2
Implement \-\-dump\-headers and \-\-dump\-bodies debug flags
.IP \[bu] 2
Show multiple matched commands if abbreviation too short
.IP \[bu] 2
Implement server side move where possible
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
local
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Always use UNC paths internally on Windows \- fixes a lot of bugs
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
dropbox
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
force use of our custom transport which makes timeouts work
.RE
.IP \[bu] 2
2018-09-01 11:58:00 +00:00
Thanks to Klaus Post for lots of help with this release
.SS v1.19 \- 2015\-08\-28
.IP \[bu] 2
New features
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Server side copies for s3/swift/drive/dropbox/gcs
.IP \[bu] 2
Move command \- uses server side copies if it can
.IP \[bu] 2
Implement \-\-retries flag \- tries 3 times by default
.IP \[bu] 2
Build for plan9/amd64 and solaris/amd64 too
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
Fixes
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Make a current version download with a fixed URL for scripting
.IP \[bu] 2
Ignore rmdir in limited fs rather than throwing error
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
dropbox
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Increase chunk size to improve upload speeds massively
.IP \[bu] 2
Issue an error message when trying to upload bad file name
.RE
2018-09-01 11:58:00 +00:00
.SS v1.18 \- 2015\-08\-17
.IP \[bu] 2
drive
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Add \f[C]\-\-drive\-use\-trash\f[] flag so rclone trashes instead of
deletes
.IP \[bu] 2
Add "Forbidden to download" message for files with no downloadURL
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
dropbox
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Remove datastore
.RS 2
.IP \[bu] 2
This was deprecated and it caused a lot of problems
.IP \[bu] 2
Modification times and MD5SUMs no longer stored
.RE
.IP \[bu] 2
Fix uploading files > 2GB
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
s3
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
use official AWS SDK from github.com/aws/aws\-sdk\-go
.IP \[bu] 2
\f[B]NB\f[] will most likely require you to delete and recreate remote
.IP \[bu] 2
enable multipart upload which enables files > 5GB
.IP \[bu] 2
tested with Ceph / RadosGW / S3 emulation
.IP \[bu] 2
many thanks to Sam Liston and Brian Haymore at the Utah Center for High
Performance Computing (https://www.chpc.utah.edu/) for a Ceph test
account
2018-09-01 11:58:00 +00:00
.RE
.IP \[bu] 2
misc
2018-09-01 11:58:00 +00:00
.RS 2
.IP \[bu] 2
Show errors when reading the config file
.IP \[bu] 2
Do not print stats in quiet mode \- thanks Leonid Shalupov
.IP \[bu] 2
Add FAQ
.IP \[bu] 2
Fix created directories not obeying umask
.IP \[bu] 2
Linux installation instructions \- thanks Shimon Doodkin
.RE
2018-09-01 11:58:00 +00:00
.SS v1.17 \- 2015\-06\-14
.IP \[bu] 2
dropbox: fix case insensitivity issues \- thanks Leonid Shalupov
2018-09-01 11:58:00 +00:00
.SS v1.16 \- 2015\-06\-09
.IP \[bu] 2
Fix uploading big files which was causing timeouts or panics
.IP \[bu] 2
Don\[aq]t check md5sum after download with \-\-size\-only
2018-09-01 11:58:00 +00:00
.SS v1.15 \- 2015\-06\-06
.IP \[bu] 2
Add \-\-checksum flag to only discard transfers by MD5SUM \- thanks Alex
Couper
.IP \[bu] 2
Implement \-\-size\-only flag to sync on size not checksum & modtime
.IP \[bu] 2
Expand docs and remove duplicated information
.IP \[bu] 2
Document rclone\[aq]s limitations with directories
.IP \[bu] 2
dropbox: update docs about case insensitivity
2018-09-01 11:58:00 +00:00
.SS v1.14 \- 2015\-05\-21
.IP \[bu] 2
local: fix encoding of non utf\-8 file names \- fixes a duplicate file
problem
.IP \[bu] 2
drive: docs about rate limiting
.IP \[bu] 2
google cloud storage: Fix compile after API change in
"google.golang.org/api/storage/v1"
2018-09-01 11:58:00 +00:00
.SS v1.13 \- 2015\-05\-10
.IP \[bu] 2
Revise documentation (especially sync)
.IP \[bu] 2
Implement \-\-timeout and \-\-conntimeout
.IP \[bu] 2
s3: ignore etags from multipart uploads which aren\[aq]t md5sums
2018-09-01 11:58:00 +00:00
.SS v1.12 \- 2015\-03\-15
.IP \[bu] 2
drive: Use chunked upload for files above a certain size
.IP \[bu] 2
drive: add \-\-drive\-chunk\-size and \-\-drive\-upload\-cutoff
parameters
.IP \[bu] 2
drive: switch to insert from update when a failed copy deletes the
upload
.IP \[bu] 2
core: Log duplicate files if they are detected
2018-09-01 11:58:00 +00:00
.SS v1.11 \- 2015\-03\-04
.IP \[bu] 2
swift: add region parameter
.IP \[bu] 2
drive: fix crash on failed to update remote mtime
.IP \[bu] 2
In remote paths, change native directory separators to /
.IP \[bu] 2
Add synchronization to ls/lsl/lsd output to stop corruptions
.IP \[bu] 2
Ensure all stats/log messages to go stderr
.IP \[bu] 2
Add \-\-log\-file flag to log everything (including panics) to file
.IP \[bu] 2
Make it possible to disable stats printing with \-\-stats=0
.IP \[bu] 2
Implement \-\-bwlimit to limit data transfer bandwidth
2018-09-01 11:58:00 +00:00
.SS v1.10 \- 2015\-02\-12
.IP \[bu] 2
s3: list an unlimited number of items
.IP \[bu] 2
Fix getting stuck in the configurator
2018-09-01 11:58:00 +00:00
.SS v1.09 \- 2015\-02\-07
.IP \[bu] 2
windows: Stop drive letters (eg C:) getting mixed up with remotes (eg
drive:)
.IP \[bu] 2
local: Fix directory separators on Windows
.IP \[bu] 2
drive: fix rate limit exceeded errors
2018-09-01 11:58:00 +00:00
.SS v1.08 \- 2015\-02\-04
.IP \[bu] 2
drive: fix subdirectory listing to not list entire drive
.IP \[bu] 2
drive: Fix SetModTime
.IP \[bu] 2
dropbox: adapt code to recent library changes
2018-09-01 11:58:00 +00:00
.SS v1.07 \- 2014\-12\-23
.IP \[bu] 2
google cloud storage: fix memory leak
2018-09-01 11:58:00 +00:00
.SS v1.06 \- 2014\-12\-12
.IP \[bu] 2
Fix "Couldn\[aq]t find home directory" on OSX
.IP \[bu] 2
swift: Add tenant parameter
.IP \[bu] 2
Use new location of Google API packages
2018-09-01 11:58:00 +00:00
.SS v1.05 \- 2014\-08\-09
.IP \[bu] 2
Improved tests and consequently lots of minor fixes
.IP \[bu] 2
core: Fix race detected by go race detector
.IP \[bu] 2
core: Fixes after running errcheck
.IP \[bu] 2
drive: reset root directory on Rmdir and Purge
.IP \[bu] 2
fs: Document that Purger returns error on empty directory, test and fix
.IP \[bu] 2
google cloud storage: fix ListDir on subdirectory
.IP \[bu] 2
google cloud storage: re\-read metadata in SetModTime
.IP \[bu] 2
s3: make reading metadata more reliable to work around eventual
consistency problems
.IP \[bu] 2
s3: strip trailing / from ListDir()
.IP \[bu] 2
swift: return directories without / in ListDir
2018-09-01 11:58:00 +00:00
.SS v1.04 \- 2014\-07\-21
.IP \[bu] 2
google cloud storage: Fix crash on Update
2018-09-01 11:58:00 +00:00
.SS v1.03 \- 2014\-07\-20
.IP \[bu] 2
swift, s3, dropbox: fix updated files being marked as corrupted
.IP \[bu] 2
Make compile with go 1.1 again
2018-09-01 11:58:00 +00:00
.SS v1.02 \- 2014\-07\-19
.IP \[bu] 2
Implement Dropbox remote
.IP \[bu] 2
Implement Google Cloud Storage remote
.IP \[bu] 2
Verify Md5sums and Sizes after copies
.IP \[bu] 2
Remove times from "ls" command \- lists sizes only
.IP \[bu] 2
Add add "lsl" \- lists times and sizes
.IP \[bu] 2
Add "md5sum" command
2018-09-01 11:58:00 +00:00
.SS v1.01 \- 2014\-07\-04
.IP \[bu] 2
drive: fix transfer of big files using up lots of memory
2018-09-01 11:58:00 +00:00
.SS v1.00 \- 2014\-07\-03
.IP \[bu] 2
drive: fix whole second dates
2018-09-01 11:58:00 +00:00
.SS v0.99 \- 2014\-06\-26
.IP \[bu] 2
Fix \-\-dry\-run not working
.IP \[bu] 2
Make compatible with go 1.1
2018-09-01 11:58:00 +00:00
.SS v0.98 \- 2014\-05\-30
.IP \[bu] 2
s3: Treat missing Content\-Length as 0 for some ceph installations
.IP \[bu] 2
rclonetest: add file with a space in
2018-09-01 11:58:00 +00:00
.SS v0.97 \- 2014\-05\-05
.IP \[bu] 2
Implement copying of single files
.IP \[bu] 2
s3 & swift: support paths inside containers/buckets
2018-09-01 11:58:00 +00:00
.SS v0.96 \- 2014\-04\-24
.IP \[bu] 2
drive: Fix multiple files of same name being created
.IP \[bu] 2
drive: Use o.Update and fs.Put to optimise transfers
.IP \[bu] 2
Add version number, \-V and \-\-version
2018-09-01 11:58:00 +00:00
.SS v0.95 \- 2014\-03\-28
.IP \[bu] 2
rclone.org: website, docs and graphics
.IP \[bu] 2
drive: fix path parsing
2018-09-01 11:58:00 +00:00
.SS v0.94 \- 2014\-03\-27
.IP \[bu] 2
Change remote format one last time
.IP \[bu] 2
GNU style flags
2018-09-01 11:58:00 +00:00
.SS v0.93 \- 2014\-03\-16
.IP \[bu] 2
drive: store token in config file
.IP \[bu] 2
cross compile other versions
.IP \[bu] 2
set strict permissions on config file
2018-09-01 11:58:00 +00:00
.SS v0.92 \- 2014\-03\-15
.IP \[bu] 2
Config fixes and \-\-config option
2018-09-01 11:58:00 +00:00
.SS v0.91 \- 2014\-03\-15
.IP \[bu] 2
Make config file
2018-09-01 11:58:00 +00:00
.SS v0.90 \- 2013\-06\-27
.IP \[bu] 2
Project named rclone
2018-09-01 11:58:00 +00:00
.SS v0.00 \- 2012\-11\-18
.IP \[bu] 2
Project started
.SS Bugs and Limitations
.SS Empty directories are left behind / not created
.PP
With remotes that have a concept of directory, eg Local and Drive, empty
directories may be left behind, or not created when one was expected.
.PP
This is because rclone doesn\[aq]t have a concept of a directory \- it
only works on objects.
Most of the object storage systems can\[aq]t actually store a directory
so there is nowhere for rclone to store anything about directories.
.PP
You can work round this to some extent with the\f[C]purge\f[] command
which will delete everything under the path, \f[B]inluding\f[] empty
directories.
.PP
This may be fixed at some point in Issue
#100 (https://github.com/ncw/rclone/issues/100)
.SS Directory timestamps aren\[aq]t preserved
.PP
For the same reason as the above, rclone doesn\[aq]t have a concept of a
directory \- it only works on objects, therefore it can\[aq]t preserve
the timestamps of directories.
.SS Frequently Asked Questions
.SS Do all cloud storage systems support all rclone commands
.PP
Yes they do.
All the rclone commands (eg \f[C]sync\f[], \f[C]copy\f[] etc) will work
on all the remote storage systems.
.SS Can I copy the config from one machine to another
.PP
Sure! Rclone stores all of its config in a single file.
2019-02-09 10:42:57 +00:00
If you want to find this file, run \f[C]rclone\ config\ file\f[] which
will tell you where it is.
.PP
See the remote setup docs (https://rclone.org/remote_setup/) for more
info.
.SS How do I configure rclone on a remote / headless box with no
browser?
.PP
This has now been documented in its own remote setup
page (https://rclone.org/remote_setup/).
.SS Can rclone sync directly from drive to s3
.PP
Rclone can sync between two remote cloud storage systems just fine.
.PP
Note that it effectively downloads the file and uploads it again, so the
node running rclone would need to have lots of bandwidth.
.PP
The syncs would be incremental (on a file by file basis).
.PP
Eg
.IP
.nf
\f[C]
rclone\ sync\ drive:Folder\ s3:bucket
\f[]
.fi
.SS Using rclone from multiple locations at the same time
.PP
You can use rclone from multiple places at the same time if you choose
different subdirectory for the output, eg
.IP
.nf
\f[C]
Server\ A>\ rclone\ sync\ /tmp/whatever\ remote:ServerA
Server\ B>\ rclone\ sync\ /tmp/whatever\ remote:ServerB
\f[]
.fi
.PP
If you sync to the same directory then you should use rclone copy
otherwise the two rclones may delete each others files, eg
.IP
.nf
\f[C]
Server\ A>\ rclone\ copy\ /tmp/whatever\ remote:Backup
Server\ B>\ rclone\ copy\ /tmp/whatever\ remote:Backup
\f[]
.fi
.PP
The file names you upload from Server A and Server B should be different
in this case, otherwise some file systems (eg Drive) may make
duplicates.
.SS Why doesn\[aq]t rclone support partial transfers / binary diffs like
rsync?
.PP
Rclone stores each file you transfer as a native object on the remote
cloud storage system.
This means that you can see the files you upload as expected using
alternative access methods (eg using the Google Drive web interface).
There is a 1:1 mapping between files on your hard disk and objects
created in the cloud storage system.
.PP
Cloud storage systems (at least none I\[aq]ve come across yet) don\[aq]t
support partially uploading an object.
You can\[aq]t take an existing object, and change some bytes in the
middle of it.
.PP
It would be possible to make a sync system which stored binary diffs
instead of whole objects like rclone does, but that would break the 1:1
mapping of files on your hard disk to objects in the remote cloud
storage system.
.PP
All the cloud storage systems support partial downloads of content, so
it would be possible to make partial downloads work.
However to make this work efficiently this would require storing a
significant amount of metadata, which breaks the desired 1:1 mapping of
files to objects.
.SS Can rclone do bi\-directional sync?
.PP
No, not at present.
rclone only does uni\-directional sync from A \-> B.
It may do in the future though since it has all the primitives \- it
just requires writing the algorithm to do it.
.SS Can I use rclone with an HTTP proxy?
.PP
Yes.
2018-11-24 13:44:25 +00:00
rclone will follow the standard environment variables for proxies,
similar to cURL and other programs.
.PP
2018-11-24 13:44:25 +00:00
In general the variables are called \f[C]http_proxy\f[] (for services
reached over \f[C]http\f[]) and \f[C]https_proxy\f[] (for services
reached over \f[C]https\f[]).
Most public services will be using \f[C]https\f[], but you may wish to
set both.
.PP
2018-11-24 13:44:25 +00:00
The content of the variable is \f[C]protocol://server:port\f[].
The protocol value is the one used to talk to the proxy server, itself,
and is commonly either \f[C]http\f[] or \f[C]socks5\f[].
.PP
Slightly annoyingly, there is no \f[I]standard\f[] for the name; some
applications may use \f[C]http_proxy\f[] but another one
\f[C]HTTP_PROXY\f[].
The \f[C]Go\f[] libraries used by \f[C]rclone\f[] will try both
variations, but you may wish to set all possibilities.
So, on Linux, you may end up with code similar to
.IP
.nf
\f[C]
export\ http_proxy=http://proxyserver:12345
export\ https_proxy=$http_proxy
export\ HTTP_PROXY=$http_proxy
export\ HTTPS_PROXY=$http_proxy
\f[]
.fi
.PP
The \f[C]NO_PROXY\f[] allows you to disable the proxy for specific
hosts.
Hosts must be comma separated, and can contain domains or parts.
For instance "foo.com" also matches "bar.foo.com".
2018-11-24 13:44:25 +00:00
.PP
e.g.
.IP
.nf
\f[C]
export\ no_proxy=localhost,127.0.0.0/8,my.host.name
export\ NO_PROXY=$no_proxy
\f[]
.fi
2019-02-09 10:42:57 +00:00
.PP
Note that the ftp backend does not support \f[C]ftp_proxy\f[] yet.
.SS Rclone gives x509: failed to load system roots and no roots provided
error
.PP
This means that \f[C]rclone\f[] can\[aq]t file the SSL root
certificates.
Likely you are running \f[C]rclone\f[] on a NAS with a cut\-down Linux
2016-06-18 15:29:53 +00:00
OS, or possibly on Solaris.
.PP
Rclone (via the Go runtime) tries to load the root certificates from
these places on Linux.
.IP
.nf
\f[C]
"/etc/ssl/certs/ca\-certificates.crt",\ //\ Debian/Ubuntu/Gentoo\ etc.
"/etc/pki/tls/certs/ca\-bundle.crt",\ \ \ //\ Fedora/RHEL
"/etc/ssl/ca\-bundle.pem",\ \ \ \ \ \ \ \ \ \ \ \ \ //\ OpenSUSE
"/etc/pki/tls/cacert.pem",\ \ \ \ \ \ \ \ \ \ \ \ //\ OpenELEC
\f[]
.fi
.PP
So doing something like this should fix the problem.
It also sets the time which is important for SSL to work properly.
.IP
.nf
\f[C]
mkdir\ \-p\ /etc/ssl/certs/
curl\ \-o\ /etc/ssl/certs/ca\-certificates.crt\ https://raw.githubusercontent.com/bagder/ca\-bundle/master/ca\-bundle.crt
ntpclient\ \-s\ \-h\ pool.ntp.org
\f[]
.fi
2016-03-01 09:00:01 +00:00
.PP
2018-03-19 10:06:13 +00:00
The two environment variables \f[C]SSL_CERT_FILE\f[] and
\f[C]SSL_CERT_DIR\f[], mentioned in the x509
pacakge (https://godoc.org/crypto/x509), provide an additional way to
provide the SSL root certificates.
.PP
2016-03-01 09:00:01 +00:00
Note that you may need to add the \f[C]\-\-insecure\f[] option to the
\f[C]curl\f[] command line if it doesn\[aq]t work without.
.IP
.nf
\f[C]
curl\ \-\-insecure\ \-o\ /etc/ssl/certs/ca\-certificates.crt\ https://raw.githubusercontent.com/bagder/ca\-bundle/master/ca\-bundle.crt
\f[]
.fi
.SS Rclone gives Failed to load config file: function not implemented
error
.PP
Likely this means that you are running rclone on Linux version not
supported by the go runtime, ie earlier than version 2.6.23.
.PP
See the system requirements section in the go install
docs (https://golang.org/doc/install) for full details.
2016-04-18 17:30:29 +00:00
.SS All my uploaded docx/xlsx/pptx files appear as archive/zip
.PP
This is caused by uploading these files from a Windows computer which
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
2017-09-30 13:19:47 +00:00
.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.
2018-03-19 10:06:13 +00:00
.PP
Additionally with the \f[C]GODEBUG=netdns=\f[] environment variable the
Go resolver decision can be influenced.
This also allows to resolve certain issues with DNS resolution.
See the name resolution section in the go
docs (https://golang.org/pkg/net/#hdr-Name_Resolution).
.SS License
.PP
This is free software under the terms of MIT the license (check the
COPYING file included with the source code).
.IP
.nf
\f[C]
Copyright\ (C)\ 2012\ by\ Nick\ Craig\-Wood\ https://www.craig\-wood.com/nick/
Permission\ is\ hereby\ granted,\ free\ of\ charge,\ to\ any\ person\ obtaining\ a\ copy
of\ this\ software\ and\ associated\ documentation\ files\ (the\ "Software"),\ to\ deal
in\ the\ Software\ without\ restriction,\ including\ without\ limitation\ the\ rights
to\ use,\ copy,\ modify,\ merge,\ publish,\ distribute,\ sublicense,\ and/or\ sell
copies\ of\ the\ Software,\ and\ to\ permit\ persons\ to\ whom\ the\ Software\ is
furnished\ to\ do\ so,\ subject\ to\ the\ following\ conditions:
The\ above\ copyright\ notice\ and\ this\ permission\ notice\ shall\ be\ included\ in
all\ copies\ or\ substantial\ portions\ of\ the\ Software.
THE\ SOFTWARE\ IS\ PROVIDED\ "AS\ IS",\ WITHOUT\ WARRANTY\ OF\ ANY\ KIND,\ EXPRESS\ OR
IMPLIED,\ INCLUDING\ BUT\ NOT\ LIMITED\ TO\ THE\ WARRANTIES\ OF\ MERCHANTABILITY,
FITNESS\ FOR\ A\ PARTICULAR\ PURPOSE\ AND\ NONINFRINGEMENT.\ IN\ NO\ EVENT\ SHALL\ THE
AUTHORS\ OR\ COPYRIGHT\ HOLDERS\ BE\ LIABLE\ FOR\ ANY\ CLAIM,\ DAMAGES\ OR\ OTHER
LIABILITY,\ WHETHER\ IN\ AN\ ACTION\ OF\ CONTRACT,\ TORT\ OR\ OTHERWISE,\ ARISING\ FROM,
OUT\ OF\ OR\ IN\ CONNECTION\ WITH\ THE\ SOFTWARE\ OR\ THE\ USE\ OR\ OTHER\ DEALINGS\ IN
THE\ SOFTWARE.
\f[]
.fi
.SS Authors
.IP \[bu] 2
Nick Craig\-Wood <nick@craig-wood.com>
.SS Contributors
.IP \[bu] 2
Alex Couper <amcouper@gmail.com>
.IP \[bu] 2
Leonid Shalupov <leonid@shalupov.com> <shalupov@diverse.org.ru>
.IP \[bu] 2
Shimon Doodkin <helpmepro1@gmail.com>
.IP \[bu] 2
Colin Nicholson <colin@colinn.com>
.IP \[bu] 2
Klaus Post <klauspost@gmail.com>
.IP \[bu] 2
Sergey Tolmachev <tolsi.ru@gmail.com>
.IP \[bu] 2
Adriano Aurélio Meirelles <adriano@atinge.com>
.IP \[bu] 2
C.
Bess <cbess@users.noreply.github.com>
.IP \[bu] 2
Dmitry Burdeev <dibu28@gmail.com>
.IP \[bu] 2
Joseph Spurrier <github@josephspurrier.com>
.IP \[bu] 2
Björn Harrtell <bjorn@wololo.org>
.IP \[bu] 2
Xavier Lucas <xavier.lucas@corp.ovh.com>
.IP \[bu] 2
Werner Beroux <werner@beroux.com>
2016-03-01 09:00:01 +00:00
.IP \[bu] 2
Brian Stengaard <brian@stengaard.eu>
.IP \[bu] 2
Jakub Gedeon <jgedeon@sofi.com>
2016-06-18 15:29:53 +00:00
.IP \[bu] 2
Jim Tittsler <jwt@onjapan.net>
.IP \[bu] 2
Michal Witkowski <michal@improbable.io>
.IP \[bu] 2
Fabian Ruff <fabian.ruff@sap.com>
.IP \[bu] 2
Leigh Klotz <klotz@quixey.com>
.IP \[bu] 2
Romain Lapray <lapray.romain@gmail.com>
.IP \[bu] 2
Justin R.
Wilson <jrw972@gmail.com>
2016-07-13 11:26:22 +00:00
.IP \[bu] 2
Antonio Messina <antonio.s.messina@gmail.com>
.IP \[bu] 2
Stefan G.
Weichinger <office@oops.co.at>
2016-08-24 21:58:24 +00:00
.IP \[bu] 2
Per Cederberg <cederberg@gmail.com>
.IP \[bu] 2
Radek Šenfeld <rush@logic.cz>
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
Fredrik Fornwall <fredrik@fornwall.net>
.IP \[bu] 2
Asko Tamm <asko@deekit.net>
.IP \[bu] 2
xor\-zz <xor@gstocco.com>
.IP \[bu] 2
Tomasz Mazur <tmazur90@gmail.com>
.IP \[bu] 2
Marco Paganini <paganini@paganini.net>
.IP \[bu] 2
Felix Bünemann <buenemann@louis.info>
.IP \[bu] 2
Durval Menezes <jmrclone@durval.com>
.IP \[bu] 2
Luiz Carlos Rumbelsperger Viana <maxd13_luiz_carlos@hotmail.com>
2017-01-02 15:30:34 +00:00
.IP \[bu] 2
Stefan Breunig <stefan-github@yrden.de>
.IP \[bu] 2
Alishan Ladhani <ali-l@users.noreply.github.com>
.IP \[bu] 2
0xJAKE <0xJAKE@users.noreply.github.com>
.IP \[bu] 2
Thibault Molleman <thibaultmol@users.noreply.github.com>
.IP \[bu] 2
Scott McGillivray <scott.mcgillivray@gmail.com>
2017-03-18 11:16:43 +00:00
.IP \[bu] 2
Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
.IP \[bu] 2
Lukas Loesche <lukas@mesosphere.io>
.IP \[bu] 2
emyarod <allllaboutyou@gmail.com>
.IP \[bu] 2
T.C.
Ferguson <tcf909@gmail.com>
.IP \[bu] 2
Brandur <brandur@mutelight.org>
.IP \[bu] 2
Dario Giovannetti <dev@dariogiovannetti.net>
.IP \[bu] 2
Károly Oláh <okaresz@aol.com>
.IP \[bu] 2
Jon Yergatian <jon@macfanatic.ca>
.IP \[bu] 2
Jack Schmidt <github@mowsey.org>
.IP \[bu] 2
Dedsec1 <Dedsec1@users.noreply.github.com>
.IP \[bu] 2
Hisham Zarka <hzarka@gmail.com>
.IP \[bu] 2
Jérôme Vizcaino <jerome.vizcaino@gmail.com>
.IP \[bu] 2
Mike Tesch <mjt6129@rit.edu>
.IP \[bu] 2
Marvin Watson <marvwatson@users.noreply.github.com>
.IP \[bu] 2
Danny Tsai <danny8376@gmail.com>
.IP \[bu] 2
Yoni Jah <yonjah+git@gmail.com> <yonjah+github@gmail.com>
.IP \[bu] 2
2018-11-24 13:44:25 +00:00
Stephen Harris <github@spuddy.org> <sweharris@users.noreply.github.com>
.IP \[bu] 2
Ihor Dvoretskyi <ihor.dvoretskyi@gmail.com>
.IP \[bu] 2
Jon Craton <jncraton@gmail.com>
.IP \[bu] 2
Hraban Luyat <hraban@0brg.net>
.IP \[bu] 2
Michael Ledin <mledin89@gmail.com>
.IP \[bu] 2
Martin Kristensen <me@azgul.com>
.IP \[bu] 2
Too Much IO <toomuchio@users.noreply.github.com>
.IP \[bu] 2
Anisse Astier <anisse@astier.eu>
.IP \[bu] 2
Zahiar Ahmed <zahiar@live.com>
.IP \[bu] 2
Igor Kharin <igorkharin@gmail.com>
.IP \[bu] 2
Bill Zissimopoulos <billziss@navimatics.com>
.IP \[bu] 2
Bob Potter <bobby.potter@gmail.com>
.IP \[bu] 2
Steven Lu <tacticalazn@gmail.com>
.IP \[bu] 2
Sjur Fredriksen <sjurtf@ifi.uio.no>
.IP \[bu] 2
Ruwbin <hubus12345@gmail.com>
.IP \[bu] 2
2018-03-19 10:06:13 +00:00
Fabian Möller <fabianm88@gmail.com> <f.moeller@nynex.de>
.IP \[bu] 2
Edward Q.
Bridges <github@eqbridges.com>
2017-07-22 17:16:46 +00:00
.IP \[bu] 2
Vasiliy Tolstov <v.tolstov@selfip.ru>
.IP \[bu] 2
Harshavardhana <harsha@minio.io>
.IP \[bu] 2
sainaen <sainaen@gmail.com>
.IP \[bu] 2
gdm85 <gdm85@users.noreply.github.com>
.IP \[bu] 2
Yaroslav Halchenko <debian@onerussian.com>
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
John Papandriopoulos <jpap@users.noreply.github.com>
.IP \[bu] 2
Zhiming Wang <zmwangx@gmail.com>
.IP \[bu] 2
Andy Pilate <cubox@cubox.me>
.IP \[bu] 2
2018-03-19 10:06:13 +00:00
Oliver Heyme <olihey@googlemail.com> <olihey@users.noreply.github.com>
2018-04-28 10:46:27 +00:00
<de8olihe@lego.com>
2017-09-30 13:19:47 +00:00
.IP \[bu] 2
wuyu <wuyu@yunify.com>
.IP \[bu] 2
Andrei Dragomir <adragomi@adobe.com>
.IP \[bu] 2
Christian Brüggemann <mail@cbruegg.com>
.IP \[bu] 2
Alex McGrath Kraak <amkdude@gmail.com>
.IP \[bu] 2
bpicode <bjoern.pirnay@googlemail.com>
.IP \[bu] 2
Daniel Jagszent <daniel@jagszent.de>
.IP \[bu] 2
Josiah White <thegenius2009@gmail.com>
.IP \[bu] 2
Ishuah Kariuki <kariuki@ishuah.com> <ishuah91@gmail.com>
.IP \[bu] 2
Jan Varho <jan@varho.org>
.IP \[bu] 2
Girish Ramakrishnan <girish@cloudron.io>
.IP \[bu] 2
LingMan <LingMan@users.noreply.github.com>
.IP \[bu] 2
Jacob McNamee <jacobmcnamee@gmail.com>
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
jersou <jertux@gmail.com>
.IP \[bu] 2
thierry <thierry@substantiel.fr>
.IP \[bu] 2
Simon Leinen <simon.leinen@gmail.com> <ubuntu@s3-test.novalocal>
.IP \[bu] 2
Dan Dascalescu <ddascalescu+github@gmail.com>
.IP \[bu] 2
Jason Rose <jason@jro.io>
.IP \[bu] 2
Andrew Starr\-Bochicchio <a.starr.b@gmail.com>
.IP \[bu] 2
John Leach <john@johnleach.co.uk>
.IP \[bu] 2
Corban Raun <craun@instructure.com>
.IP \[bu] 2
Pierre Carlson <mpcarl@us.ibm.com>
.IP \[bu] 2
Ernest Borowski <er.borowski@gmail.com>
.IP \[bu] 2
Remus Bunduc <remus.bunduc@gmail.com>
.IP \[bu] 2
2018-03-19 10:06:13 +00:00
Iakov Davydov <iakov.davydov@unil.ch> <dav05.gith@myths.ru>
2017-12-23 13:07:45 +00:00
.IP \[bu] 2
Jakub Tasiemski <tasiemski@gmail.com>
.IP \[bu] 2
David Minor <dminor@saymedia.com>
.IP \[bu] 2
Tim Cooijmans <cooijmans.tim@gmail.com>
.IP \[bu] 2
Laurence <liuxy6@gmail.com>
.IP \[bu] 2
Giovanni Pizzi <gio.piz@gmail.com>
.IP \[bu] 2
Filip Bartodziej <filipbartodziej@gmail.com>
.IP \[bu] 2
Jon Fautley <jon@dead.li>
.IP \[bu] 2
lewapm <32110057+lewapm@users.noreply.github.com>
.IP \[bu] 2
Yassine Imounachen <yassine256@gmail.com>
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Chris Redekop <chris-redekop@users.noreply.github.com>
2018-04-28 10:46:27 +00:00
<chris.redekop@gmail.com>
2018-03-19 10:06:13 +00:00
.IP \[bu] 2
Jon Fautley <jon@adenoid.appstal.co.uk>
.IP \[bu] 2
Will Gunn <WillGunn@users.noreply.github.com>
.IP \[bu] 2
Lucas Bremgartner <lucas@bremis.ch>
.IP \[bu] 2
Jody Frankowski <jody.frankowski@gmail.com>
.IP \[bu] 2
Andreas Roussos <arouss1980@gmail.com>
.IP \[bu] 2
nbuchanan <nbuchanan@utah.gov>
.IP \[bu] 2
Durval Menezes <rclone@durval.com>
.IP \[bu] 2
Victor <vb-github@viblo.se>
.IP \[bu] 2
Mateusz <pabian.mateusz@gmail.com>
.IP \[bu] 2
Daniel Loader <spicypixel@gmail.com>
.IP \[bu] 2
David0rk <davidork@gmail.com>
.IP \[bu] 2
Alexander Neumann <alexander@bumpern.de>
.IP \[bu] 2
Giri Badanahatti <gbadanahatti@us.ibm.com@Giris-MacBook-Pro.local>
.IP \[bu] 2
Leo R.
Lundgren <leo@finalresort.org>
.IP \[bu] 2
wolfv <wolfv6@users.noreply.github.com>
.IP \[bu] 2
Dave Pedu <dave@davepedu.com>
.IP \[bu] 2
Stefan Lindblom <lindblom@spotify.com>
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
seuffert <oliver@seuffert.biz>
.IP \[bu] 2
gbadanahatti <37121690+gbadanahatti@users.noreply.github.com>
.IP \[bu] 2
Keith Goldfarb <barkofdelight@gmail.com>
.IP \[bu] 2
Steve Kriss <steve@heptio.com>
.IP \[bu] 2
Chih\-Hsuan Yen <yan12125@gmail.com>
.IP \[bu] 2
Alexander Neumann <fd0@users.noreply.github.com>
.IP \[bu] 2
Matt Holt <mholt@users.noreply.github.com>
.IP \[bu] 2
Eri Bastos <bastos.eri@gmail.com>
.IP \[bu] 2
Michael P.
Dubner <pywebmail@list.ru>
.IP \[bu] 2
Antoine GIRARD <sapk@users.noreply.github.com>
.IP \[bu] 2
Mateusz Piotrowski <mpp302@gmail.com>
.IP \[bu] 2
Animosity022 <animosity22@users.noreply.github.com>
2019-02-09 10:42:57 +00:00
<earl.texter@gmail.com>
2018-04-28 10:46:27 +00:00
.IP \[bu] 2
Peter Baumgartner <pete@lincolnloop.com>
.IP \[bu] 2
Craig Rachel <craig@craigrachel.com>
.IP \[bu] 2
Michael G.
Noll <miguno@users.noreply.github.com>
.IP \[bu] 2
hensur <me@hensur.de>
.IP \[bu] 2
Oliver Heyme <de8olihe@lego.com>
.IP \[bu] 2
Richard Yang <richard@yenforyang.com>
2018-06-16 17:21:09 +00:00
.IP \[bu] 2
Piotr Oleszczyk <piotr.oleszczyk@gmail.com>
.IP \[bu] 2
Rodrigo <rodarima@gmail.com>
.IP \[bu] 2
NoLooseEnds <NoLooseEnds@users.noreply.github.com>
.IP \[bu] 2
Jakub Karlicek <jakub@karlicek.me>
.IP \[bu] 2
John Clayton <john@codemonkeylabs.com>
.IP \[bu] 2
Kasper Byrdal Nielsen <byrdal76@gmail.com>
.IP \[bu] 2
Benjamin Joseph Dag <bjdag1234@users.noreply.github.com>
.IP \[bu] 2
themylogin <themylogin@gmail.com>
2018-09-01 11:58:00 +00:00
.IP \[bu] 2
Onno Zweers <onno.zweers@surfsara.nl>
.IP \[bu] 2
Jasper Lievisse Adriaanse <jasper@humppa.nl>
.IP \[bu] 2
sandeepkru <sandeep.ummadi@gmail.com>
2018-10-15 10:03:08 +00:00
<sandeepkru@users.noreply.github.com>
2018-09-01 11:58:00 +00:00
.IP \[bu] 2
HerrH <atomtigerzoo@users.noreply.github.com>
.IP \[bu] 2
Andrew <4030760+sparkyman215@users.noreply.github.com>
.IP \[bu] 2
dan smith <XX1011@gmail.com>
.IP \[bu] 2
Oleg Kovalov <iamolegkovalov@gmail.com>
.IP \[bu] 2
Ruben Vandamme <github-com-00ff86@vandamme.email>
.IP \[bu] 2
Cnly <minecnly@gmail.com>
.IP \[bu] 2
Andres Alvarez <1671935+kir4h@users.noreply.github.com>
.IP \[bu] 2
reddi1 <xreddi@gmail.com>
.IP \[bu] 2
Matt Tucker <matthewtckr@gmail.com>
.IP \[bu] 2
Sebastian Bünger <buengese@gmail.com>
.IP \[bu] 2
Martin Polden <mpolden@mpolden.no>
.IP \[bu] 2
Alex Chen <Cnly@users.noreply.github.com>
.IP \[bu] 2
Denis <deniskovpen@gmail.com>
.IP \[bu] 2
bsteiss <35940619+bsteiss@users.noreply.github.com>
2018-10-15 10:03:08 +00:00
.IP \[bu] 2
Cédric Connes <cedric.connes@gmail.com>
.IP \[bu] 2
Dr.
Tobias Quathamer <toddy15@users.noreply.github.com>
.IP \[bu] 2
dcpu <42736967+dcpu@users.noreply.github.com>
.IP \[bu] 2
Sheldon Rupp <me@shel.io>
.IP \[bu] 2
albertony <12441419+albertony@users.noreply.github.com>
.IP \[bu] 2
cron410 <cron410@gmail.com>
.IP \[bu] 2
Anagh Kumar Baranwal <anaghk.dos@gmail.com>
.IP \[bu] 2
Felix Brucker <felix@felixbrucker.com>
.IP \[bu] 2
Santiago Rodríguez <scollazo@users.noreply.github.com>
.IP \[bu] 2
Craig Miskell <craig.miskell@fluxfederation.com>
.IP \[bu] 2
Antoine GIRARD <sapk@sapk.fr>
.IP \[bu] 2
Joanna Marek <joanna.marek@u2i.com>
.IP \[bu] 2
frenos <frenos@users.noreply.github.com>
.IP \[bu] 2
ssaqua <ssaqua@users.noreply.github.com>
.IP \[bu] 2
xnaas <me@xnaas.info>
.IP \[bu] 2
Frantisek Fuka <fuka@fuxoft.cz>
.IP \[bu] 2
Paul Kohout <pauljkohout@yahoo.com>
.IP \[bu] 2
dcpu <43330287+dcpu@users.noreply.github.com>
.IP \[bu] 2
jackyzy823 <jackyzy823@gmail.com>
.IP \[bu] 2
David Haguenauer <ml@kurokatta.org>
.IP \[bu] 2
teresy <hi.teresy@gmail.com>
.IP \[bu] 2
buergi <patbuergi@gmx.de>
2018-11-24 13:44:25 +00:00
.IP \[bu] 2
Florian Gamboeck <mail@floga.de>
.IP \[bu] 2
Ralf Hemberger <10364191+rhemberger@users.noreply.github.com>
.IP \[bu] 2
Scott Edlund <sedlund@users.noreply.github.com>
.IP \[bu] 2
Erik Swanson <erik@retailnext.net>
.IP \[bu] 2
Jake Coggiano <jake@stripe.com>
.IP \[bu] 2
brused27 <brused27@noemailaddress>
.IP \[bu] 2
Peter Kaminski <kaminski@istori.com>
.IP \[bu] 2
Henry Ptasinski <henry@logout.com>
.IP \[bu] 2
Alexander <kharkovalexander@gmail.com>
2019-02-09 10:42:57 +00:00
.IP \[bu] 2
Garry McNulty <garrmcnu@gmail.com>
.IP \[bu] 2
Mathieu Carbou <mathieu.carbou@gmail.com>
.IP \[bu] 2
Mark Otway <mark@otway.com>
.IP \[bu] 2
William Cocker <37018962+WilliamCocker@users.noreply.github.com>
.IP \[bu] 2
François Leurent <131.js@cloudyks.org>
.IP \[bu] 2
Arkadius Stefanski <arkste@gmail.com>
.IP \[bu] 2
Jay <dev@jaygoel.com>
.IP \[bu] 2
andrea rota <a@xelera.eu>
.IP \[bu] 2
nicolov <nicolov@users.noreply.github.com>
.IP \[bu] 2
Dario Guzik <dario@guzik.com.ar>
.IP \[bu] 2
qip <qip@users.noreply.github.com>
.IP \[bu] 2
yair\@unicorn <yair@unicorn>
.IP \[bu] 2
Matt Robinson <brimstone@the.narro.ws>
.IP \[bu] 2
kayrus <kay.diam@gmail.com>
.IP \[bu] 2
Rémy Léone <remy.leone@gmail.com>
.IP \[bu] 2
Wojciech Smigielski <wojciech.hieronim.smigielski@gmail.com>
.IP \[bu] 2
weetmuts <oehrstroem@gmail.com>
.IP \[bu] 2
Jonathan <vanillajonathan@users.noreply.github.com>
.IP \[bu] 2
James Carpenter <orbsmiv@users.noreply.github.com>
2016-11-06 10:17:52 +00:00
.SH Contact the rclone project
.SS Forum
.PP
Forum for general discussions and questions:
.IP \[bu] 2
https://forum.rclone.org
.SS Gitub project
.PP
The project website is at:
.IP \[bu] 2
https://github.com/ncw/rclone
.PP
There you can file bug reports, ask for help or contribute pull
requests.
2016-11-06 10:17:52 +00:00
.SS Google+
.PP
2016-11-06 10:17:52 +00:00
Rclone has a Google+ page which announcements are posted to
.IP \[bu] 2
Google+ page for general comments
2016-11-06 10:17:52 +00:00
.SS Twitter
.PP
2017-12-23 13:07:45 +00:00
You can also follow me on twitter for rclone announcements
2016-11-06 10:17:52 +00:00
.IP \[bu] 2
[\@njcw](https://twitter.com/njcw)
.SS Email
.PP
2016-11-06 10:17:52 +00:00
Or if all else fails or you want to ask something private or
confidential email Nick Craig\-Wood (mailto:nick@craig-wood.com)
.SH AUTHORS
Nick Craig\-Wood.