Manual
Manual
Nick Craig-Wood
Sep 24, 2024
- About rclone
- What can rclone do for you?
- What features does rclone have?
- What providers does rclone support?
- Download
- Install
- Donate.
About rclone
Rclone has powerful cloud equivalents to the unix commands rsync, cp,
mv, mount, ls, ncdu, tree, rm, and cat. Rclone's familiar syntax
includes shell pipeline support, and --dry-run protection. It is used at
the command line, in scripts or via its API.
Users call rclone "The Swiss army knife of cloud storage", and
"Technology indistinguishable from magic".
Virtual backends wrap local and cloud file systems to apply encryption,
compression, chunking, hashing and joining.
Features
- Transfers
- MD5, SHA1 hashes are checked at all times for file integrity
- Timestamps are preserved on files
- Operations can be restarted at any time
- Can be to and from network, e.g. two different cloud providers
- Can use multi-threaded downloads to local disk
- Copy new or changed files to cloud storage
- Sync (one way) to make a directory identical
- Bisync (two way) to keep two directories in sync bidirectionally
- Move files to cloud storage deleting the local after verification
- Check hashes and for missing/extra files
- Mount your cloud storage as a network disk
- Serve local or remote files over HTTP/WebDav/FTP/SFTP/DLNA
- Experimental Web based GUI
Supported providers
- 1Fichier
- Akamai Netstorage
- Alibaba Cloud (Aliyun) Object Storage System (OSS)
- Amazon S3
- Backblaze B2
- Box
- Ceph
- China Mobile Ecloud Elastic Object Storage (EOS)
- Arvan Cloud Object Storage (AOS)
- Citrix ShareFile
- Cloudflare R2
- DigitalOcean Spaces
- Digi Storage
- Dreamhost
- Dropbox
- Enterprise File Fabric
- Fastmail Files
- Files.com
- FTP
- Gofile
- Google Cloud Storage
- Google Drive
- Google Photos
- HDFS
- Hetzner Storage Box
- HiDrive
- HTTP
- ImageKit
- Internet Archive
- Jottacloud
- IBM COS S3
- IDrive e2
- IONOS Cloud
- Koofr
- Leviia Object Storage
- Liara Object Storage
- Linkbox
- Linode Object Storage
- Magalu
- Mail.ru Cloud
- Memset Memstore
- Mega
- Memory
- Microsoft Azure Blob Storage
- Microsoft Azure Files Storage
- Microsoft OneDrive
- Minio
- Nextcloud
- OVH
- Blomp Cloud Storage
- OpenDrive
- OpenStack Swift
- Oracle Cloud Storage Swift
- Oracle Object Storage
- ownCloud
- pCloud
- Petabox
- PikPak
- Pixeldrain
- premiumize.me
- put.io
- Proton Drive
- QingStor
- Qiniu Cloud Object Storage (Kodo)
- Quatrix by Maytech
- Rackspace Cloud Files
- rsync.net
- Scaleway
- Seafile
- Seagate Lyve Cloud
- SeaweedFS
- SFTP
- Sia
- SMB / CIFS
- StackPath
- Storj
- Synology
- SugarSync
- Tencent Cloud Object Storage (COS)
- Uloz.to
- Uptobox
- Wasabi
- WebDAV
- Yandex Disk
- Zoho WorkDrive
- The local filesystem
Virtual providers
Links
- Home page
- GitHub project page for source and bug tracker
- Rclone Forum
- Downloads
Install
Quickstart
See the usage docs for how to use rclone, or run rclone -h.
See the release signing docs for how to verify signatures on the
release.
Script installation
Note that this script checks the version of rclone installed first and
won't re-download if not needed.
Linux installation
Precompiled binary
curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
unzip rclone-current-linux-amd64.zip
cd rclone-*-linux-amd64
Install manpage
Run rclone config to setup. See rclone config docs for more details.
rclone config
macOS installation
NOTE: This version of rclone will not support mount any more (see
#5373). If mounting is wanted on macOS, either install a precompiled
binary or enable the relevant option when installing from source.
Note that this is a third party installer not controlled by the rclone
developers so it may be out of date. Its current version is as below.
[Homebrew package]
Note that this is a third party installer not controlled by the rclone
developers so it may be out of date. Its current version is as below.
[MacPorts port]
Move rclone to your $PATH. You will be prompted for your password.
Run rclone config to setup. See rclone config docs for more details.
rclone config
When downloading a binary with a web browser, the browser will set the
macOS gatekeeper quarantine attribute. Starting from Catalina, when
attempting to run rclone, a pop-up will appear saying:
Windows installation
Precompiled binary
Fetch the correct binary for your processor type by clicking on these
links. If not sure, use the first link.
- Intel/AMD - 64 Bit
- Intel/AMD - 32 Bit
- ARM - 64 Bit
Open a CMD window (or powershell) and run the binary. Note that rclone
does not launch a GUI by default, it runs in the CMD Window.
- Run rclone.exe config to setup. See rclone config docs for more
details.
- Optionally configure automatic execution.
If you are planning to use the rclone mount feature then you will need
to install the third party utility WinFsp also.
Windows package manager (Winget)
To install rclone
To uninstall rclone
This will install rclone on your Windows machine. If you are planning to
use rclone mount then
Note that this is a third party installer not controlled by the rclone
developers so it may be out of date. Its current version is as below.
[Chocolatey package]
Note that this is a third party installer not controlled by the rclone
developers so it may be out of date. Its current version is as below.
[Scoop package]
The distributed versions of rclone are often quite out of date and for
this reason we recommend one of the other installation methods if
possible.
[Packaging status]
Docker installation
The rclone developers maintain a docker image for rclone.
These images are built as part of the release process based on a minimal
Alpine Linux.
The :latest tag will always point to the latest stable release. You can
use the :beta tag to get the latest build from master. You can also use
version tags, e.g. :1.49.1, :1.49 or :1.
There are a few command line options to consider when starting an rclone
Docker container from the rclone image.
- You need to mount the host rclone config dir at /config/rclone into
the Docker container. Due to the fact that rclone updates tokens
inside its config file, and that the update process involves a file
rename, you need to mount the whole host rclone config dir, not just
the single host rclone config file.
- You need to mount a host data dir at /data into the Docker
container.
- If you want to access the RC interface (either via the API or the
Web UI), it is required to set the --rc-addr to :5572 in order to
connect to it from outside the container. An explanation about why
this is necessary is present here.
- NOTE: Users running this container with the docker network set
to host should probably set it to listen to localhost only, with
127.0.0.1:5572 as the value for --rc-addr
You also need to mount the host /etc/passwd and /etc/group for fuse
to work inside the container.
Snap installation
Due to the strict confinement of Snap, rclone snap cannot access real
/home/$USER/.config/rclone directory, default config path is as below.
Note: Due to the strict confinement of Snap, rclone mount feature is not
supported.
[rclone]
Source installation
Make sure you have git and Go installed. Go version 1.18 or newer is
required, the latest release is recommended. You can get it from your
package manager, or download it from golang.org/dl. Then you can run the
following:
git clone https://github.com/rclone/rclone.git
cd rclone
go build
This will check out the rclone source in subfolder rclone, which you can
later modify and send pull requests with. Then it will build the rclone
executable in the same folder. As an initial check you can now run
./rclone version (.\rclone version on Windows).
Note that on macOS and Windows the mount command will not be available
unless you specify an additional build tag cmount.
This assumes you have a GCC compatible C compiler (GCC or Clang) in your
PATH, as it uses cgo. But on Windows, the cgofuse library that the
cmount implementation is based on, also supports building without cgo,
i.e. by setting environment variable CGO_ENABLED to value 0 (static
linking). This is how the official Windows release of rclone is being
built, starting with version 1.59. It is still possible to build with
cgo on Windows as well, by using the MinGW port of GCC, e.g. by
installing it in a MSYS2 distribution (make sure you install it in the
classic mingw64 subsystem, the ucrt64 version is not compatible).
Additionally, to build with mount on Windows, you must install the third
party utility WinFsp, with the "Developer" feature selected. If building
with cgo, you must also set environment variable CPATH pointing to the
fuse include directory within the WinFsp installation (normally
C:\Program Files (x86)\WinFsp\inc\fuse).
You may add arguments -ldflags -s to omit symbol table and debug
information, making the executable file smaller, and -trimpath to remove
references to local file system paths. The official rclone releases are
built with both of these.
go run bin/resource_windows.go
Instead of executing the go build command directly, you can run it via
the Makefile. The default target changes the version suffix from "-DEV"
to "-beta" followed by additional commit details, embeds version
information binary resources on Windows, and copies the resulting rclone
executable into your GOPATH bin folder ($(go env GOPATH)/bin, which
corresponds to ~/go/bin/rclone by default).
make
make GOTAGS=cmount
There are other make targets that can be used for more advanced builds,
such as cross-compiling for all supported os/architectures, and
packaging results into release artifacts. See Makefile and
cross-compile.go for details.
go install github.com/rclone/rclone@latest
Ansible installation
Instructions
- hosts: rclone-hosts
roles:
- rclone
Portable installation
Run the config paths command to see the locations that rclone will use.
Autostart
Autostart on Windows
Running in background
User account
Run as service
For running rclone at system startup, you can create a Windows service
that executes your rclone command, as an alternative to scheduled task
configured to run at startup.
There are also several other alternatives. To mention one more, WinSW,
"Windows Service Wrapper", is worth checking out. It requires .NET
Framework, but it is preinstalled on newer versions of Windows, and it
also provides alternative standalone distributions which includes
necessary runtime (.NET 5). WinSW is a command-line only utility, where
you have to manually create an XML file with service configuration. This
may be a drawback for some, but it can also be an advantage as it is
easy to back up and reuse the configuration settings, without having go
through manual steps in a GUI. One thing to note is that by default it
does not restart the service on error, one have to explicit enable this
in the configuration file (via the "onfailure" parameter).
Autostart on Linux
Start as a service
To always run rclone in background, relevant for mount commands etc, you
can use systemd to set up rclone as a system or user service. Running as
a system service ensures that it is run at startup even if the user it
is running as has no active session. Running rclone as a user service
ensures that it only starts after the configured user has logged into
the system.
Usage
Configure
The easiest way to make the config is to run rclone with the config
option:
rclone config
- 1Fichier
- Akamai Netstorage
- Alias
- Amazon S3
- Backblaze B2
- Box
- Chunker - transparently splits large files for other remotes
- Citrix ShareFile
- Compress
- Combine
- Crypt - to encrypt other remotes
- DigitalOcean Spaces
- Digi Storage
- Dropbox
- Enterprise File Fabric
- Files.com
- FTP
- Gofile
- Google Cloud Storage
- Google Drive
- Google Photos
- Hasher - to handle checksums for other remotes
- HDFS
- Hetzner Storage Box
- HiDrive
- HTTP
- Internet Archive
- Jottacloud
- Koofr
- Linkbox
- Mail.ru Cloud
- Mega
- Memory
- Microsoft Azure Blob Storage
- Microsoft Azure Files Storage
- Microsoft OneDrive
- OpenStack Swift / Rackspace Cloudfiles / Blomp Cloud Storage /
Memset Memstore
- OpenDrive
- Oracle Object Storage
- Pcloud
- PikPak
- Pixeldrain
- premiumize.me
- put.io
- Proton Drive
- QingStor
- Quatrix by Maytech
- rsync.net
- Seafile
- SFTP
- Sia
- SMB
- Storj
- SugarSync
- Union
- Uloz.to
- Uptobox
- WebDAV
- Yandex Disk
- Zoho WorkDrive
- The local filesystem
Basic syntax
Source and destination paths are specified by the name you gave the
storage system in the config file then the sub path, e.g.
"drive:myfolder" to look at "myfolder" in Google drive.
You can define as many storage paths as you like in the config file.
Subcommands
rclone config
Options
See the global flags page for global options not listed here.
See Also
rclone copy
Synopsis
Copy the source to the destination. Does not transfer files that are
identical on source and destination, testing by size and modification
time or MD5SUM. Doesn't delete files from the destination. If you want
to also delete files from destination, to make it match source, use the
sync command instead.
Note that it is always the contents of the directory that is synced, not
the directory itself. So when source:path is a directory, it's the
contents of source:path that are copied, not the directory name and
contents.
For example
sourcepath/one.txt
sourcepath/two.txt
destpath/one.txt
destpath/two.txt
Not to
destpath/sourcepath/one.txt
destpath/sourcepath/two.txt
If you are familiar with rsync, 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.
See the --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.
For example, if you have many files in /path/to/src but only a few of
them change every day, you can copy all the files which have changed
recently very efficiently like this:
Rclone will sync the modification times of files and directories if the
backend supports it. If metadata syncing is required then use the
--metadata flag.
Note that the modification time and metadata for the root directory will
not be synced. See https://github.com/rclone/rclone/issues/7652 for more
info.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Copy Options
Important Options
Filter Options
Listing Options
See Also
rclone sync
Synopsis
Important: Since this can cause data loss, test first with the --dry-run
or the --interactive/-i flag.
Note that files in the destination won't be deleted if there were any
errors at any point. Duplicate objects (files with the same name, on
those providers that support it) are also not yet handled.
Rclone will sync the modification times of files and directories if the
backend supports it. If metadata syncing is required then use the
--metadata flag.
Note that the modification time and metadata for the root directory will
not be synced. See https://github.com/rclone/rclone/issues/7652 for more
info.
Logger Flags
The --combined flag will write a file (or stdout) which contains all
file paths with a symbol and then a space and then the path to tell you
what happened to it. These are reminiscent of diff files.
- = path means path was found in source and destination and was
identical
- `- path` means path was missing on the source, so only in the
destination
- `+ path` means path was missing on the destination, so only in the
source
- `* path` means path was present in source and destination but
different.
- ! path means there was an error reading or hashing the source or
dest.
The --dest-after flag writes a list file using the same format flags as
lsf (including customizable options for hash, modtime, etc.)
Conceptually it is similar to rsync's --itemize-changes, but not
identical -- it should output an accurate list of what will be on the
destination after the sync.
Note that these logger flags have a few limitations, and certain
scenarios are not currently supported:
- --max-duration / CutoffModeHard
- --compare-dest / --copy-dest
- server-side moves of an entire dir at once
- High-level retries, because there would be duplicates (use
--retries 1 to disable)
- Possibly some unusual error scenarios
Note also that each file is logged during the sync, as opposed to after,
so it is most useful as a predictor of what SHOULD happen to each file
(which may or may not match what actually DID.)
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Copy Options
Sync Options
Important Options
Filter Options
See Also
rclone move
Synopsis
Otherwise for each file in source:path selected by the filters (if any)
this will move it into dest:path. If possible a server-side move will be
used, otherwise it will copy it (server-side if possible) into dest:path
then delete the original (if no errors on copy) in source:path.
If you want to delete empty source directories after move, use the
--delete-empty-src-dirs flag.
See the --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.
Rclone will sync the modification times of files and directories if the
backend supports it. If metadata syncing is required then use the
--metadata flag.
Note that the modification time and metadata for the root directory will
not be synced. See https://github.com/rclone/rclone/issues/7652 for more
info.
Important: Since this can cause data loss, test first with the --dry-run
or the --interactive/-i flag.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Copy Options
Important Options
Filter Options
Listing Options
See Also
rclone delete
Synopsis
rclone delete only deletes files but leaves the directory structure
alone. If you want to delete a directory and all of its contents use the
purge command.
If you supply the --rmdirs flag, it will remove all empty directories
along with it. You can also use the separate command rmdir or rmdirs to
delete empty directories only.
For example, to delete all files bigger than 100 MiB, you may first want
to check what would be deleted (use either):
That reads "delete everything with a minimum size of 100 MiB", hence
delete all files bigger than 100 MiB.
Important: Since this can cause data loss, test first with the --dry-run
or the --interactive/-i flag.
Options
-h, --help help for delete
--rmdirs rmdirs removes empty directories but leaves root intact
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Important Options
Filter Options
Listing Options
Flags for listing directories
See Also
rclone purge
Synopsis
Remove the path and all of its contents. Note that this does not obey
include/exclude filters - everything will be removed. Use the delete
command if you want to selectively delete files. To delete empty
directories only, use command rmdir or rmdirs.
Important: Since this can cause data loss, test first with the --dry-run
or the --interactive/-i flag.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Important Options
See Also
rclone mkdir
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Important Options
See Also
rclone rmdir
Synopsis
This removes empty directory given by path. Will not remove the path if
it has any objects in it, not even empty subdirectories. Use command
rmdirs (or delete with option --rmdirs) to do that.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Important Options
See Also
rclone check
Synopsis
Checks the files in the source and destination match. It compares sizes
and hashes (MD5 or SHA1) and logs a report of files that don't match. It
doesn't alter the source or destination.
For the crypt remote there is a dedicated command, cryptcheck, that are
able to check the checksums of the encrypted files.
If you supply the --size-only flag, it will only compare the sizes not
the hashes as well. Use this for a quick check.
If you supply the --download flag, it will download the data from both
remotes and check them against each other on the fly. This can be useful
for remotes that don't support hashes or if you really want to check all
the data.
If you supply the --checkfile HASH flag with a valid hash name, the
source:path must point to a text file in the SUM format.
If you supply the --one-way flag, it will only check that files in the
source match the files in the destination, not the other way around.
This means that extra files in the destination that are not in the
source will not be detected.
The --combined flag will write a file (or stdout) which contains all
file paths with a symbol and then a space and then the path to tell you
what happened to it. These are reminiscent of diff files.
- = path means path was found in source and destination and was
identical
- `- path` means path was missing on the source, so only in the
destination
- `+ path` means path was missing on the destination, so only in the
source
- `* path` means path was present in source and destination but
different.
- ! path means there was an error reading or hashing the source or
dest.
Options
Check Options
Filter Options
Listing Options
See Also
rclone ls
Synopsis
Eg
$ rclone ls swift:bucket
60295 bevajer5jef
90613 canole
94467 diwogej7
37600 fubuwic
Note that ls and lsl recurse by default - use --max-depth 1 to stop the
recursion.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
Listing Options
See Also
rclone lsd
Synopsis
Lists the directories in the source path to standard output. Does not
recurse by default. Use the -R flag to recurse.
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
Or
If you just want the directory names use rclone lsf --dirs-only.
Note that ls and lsl recurse by default - use --max-depth 1 to stop the
recursion.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
Listing Options
See Also
rclone lsl
List the objects in path with modification time, size and path.
Synopsis
Eg
Note that ls and lsl recurse by default - use --max-depth 1 to stop the
recursion.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
Listing Options
See Also
rclone md5sum
Synopsis
Produces an md5sum file for all the objects in the path. This is in the
same format as the standard md5sum tool produces.
This command can also hash data received on standard input (stdin), by
not passing a remote:path, or by passing a hyphen as remote:path when
there is data to read (if not, the hyphen will be treated literally, as
a relative path).
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
Listing Options
See Also
rclone sha1sum
Synopsis
Produces an sha1sum file for all the objects in the path. This is in the
same format as the standard sha1sum tool produces.
This command can also hash data received on standard input (stdin), by
not passing a remote:path, or by passing a hyphen as remote:path when
there is data to read (if not, the hyphen will be treated literally, as
a relative path).
This command can also hash data received on STDIN, if not passing a
remote:path.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
Listing Options
See Also
rclone size
Synopsis
Counts objects in the path and calculates the total size. Prints the
result to standard output.
Some backends do not always provide file sizes, see for example Google
Photos and Google Docs. Rclone will then show a notice in the log
indicating how many such files were encountered, and count them in as
empty files in the output of the size command.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
Listing Options
See Also
rclone version
Synopsis
Show the rclone version number, the go version, the build target OS and
architecture, the runtime OS and kernel version and bitness, build tags
and the type of executable (static or dynamic).
For example:
$ rclone version
rclone v1.55.0
- os/version: ubuntu 18.04 (64 bit)
- os/kernel: 4.15.0-136-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.16
- go/linking: static
- go/tags: none
Note: before rclone version 1.55 the os/type and os/arch lines were
merged, and the "go/version" line was tagged as "go version".
Or
Options
See the global flags page for global options not listed here.
See Also
rclone cleanup
Synopsis
Clean up the remote if possible. Empty the trash or delete old file
versions. Not supported by all remotes.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Important Options
See Also
rclone dedupe
Synopsis
If deduping by name, first rclone will merge directories with the same
name. It will do this iteratively until all the identically named
directories have been merged.
dedupe considers files to be identical if they have the same file path
and the same hash. If the backend does not support hashes (e.g. crypt
wrapping Google Drive) then they will never be found to be identical. If
you use the --size-only flag then files will be considered identical if
they have the same size (any hash will be ignored). This can be useful
on crypt backends which do not support hashes.
Next rclone will resolve the remaining duplicates. Exactly which action
is taken depends on the dedupe mode. By default, rclone will
interactively query the user for each one.
Important: Since this can cause data loss, test first with the --dry-run
or the --interactive/-i flag.
For example, to rename all the identically named photos in your Google
Photos directory, do
Or
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Important Options
See Also
rclone about
Synopsis
Total: 17 GiB
Used: 7.444 GiB
Free: 1.315 GiB
Trashed: 100.000 MiB
Other: 8.241 GiB
Applying a --full flag to the command prints the bytes in full, e.g.
Total: 18253611008
Used: 7993453766
Free: 1411001220
Trashed: 104857602
Other: 8849156022
A --json flag generates conveniently machine-readable output, e.g.
{
"total": 18253611008,
"used": 7993453766,
"trashed": 104857602,
"other": 8849156022,
"free": 1411001220
}
Some backends does not support the rclone about command at all, see
complete list in documentation.
Options
See the global flags page for global options not listed here.
See Also
rclone authorize
Remote authorization.
Synopsis
Options
See the global flags page for global options not listed here.
See Also
rclone backend
Synopsis
You can also discover information about the backend using (see
operations/fsinfo in the remote control docs for more info).
Pass options to the backend command with -o. This should be key=value or
key, e.g.:
Pass arguments to the backend by placing them on the end of the line
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Important Options
See Also
Synopsis
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Copy Options
Important Options
Filter Options
See Also
rclone cat
Synopsis
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.
- powershell:
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
Listing Options
See Also
rclone checksum
Synopsis
The sumfile is treated as the source and the dst:path is treated as the
destination for the purposes of the output.
If you supply the --download flag, it will download the data from the
remote and calculate the content hash on the fly. This can be useful for
remotes that don't support hashes or if you really want to check all the
data.
Note that hash values in the SUM file are treated as case insensitive.
If you supply the --one-way flag, it will only check that files in the
source match the files in the destination, not the other way around.
This means that extra files in the destination that are not in the
source will not be detected.
The --combined flag will write a file (or stdout) which contains all
file paths with a symbol and then a space and then the path to tell you
what happened to it. These are reminiscent of diff files.
- = path means path was found in source and destination and was
identical
- `- path` means path was missing on the source, so only in the
destination
- `+ path` means path was missing on the destination, so only in the
source
- `* path` means path was present in source and destination but
different.
- ! path means there was an error reading or hashing the source or
dest.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
Listing Options
See Also
rclone completion
Synopsis
Generates a shell completion script for rclone. Run with --help to list
the supported shells.
Options
See the global flags page for global options not listed here.
See Also
Synopsis
Generates a bash shell autocompletion script for rclone.
/etc/bash_completion.d/rclone
If you supply a path to a file as the command line argument, then the
generated script will be written to that file, in which case you should
not need root privileges.
If you have installed the script into the default location, you can
logout and login again to use the autocompletion script.
. /path/to/my_bash_completion_scripts/rclone
Options
See the global flags page for global options not listed here.
See Also
Synopsis
Logout and login again to use the autocompletion scripts, or source them
directly
. /etc/fish/completions/rclone.fish
If you supply a command line argument the script will be written there.
If output_file is "-", then the output will be written to stdout.
Options
See the global flags page for global options not listed here.
See Also
Synopsis
To load completions for every new session, add the output of the above
command to your powershell profile.
Options
See the global flags page for global options not listed here.
See Also
Synopsis
Logout and login again to use the autocompletion scripts, or source them
directly
If you supply a command line argument the script will be written there.
Options
See the global flags page for global options not listed here.
See Also
Synopsis
Create a new remote of name with type and options. The options should be
passed in pairs of key value or as key=value.
For example, to make a swift remote of name myremote using auto config
you would do:
Note that if the config process would normally ask a question the
default is taken (unless --non-interactive is used). Each time that
happens rclone will print or DEBUG a message saying how to affect the
value taken.
{
"State": "*oauth-islocal,teamdrive,,",
"Option": {
"Name": "config_is_local",
"Help": "Use web browser to automatically authenticate rclone with
remote?\n * Say Y if the machine running rclone has a web browser you can use\n *
Say N if running rclone on a (remote) machine without web browser access\nIf not
sure try Y. If Y failed, try N.\n",
"Default": true,
"Examples": [
{
"Value": "true",
"Help": "Yes"
},
{
"Value": "false",
"Help": "No"
}
],
"Required": false,
"IsPassword": false,
"Type": "bool",
"Exclusive": true,
},
"Error": "",
}
If Error is set then it should be shown to the user at the same time as
the question.
Note that when using --continue all passwords should be passed in the
clear (not obscured). Any default config values should be passed in with
each invocation of --continue.
At the end of the non interactive process, rclone will return a result
with State as empty string.
If --all is passed then rclone will ask all the config questions, not
just the post config questions. Any parameters are used as defaults for
questions as usual.
Options
See the global flags page for global options not listed here.
See Also
Options
See the global flags page for global options not listed here.
See Also
Synopsis
Options
See the global flags page for global options not listed here.
See Also
Options
See the global flags page for global options not listed here.
See Also
Synopsis
Options
See the global flags page for global options not listed here.
See Also
set, remove and check the encryption for the config file
Synopsis
This command sets, clears and checks the encryption for the config file
using the subcommands below.
Options
See the global flags page for global options not listed here.
See Also
Synopsis
This checks the config file is encrypted and that you can decrypt it.
It will attempt to decrypt the config using the password you supply.
If the config file is not encrypted it will return a non zero exit code.
Options
See the global flags page for global options not listed here.
See Also
- rclone config encryption - set, remove and check the encryption for
the config file
Synopsis
If the config was not encrypted then no error will be returned and this
command will do nothing.
rclone config encryption remove [flags]
Options
See the global flags page for global options not listed here.
See Also
- rclone config encryption - set, remove and check the encryption for
the config file
Synopsis
If there was no config password set then it sets a new one, otherwise it
changes the existing config password.
Options
See the global flags page for global options not listed here.
See Also
- rclone config encryption - set, remove and check the encryption for
the config file
See the global flags page for global options not listed here.
See Also
Synopsis
For example, to set password of a remote of name myremote you would do:
This command is obsolete now that "config update" and "config create"
both support obscuring passwords directly.
Options
See the global flags page for global options not listed here.
See Also
Options
See the global flags page for global options not listed here.
See Also
Options
See the global flags page for global options not listed here.
See Also
Synopsis
This normally means going through the interactive oauth flow again.
Options
See the global flags page for global options not listed here.
See Also
Synopsis
This prints a redacted copy of the config file, either the whole config
file or for a given remote.
The config file will be redacted by replacing all passwords and other
sensitive info with XXX.
This makes the config file suitable for posting online for support.
Options
-h, --help help for redacted
See the global flags page for global options not listed here.
See Also
Options
See the global flags page for global options not listed here.
See Also
Options
See the global flags page for global options not listed here.
See Also
Synopsis
If the remote uses OAuth the token will be updated, if you don't require
this add an extra parameter thus:
{
"State": "*oauth-islocal,teamdrive,,",
"Option": {
"Name": "config_is_local",
"Help": "Use web browser to automatically authenticate rclone with
remote?\n * Say Y if the machine running rclone has a web browser you can use\n *
Say N if running rclone on a (remote) machine without web browser access\nIf not
sure try Y. If Y failed, try N.\n",
"Default": true,
"Examples": [
{
"Value": "true",
"Help": "Yes"
},
{
"Value": "false",
"Help": "No"
}
],
"Required": false,
"IsPassword": false,
"Type": "bool",
"Exclusive": true,
},
"Error": "",
}
If Error is set then it should be shown to the user at the same time as
the question.
Note that when using --continue all passwords should be passed in the
clear (not obscured). Any default config values should be passed in with
each invocation of --continue.
At the end of the non interactive process, rclone will return a result
with State as empty string.
If --all is passed then rclone will ask all the config questions, not
just the post config questions. Any parameters are used as defaults for
questions as usual.
Options
See the global flags page for global options not listed here.
See Also
Synopsis
This prints the details of the person logged in to the cloud storage
system.
rclone config userinfo remote: [flags]
Options
See the global flags page for global options not listed here.
See Also
rclone copyto
Synopsis
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.
So
where src and dst are rclone paths, either remote:path or /path/to/local
or C:.
This will:
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
This doesn't transfer files that are identical on src and dst, testing
by size and modification time or MD5SUM. It doesn't delete files from
the destination.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Copy Options
Flags for anything which can copy a file
Important Options
Filter Options
See Also
rclone copyurl
Synopsis
Setting --stdout or making the output file name - will cause the output
to be written to standard output.
Troublshooting
If you can't get rclone copyurl to work then here are some things you
can try:
Options
-a, --auto-filename Get the file name from the URL and use it for
destination file path
--header-filename Get the file name from the Content-Disposition header
-h, --help help for copyurl
--no-clobber Prevent overwriting file with same name
-p, --print-filename Print the resulting name from --auto-filename
--stdout Write the output to stdout rather than a file
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Important Options
See Also
rclone cryptcheck
Synopsis
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.
You can use it like this also, but that will involve downloading all the
files in remote:path.
If you supply the --one-way flag, it will only check that files in the
source match the files in the destination, not the other way around.
This means that extra files in the destination that are not in the
source will not be detected.
The --combined flag will write a file (or stdout) which contains all
file paths with a symbol and then a space and then the path to tell you
what happened to it. These are reminiscent of diff files.
- = path means path was found in source and destination and was
identical
- `- path` means path was missing on the source, so only in the
destination
- `+ path` means path was missing on the destination, so only in the
source
- `* path` means path was present in source and destination but
different.
- ! path means there was an error reading or hashing the source or
dest.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Check Options
Filter Options
Listing Options
See Also
rclone cryptdecode
Synopsis
If you supply the --reverse flag, it will return encrypted file names.
Another way to accomplish this is by using the rclone backend encode (or
decode) command. See the documentation on the crypt overlay for more
info.
Options
See the global flags page for global options not listed here.
See Also
rclone deletefile
Synopsis
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Important Options
See Also
rclone gendocs
Synopsis
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.
See the global flags page for global options not listed here.
See Also
rclone gitannex
Synopsis
Installation on Linux
2. Add a new remote to your git-annex repo. This new remote will
connect git-annex with the rclone gitannex subcommand.
3. Before you trust this command with your precious data, be sure to
test the remote. This command is very new and has not been tested on
many rclone backends. Caveat emptor!
Happy annexing!
Options
See the global flags page for global options not listed here.
See Also
rclone hashsum
Synopsis
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.
By default, the hash is requested from the remote. If the hash is not
supported by the remote, no hash will be returned. With the download
flag, the file will be downloaded from the remote and hashed locally
enabling any hash for any remote.
For the MD5 and SHA1 algorithms there are also dedicated commands,
md5sum and sha1sum.
This command can also hash data received on standard input (stdin), by
not passing a remote:path, or by passing a hyphen as remote:path when
there is data to read (if not, the hyphen will be treated literally, as
a relative path).
Run without a hash to see the list of all supported hashes, e.g.
$ rclone hashsum
Supported hashes are:
* md5
* sha1
* whirlpool
* crc32
* sha256
Then
$ rclone hashsum MD5 remote:path
Note that hash names are case insensitive and values are output in lower
case.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
Listing Options
See Also
rclone link
Synopsis
If you supply the --expire flag, it will set the expiration time
otherwise it will use the default (100 years). Note not all backends
support the --expire flag - if the backend doesn't support it then the
link returned won't expire.
Use the --unlink flag to remove existing public links to the file or
folder. Note not all backends support "--unlink" flag - those that don't
will just ignore it.
If successful, the last line of the output will contain the link. Exact
capabilities depend on the remote, but the link will always by default
be created with the least constraints – e.g. no expiry, no password
protection, accessible without account.
Options
--expire Duration The amount of time that the link will be valid
(default off)
-h, --help help for link
--unlink Remove existing public link to file/folder
See the global flags page for global options not listed here.
See Also
List all the remotes in the config file and defined in environment
variables.
Synopsis
Lists all the available remotes from the config file, or the remotes
matching an optional filter.
Options
See the global flags page for global options not listed here.
See Also
rclone lsf
Synopsis
Eg
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:
p - path
s - size
t - modification time
h - hash
i - ID of object
o - Original ID of underlying object
m - MimeType of object if known
e - encrypted name
T - tier of storage if known, e.g. "Hot" or "Cool"
M - Metadata of object in JSON blob format, eg {"key":"value"}
So if you wanted the path, size and modification time, you would use
--format "pst", or maybe --format "tsp" to put the path last.
Eg
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'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.
Eg
By default the separator is ";" this can be changed with the --separator
flag. Note that separators aren't escaped in the path so putting it last
is a good strategy.
Eg
You can output in CSV standard format. This will escape things in " if
they contain ,
Eg
Note that the --absolute parameter is useful for making lists of files
to pass to an rclone copy with the --files-from-raw flag.
For example, to find all the files modified within one day and copy
those only (without traversing the whole directory structure):
Note that ls and lsl recurse by default - use --max-depth 1 to stop the
recursion.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
Listing Options
See Also
rclone lsjson
Synopsis
The output is an array of Items, where each Item looks like this:
{
"Hashes" : {
"SHA-1" : "f572d396fae9206628714fb2ce00f72e94f2258f",
"MD5" : "b1946ac92492d2347c6235b4d2611184",
"DropboxHash" :
"ecb65bb98f9d905b70458986c39fcbad7715e5f2fcc3b1f07767d7c83e2438cc"
},
"ID": "y2djkhiujf83u33",
"OrigID": "UYOJVTUW00Q1RzTDA",
"IsBucket" : false,
"IsDir" : false,
"MimeType" : "application/octet-stream",
"ModTime" : "2017-05-31T16:15:57.034468261+01:00",
"Name" : "file.txt",
"Encrypted" : "v0qpsdq8anpci8n929v3uu9338",
"EncryptedPath" : "kja9098349023498/v0qpsdq8anpci8n929v3uu9338",
"Path" : "full/path/goes/here/file.txt",
"Size" : 6,
"Tier" : "hot",
}
If --stat is set then the the output is not an array of items, but
instead a single JSON blob will be returned about the item pointed to.
This will return an error if the item isn't found, however on bucket
based backends (like s3, gcs, b2, azureblob etc) if the item isn't found
it will return an empty directory, as it isn't possible to tell empty
directories from missing directories there.
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.
Note that ls and lsl recurse by default - use --max-depth 1 to stop the
recursion.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
Listing Options
See Also
rclone mount
Synopsis
Rclone mount allows Linux, FreeBSD, macOS and Windows to mount any of
Rclone's cloud storage systems as a file system with FUSE.
First set up your remote using rclone config. Check it works with
rclone ls etc.
On Linux and macOS, you can run mount in either foreground or background
(aka daemon) mode. Mount runs in foreground mode by default. Use the
--daemon flag to force background mode. On Windows you can run mount in
foreground only, the flag is ignored.
In background mode rclone acts as a generic Unix mount program: the main
program starts, spawns background rclone process to setup and maintain
the mount, waits until success or timeout and exits with appropriate
code (killing the child process if it fails).
On Linux/macOS/FreeBSD start the mount like this, where
/path/to/local/mount is an empty existing directory:
On Windows you can start a mount in different ways. See below for
details. If foreground mount is used interactively from a console
window, rclone will serve the mount and occupy the console so another
window should be used to work with the mount until rclone is interrupted
e.g. by pressing Ctrl-C.
When the program ends while in foreground mode, either via Ctrl+C or
receiving a SIGINT or SIGTERM signal, the mount should be automatically
stopped.
When running in background mode the user will have to stop the mount
manually:
# Linux
fusermount -u /path/to/local/mount
#... or on some systems
fusermount3 -u /path/to/local/mount
# OS X or Linux when using nfsmount
umount /path/to/local/mount
The umount operation can fail, for example when the mountpoint is busy.
When that happens, it is the user's responsibility to stop the mount
manually.
The size of the mounted file system will be set according to information
retrieved from the remote, the same as returned by the rclone about
command. Remotes with unlimited storage may report the used size only,
then an additional 1 PiB of free space is assumed. If the remote does
not support the about feature at all, then 1 PiB is set as both the
total and the free size.
Installing on Windows
To run rclone mount on Windows, you will need to download and install
WinFsp.
In most cases, rclone will mount the remote as a normal, fixed disk
drive by default. However, you can also choose to mount it as a remote
network drive, often described as a network share. If you mount an
rclone remote using the default, fixed drive mode and experience
unexpected program errors, freezes or other issues, consider mounting as
a network drive instead.
When mounting as a fixed disk drive you can either mount to an unused
drive letter, or to a path representing a nonexistent subdirectory of an
existing parent directory or drive. Using the special value * will tell
rclone to automatically assign the next available drive letter, starting
with Z: and moving backward. Examples:
Option --volname can be used to set a custom volume name for the mounted
file system. The default is to use the remote name and path.
If you specify a full network share UNC path with --volname, this will
implicitly set the --network-mode option, so the following two examples
have same result:
You may also specify the network share UNC path as the mountpoint
itself. Then rclone will automatically assign a drive letter, same as
with * and use that as mountpoint, and instead use the UNC path
specified as the volume name, as if it were specified with the --volname
option. This will also implicitly set the --network-mode option. This
means the following two examples have same result:
There is yet another way to enable network mode, and to set the share
path, and that is to pass the "native" libfuse/WinFsp option directly:
--fuse-flag --VolumePrefix=\server\share. Note that the path must be
with just a single backslash prefix in this case.
Note: In previous versions of rclone this was the only supported method.
The FUSE emulation layer on Windows must convert between the POSIX-based
permission model used in FUSE, and the permission model used in Windows,
based on access-control lists (ACL).
The mapping of permissions is not always trivial, and the result you see
in Windows Explorer may not be exactly like you expected. For example,
when setting a value that includes write access for the group or others
scope, this will be mapped to individual permissions "write attributes",
"write data" and "append data", but not "write extended attributes".
Windows will then show this as basic permission "Special" instead of
"Write", because "Write" also covers the "write extended attributes"
permission. When setting digit 0 for group or others, to indicate no
permissions, they will still get individual permissions "read
attributes", "read extended attributes" and "read permissions". This is
done for compatibility reasons, e.g. to allow users without additional
permissions to be able to read basic metadata about files like in Unix.
WinFsp 2021 (version 1.9) introduced a new FUSE option "FileSecurity",
that allows the complete specification of file security descriptors
using SDDL. With this you get detailed control of the resulting
permissions, compared to use of the POSIX permissions described above,
and no additional permissions will be added automatically for
compatibility with Unix. Some example use cases will following.
If you set POSIX permissions for only allowing access to the owner,
using --file-perms 0600 --dir-perms 0700, the user group and the
built-in "Everyone" group will still be given some special permissions,
as described above. Some programs may then (incorrectly) interpret this
as the file being accessible by everyone, for example an SSH client may
warn about "unprotected private key file". You can work around this by
specifying -o FileSecurity="D:P(A;;FA;;;OW)", which sets file all access
(FA) to the owner (OW), and nothing else.
When setting write permissions then, except for the owner, this does not
include the "write extended attributes" permission, as mentioned above.
This may prevent applications from writing to files, giving permission
denied error instead. To set working write permissions for the built-in
"Everyone" group, similar to what it gets by default but with the
addition of the "write extended attributes", you can specify
-o FileSecurity="D:P(A;;FRFW;;;WD)", which sets file read (FR) and file
write (FW) to everyone (WD). If file execute (FX) is also needed, then
change to -o FileSecurity="D:P(A;;FRFWFX;;;WD)", or set file all access
(FA) to get full access permissions, including delete, with
-o FileSecurity="D:P(A;;FA;;;WD)".
Windows caveats
If you don't need to access the drive from applications running with
administrative privileges, the easiest way around this is to always
create the mount from a non-elevated command prompt.
To make mapped drives available to the user account that created them
regardless if elevated or not, there is a special Windows setting called
linked connections that can be enabled.
Mounting on macOS
Mounting on macOS can be done either via built-in NFS server, macFUSE
(also known as osxfuse) or FUSE-T. macFUSE is a traditional FUSE driver
utilizing a macOS kernel extension (kext). FUSE-T is an alternative FUSE
system which "mounts" via an NFSv4 local server.
Unicode Normalization
NFS mount
This method spins up an NFS server using serve nfs command and mounts it
to the specified mountpoint. If you run this in background mode using
|--daemon|, you will need to send SIGTERM signal to the rclone process
using |kill| command to stop the mount.
macFUSE Notes
If installing macFUSE using dmg packages from the website, rclone will
locate the macFUSE libraries without any further intervention. If
however, macFUSE is installed using the macports package manager, the
following addition steps are required.
There are some limitations, caveats, and notes about how it works. These
are current as of FUSE-T version 1.0.14.
This means that viewing files with various tools, notably macOS Finder,
will cause rlcone to update the modification time of the file. This may
make rclone upload a full new copy of the file.
Read Only mounts
Limitations
The bucket-based remotes (e.g. Swift, S3, Google Compute Storage, B2) do
not support the concept of empty directories, so empty directories will
have a tendency to disappear once they fall out of the directory cache.
When rclone mount is invoked on Unix with --daemon flag, the main rclone
program will wait for the background mount to become ready or until the
timeout specified by the --daemon-wait flag. On Linux it can check mount
status using ProcFS so the flag in fact sets maximum time to wait, while
the real wait can be less. On macOS / BSD the time to wait is constant
and the check is performed only at the end. We advise you to set wait
time on macOS reasonably.
Attribute caching
You can use the flag --attr-timeout to set the time the kernel caches
the attributes (size, modification time, etc.) for directory entries.
The default is 1s which caches files just long enough to avoid too many
callbacks to rclone from the kernel.
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.
If you set it higher (10s or 1m say) then the kernel will call back to
rclone less often making it more efficient, however there is more chance
of the corruption issue above.
Filters
Note that all the rclone filters can be used to select a subset of the
files to be visible in the mount.
systemd
Note that systemd runs mount units without any environment variables
including PATH or HOME. This means that tilde (~) expansion will not
work and you should provide --config and --cache-dir explicitly as
absolute paths via rclone arguments. Since mounting requires the
fusermount or fusermount3 program, rclone will use the fallback PATH of
/bin:/usr/bin in this scenario. Please ensure that
fusermount/fusermount3 is present on this PATH.
The core Unix program /bin/mount normally takes the -t FSTYPE argument
then runs the /sbin/mount.FSTYPE helper program passing it mount options
as -o key=val,... or --opt=.... Automount (classic or systemd) behaves
in a similar way.
# /etc/systemd/system/mnt-data.mount
[Unit]
Description=Mount for /mnt/data
[Mount]
Type=rclone
What=sftp1:subdir
Where=/mnt/data
Options=rw,_netdev,allow_other,args2env,vfs-cache-mode=writes,config=/etc/
rclone.conf,cache-dir=/var/rclone
optionally accompanied by systemd automount unit
# /etc/systemd/system/mnt-data.automount
[Unit]
Description=AutoMount for /mnt/data
[Automount]
Where=/mnt/data
TimeoutIdleSec=600
[Install]
WantedBy=multi-user.target
This command uses the VFS layer. This adapts the cloud storage objects
that rclone uses into something which looks much more like a disk filing
system.
Cloud storage objects have lots of properties which aren't like disk
files - you can't extend them or write to the middle of them, so the VFS
layer has to deal with that. Because there is no one right way of doing
this there are various options explained below.
The VFS layer also implements a directory cache - this caches info about
files and directories (but not the data) in memory.
Using the --dir-cache-time flag, you can control how long a directory
should be considered up to date and not refreshed from the backend.
Changes made through the VFS will appear immediately or invalidate the
cache.
However, changes made directly on the cloud storage by the web interface
or a different copy of rclone will only be picked up once the directory
cache expires if the backend configured does not support polling for
changes. If the backend supports polling, changes will be picked up
within the polling interval.
You can send a SIGHUP 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:
If you configure rclone with a remote control then you can use rclone rc
to flush the whole directory cache:
rclone rc vfs/forget
Each open file will try to keep the specified amount of data in memory
at all times. The buffered data is bound to one open file and won't be
shared.
This flag is a upper limit for the used memory per open file. 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.
These flags control the VFS file caching options. File caching is
necessary to make the VFS layer appear compatible with a normal file
system. It can be disabled at the cost of some compatibility.
For example you'll need to enable VFS caching if you want to read and
write simultaneously to a file. See below for more details.
Note that the VFS cache is separate from the cache backend and you may
find that you need one or the other or both.
If run with -vv 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 --cache-dir or setting the appropriate
environment variable.
Note that files are written back to the remote only when they are closed
and if they haven't been accessed for --vfs-write-back seconds. If
rclone is quit or dies with files that haven't been uploaded, these will
be uploaded next time rclone is run with the same flags.
The --vfs-cache-max-age will evict files from the cache after the set
time since last access has passed. The default value of 1 hour will
start evicting files from cache that haven't been accessed for 1 hour.
When a cached file is accessed the 1 hour timer is reset to 0 and will
wait for 1 more hour before evicting. Specify the time with standard
notation, s, m, h, d, w .
You should not run two copies of rclone using the same VFS cache with
the same or overlapping remotes if using --vfs-cache-mode > off. This
can potentially cause data corruption if you do. You can work around
this by giving each rclone its own cache hierarchy with --cache-dir. You
don't need to worry about this if the remotes in use don't overlap.
--vfs-cache-mode off
In this mode (the default) the cache will read directly from the remote
and write directly to the remote without caching anything on disk.
--vfs-cache-mode minimal
This is very similar to "off" except that files opened for read AND
write will be buffered to disk. This means that files opened for write
will be a lot more compatible, but uses the minimal disk space.
--vfs-cache-mode writes
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.
--vfs-cache-mode full
In this mode all reads and writes are buffered to and from disk. When
data is read from the remote this is buffered to disk as well.
In this mode the files in the cache will be sparse files and rclone will
keep track of which bits of the files it has downloaded.
This mode should support all normal file system operations and is
otherwise identical to --vfs-cache-mode writes.
When using this mode it is recommended that --buffer-size is not set too
large and --vfs-read-ahead is set large if required.
Fingerprinting
Various parts of the VFS use fingerprinting to see if a local file copy
has changed relative to a remote file. Fingerprints are made from:
- size
- modification time
- hash
On some backends some of these attributes are slow to read (they take an
extra API call per object, or extra work per object).
For example hash is slow with the local and sftp backends as they have
to read the entire file and hash it, and modtime is slow with the s3,
swift, ftp and qinqstor backends because they need to do an extra API
call to fetch it.
If you use the --vfs-fast-fingerprint flag then rclone will not include
the slow operations in the fingerprint. This makes the fingerprinting
less accurate but much faster and will improve the opening time of
cached files.
If you are running a vfs cache over local, s3 or swift backends then
using this flag is recommended.
Note that if you change the value of this flag, the fingerprints of the
files in the cache may be invalidated and the files will need to be
downloaded again.
When rclone reads files from a remote it reads them in chunks. This
means that rather than requesting the whole file rclone reads the chunk
specified. 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.
--vfs-read-chunk-streams == 0
--vfs-read-chunk-streams > 0
For high performance object stores (eg AWS S3) a reasonable place to
start might be --vfs-read-chunk-streams 16 and --vfs-read-chunk-size 4M.
In testing with AWS S3 the performance scaled roughly as the
--vfs-read-chunk-streams setting.
Similar settings should work for high latency links, but depending on
the latency they may need more --vfs-read-chunk-streams in order to get
the throughput.
VFS Performance
In particular S3 and Swift benefit hugely from the --no-modtime flag (or
use --use-server-modtime for a slightly different effect) as each read
of the modification time takes a transaction.
Linux file systems are case-sensitive: two files can differ only by
case, and the exact case must be used when opening a file.
Note that case sensitivity of the operating system running rclone (the
target) may differ from case sensitivity of a file system presented by
rclone (the source). The flag controls whether "fixup" is performed to
satisfy the target.
If the flag is not provided on the command line, then its default value
depends on the operating system where rclone runs: "true" on Windows and
macOS, "false" otherwise. If the flag is provided without a value, then
it is "true".
This flag allows you to manually set the statistics about the filing
system. It can be useful when those statistics cannot be read correctly
automatically.
Some backends, most notably S3, do not report the amount of bytes used.
If you need this information to be available when running df on the
filesystem, then pass the flag --vfs-used-is-size to rclone. With this
flag set, instead of relying on the backend to report this information,
rclone will scan the whole remote similar to rclone size and compute the
total used space itself.
WARNING. Contrary to rclone size, this flag ignores filters so that the
result is accurate. However, this is very inefficient and may cost lots
of API calls resulting in extra charges. Use it as a last resort and
only with caching.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
See Also
rclone moveto
Synopsis
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 exactly
like the move command.
So
where src and dst are rclone paths, either remote:path or /path/to/local
or C:.
This will:
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
This doesn't transfer files that are identical on src and dst, testing
by size and modification time or MD5SUM. src will be deleted on
successful transfer.
Important: Since this can cause data loss, test first with the --dry-run
or the --interactive/-i flag.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Copy Options
Important Options
Filter Options
Listing Options
Flags for listing directories
See Also
rclone ncdu
Synopsis
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.
You can interact with the user interface using key presses, press '?' to
toggle the help on and off. The supported keys are:
This an homage to the ncdu tool but for rclone remotes. It is missing
lots of features at the moment but is useful as it stands. Unlike ncdu
it does not show excluded files.
Note that it might take some time to delete big files/directories. The
UI won't respond in the meantime since the deletion is done
synchronously.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
Listing Options
See Also
rclone nfsmount
Synopsis
Rclone nfsmount allows Linux, FreeBSD, macOS and Windows to mount any of
Rclone's cloud storage systems as a file system with FUSE.
First set up your remote using rclone config. Check it works with
rclone ls etc.
On Linux and macOS, you can run mount in either foreground or background
(aka daemon) mode. Mount runs in foreground mode by default. Use the
--daemon flag to force background mode. On Windows you can run mount in
foreground only, the flag is ignored.
In background mode rclone acts as a generic Unix mount program: the main
program starts, spawns background rclone process to setup and maintain
the mount, waits until success or timeout and exits with appropriate
code (killing the child process if it fails).
On Windows you can start a mount in different ways. See below for
details. If foreground mount is used interactively from a console
window, rclone will serve the mount and occupy the console so another
window should be used to work with the mount until rclone is interrupted
e.g. by pressing Ctrl-C.
When the program ends while in foreground mode, either via Ctrl+C or
receiving a SIGINT or SIGTERM signal, the mount should be automatically
stopped.
When running in background mode the user will have to stop the mount
manually:
# Linux
fusermount -u /path/to/local/mount
#... or on some systems
fusermount3 -u /path/to/local/mount
# OS X or Linux when using nfsmount
umount /path/to/local/mount
The umount operation can fail, for example when the mountpoint is busy.
When that happens, it is the user's responsibility to stop the mount
manually.
The size of the mounted file system will be set according to information
retrieved from the remote, the same as returned by the rclone about
command. Remotes with unlimited storage may report the used size only,
then an additional 1 PiB of free space is assumed. If the remote does
not support the about feature at all, then 1 PiB is set as both the
total and the free size.
Installing on Windows
To run rclone nfsmount on Windows, you will need to download and install
WinFsp.
In most cases, rclone will mount the remote as a normal, fixed disk
drive by default. However, you can also choose to mount it as a remote
network drive, often described as a network share. If you mount an
rclone remote using the default, fixed drive mode and experience
unexpected program errors, freezes or other issues, consider mounting as
a network drive instead.
When mounting as a fixed disk drive you can either mount to an unused
drive letter, or to a path representing a nonexistent subdirectory of an
existing parent directory or drive. Using the special value * will tell
rclone to automatically assign the next available drive letter, starting
with Z: and moving backward. Examples:
Option --volname can be used to set a custom volume name for the mounted
file system. The default is to use the remote name and path.
If you specify a full network share UNC path with --volname, this will
implicitly set the --network-mode option, so the following two examples
have same result:
You may also specify the network share UNC path as the mountpoint
itself. Then rclone will automatically assign a drive letter, same as
with * and use that as mountpoint, and instead use the UNC path
specified as the volume name, as if it were specified with the --volname
option. This will also implicitly set the --network-mode option. This
means the following two examples have same result:
There is yet another way to enable network mode, and to set the share
path, and that is to pass the "native" libfuse/WinFsp option directly:
--fuse-flag --VolumePrefix=\server\share. Note that the path must be
with just a single backslash prefix in this case.
Note: In previous versions of rclone this was the only supported method.
Read more about drive mapping
The FUSE emulation layer on Windows must convert between the POSIX-based
permission model used in FUSE, and the permission model used in Windows,
based on access-control lists (ACL).
The mapping of permissions is not always trivial, and the result you see
in Windows Explorer may not be exactly like you expected. For example,
when setting a value that includes write access for the group or others
scope, this will be mapped to individual permissions "write attributes",
"write data" and "append data", but not "write extended attributes".
Windows will then show this as basic permission "Special" instead of
"Write", because "Write" also covers the "write extended attributes"
permission. When setting digit 0 for group or others, to indicate no
permissions, they will still get individual permissions "read
attributes", "read extended attributes" and "read permissions". This is
done for compatibility reasons, e.g. to allow users without additional
permissions to be able to read basic metadata about files like in Unix.
If you set POSIX permissions for only allowing access to the owner,
using --file-perms 0600 --dir-perms 0700, the user group and the
built-in "Everyone" group will still be given some special permissions,
as described above. Some programs may then (incorrectly) interpret this
as the file being accessible by everyone, for example an SSH client may
warn about "unprotected private key file". You can work around this by
specifying -o FileSecurity="D:P(A;;FA;;;OW)", which sets file all access
(FA) to the owner (OW), and nothing else.
When setting write permissions then, except for the owner, this does not
include the "write extended attributes" permission, as mentioned above.
This may prevent applications from writing to files, giving permission
denied error instead. To set working write permissions for the built-in
"Everyone" group, similar to what it gets by default but with the
addition of the "write extended attributes", you can specify
-o FileSecurity="D:P(A;;FRFW;;;WD)", which sets file read (FR) and file
write (FW) to everyone (WD). If file execute (FX) is also needed, then
change to -o FileSecurity="D:P(A;;FRFWFX;;;WD)", or set file all access
(FA) to get full access permissions, including delete, with
-o FileSecurity="D:P(A;;FA;;;WD)".
Windows caveats
If you don't need to access the drive from applications running with
administrative privileges, the easiest way around this is to always
create the mount from a non-elevated command prompt.
To make mapped drives available to the user account that created them
regardless if elevated or not, there is a special Windows setting called
linked connections that can be enabled.
Mounting on macOS
Mounting on macOS can be done either via built-in NFS server, macFUSE
(also known as osxfuse) or FUSE-T. macFUSE is a traditional FUSE driver
utilizing a macOS kernel extension (kext). FUSE-T is an alternative FUSE
system which "mounts" via an NFSv4 local server.
Unicode Normalization
It is highly recommended to keep the default of
--no-unicode-normalization=false for all mount and serve commands on
macOS. For details, see vfs-case-sensitivity.
NFS mount
This method spins up an NFS server using serve nfs command and mounts it
to the specified mountpoint. If you run this in background mode using
|--daemon|, you will need to send SIGTERM signal to the rclone process
using |kill| command to stop the mount.
macFUSE Notes
If installing macFUSE using dmg packages from the website, rclone will
locate the macFUSE libraries without any further intervention. If
however, macFUSE is installed using the macports package manager, the
following addition steps are required.
There are some limitations, caveats, and notes about how it works. These
are current as of FUSE-T version 1.0.14.
This means that viewing files with various tools, notably macOS Finder,
will cause rlcone to update the modification time of the file. This may
make rclone upload a full new copy of the file.
Limitations
When rclone mount is invoked on Unix with --daemon flag, the main rclone
program will wait for the background mount to become ready or until the
timeout specified by the --daemon-wait flag. On Linux it can check mount
status using ProcFS so the flag in fact sets maximum time to wait, while
the real wait can be less. On macOS / BSD the time to wait is constant
and the check is performed only at the end. We advise you to set wait
time on macOS reasonably.
Attribute caching
You can use the flag --attr-timeout to set the time the kernel caches
the attributes (size, modification time, etc.) for directory entries.
The default is 1s which caches files just long enough to avoid too many
callbacks to rclone from the kernel.
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.
If you set it higher (10s or 1m say) then the kernel will call back to
rclone less often making it more efficient, however there is more chance
of the corruption issue above.
Filters
Note that all the rclone filters can be used to select a subset of the
files to be visible in the mount.
systemd
When running rclone nfsmount 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
nfsmount service specified as a requirement will see all files and
folders immediately in this mode.
Note that systemd runs mount units without any environment variables
including PATH or HOME. This means that tilde (~) expansion will not
work and you should provide --config and --cache-dir explicitly as
absolute paths via rclone arguments. Since mounting requires the
fusermount or fusermount3 program, rclone will use the fallback PATH of
/bin:/usr/bin in this scenario. Please ensure that
fusermount/fusermount3 is present on this PATH.
The core Unix program /bin/mount normally takes the -t FSTYPE argument
then runs the /sbin/mount.FSTYPE helper program passing it mount options
as -o key=val,... or --opt=.... Automount (classic or systemd) behaves
in a similar way.
# /etc/systemd/system/mnt-data.mount
[Unit]
Description=Mount for /mnt/data
[Mount]
Type=rclone
What=sftp1:subdir
Where=/mnt/data
Options=rw,_netdev,allow_other,args2env,vfs-cache-mode=writes,config=/etc/
rclone.conf,cache-dir=/var/rclone
# /etc/systemd/system/mnt-data.automount
[Unit]
Description=AutoMount for /mnt/data
[Automount]
Where=/mnt/data
TimeoutIdleSec=600
[Install]
WantedBy=multi-user.target
This command uses the VFS layer. This adapts the cloud storage objects
that rclone uses into something which looks much more like a disk filing
system.
Cloud storage objects have lots of properties which aren't like disk
files - you can't extend them or write to the middle of them, so the VFS
layer has to deal with that. Because there is no one right way of doing
this there are various options explained below.
The VFS layer also implements a directory cache - this caches info about
files and directories (but not the data) in memory.
Using the --dir-cache-time flag, you can control how long a directory
should be considered up to date and not refreshed from the backend.
Changes made through the VFS will appear immediately or invalidate the
cache.
However, changes made directly on the cloud storage by the web interface
or a different copy of rclone will only be picked up once the directory
cache expires if the backend configured does not support polling for
changes. If the backend supports polling, changes will be picked up
within the polling interval.
You can send a SIGHUP 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:
If you configure rclone with a remote control then you can use rclone rc
to flush the whole directory cache:
rclone rc vfs/forget
Each open file will try to keep the specified amount of data in memory
at all times. The buffered data is bound to one open file and won't be
shared.
This flag is a upper limit for the used memory per open file. 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.
These flags control the VFS file caching options. File caching is
necessary to make the VFS layer appear compatible with a normal file
system. It can be disabled at the cost of some compatibility.
For example you'll need to enable VFS caching if you want to read and
write simultaneously to a file. See below for more details.
Note that the VFS cache is separate from the cache backend and you may
find that you need one or the other or both.
If run with -vv 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 --cache-dir or setting the appropriate
environment variable.
Note that files are written back to the remote only when they are closed
and if they haven't been accessed for --vfs-write-back seconds. If
rclone is quit or dies with files that haven't been uploaded, these will
be uploaded next time rclone is run with the same flags.
The --vfs-cache-max-age will evict files from the cache after the set
time since last access has passed. The default value of 1 hour will
start evicting files from cache that haven't been accessed for 1 hour.
When a cached file is accessed the 1 hour timer is reset to 0 and will
wait for 1 more hour before evicting. Specify the time with standard
notation, s, m, h, d, w .
You should not run two copies of rclone using the same VFS cache with
the same or overlapping remotes if using --vfs-cache-mode > off. This
can potentially cause data corruption if you do. You can work around
this by giving each rclone its own cache hierarchy with --cache-dir. You
don't need to worry about this if the remotes in use don't overlap.
--vfs-cache-mode off
In this mode (the default) the cache will read directly from the remote
and write directly to the remote without caching anything on disk.
--vfs-cache-mode minimal
This is very similar to "off" except that files opened for read AND
write will be buffered to disk. This means that files opened for write
will be a lot more compatible, but uses the minimal disk space.
--vfs-cache-mode writes
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.
--vfs-cache-mode full
In this mode all reads and writes are buffered to and from disk. When
data is read from the remote this is buffered to disk as well.
In this mode the files in the cache will be sparse files and rclone will
keep track of which bits of the files it has downloaded.
This mode should support all normal file system operations and is
otherwise identical to --vfs-cache-mode writes.
When using this mode it is recommended that --buffer-size is not set too
large and --vfs-read-ahead is set large if required.
Fingerprinting
Various parts of the VFS use fingerprinting to see if a local file copy
has changed relative to a remote file. Fingerprints are made from:
- size
- modification time
- hash
On some backends some of these attributes are slow to read (they take an
extra API call per object, or extra work per object).
For example hash is slow with the local and sftp backends as they have
to read the entire file and hash it, and modtime is slow with the s3,
swift, ftp and qinqstor backends because they need to do an extra API
call to fetch it.
If you use the --vfs-fast-fingerprint flag then rclone will not include
the slow operations in the fingerprint. This makes the fingerprinting
less accurate but much faster and will improve the opening time of
cached files.
If you are running a vfs cache over local, s3 or swift backends then
using this flag is recommended.
Note that if you change the value of this flag, the fingerprints of the
files in the cache may be invalidated and the files will need to be
downloaded again.
When rclone reads files from a remote it reads them in chunks. This
means that rather than requesting the whole file rclone reads the chunk
specified. 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.
--vfs-read-chunk-streams == 0
--vfs-read-chunk-streams > 0
For high performance object stores (eg AWS S3) a reasonable place to
start might be --vfs-read-chunk-streams 16 and --vfs-read-chunk-size 4M.
In testing with AWS S3 the performance scaled roughly as the
--vfs-read-chunk-streams setting.
Similar settings should work for high latency links, but depending on
the latency they may need more --vfs-read-chunk-streams in order to get
the throughput.
VFS Performance
In particular S3 and Swift benefit hugely from the --no-modtime flag (or
use --use-server-modtime for a slightly different effect) as each read
of the modification time takes a transaction.
Linux file systems are case-sensitive: two files can differ only by
case, and the exact case must be used when opening a file.
Note that case sensitivity of the operating system running rclone (the
target) may differ from case sensitivity of a file system presented by
rclone (the source). The flag controls whether "fixup" is performed to
satisfy the target.
If the flag is not provided on the command line, then its default value
depends on the operating system where rclone runs: "true" on Windows and
macOS, "false" otherwise. If the flag is provided without a value, then
it is "true".
This flag allows you to manually set the statistics about the filing
system. It can be useful when those statistics cannot be read correctly
automatically.
Some backends, most notably S3, do not report the amount of bytes used.
If you need this information to be available when running df on the
filesystem, then pass the flag --vfs-used-is-size to rclone. With this
flag set, instead of relying on the backend to report this information,
rclone will scan the whole remote similar to rclone size and compute the
total used space itself.
WARNING. Contrary to rclone size, this flag ignores filters so that the
result is accurate. However, this is very inefficient and may cost lots
of API calls resulting in extra charges. Use it as a last resort and
only with caching.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
rclone obscure
Synopsis
Many equally important things (like access tokens) are not obscured in
the config file. However it is very hard to shoulder surf a 64 character
hex token.
If you want to encrypt the config file then please use config file
encryption - see rclone config for more info.
Options
See the global flags page for global options not listed here.
See Also
rclone rc
Synopsis
This runs a command against a running rclone. 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"
Note that --rc-addr, --rc-user, --rc-pass will be read also for --url,
--user, --pass.
The --unix-socket flag can be used to connect over a unix socket like
this
The -o/--opt option can be used to set a key "opt" with key, value
options in the form -o key=value or -o key. It can be repeated as many
times as required. This is useful for rc commands which take the "opt"
parameter which by convention is a dictionary of strings.
-o key=value -o key2
{"key":"value", "key2","")
The -a/--arg option can be used to set strings in the "arg" value. It
can be repeated as many times as required. This is useful for rc
commands which take the "arg" parameter which by convention is a list of
strings.
-a value -a value2
["value", "value2"]
Use --loopback to connect to the rclone instance running rclone rc. This
is very useful for testing commands without having to run an rclone rc
server, e.g.:
Options
See the global flags page for global options not listed here.
See Also
rclone rcat
Synopsis
Reads from standard input (stdin) and copies it to a single remote file.
Use the --size flag to preallocate the file in advance at the remote end
and actually stream it, even if remote backend doesn't support
streaming.
--size should be the exact size of the input stream in bytes. If the
size of the stream is different in length to the --size passed in then
the transfer will likely fail.
Note that the upload cannot be retried because the data is not stored.
If the backend supports multipart uploading then individual chunks can
be retried. If you need to transfer a lot of data, you may be better off
caching it locally and then rclone move it to the destination which can
use retries.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Important Options
See Also
rclone rcd
Synopsis
Server options
Use --rc-addr to specify which IP address and port the server should
listen on, eg --rc-addr 1.2.3.4:8000 or --rc-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.
--rc-baseurl controls the URL prefix that rclone serves from. By default
rclone will serve from the root. If you used --rc-baseurl "/rclone" then
rclone would serve from a URL starting with "/rclone/". This is useful
if you wish to proxy rclone serve. Rclone automatically inserts leading
and trailing "/" on --rc-baseurl, so --rc-baseurl "rclone",
--rc-baseurl "/rclone" and --rc-baseurl "/rclone/" are all treated
identically.
TLS (SSL)
By default this will serve over http. If you want you can serve over
https. You will need to supply the --rc-cert and --rc-key flags. If you
wish to do client side certificate validation then you will need to
supply --rc-client-ca also.
Socket activation
-----------------------------------------------------------------------
Parameter Description
----------------------------------- -----------------------------------
.Name The full path of a file/directory.
Sort Options:
namedirfirst,name,size,time
(default namedirfirst)
The server also makes the following functions available so that they can
be used within the template. These functions help extend the options for
dynamic rendering of HTML. They can be used to render HTML based on
specific conditions.
-----------------------------------------------------------------------
Function Description
----------------------------------- -----------------------------------
afterEpoch Returns the time since the epoch
for the given time.
Authentication
You can either use an htpasswd file which can take lots of users, or set
a single username and password with the --rc-user and --rc-pass flags.
touch htpasswd
htpasswd -B htpasswd user
htpasswd -B htpasswd anotherUser
Use --rc-salt to change the password hashing salt from the default.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
RC Options
See Also
rclone rmdirs
Synopsis
Use command rmdir to delete just the empty directory given by path, not
recurse.
This is useful for tidying up remotes that rclone has left a lot of
empty directories in. For example the delete command will delete files
but leave the directory structure (unless used with option --rmdirs).
To delete a path and any objects in it, use the purge command.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Important Options
See Also
rclone selfupdate
Synopsis
This command downloads the latest release of rclone and replaces the
currently running binary. The download is verified with a hashsum and
cryptographically signed signature; see the release signing docs for
details.
If used without flags (or with implied --stable flag), this command will
install the latest stable release. However, some issues may be fixed (or
features added) only in the latest beta release. In such cases you
should run the command with the --beta flag, i.e.
rclone selfupdate --beta. You can check in advance what version would be
installed by adding the --check flag, then repeat the command without it
when you are satisfied.
Sometimes the rclone team may recommend you a concrete beta or stable
rclone release to troubleshoot your issue or add a bleeding edge
feature. The --version VER flag, if given, will update to the concrete
version instead of the latest one. If you omit micro version from VER
(for example 1.53), the latest matching micro version will be used.
The rclone mount command may or may not support extended FUSE options
depending on the build and OS. selfupdate will refuse to update if the
capability would be discarded.
Note: Windows forbids deletion of a currently running executable so this
command will rename the old executable to 'rclone.old.exe' upon success.
Please note that this command was not available before rclone version
1.55. If it fails for you with the message unknown command "selfupdate"
then you will need to update manually following the install instructions
located at https://rclone.org/install/
Options
See the global flags page for global options not listed here.
See Also
rclone serve
Synopsis
Each subcommand has its own options which you can see in their help.
Options
See the global flags page for global options not listed here.
See Also
Synopsis
Run a DLNA media server for media stored in an 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.
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.
Rclone will add external subtitle files (.srt) to videos if they have
the same filename as the video file itself (except the extension),
either in the same directory as the video, or in a "Subs" subdirectory.
Server options
Use --addr to specify which IP address and port the server should listen
on, e.g. --addr 1.2.3.4:8000 or --addr :8080 to listen to all IPs.
This command uses the VFS layer. This adapts the cloud storage objects
that rclone uses into something which looks much more like a disk filing
system.
Cloud storage objects have lots of properties which aren't like disk
files - you can't extend them or write to the middle of them, so the VFS
layer has to deal with that. Because there is no one right way of doing
this there are various options explained below.
The VFS layer also implements a directory cache - this caches info about
files and directories (but not the data) in memory.
Using the --dir-cache-time flag, you can control how long a directory
should be considered up to date and not refreshed from the backend.
Changes made through the VFS will appear immediately or invalidate the
cache.
However, changes made directly on the cloud storage by the web interface
or a different copy of rclone will only be picked up once the directory
cache expires if the backend configured does not support polling for
changes. If the backend supports polling, changes will be picked up
within the polling interval.
You can send a SIGHUP 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:
If you configure rclone with a remote control then you can use rclone rc
to flush the whole directory cache:
rclone rc vfs/forget
Each open file will try to keep the specified amount of data in memory
at all times. The buffered data is bound to one open file and won't be
shared.
This flag is a upper limit for the used memory per open file. 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.
These flags control the VFS file caching options. File caching is
necessary to make the VFS layer appear compatible with a normal file
system. It can be disabled at the cost of some compatibility.
For example you'll need to enable VFS caching if you want to read and
write simultaneously to a file. See below for more details.
Note that the VFS cache is separate from the cache backend and you may
find that you need one or the other or both.
If run with -vv 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 --cache-dir or setting the appropriate
environment variable.
Note that files are written back to the remote only when they are closed
and if they haven't been accessed for --vfs-write-back seconds. If
rclone is quit or dies with files that haven't been uploaded, these will
be uploaded next time rclone is run with the same flags.
The --vfs-cache-max-age will evict files from the cache after the set
time since last access has passed. The default value of 1 hour will
start evicting files from cache that haven't been accessed for 1 hour.
When a cached file is accessed the 1 hour timer is reset to 0 and will
wait for 1 more hour before evicting. Specify the time with standard
notation, s, m, h, d, w .
You should not run two copies of rclone using the same VFS cache with
the same or overlapping remotes if using --vfs-cache-mode > off. This
can potentially cause data corruption if you do. You can work around
this by giving each rclone its own cache hierarchy with --cache-dir. You
don't need to worry about this if the remotes in use don't overlap.
--vfs-cache-mode off
In this mode (the default) the cache will read directly from the remote
and write directly to the remote without caching anything on disk.
--vfs-cache-mode minimal
This is very similar to "off" except that files opened for read AND
write will be buffered to disk. This means that files opened for write
will be a lot more compatible, but uses the minimal disk space.
--vfs-cache-mode writes
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.
--vfs-cache-mode full
In this mode all reads and writes are buffered to and from disk. When
data is read from the remote this is buffered to disk as well.
In this mode the files in the cache will be sparse files and rclone will
keep track of which bits of the files it has downloaded.
This mode should support all normal file system operations and is
otherwise identical to --vfs-cache-mode writes.
When using this mode it is recommended that --buffer-size is not set too
large and --vfs-read-ahead is set large if required.
Fingerprinting
Various parts of the VFS use fingerprinting to see if a local file copy
has changed relative to a remote file. Fingerprints are made from:
- size
- modification time
- hash
For example hash is slow with the local and sftp backends as they have
to read the entire file and hash it, and modtime is slow with the s3,
swift, ftp and qinqstor backends because they need to do an extra API
call to fetch it.
If you use the --vfs-fast-fingerprint flag then rclone will not include
the slow operations in the fingerprint. This makes the fingerprinting
less accurate but much faster and will improve the opening time of
cached files.
If you are running a vfs cache over local, s3 or swift backends then
using this flag is recommended.
Note that if you change the value of this flag, the fingerprints of the
files in the cache may be invalidated and the files will need to be
downloaded again.
When rclone reads files from a remote it reads them in chunks. This
means that rather than requesting the whole file rclone reads the chunk
specified. 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.
--vfs-read-chunk-streams == 0
For high performance object stores (eg AWS S3) a reasonable place to
start might be --vfs-read-chunk-streams 16 and --vfs-read-chunk-size 4M.
In testing with AWS S3 the performance scaled roughly as the
--vfs-read-chunk-streams setting.
Similar settings should work for high latency links, but depending on
the latency they may need more --vfs-read-chunk-streams in order to get
the throughput.
VFS Performance
In particular S3 and Swift benefit hugely from the --no-modtime flag (or
use --use-server-modtime for a slightly different effect) as each read
of the modification time takes a transaction.
Linux file systems are case-sensitive: two files can differ only by
case, and the exact case must be used when opening a file.
Note that case sensitivity of the operating system running rclone (the
target) may differ from case sensitivity of a file system presented by
rclone (the source). The flag controls whether "fixup" is performed to
satisfy the target.
If the flag is not provided on the command line, then its default value
depends on the operating system where rclone runs: "true" on Windows and
macOS, "false" otherwise. If the flag is provided without a value, then
it is "true".
This flag allows you to manually set the statistics about the filing
system. It can be useful when those statistics cannot be read correctly
automatically.
--vfs-disk-space-total-size Manually set the total disk space size (example:
256G, default: -1)
Some backends, most notably S3, do not report the amount of bytes used.
If you need this information to be available when running df on the
filesystem, then pass the flag --vfs-used-is-size to rclone. With this
flag set, instead of relying on the backend to report this information,
rclone will scan the whole remote similar to rclone size and compute the
total used space itself.
WARNING. Contrary to rclone size, this flag ignores filters so that the
result is accurate. However, this is very inefficient and may cost lots
of API calls resulting in extra charges. Use it as a last resort and
only with caching.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
See Also
Synopsis
This command implements the Docker volume plugin API allowing docker to
use rclone as a data storage mechanism for various cloud providers.
rclone provides docker volume plugin based on it.
To create a docker plugin, one must create a Unix or TCP socket that
Docker will look for when you use the plugin and then it listens for
commands from docker daemon and runs the corresponding code when
necessary. Docker plugins can run as a managed plugin under control of
the docker daemon or as an independent native service. For testing, you
can just run it directly from the command line, for example:
Running rclone serve docker will create the said socket, listening for
commands from Docker to create the necessary Volumes. Normally you need
not give the --socket-addr flag. The API will listen on the unix domain
socket at /run/docker/plugins/rclone.sock. In the example above rclone
will create a TCP socket and a small file
/etc/docker/plugins/rclone.spec containing the socket address. We use
sudo because both paths are writeable only by the root user.
If you later decide to change listening socket, the docker daemon must
be restarted to reconnect to /run/docker/plugins/rclone.sock or parse
new /etc/docker/plugins/rclone.spec. Until you restart, any volume
related docker commands will timeout trying to access the old socket.
Running directly is supported on Linux only, not on Windows or MacOS.
This is not a problem with managed plugin mode described in details in
the full documentation.
The command will create volume mounts under the path given by --base-dir
(by default /var/lib/docker-volumes/rclone available only to root) and
maintain the JSON formatted file docker-plugin.state in the rclone cache
directory with book-keeping records of created and mounted volumes.
All mount and VFS options are submitted by the docker daemon via API,
but you can also provide defaults on the command line as well as set
path to the config file and cache directory or adjust logging verbosity.
This command uses the VFS layer. This adapts the cloud storage objects
that rclone uses into something which looks much more like a disk filing
system.
Cloud storage objects have lots of properties which aren't like disk
files - you can't extend them or write to the middle of them, so the VFS
layer has to deal with that. Because there is no one right way of doing
this there are various options explained below.
The VFS layer also implements a directory cache - this caches info about
files and directories (but not the data) in memory.
Using the --dir-cache-time flag, you can control how long a directory
should be considered up to date and not refreshed from the backend.
Changes made through the VFS will appear immediately or invalidate the
cache.
However, changes made directly on the cloud storage by the web interface
or a different copy of rclone will only be picked up once the directory
cache expires if the backend configured does not support polling for
changes. If the backend supports polling, changes will be picked up
within the polling interval.
You can send a SIGHUP 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:
If you configure rclone with a remote control then you can use rclone rc
to flush the whole directory cache:
rclone rc vfs/forget
Each open file will try to keep the specified amount of data in memory
at all times. The buffered data is bound to one open file and won't be
shared.
This flag is a upper limit for the used memory per open file. 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.
These flags control the VFS file caching options. File caching is
necessary to make the VFS layer appear compatible with a normal file
system. It can be disabled at the cost of some compatibility.
For example you'll need to enable VFS caching if you want to read and
write simultaneously to a file. See below for more details.
Note that the VFS cache is separate from the cache backend and you may
find that you need one or the other or both.
If run with -vv 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 --cache-dir or setting the appropriate
environment variable.
Note that files are written back to the remote only when they are closed
and if they haven't been accessed for --vfs-write-back seconds. If
rclone is quit or dies with files that haven't been uploaded, these will
be uploaded next time rclone is run with the same flags.
The --vfs-cache-max-age will evict files from the cache after the set
time since last access has passed. The default value of 1 hour will
start evicting files from cache that haven't been accessed for 1 hour.
When a cached file is accessed the 1 hour timer is reset to 0 and will
wait for 1 more hour before evicting. Specify the time with standard
notation, s, m, h, d, w .
You should not run two copies of rclone using the same VFS cache with
the same or overlapping remotes if using --vfs-cache-mode > off. This
can potentially cause data corruption if you do. You can work around
this by giving each rclone its own cache hierarchy with --cache-dir. You
don't need to worry about this if the remotes in use don't overlap.
--vfs-cache-mode off
In this mode (the default) the cache will read directly from the remote
and write directly to the remote without caching anything on disk.
--vfs-cache-mode minimal
This is very similar to "off" except that files opened for read AND
write will be buffered to disk. This means that files opened for write
will be a lot more compatible, but uses the minimal disk space.
--vfs-cache-mode writes
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.
--vfs-cache-mode full
In this mode all reads and writes are buffered to and from disk. When
data is read from the remote this is buffered to disk as well.
In this mode the files in the cache will be sparse files and rclone will
keep track of which bits of the files it has downloaded.
This mode should support all normal file system operations and is
otherwise identical to --vfs-cache-mode writes.
When using this mode it is recommended that --buffer-size is not set too
large and --vfs-read-ahead is set large if required.
Fingerprinting
Various parts of the VFS use fingerprinting to see if a local file copy
has changed relative to a remote file. Fingerprints are made from:
- size
- modification time
- hash
On some backends some of these attributes are slow to read (they take an
extra API call per object, or extra work per object).
For example hash is slow with the local and sftp backends as they have
to read the entire file and hash it, and modtime is slow with the s3,
swift, ftp and qinqstor backends because they need to do an extra API
call to fetch it.
If you use the --vfs-fast-fingerprint flag then rclone will not include
the slow operations in the fingerprint. This makes the fingerprinting
less accurate but much faster and will improve the opening time of
cached files.
If you are running a vfs cache over local, s3 or swift backends then
using this flag is recommended.
Note that if you change the value of this flag, the fingerprints of the
files in the cache may be invalidated and the files will need to be
downloaded again.
When rclone reads files from a remote it reads them in chunks. This
means that rather than requesting the whole file rclone reads the chunk
specified. 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.
--vfs-read-chunk-streams == 0
--vfs-read-chunk-streams > 0
For high performance object stores (eg AWS S3) a reasonable place to
start might be --vfs-read-chunk-streams 16 and --vfs-read-chunk-size 4M.
In testing with AWS S3 the performance scaled roughly as the
--vfs-read-chunk-streams setting.
Similar settings should work for high latency links, but depending on
the latency they may need more --vfs-read-chunk-streams in order to get
the throughput.
VFS Performance
Linux file systems are case-sensitive: two files can differ only by
case, and the exact case must be used when opening a file.
Note that case sensitivity of the operating system running rclone (the
target) may differ from case sensitivity of a file system presented by
rclone (the source). The flag controls whether "fixup" is performed to
satisfy the target.
If the flag is not provided on the command line, then its default value
depends on the operating system where rclone runs: "true" on Windows and
macOS, "false" otherwise. If the flag is provided without a value, then
it is "true".
This flag allows you to manually set the statistics about the filing
system. It can be useful when those statistics cannot be read correctly
automatically.
Some backends, most notably S3, do not report the amount of bytes used.
If you need this information to be available when running df on the
filesystem, then pass the flag --vfs-used-is-size to rclone. With this
flag set, instead of relying on the backend to report this information,
rclone will scan the whole remote similar to rclone size and compute the
total used space itself.
WARNING. Contrary to rclone size, this flag ignores filters so that the
result is accurate. However, this is very inefficient and may cost lots
of API calls resulting in extra charges. Use it as a last resort and
only with caching.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
See Also
Synopsis
Run a basic FTP server to serve a 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.
Server options
Use --addr to specify which IP address and port the server should listen
on, e.g. --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.
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.
Authentication
You can set a single username and password with the --user and --pass
flags.
This command uses the VFS layer. This adapts the cloud storage objects
that rclone uses into something which looks much more like a disk filing
system.
Cloud storage objects have lots of properties which aren't like disk
files - you can't extend them or write to the middle of them, so the VFS
layer has to deal with that. Because there is no one right way of doing
this there are various options explained below.
The VFS layer also implements a directory cache - this caches info about
files and directories (but not the data) in memory.
Using the --dir-cache-time flag, you can control how long a directory
should be considered up to date and not refreshed from the backend.
Changes made through the VFS will appear immediately or invalidate the
cache.
However, changes made directly on the cloud storage by the web interface
or a different copy of rclone will only be picked up once the directory
cache expires if the backend configured does not support polling for
changes. If the backend supports polling, changes will be picked up
within the polling interval.
You can send a SIGHUP 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:
If you configure rclone with a remote control then you can use rclone rc
to flush the whole directory cache:
rclone rc vfs/forget
Each open file will try to keep the specified amount of data in memory
at all times. The buffered data is bound to one open file and won't be
shared.
This flag is a upper limit for the used memory per open file. 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.
These flags control the VFS file caching options. File caching is
necessary to make the VFS layer appear compatible with a normal file
system. It can be disabled at the cost of some compatibility.
For example you'll need to enable VFS caching if you want to read and
write simultaneously to a file. See below for more details.
Note that the VFS cache is separate from the cache backend and you may
find that you need one or the other or both.
If run with -vv 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 --cache-dir or setting the appropriate
environment variable.
Note that files are written back to the remote only when they are closed
and if they haven't been accessed for --vfs-write-back seconds. If
rclone is quit or dies with files that haven't been uploaded, these will
be uploaded next time rclone is run with the same flags.
The --vfs-cache-max-age will evict files from the cache after the set
time since last access has passed. The default value of 1 hour will
start evicting files from cache that haven't been accessed for 1 hour.
When a cached file is accessed the 1 hour timer is reset to 0 and will
wait for 1 more hour before evicting. Specify the time with standard
notation, s, m, h, d, w .
You should not run two copies of rclone using the same VFS cache with
the same or overlapping remotes if using --vfs-cache-mode > off. This
can potentially cause data corruption if you do. You can work around
this by giving each rclone its own cache hierarchy with --cache-dir. You
don't need to worry about this if the remotes in use don't overlap.
--vfs-cache-mode off
In this mode (the default) the cache will read directly from the remote
and write directly to the remote without caching anything on disk.
--vfs-cache-mode minimal
This is very similar to "off" except that files opened for read AND
write will be buffered to disk. This means that files opened for write
will be a lot more compatible, but uses the minimal disk space.
--vfs-cache-mode writes
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.
--vfs-cache-mode full
In this mode all reads and writes are buffered to and from disk. When
data is read from the remote this is buffered to disk as well.
In this mode the files in the cache will be sparse files and rclone will
keep track of which bits of the files it has downloaded.
This mode should support all normal file system operations and is
otherwise identical to --vfs-cache-mode writes.
When using this mode it is recommended that --buffer-size is not set too
large and --vfs-read-ahead is set large if required.
Fingerprinting
Various parts of the VFS use fingerprinting to see if a local file copy
has changed relative to a remote file. Fingerprints are made from:
- size
- modification time
- hash
On some backends some of these attributes are slow to read (they take an
extra API call per object, or extra work per object).
For example hash is slow with the local and sftp backends as they have
to read the entire file and hash it, and modtime is slow with the s3,
swift, ftp and qinqstor backends because they need to do an extra API
call to fetch it.
If you use the --vfs-fast-fingerprint flag then rclone will not include
the slow operations in the fingerprint. This makes the fingerprinting
less accurate but much faster and will improve the opening time of
cached files.
If you are running a vfs cache over local, s3 or swift backends then
using this flag is recommended.
Note that if you change the value of this flag, the fingerprints of the
files in the cache may be invalidated and the files will need to be
downloaded again.
When rclone reads files from a remote it reads them in chunks. This
means that rather than requesting the whole file rclone reads the chunk
specified. 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.
--vfs-read-chunk-streams == 0
--vfs-read-chunk-streams > 0
For high performance object stores (eg AWS S3) a reasonable place to
start might be --vfs-read-chunk-streams 16 and --vfs-read-chunk-size 4M.
In testing with AWS S3 the performance scaled roughly as the
--vfs-read-chunk-streams setting.
Similar settings should work for high latency links, but depending on
the latency they may need more --vfs-read-chunk-streams in order to get
the throughput.
VFS Performance
In particular S3 and Swift benefit hugely from the --no-modtime flag (or
use --use-server-modtime for a slightly different effect) as each read
of the modification time takes a transaction.
Linux file systems are case-sensitive: two files can differ only by
case, and the exact case must be used when opening a file.
Note that case sensitivity of the operating system running rclone (the
target) may differ from case sensitivity of a file system presented by
rclone (the source). The flag controls whether "fixup" is performed to
satisfy the target.
If the flag is not provided on the command line, then its default value
depends on the operating system where rclone runs: "true" on Windows and
macOS, "false" otherwise. If the flag is provided without a value, then
it is "true".
This flag allows you to manually set the statistics about the filing
system. It can be useful when those statistics cannot be read correctly
automatically.
Some backends, most notably S3, do not report the amount of bytes used.
If you need this information to be available when running df on the
filesystem, then pass the flag --vfs-used-is-size to rclone. With this
flag set, instead of relying on the backend to report this information,
rclone will scan the whole remote similar to rclone size and compute the
total used space itself.
WARNING. Contrary to rclone size, this flag ignores filters so that the
result is accurate. However, this is very inefficient and may cost lots
of API calls resulting in extra charges. Use it as a last resort and
only with caching.
Auth Proxy
The program's job is to take a user and pass on the input and turn those
into the config for a backend on STDOUT in JSON format. This config will
have any default parameters for the backend added, but it won't use
configuration from environment variables or command line options - it is
the job of the proxy program to make a complete config.
This config generated must have this extra parameter - _root - root to
use for the backend
And it may have this parameter - _obscure - comma separated strings for
parameters to obscure
{
"user": "me",
"pass": "mypassword"
}
{
"user": "me",
"public_key":
"AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf"
}
{
"type": "sftp",
"_root": "",
"_obscure": "pass",
"user": "me",
"pass": "mypassword",
"host": "sftp.example.com"
}
This would mean that an SFTP backend would be created on the fly for the
user and pass/public_key returned in the output to the host given. Note
that since _obscure is set to pass, rclone will obscure the pass
parameter before creating the backend (which is required for sftp
backends).
The program can manipulate the supplied user in any way, for example to
make proxy to many different sftp backends, you could make the user be
[email protected] and then set the host to example.com in the output and
the user to user. For security you'd probably want to restrict the host
to a limited list.
Note that an internal cache is keyed on user so only use that for
configuration, don't use pass or public_key. This also means that if a
user's password or public-key is changed the cache will need to expire
(which takes 5 mins) before it takes effect.
This can be used to build general purpose proxies to any kind of backend
that rclone supports.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
See Also
Synopsis
Run a basic web server to serve a remote over HTTP. This can be viewed
in a web browser or you can make a remote of type http read from it.
You can use the filter flags (e.g. --include, --exclude) to control what
is served.
Server options
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.
TLS (SSL)
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.
Socket activation
-----------------------------------------------------------------------
Parameter Description
----------------------------------- -----------------------------------
.Name The full path of a file/directory.
Sort Options:
namedirfirst,name,size,time
(default namedirfirst)
.Order The current ordering used. This is
changeable via ?order= parameter
The server also makes the following functions available so that they can
be used within the template. These functions help extend the options for
dynamic rendering of HTML. They can be used to render HTML based on
specific conditions.
-----------------------------------------------------------------------
Function Description
----------------------------------- -----------------------------------
afterEpoch Returns the time since the epoch
for the given time.
Authentication
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.
touch htpasswd
htpasswd -B htpasswd user
htpasswd -B htpasswd anotherUser
Use --salt to change the password hashing salt from the default.
This command uses the VFS layer. This adapts the cloud storage objects
that rclone uses into something which looks much more like a disk filing
system.
Cloud storage objects have lots of properties which aren't like disk
files - you can't extend them or write to the middle of them, so the VFS
layer has to deal with that. Because there is no one right way of doing
this there are various options explained below.
The VFS layer also implements a directory cache - this caches info about
files and directories (but not the data) in memory.
Using the --dir-cache-time flag, you can control how long a directory
should be considered up to date and not refreshed from the backend.
Changes made through the VFS will appear immediately or invalidate the
cache.
However, changes made directly on the cloud storage by the web interface
or a different copy of rclone will only be picked up once the directory
cache expires if the backend configured does not support polling for
changes. If the backend supports polling, changes will be picked up
within the polling interval.
You can send a SIGHUP 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:
kill -SIGHUP $(pidof rclone)
If you configure rclone with a remote control then you can use rclone rc
to flush the whole directory cache:
rclone rc vfs/forget
Each open file will try to keep the specified amount of data in memory
at all times. The buffered data is bound to one open file and won't be
shared.
This flag is a upper limit for the used memory per open file. 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.
These flags control the VFS file caching options. File caching is
necessary to make the VFS layer appear compatible with a normal file
system. It can be disabled at the cost of some compatibility.
For example you'll need to enable VFS caching if you want to read and
write simultaneously to a file. See below for more details.
Note that the VFS cache is separate from the cache backend and you may
find that you need one or the other or both.
If run with -vv 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 --cache-dir or setting the appropriate
environment variable.
Note that files are written back to the remote only when they are closed
and if they haven't been accessed for --vfs-write-back seconds. If
rclone is quit or dies with files that haven't been uploaded, these will
be uploaded next time rclone is run with the same flags.
The --vfs-cache-max-age will evict files from the cache after the set
time since last access has passed. The default value of 1 hour will
start evicting files from cache that haven't been accessed for 1 hour.
When a cached file is accessed the 1 hour timer is reset to 0 and will
wait for 1 more hour before evicting. Specify the time with standard
notation, s, m, h, d, w .
You should not run two copies of rclone using the same VFS cache with
the same or overlapping remotes if using --vfs-cache-mode > off. This
can potentially cause data corruption if you do. You can work around
this by giving each rclone its own cache hierarchy with --cache-dir. You
don't need to worry about this if the remotes in use don't overlap.
--vfs-cache-mode off
In this mode (the default) the cache will read directly from the remote
and write directly to the remote without caching anything on disk.
--vfs-cache-mode minimal
This is very similar to "off" except that files opened for read AND
write will be buffered to disk. This means that files opened for write
will be a lot more compatible, but uses the minimal disk space.
--vfs-cache-mode writes
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.
--vfs-cache-mode full
In this mode all reads and writes are buffered to and from disk. When
data is read from the remote this is buffered to disk as well.
In this mode the files in the cache will be sparse files and rclone will
keep track of which bits of the files it has downloaded.
This mode should support all normal file system operations and is
otherwise identical to --vfs-cache-mode writes.
When using this mode it is recommended that --buffer-size is not set too
large and --vfs-read-ahead is set large if required.
Fingerprinting
Various parts of the VFS use fingerprinting to see if a local file copy
has changed relative to a remote file. Fingerprints are made from:
- size
- modification time
- hash
On some backends some of these attributes are slow to read (they take an
extra API call per object, or extra work per object).
For example hash is slow with the local and sftp backends as they have
to read the entire file and hash it, and modtime is slow with the s3,
swift, ftp and qinqstor backends because they need to do an extra API
call to fetch it.
If you use the --vfs-fast-fingerprint flag then rclone will not include
the slow operations in the fingerprint. This makes the fingerprinting
less accurate but much faster and will improve the opening time of
cached files.
If you are running a vfs cache over local, s3 or swift backends then
using this flag is recommended.
Note that if you change the value of this flag, the fingerprints of the
files in the cache may be invalidated and the files will need to be
downloaded again.
When rclone reads files from a remote it reads them in chunks. This
means that rather than requesting the whole file rclone reads the chunk
specified. 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.
--vfs-read-chunk-streams == 0
--vfs-read-chunk-streams > 0
Similar settings should work for high latency links, but depending on
the latency they may need more --vfs-read-chunk-streams in order to get
the throughput.
VFS Performance
In particular S3 and Swift benefit hugely from the --no-modtime flag (or
use --use-server-modtime for a slightly different effect) as each read
of the modification time takes a transaction.
Linux file systems are case-sensitive: two files can differ only by
case, and the exact case must be used when opening a file.
Note that case sensitivity of the operating system running rclone (the
target) may differ from case sensitivity of a file system presented by
rclone (the source). The flag controls whether "fixup" is performed to
satisfy the target.
If the flag is not provided on the command line, then its default value
depends on the operating system where rclone runs: "true" on Windows and
macOS, "false" otherwise. If the flag is provided without a value, then
it is "true".
This flag allows you to manually set the statistics about the filing
system. It can be useful when those statistics cannot be read correctly
automatically.
Some backends, most notably S3, do not report the amount of bytes used.
If you need this information to be available when running df on the
filesystem, then pass the flag --vfs-used-is-size to rclone. With this
flag set, instead of relying on the backend to report this information,
rclone will scan the whole remote similar to rclone size and compute the
total used space itself.
WARNING. Contrary to rclone size, this flag ignores filters so that the
result is accurate. However, this is very inefficient and may cost lots
of API calls resulting in extra charges. Use it as a last resort and
only with caching.
Auth Proxy
The program's job is to take a user and pass on the input and turn those
into the config for a backend on STDOUT in JSON format. This config will
have any default parameters for the backend added, but it won't use
configuration from environment variables or command line options - it is
the job of the proxy program to make a complete config.
This config generated must have this extra parameter - _root - root to
use for the backend
And it may have this parameter - _obscure - comma separated strings for
parameters to obscure
{
"user": "me",
"pass": "mypassword"
}
{
"user": "me",
"public_key":
"AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf"
}
{
"type": "sftp",
"_root": "",
"_obscure": "pass",
"user": "me",
"pass": "mypassword",
"host": "sftp.example.com"
}
This would mean that an SFTP backend would be created on the fly for the
user and pass/public_key returned in the output to the host given. Note
that since _obscure is set to pass, rclone will obscure the pass
parameter before creating the backend (which is required for sftp
backends).
The program can manipulate the supplied user in any way, for example to
make proxy to many different sftp backends, you could make the user be
[email protected] and then set the host to example.com in the output and
the user to user. For security you'd probably want to restrict the host
to a limited list.
Note that an internal cache is keyed on user so only use that for
configuration, don't use pass or public_key. This also means that if a
user's password or public-key is changed the cache will need to expire
(which takes 5 mins) before it takes effect.
This can be used to build general purpose proxies to any kind of backend
that rclone supports.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
See Also
Synopsis
Create an NFS server that serves the given remote over the network.
This implements an NFSv3 server to serve any rclone remote via NFS.
The primary purpose for this command is to enable the mount command on
recent macOS versions where installing FUSE is very cumbersome.
This server does not implement any authentication so any client will be
able to access the data. To limit access, you can use serve nfs on the
loopback address or rely on secure tunnels (such as SSH) or use
firewalling.
For this reason, by default, a random TCP port is chosen and the
loopback interface is used for the listening address by default; meaning
that it is only available to the local machine. If you want other
machines to access the NFS mount over local network, you need to specify
the listening address and port using the --addr flag.
Modifying files through the NFS protocol requires VFS caching. Usually
you will need to specify --vfs-cache-mode in order to be able to write
to the mountpoint (full is recommended). If you don't specify VFS cache
mode, the mount will be read-only.
This specifies a port that can be used in the mount command. To mount
the server under Linux/macOS, use the following command:
Where $PORT is the same port number used in the serve nfs command and
$HOSTNAME is the network address of the machine that serve nfs was run
on.
This command uses the VFS layer. This adapts the cloud storage objects
that rclone uses into something which looks much more like a disk filing
system.
Cloud storage objects have lots of properties which aren't like disk
files - you can't extend them or write to the middle of them, so the VFS
layer has to deal with that. Because there is no one right way of doing
this there are various options explained below.
The VFS layer also implements a directory cache - this caches info about
files and directories (but not the data) in memory.
Using the --dir-cache-time flag, you can control how long a directory
should be considered up to date and not refreshed from the backend.
Changes made through the VFS will appear immediately or invalidate the
cache.
However, changes made directly on the cloud storage by the web interface
or a different copy of rclone will only be picked up once the directory
cache expires if the backend configured does not support polling for
changes. If the backend supports polling, changes will be picked up
within the polling interval.
You can send a SIGHUP 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:
If you configure rclone with a remote control then you can use rclone rc
to flush the whole directory cache:
rclone rc vfs/forget
Each open file will try to keep the specified amount of data in memory
at all times. The buffered data is bound to one open file and won't be
shared.
This flag is a upper limit for the used memory per open file. 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.
For example you'll need to enable VFS caching if you want to read and
write simultaneously to a file. See below for more details.
Note that the VFS cache is separate from the cache backend and you may
find that you need one or the other or both.
If run with -vv 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 --cache-dir or setting the appropriate
environment variable.
Note that files are written back to the remote only when they are closed
and if they haven't been accessed for --vfs-write-back seconds. If
rclone is quit or dies with files that haven't been uploaded, these will
be uploaded next time rclone is run with the same flags.
The --vfs-cache-max-age will evict files from the cache after the set
time since last access has passed. The default value of 1 hour will
start evicting files from cache that haven't been accessed for 1 hour.
When a cached file is accessed the 1 hour timer is reset to 0 and will
wait for 1 more hour before evicting. Specify the time with standard
notation, s, m, h, d, w .
You should not run two copies of rclone using the same VFS cache with
the same or overlapping remotes if using --vfs-cache-mode > off. This
can potentially cause data corruption if you do. You can work around
this by giving each rclone its own cache hierarchy with --cache-dir. You
don't need to worry about this if the remotes in use don't overlap.
--vfs-cache-mode off
In this mode (the default) the cache will read directly from the remote
and write directly to the remote without caching anything on disk.
--vfs-cache-mode minimal
This is very similar to "off" except that files opened for read AND
write will be buffered to disk. This means that files opened for write
will be a lot more compatible, but uses the minimal disk space.
--vfs-cache-mode writes
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.
--vfs-cache-mode full
In this mode all reads and writes are buffered to and from disk. When
data is read from the remote this is buffered to disk as well.
In this mode the files in the cache will be sparse files and rclone will
keep track of which bits of the files it has downloaded.
This mode should support all normal file system operations and is
otherwise identical to --vfs-cache-mode writes.
Fingerprinting
Various parts of the VFS use fingerprinting to see if a local file copy
has changed relative to a remote file. Fingerprints are made from:
- size
- modification time
- hash
On some backends some of these attributes are slow to read (they take an
extra API call per object, or extra work per object).
For example hash is slow with the local and sftp backends as they have
to read the entire file and hash it, and modtime is slow with the s3,
swift, ftp and qinqstor backends because they need to do an extra API
call to fetch it.
If you use the --vfs-fast-fingerprint flag then rclone will not include
the slow operations in the fingerprint. This makes the fingerprinting
less accurate but much faster and will improve the opening time of
cached files.
If you are running a vfs cache over local, s3 or swift backends then
using this flag is recommended.
Note that if you change the value of this flag, the fingerprints of the
files in the cache may be invalidated and the files will need to be
downloaded again.
When rclone reads files from a remote it reads them in chunks. This
means that rather than requesting the whole file rclone reads the chunk
specified. 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.
--vfs-read-chunk-streams > 0
For high performance object stores (eg AWS S3) a reasonable place to
start might be --vfs-read-chunk-streams 16 and --vfs-read-chunk-size 4M.
In testing with AWS S3 the performance scaled roughly as the
--vfs-read-chunk-streams setting.
Similar settings should work for high latency links, but depending on
the latency they may need more --vfs-read-chunk-streams in order to get
the throughput.
VFS Performance
In particular S3 and Swift benefit hugely from the --no-modtime flag (or
use --use-server-modtime for a slightly different effect) as each read
of the modification time takes a transaction.
Linux file systems are case-sensitive: two files can differ only by
case, and the exact case must be used when opening a file.
Note that case sensitivity of the operating system running rclone (the
target) may differ from case sensitivity of a file system presented by
rclone (the source). The flag controls whether "fixup" is performed to
satisfy the target.
If the flag is not provided on the command line, then its default value
depends on the operating system where rclone runs: "true" on Windows and
macOS, "false" otherwise. If the flag is provided without a value, then
it is "true".
This flag allows you to manually set the statistics about the filing
system. It can be useful when those statistics cannot be read correctly
automatically.
Some backends, most notably S3, do not report the amount of bytes used.
If you need this information to be available when running df on the
filesystem, then pass the flag --vfs-used-is-size to rclone. With this
flag set, instead of relying on the backend to report this information,
rclone will scan the whole remote similar to rclone size and compute the
total used space itself.
WARNING. Contrary to rclone size, this flag ignores filters so that the
result is accurate. However, this is very inefficient and may cost lots
of API calls resulting in extra charges. Use it as a last resort and
only with caching.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
See Also
Synopsis
Run a basic web server to serve a remote over restic'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.
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.
Where you can replace "backup" in the above by whatever path in the
remote you wish to use.
By default this will serve on "localhost:8080" you can change this with
use of the --addr flag.
Note that you will need restic 0.8.2 or later to interoperate with
rclone.
For example:
$ export RESTIC_REPOSITORY=rest:http://localhost:8080/
$ export RESTIC_PASSWORD=yourpassword
$ restic init
created restic backend 8b1a4b56ae at rest:http://localhost:8080/
Multiple repositories
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
must end with /. Eg
$ export RESTIC_REPOSITORY=rest:http://localhost:8080/user1repo/
# backup user1 stuff
$ export RESTIC_REPOSITORY=rest:http://localhost:8080/user2repo/
# backup user2 stuff
Private repositories
Server options
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.
--baseurl controls the URL prefix that rclone serves from. By default
rclone will serve from the root. If you used --baseurl "/rclone" then
rclone would serve from a URL starting with "/rclone/". This is useful
if you wish to proxy rclone serve. Rclone automatically inserts leading
and trailing "/" on --baseurl, so --baseurl "rclone",
--baseurl "/rclone" and --baseurl "/rclone/" are all treated
identically.
TLS (SSL)
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.
Socket activation
Instead of the listening addresses specified above, rclone will listen
to all FDs passed by the service manager, if any (and ignore any
arguments passed by --addr`).
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.
touch htpasswd
htpasswd -B htpasswd user
htpasswd -B htpasswd anotherUser
Use --salt to change the password hashing salt from the default.
Options
See the global flags page for global options not listed here.
See Also
rclone serve s3
Synopsis
serve s3 implements a basic s3 server that serves a remote via s3. This
can be viewed with an s3 client, or you can make an s3 type remote to
read and write to it with rclone.
Please note that some clients may require HTTPS endpoints. See the SSL
docs for more information.
This command uses the VFS directory cache. All the functionality will
work with --vfs-cache-mode off. Using --vfs-cache-mode full (or writes)
can be used to cache objects locally to improve performance.
Use --etag-hash if you want to change the hash uses for the ETag. Note
that using anything other than MD5 (the default) is likely to cause
problems for S3 clients which rely on the Etag being the MD5.
Quickstart
For a simple set up, to serve remote:path over s3, run the server like
this:
For example, to use a simple folder in the filesystem, run the server
with a command like this:
[local]
type = local
The local configuration is optional though. If you run the server with a
remote:path like /path/to/folder (without the local: prefix and without
an rclone.conf file), rclone will fall back to a default configuration,
which will be visible as a warning in the logs. But it will run
nonetheless.
[serves3]
type = s3
provider = Rclone
endpoint = http://127.0.0.1:8080/
access_key_id = ACCESS_KEY_ID
secret_access_key = SECRET_ACCESS_KEY
use_multipart_uploads = false
Bugs
When uploading multipart files serve s3 holds all the parts in memory
(see #7453). This is a limitaton of the library rclone uses for serving
S3 and will hopefully be fixed at some point.
Multipart server side copies do not work (see #7454). These take a very
long time and eventually fail. The default threshold for multipart
server side copies is 5G which is the maximum it can be, so files above
this side will fail to be server side copied.
For a current list of serve s3 bugs see the serve s3 bug category on
GitHub.
Limitations
serve s3 will treat all directories in the root as buckets and ignore
all files in the root. You can use CreateBucket to create folders under
the root, but you can't create empty folders under other folders not in
the root.
When using ListObjects, rclone will use / when the delimiter is empty.
This reduces backend requests with no effect on most operations, but if
the delimiter is something other than / and empty, rclone will do a full
recursive search of the backend, which can take some time.
Metadata will only be saved in memory other than the rclone mtime
metadata which will be set as the modification time of the file.
Supported operations
- Bucket
- ListBuckets
- CreateBucket
- DeleteBucket
- Object
- HeadObject
- ListObjects
- GetObject
- PutObject
- DeleteObject
- DeleteObjects
- CreateMultipartUpload
- CompleteMultipartUpload
- AbortMultipartUpload
- CopyObject
- UploadPart
Authentication
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.
touch htpasswd
htpasswd -B htpasswd user
htpasswd -B htpasswd anotherUser
Use --salt to change the password hashing salt from the default.
Server options
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.
--baseurl controls the URL prefix that rclone serves from. By default
rclone will serve from the root. If you used --baseurl "/rclone" then
rclone would serve from a URL starting with "/rclone/". This is useful
if you wish to proxy rclone serve. Rclone automatically inserts leading
and trailing "/" on --baseurl, so --baseurl "rclone",
--baseurl "/rclone" and --baseurl "/rclone/" are all treated
identically.
TLS (SSL)
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.
Socket activation
This command uses the VFS layer. This adapts the cloud storage objects
that rclone uses into something which looks much more like a disk filing
system.
Cloud storage objects have lots of properties which aren't like disk
files - you can't extend them or write to the middle of them, so the VFS
layer has to deal with that. Because there is no one right way of doing
this there are various options explained below.
The VFS layer also implements a directory cache - this caches info about
files and directories (but not the data) in memory.
Using the --dir-cache-time flag, you can control how long a directory
should be considered up to date and not refreshed from the backend.
Changes made through the VFS will appear immediately or invalidate the
cache.
However, changes made directly on the cloud storage by the web interface
or a different copy of rclone will only be picked up once the directory
cache expires if the backend configured does not support polling for
changes. If the backend supports polling, changes will be picked up
within the polling interval.
You can send a SIGHUP 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:
If you configure rclone with a remote control then you can use rclone rc
to flush the whole directory cache:
rclone rc vfs/forget
Each open file will try to keep the specified amount of data in memory
at all times. The buffered data is bound to one open file and won't be
shared.
This flag is a upper limit for the used memory per open file. 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.
These flags control the VFS file caching options. File caching is
necessary to make the VFS layer appear compatible with a normal file
system. It can be disabled at the cost of some compatibility.
For example you'll need to enable VFS caching if you want to read and
write simultaneously to a file. See below for more details.
Note that the VFS cache is separate from the cache backend and you may
find that you need one or the other or both.
If run with -vv 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 --cache-dir or setting the appropriate
environment variable.
Note that files are written back to the remote only when they are closed
and if they haven't been accessed for --vfs-write-back seconds. If
rclone is quit or dies with files that haven't been uploaded, these will
be uploaded next time rclone is run with the same flags.
The --vfs-cache-max-age will evict files from the cache after the set
time since last access has passed. The default value of 1 hour will
start evicting files from cache that haven't been accessed for 1 hour.
When a cached file is accessed the 1 hour timer is reset to 0 and will
wait for 1 more hour before evicting. Specify the time with standard
notation, s, m, h, d, w .
You should not run two copies of rclone using the same VFS cache with
the same or overlapping remotes if using --vfs-cache-mode > off. This
can potentially cause data corruption if you do. You can work around
this by giving each rclone its own cache hierarchy with --cache-dir. You
don't need to worry about this if the remotes in use don't overlap.
--vfs-cache-mode off
In this mode (the default) the cache will read directly from the remote
and write directly to the remote without caching anything on disk.
--vfs-cache-mode minimal
This is very similar to "off" except that files opened for read AND
write will be buffered to disk. This means that files opened for write
will be a lot more compatible, but uses the minimal disk space.
--vfs-cache-mode writes
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.
--vfs-cache-mode full
In this mode all reads and writes are buffered to and from disk. When
data is read from the remote this is buffered to disk as well.
In this mode the files in the cache will be sparse files and rclone will
keep track of which bits of the files it has downloaded.
This mode should support all normal file system operations and is
otherwise identical to --vfs-cache-mode writes.
When using this mode it is recommended that --buffer-size is not set too
large and --vfs-read-ahead is set large if required.
Fingerprinting
Various parts of the VFS use fingerprinting to see if a local file copy
has changed relative to a remote file. Fingerprints are made from:
- size
- modification time
- hash
On some backends some of these attributes are slow to read (they take an
extra API call per object, or extra work per object).
For example hash is slow with the local and sftp backends as they have
to read the entire file and hash it, and modtime is slow with the s3,
swift, ftp and qinqstor backends because they need to do an extra API
call to fetch it.
If you use the --vfs-fast-fingerprint flag then rclone will not include
the slow operations in the fingerprint. This makes the fingerprinting
less accurate but much faster and will improve the opening time of
cached files.
If you are running a vfs cache over local, s3 or swift backends then
using this flag is recommended.
Note that if you change the value of this flag, the fingerprints of the
files in the cache may be invalidated and the files will need to be
downloaded again.
When rclone reads files from a remote it reads them in chunks. This
means that rather than requesting the whole file rclone reads the chunk
specified. 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.
--vfs-read-chunk-streams == 0
--vfs-read-chunk-streams > 0
For high performance object stores (eg AWS S3) a reasonable place to
start might be --vfs-read-chunk-streams 16 and --vfs-read-chunk-size 4M.
In testing with AWS S3 the performance scaled roughly as the
--vfs-read-chunk-streams setting.
Similar settings should work for high latency links, but depending on
the latency they may need more --vfs-read-chunk-streams in order to get
the throughput.
VFS Performance
These flags may be used to enable/disable features of the VFS for
performance or other reasons. See also the chunked reading feature.
In particular S3 and Swift benefit hugely from the --no-modtime flag (or
use --use-server-modtime for a slightly different effect) as each read
of the modification time takes a transaction.
Linux file systems are case-sensitive: two files can differ only by
case, and the exact case must be used when opening a file.
Note that case sensitivity of the operating system running rclone (the
target) may differ from case sensitivity of a file system presented by
rclone (the source). The flag controls whether "fixup" is performed to
satisfy the target.
If the flag is not provided on the command line, then its default value
depends on the operating system where rclone runs: "true" on Windows and
macOS, "false" otherwise. If the flag is provided without a value, then
it is "true".
This flag allows you to manually set the statistics about the filing
system. It can be useful when those statistics cannot be read correctly
automatically.
Some backends, most notably S3, do not report the amount of bytes used.
If you need this information to be available when running df on the
filesystem, then pass the flag --vfs-used-is-size to rclone. With this
flag set, instead of relying on the backend to report this information,
rclone will scan the whole remote similar to rclone size and compute the
total used space itself.
WARNING. Contrary to rclone size, this flag ignores filters so that the
result is accurate. However, this is very inefficient and may cost lots
of API calls resulting in extra charges. Use it as a last resort and
only with caching.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
See Also
Synopsis
Run an SFTP server to serve a remote over SFTP. This can be used with an
SFTP client or you can make a remote of type sftp to use with it.
You can use the filter flags (e.g. --include, --exclude) to control what
is served.
Note that this server uses standard 32 KiB packet payload size, which
means you must not configure the client to expect anything else, e.g.
with the chunk_size option on an sftp remote.
If you don't supply a host --key then rclone will generate rsa, ecdsa
and ed25519 variants, and cache them for later use in rclone's cache
directory (see rclone help flags cache-dir) in the "serve-sftp"
directory.
This also supports being run with socket activation, in which case it
will listen on the first passed FD. It can be configured with .socket
and .service unit files as described in
https://www.freedesktop.org/software/systemd/man/latest/systemd.socket.html
Note that the default of --vfs-cache-mode off is fine for the rclone
sftp backend, but it may not be with other SFTP clients.
If --stdio is specified, rclone will serve SFTP over stdio, which can be
used with sshd via ~/.ssh/authorized_keys, for example:
This command uses the VFS layer. This adapts the cloud storage objects
that rclone uses into something which looks much more like a disk filing
system.
Cloud storage objects have lots of properties which aren't like disk
files - you can't extend them or write to the middle of them, so the VFS
layer has to deal with that. Because there is no one right way of doing
this there are various options explained below.
The VFS layer also implements a directory cache - this caches info about
files and directories (but not the data) in memory.
Using the --dir-cache-time flag, you can control how long a directory
should be considered up to date and not refreshed from the backend.
Changes made through the VFS will appear immediately or invalidate the
cache.
--dir-cache-time duration Time to cache directory entries for (default 5m0s)
--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)
However, changes made directly on the cloud storage by the web interface
or a different copy of rclone will only be picked up once the directory
cache expires if the backend configured does not support polling for
changes. If the backend supports polling, changes will be picked up
within the polling interval.
You can send a SIGHUP 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:
If you configure rclone with a remote control then you can use rclone rc
to flush the whole directory cache:
rclone rc vfs/forget
Each open file will try to keep the specified amount of data in memory
at all times. The buffered data is bound to one open file and won't be
shared.
This flag is a upper limit for the used memory per open file. 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.
These flags control the VFS file caching options. File caching is
necessary to make the VFS layer appear compatible with a normal file
system. It can be disabled at the cost of some compatibility.
For example you'll need to enable VFS caching if you want to read and
write simultaneously to a file. See below for more details.
Note that the VFS cache is separate from the cache backend and you may
find that you need one or the other or both.
If run with -vv 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 --cache-dir or setting the appropriate
environment variable.
Note that files are written back to the remote only when they are closed
and if they haven't been accessed for --vfs-write-back seconds. If
rclone is quit or dies with files that haven't been uploaded, these will
be uploaded next time rclone is run with the same flags.
The --vfs-cache-max-age will evict files from the cache after the set
time since last access has passed. The default value of 1 hour will
start evicting files from cache that haven't been accessed for 1 hour.
When a cached file is accessed the 1 hour timer is reset to 0 and will
wait for 1 more hour before evicting. Specify the time with standard
notation, s, m, h, d, w .
You should not run two copies of rclone using the same VFS cache with
the same or overlapping remotes if using --vfs-cache-mode > off. This
can potentially cause data corruption if you do. You can work around
this by giving each rclone its own cache hierarchy with --cache-dir. You
don't need to worry about this if the remotes in use don't overlap.
--vfs-cache-mode off
In this mode (the default) the cache will read directly from the remote
and write directly to the remote without caching anything on disk.
This is very similar to "off" except that files opened for read AND
write will be buffered to disk. This means that files opened for write
will be a lot more compatible, but uses the minimal disk space.
--vfs-cache-mode writes
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.
--vfs-cache-mode full
In this mode all reads and writes are buffered to and from disk. When
data is read from the remote this is buffered to disk as well.
In this mode the files in the cache will be sparse files and rclone will
keep track of which bits of the files it has downloaded.
This mode should support all normal file system operations and is
otherwise identical to --vfs-cache-mode writes.
When using this mode it is recommended that --buffer-size is not set too
large and --vfs-read-ahead is set large if required.
Fingerprinting
Various parts of the VFS use fingerprinting to see if a local file copy
has changed relative to a remote file. Fingerprints are made from:
- size
- modification time
- hash
On some backends some of these attributes are slow to read (they take an
extra API call per object, or extra work per object).
For example hash is slow with the local and sftp backends as they have
to read the entire file and hash it, and modtime is slow with the s3,
swift, ftp and qinqstor backends because they need to do an extra API
call to fetch it.
If you use the --vfs-fast-fingerprint flag then rclone will not include
the slow operations in the fingerprint. This makes the fingerprinting
less accurate but much faster and will improve the opening time of
cached files.
If you are running a vfs cache over local, s3 or swift backends then
using this flag is recommended.
Note that if you change the value of this flag, the fingerprints of the
files in the cache may be invalidated and the files will need to be
downloaded again.
When rclone reads files from a remote it reads them in chunks. This
means that rather than requesting the whole file rclone reads the chunk
specified. 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.
--vfs-read-chunk-streams == 0
--vfs-read-chunk-streams > 0
For high performance object stores (eg AWS S3) a reasonable place to
start might be --vfs-read-chunk-streams 16 and --vfs-read-chunk-size 4M.
In testing with AWS S3 the performance scaled roughly as the
--vfs-read-chunk-streams setting.
Similar settings should work for high latency links, but depending on
the latency they may need more --vfs-read-chunk-streams in order to get
the throughput.
VFS Performance
In particular S3 and Swift benefit hugely from the --no-modtime flag (or
use --use-server-modtime for a slightly different effect) as each read
of the modification time takes a transaction.
Linux file systems are case-sensitive: two files can differ only by
case, and the exact case must be used when opening a file.
Note that case sensitivity of the operating system running rclone (the
target) may differ from case sensitivity of a file system presented by
rclone (the source). The flag controls whether "fixup" is performed to
satisfy the target.
If the flag is not provided on the command line, then its default value
depends on the operating system where rclone runs: "true" on Windows and
macOS, "false" otherwise. If the flag is provided without a value, then
it is "true".
Some backends, most notably S3, do not report the amount of bytes used.
If you need this information to be available when running df on the
filesystem, then pass the flag --vfs-used-is-size to rclone. With this
flag set, instead of relying on the backend to report this information,
rclone will scan the whole remote similar to rclone size and compute the
total used space itself.
WARNING. Contrary to rclone size, this flag ignores filters so that the
result is accurate. However, this is very inefficient and may cost lots
of API calls resulting in extra charges. Use it as a last resort and
only with caching.
Auth Proxy
The program's job is to take a user and pass on the input and turn those
into the config for a backend on STDOUT in JSON format. This config will
have any default parameters for the backend added, but it won't use
configuration from environment variables or command line options - it is
the job of the proxy program to make a complete config.
This config generated must have this extra parameter - _root - root to
use for the backend
And it may have this parameter - _obscure - comma separated strings for
parameters to obscure
{
"user": "me",
"pass": "mypassword"
}
{
"user": "me",
"public_key":
"AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf"
}
{
"type": "sftp",
"_root": "",
"_obscure": "pass",
"user": "me",
"pass": "mypassword",
"host": "sftp.example.com"
}
This would mean that an SFTP backend would be created on the fly for the
user and pass/public_key returned in the output to the host given. Note
that since _obscure is set to pass, rclone will obscure the pass
parameter before creating the backend (which is required for sftp
backends).
The program can manipulate the supplied user in any way, for example to
make proxy to many different sftp backends, you could make the user be
[email protected] and then set the host to example.com in the output and
the user to user. For security you'd probably want to restrict the host
to a limited list.
Note that an internal cache is keyed on user so only use that for
configuration, don't use pass or public_key. This also means that if a
user's password or public-key is changed the cache will need to expire
(which takes 5 mins) before it takes effect.
This can be used to build general purpose proxies to any kind of backend
that rclone supports.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
See Also
Synopsis
Run a basic WebDAV server to serve a remote over HTTP via the WebDAV
protocol. This can be viewed with a WebDAV client, through a web
browser, or you can make a remote of type WebDAV to read and write it.
WebDAV options
--etag-hash
This controls the ETag header. Without this flag the ETag will be based
on the ModTime and Size of the object.
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". Use the hashsum command to see the full list.
https://learn.microsoft.com/en-us/office/troubleshoot/powerpoint/office-opens-
blank-from-sharepoint
and connect to it like this using rclone and the webdav backend:
Server options
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.
--baseurl controls the URL prefix that rclone serves from. By default
rclone will serve from the root. If you used --baseurl "/rclone" then
rclone would serve from a URL starting with "/rclone/". This is useful
if you wish to proxy rclone serve. Rclone automatically inserts leading
and trailing "/" on --baseurl, so --baseurl "rclone",
--baseurl "/rclone" and --baseurl "/rclone/" are all treated
identically.
TLS (SSL)
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.
Socket activation
Sort Options:
namedirfirst,name,size,time
(default namedirfirst)
The server also makes the following functions available so that they can
be used within the template. These functions help extend the options for
dynamic rendering of HTML. They can be used to render HTML based on
specific conditions.
-----------------------------------------------------------------------
Function Description
----------------------------------- -----------------------------------
afterEpoch Returns the time since the epoch
for the given time.
Authentication
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.
touch htpasswd
htpasswd -B htpasswd user
htpasswd -B htpasswd anotherUser
Use --salt to change the password hashing salt from the default.
This command uses the VFS layer. This adapts the cloud storage objects
that rclone uses into something which looks much more like a disk filing
system.
Cloud storage objects have lots of properties which aren't like disk
files - you can't extend them or write to the middle of them, so the VFS
layer has to deal with that. Because there is no one right way of doing
this there are various options explained below.
The VFS layer also implements a directory cache - this caches info about
files and directories (but not the data) in memory.
Using the --dir-cache-time flag, you can control how long a directory
should be considered up to date and not refreshed from the backend.
Changes made through the VFS will appear immediately or invalidate the
cache.
However, changes made directly on the cloud storage by the web interface
or a different copy of rclone will only be picked up once the directory
cache expires if the backend configured does not support polling for
changes. If the backend supports polling, changes will be picked up
within the polling interval.
You can send a SIGHUP 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:
If you configure rclone with a remote control then you can use rclone rc
to flush the whole directory cache:
rclone rc vfs/forget
Each open file will try to keep the specified amount of data in memory
at all times. The buffered data is bound to one open file and won't be
shared.
This flag is a upper limit for the used memory per open file. 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.
These flags control the VFS file caching options. File caching is
necessary to make the VFS layer appear compatible with a normal file
system. It can be disabled at the cost of some compatibility.
For example you'll need to enable VFS caching if you want to read and
write simultaneously to a file. See below for more details.
Note that the VFS cache is separate from the cache backend and you may
find that you need one or the other or both.
If run with -vv 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 --cache-dir or setting the appropriate
environment variable.
Note that files are written back to the remote only when they are closed
and if they haven't been accessed for --vfs-write-back seconds. If
rclone is quit or dies with files that haven't been uploaded, these will
be uploaded next time rclone is run with the same flags.
The --vfs-cache-max-age will evict files from the cache after the set
time since last access has passed. The default value of 1 hour will
start evicting files from cache that haven't been accessed for 1 hour.
When a cached file is accessed the 1 hour timer is reset to 0 and will
wait for 1 more hour before evicting. Specify the time with standard
notation, s, m, h, d, w .
You should not run two copies of rclone using the same VFS cache with
the same or overlapping remotes if using --vfs-cache-mode > off. This
can potentially cause data corruption if you do. You can work around
this by giving each rclone its own cache hierarchy with --cache-dir. You
don't need to worry about this if the remotes in use don't overlap.
--vfs-cache-mode off
In this mode (the default) the cache will read directly from the remote
and write directly to the remote without caching anything on disk.
--vfs-cache-mode minimal
This is very similar to "off" except that files opened for read AND
write will be buffered to disk. This means that files opened for write
will be a lot more compatible, but uses the minimal disk space.
--vfs-cache-mode writes
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.
--vfs-cache-mode full
In this mode all reads and writes are buffered to and from disk. When
data is read from the remote this is buffered to disk as well.
In this mode the files in the cache will be sparse files and rclone will
keep track of which bits of the files it has downloaded.
This mode should support all normal file system operations and is
otherwise identical to --vfs-cache-mode writes.
When using this mode it is recommended that --buffer-size is not set too
large and --vfs-read-ahead is set large if required.
Fingerprinting
Various parts of the VFS use fingerprinting to see if a local file copy
has changed relative to a remote file. Fingerprints are made from:
- size
- modification time
- hash
where available on an object.
On some backends some of these attributes are slow to read (they take an
extra API call per object, or extra work per object).
For example hash is slow with the local and sftp backends as they have
to read the entire file and hash it, and modtime is slow with the s3,
swift, ftp and qinqstor backends because they need to do an extra API
call to fetch it.
If you use the --vfs-fast-fingerprint flag then rclone will not include
the slow operations in the fingerprint. This makes the fingerprinting
less accurate but much faster and will improve the opening time of
cached files.
If you are running a vfs cache over local, s3 or swift backends then
using this flag is recommended.
Note that if you change the value of this flag, the fingerprints of the
files in the cache may be invalidated and the files will need to be
downloaded again.
When rclone reads files from a remote it reads them in chunks. This
means that rather than requesting the whole file rclone reads the chunk
specified. 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.
--vfs-read-chunk-streams == 0
For high performance object stores (eg AWS S3) a reasonable place to
start might be --vfs-read-chunk-streams 16 and --vfs-read-chunk-size 4M.
In testing with AWS S3 the performance scaled roughly as the
--vfs-read-chunk-streams setting.
Similar settings should work for high latency links, but depending on
the latency they may need more --vfs-read-chunk-streams in order to get
the throughput.
VFS Performance
In particular S3 and Swift benefit hugely from the --no-modtime flag (or
use --use-server-modtime for a slightly different effect) as each read
of the modification time takes a transaction.
Linux file systems are case-sensitive: two files can differ only by
case, and the exact case must be used when opening a file.
File systems in modern Windows are case-insensitive but case-preserving:
although existing files can be opened using any case, the exact case
used to create the file is preserved and available for programs to
query. It is not allowed for two files in the same directory to differ
only by case.
Note that case sensitivity of the operating system running rclone (the
target) may differ from case sensitivity of a file system presented by
rclone (the source). The flag controls whether "fixup" is performed to
satisfy the target.
If the flag is not provided on the command line, then its default value
depends on the operating system where rclone runs: "true" on Windows and
macOS, "false" otherwise. If the flag is provided without a value, then
it is "true".
This flag allows you to manually set the statistics about the filing
system. It can be useful when those statistics cannot be read correctly
automatically.
Some backends, most notably S3, do not report the amount of bytes used.
If you need this information to be available when running df on the
filesystem, then pass the flag --vfs-used-is-size to rclone. With this
flag set, instead of relying on the backend to report this information,
rclone will scan the whole remote similar to rclone size and compute the
total used space itself.
WARNING. Contrary to rclone size, this flag ignores filters so that the
result is accurate. However, this is very inefficient and may cost lots
of API calls resulting in extra charges. Use it as a last resort and
only with caching.
Auth Proxy
The program's job is to take a user and pass on the input and turn those
into the config for a backend on STDOUT in JSON format. This config will
have any default parameters for the backend added, but it won't use
configuration from environment variables or command line options - it is
the job of the proxy program to make a complete config.
This config generated must have this extra parameter - _root - root to
use for the backend
And it may have this parameter - _obscure - comma separated strings for
parameters to obscure
{
"user": "me",
"pass": "mypassword"
}
{
"user": "me",
"public_key":
"AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf"
}
And as an example return this on STDOUT
{
"type": "sftp",
"_root": "",
"_obscure": "pass",
"user": "me",
"pass": "mypassword",
"host": "sftp.example.com"
}
This would mean that an SFTP backend would be created on the fly for the
user and pass/public_key returned in the output to the host given. Note
that since _obscure is set to pass, rclone will obscure the pass
parameter before creating the backend (which is required for sftp
backends).
The program can manipulate the supplied user in any way, for example to
make proxy to many different sftp backends, you could make the user be
[email protected] and then set the host to example.com in the output and
the user to user. For security you'd probably want to restrict the host
to a limited list.
Note that an internal cache is keyed on user so only use that for
configuration, don't use pass or public_key. This also means that if a
user's password or public-key is changed the cache will need to expire
(which takes 5 mins) before it takes effect.
This can be used to build general purpose proxies to any kind of backend
that rclone supports.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
See Also
- rclone serve - Serve a remote over a protocol.
rclone settier
Synopsis
Note that, certain tier changes 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
Options
See the global flags page for global options not listed here.
See Also
rclone test
Synopsis
Each subcommand has its own options which you can see in their help.
See the global flags page for global options not listed here.
See Also
Log any change notify requests for the remote passed in.
Options
See the global flags page for global options not listed here.
See Also
Synopsis
This command outputs JSON which shows the histogram of characters used
in filenames in the remote:path specified.
The data doesn't contain any identifying information but is useful for
the rclone developers when developing filename compression.
Options
See the global flags page for global options not listed here.
See Also
Synopsis
Discovers what filenames and upload methods are possible to write to the
paths passed in and how long they can be. It can take some time. It will
write test files into the remote:path passed in. It outputs a bit of go
code for each one.
NB this can create undeletable files and other hazards - use with care
Options
See the global flags page for global options not listed here.
See Also
Options
See the global flags page for global options not listed here.
See Also
- rclone test - Run a test command
Options
See the global flags page for global options not listed here.
See Also
Load all the objects at remote:path into memory and report memory stats.
Options
See the global flags page for global options not listed here.
See Also
rclone touch
Synopsis
Set the modification time on file(s) as specified by remote:path to have
the current time.
If remote:path does not exist then a zero sized file will be created,
unless --no-create or --recursive is provided.
Note that value of --timestamp is in UTC. If you want local time then
add the --localtime flag.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Important Options
Filter Options
Listing Options
See Also
rclone tree
Synopsis
For example
1 directories, 5 files
You can use any of the filtering options with the tree command (e.g.
--include and --exclude. You can also use --fast-list.
The tree command has many options for controlling the listing which are
compatible with the tree command, for example you can include file sizes
with --size. Note that not all of them have short options as they
conflict with rclone's short options.
For a more interactive navigation of the remote see the ncdu command.
Options
Options shared with other commands are described next. See the global
flags page for global options not listed here.
Filter Options
Listing Options
See Also
For example, suppose you have a remote with a file in called test.jpg,
then you could copy just that file like this
The syntax of the paths passed to the rclone command are as follows.
/path/to/dir
These paths needn't start with a leading / - if they don't then they
will be relative to the current directory.
remote:path/to/dir
remote:/path/to/dir
:backend:path/to/dir
This is an advanced form for creating remotes on the fly. backend should
be the name or prefix of a backend (the type in the config file) and all
the configuration for the backend should be provided on the command line
(or in environment variables).
Connection strings
The above examples can also be written using a connection string syntax,
so instead of providing the arguments as command line parameters
--http-url https://pub.rclone.org they are provided as part of the
remote specification as a kind of connection string.
These can apply to modify existing remotes as well as create new remotes
with the on the fly syntax. This example is equivalent to adding the
--drive-shared-with-me parameter to the remote gdrive:.
The major advantage to using the connection string style syntax is that
it only applies to the remote, not to all the remotes of that type of
the command line. A common confusion is this attempt to copy a file
shared on google drive to the normal drive which does not work because
the --drive-shared-with-me flag applies to both the source and the
destination.
Note that the connection string only affects the options of the
immediate backend. If for example gdriveCrypt is a crypt based on
gdrive, then the following command will not work as intended, because
shared_with_me is ignored by the crypt backend:
remote,parameter=value,parameter2=value2:path/to/dir
:backend,parameter=value,parameter2=value2:path/to/dir
remote,parameter="colon:value",parameter2="comma,value":path/to/dir
:backend,parameter='colon:value',parameter2='comma,value':path/to/dir
remote,parameter="with""quote",parameter2='with''quote':path/to/dir
Which is equivalent to
Note that on the command line you might need to surround these
connection strings with " or ' to stop the shell interpreting any
special characters within them.
If you are a shell master then you'll know which strings are OK and
which aren't, but if you aren't sure then enclose them in " and use ' as
the inside quote. This syntax works on all OSes.
This is so rclone can tell the modified remote apart from the unmodified
remote when caching the backends.
Remote names are case sensitive, and must adhere to the following rules:
- May contain number, letter, _, -, ., +, @ and space. - May not start
with - or space. - May not end with space.
Starting with rclone version 1.61, any Unicode numbers and letters are
allowed, while in older versions it was limited to plain ASCII (0-9,
A-Z, a-z). If you use the same rclone configuration from different
shells, which may be configured with different character encoding, you
must be cautious to use characters that are possible to write in all of
them. This is mostly a problem on Windows, where the console
traditionally uses a non-Unicode character set - defined by the
so-called "code page".
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.
Here are some gotchas which may help users unfamiliar with the shell
rules
Linux / OSX
If you want to send a ' you will need to use ", e.g.
The rules for quoting metacharacters are complicated and if you want the
full details you'll have to consult the manual page for your shell.
Windows
If your names have spaces in you need to put them in ", e.g.
If you are using the root directory on its own then don't quote it (see
#464 for why), e.g.
rclone uses : 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 : up to the first / so if you need to act on a file or directory
like this then use the full path starting with a /, or use ./ as a
current directory prefix.
Most remotes (but not all - see the overview) support server-side copy.
This means if you want to copy one folder to another then rclone won't
download all the files and re-upload them; it will instruct the server
to copy them in place.
Eg
Remotes which don't support server-side copy will download and re-upload
in this case.
Server side copies are used with sync and copy and will be identified in
the log when using the -v flag. The move command may also use them if
remote doesn'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.
Server side copies will only be attempted if the remote names are the
same.
This can be used when scripting to make aged backups efficiently, e.g.
Metadata support
Metadata is data about a file (or directory) which isn't the contents of
the file (or directory). Normally rclone only preserves the modification
time and the content (MIME) type where possible.
Exactly what metadata is supported and what that support means depends
on the backend. Backends that support metadata have a metadata section
in their docs and are listed in the features table (Eg local, s3)
Types of metadata
Metadata is divided into two type. System metadata and User metadata.
Metadata which the backend uses itself is called system metadata. For
example on the local backend the system metadata uid will store the user
ID of the file when used on a unix based platform.
Arbitrary metadata is called user metadata and this can be set however
is desired.
When objects are copied from backend to backend, they will attempt to
interpret system metadata if it is supplied. Metadata may change from
being user metadata to system metadata as objects are copied between
different backends. For example copying an object from s3 sets the
content-type metadata. In a backend which understands this (like
azureblob) this will become the Content-Type of the object. In a backend
which doesn't understand this (like the local backend) this will become
user metadata. However should the local object be copied back to s3, the
Content-Type will be set correctly.
Metadata framework
There are some limits on the names of the keys (these may be clarified
further in the future).
Some backends have limits on the size of the metadata and rclone will
give errors on upload if they are exceeded.
Metadata preservation
-----------------------------------------------------------------------------------
-----------
key description example
---------------------------------- ---------------------
-------------------------------------
mode File type and mode: 0100664
octal, unix style
-----------------------------------------------------------------------------------
-----------
Options
Options that take parameters can have the values passed in two ways,
--option=value or --option value. However boolean (true/false) options
behave slightly differently to the other options in that --boolean sets
the option to true and the absence of the flag sets it to false. It is
also possible to specify --boolean=false or --boolean=true. Note that
--boolean false is not valid - this is parsed as --boolean and the false
is parsed as an extra command line argument for rclone.
- ms - Milliseconds
- s - Seconds
- m - Minutes
- h - Hours
- d - Days
- w - Weeks
- M - Months
- y - Years
Size options
Options which use SIZE use KiB (multiples of 1024 bytes) by default.
However, a suffix of B for Byte, K for KiB, M for MiB, G for GiB, T for
TiB and P for PiB may be used. These are the binary units, e.g. 1,
2**10, 2**20, 2**30 respectively.
--backup-dir=DIR
When using sync, copy or move any files which would have been
overwritten or deleted are moved in their original hierarchy into this
directory.
If --suffix 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.
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 without it being excluded by
a filter rule.
For example
If running rclone from a script you might want to use today's date as
the directory name passed to --backup-dir to store the old files, or you
might want to pass --suffix with today's date.
--bind string
You can use --bind 0.0.0.0 to force rclone to use IPv4 addresses and
--bind ::0 to force rclone to use IPv6 addresses.
--bwlimit=BANDWIDTH_SPEC
--bwlimit 10M
would mean limit the upload and download bandwidth to 10 MiB/s. NB this
is bytes per second not bits per second. To use a single limit, specify
the desired bandwidth in KiB/s, or use a suffix B|K|M|G|T|P. The default
is 0 which means to not limit bandwidth.
--bwlimit 10M:100k
would mean limit the upload bandwidth to 10 MiB/s and the download
bandwidth to 100 KiB/s. Either limit can be "off" meaning no limit, so
to just limit the upload bandwidth you would use
--bwlimit 10M:off
this would limit the upload bandwidth to 10 MiB/s but the download
bandwidth would be unlimited.
When specified as above the bandwidth limits last for the duration of
run of the rclone binary.
Is equivalent to this:
Bandwidth limit apply to the data transfer for all backends. For most
backends the directory listing bandwidth is also included (exceptions
being the non HTTP backends, ftp, sftp and storj).
Note that the units are Byte/s, not bit/s. Typically connections are
measured in bit/s - to convert divide by 8. For example, let's say you
have a 10 Mbit/s connection and you wish rclone to use half of it - 5
Mbit/s. This is 5/8 = 0.625 MiB/s so you would use a --bwlimit 0.625M
parameter for rclone.
If you configure rclone with a remote control then you can use change
the bwlimit dynamically:
--bwlimit-file=BANDWIDTH_SPEC
This option controls per file bandwidth limit. For the options see the
--bwlimit flag.
--bwlimit-file 1M
Note that if a schedule is provided the file will use the schedule in
effect at the start of the transfer.
--buffer-size=SIZE
Use this sized buffer to speed up file transfers. Each --transfer will
use this much memory for buffering.
When using mount or cmount each open file descriptor will use this much
memory for buffering. See the mount documentation for more details.
--cache-dir=DIR
Specify the directory rclone will use for caching, to override the
default.
You can use the config paths command to see the current value.
Cache directory is heavily used by the VFS File Caching mount feature,
but also by serve, GUI and other parts of rclone.
--check-first
If this flag is set then in a sync, copy or move, rclone will do all the
checks to see whether files need to be transferred before doing any of
the transfers. Normally rclone would start running transfers as soon as
possible.
If both --check-first and --order-by are set when doing rclone move then
rclone will use the transfer thread to delete source files which don't
need transferring. This will enable perfect ordering of the transfers
and deletes but will cause the transfer stats to have more items in than
expected.
Using this flag can use more memory as it effectively sets --max-backlog
to infinite. This means that all the info on the objects to transfer is
held in memory before the transfers start.
--checkers=N
Note: checkers do the equality checking of files during a sync. For some
storage systems (e.g. S3, Swift, Dropbox) this can take a significant
amount of time so they are run in parallel.
-c, --checksum
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.
This is useful when the remote doesn't support setting modified time and
a more accurate sync is desired than just checking the file size.
This is very useful when transferring between remotes which store the
same hash type on the object, e.g. Drive and Swift. For details of which
remotes support which hash type see the table in the overview section.
When using this flag, rclone won't update mtimes of remote files if they
are incorrect as it would normally.
--color WHEN
Specify when colors (and other ANSI codes) should be added to the
output.
AUTO (default) only allows ANSI codes when the output is a terminal
ALWAYS always add ANSI codes, regardless of the output format (terminal
or file)
--compare-dest=DIR
You must use the same remote as the destination of the sync. The compare
directory must not overlap the destination directory.
--config=CONFIG_FILE
The ~ symbol in paths above represent the home directory of the current
user on any OS, and the value is defined as following:
If you run rclone config file you will see where the default location is
for you.
The fact that an existing file rclone.conf in the same directory as the
rclone executable is always preferred, means that it is easy to run in
"portable" mode by downloading rclone executable to a writable directory
and then create an empty file rclone.conf in the same directory.
If the location is set to empty string "" or path to a file with name
notfound, or the os null device represented by value NUL on Windows and
/dev/null on Unix systems, then rclone will keep the config file in
memory only.
Example:
[megaremote]
type = mega
user = [email protected]
pass = PDPcQVVjVtzFY-GTdDFozqBhTdsPg3qH
Note that passwords are in obscured form. Also, many storage systems
uses token-based authentication instead of passwords, and this requires
additional steps. It is easier, and safer, to use the interactive
command rclone config instead of manually editing the configuration
file.
--contimeout=TIME
Set the connection timeout. This should be in go time format which looks
like 5s for 5 seconds, 10m for 10 minutes, or 3h30m.
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 1m by
default.
--copy-dest=DIR
The remote in use must support server-side copy and you must use the
same remote as the destination of the sync. The compare directory must
not overlap the destination directory.
--dedupe-mode MODE
Mode to run dedupe command in. One of interactive, skip, first, newest,
oldest, rename. The default is interactive.
See the dedupe command for more information as to what these options
mean.
--default-time TIME
For example --default-time 2020-06-01 to set the default time to the 1st
of June 2020 or --default-time 0s to set the default time to the time
rclone started up.
--disable FEATURE,FEATURE,...
--disable move,copy
--disable help
See the overview features and optional features to get an idea of which
feature does what.
Note that some features can be set to true if they are true/false
feature flag features by prefixing them with !. For example the
CaseInsensitive feature can be forced to false with
--disable CaseInsensitive and forced to true with
--disable '!CaseInsensitive'. In general it isn't a good idea doing this
but it may be useful in extremis.
(Note that ! is a shell command which you will need to escape with
single quotes or a backslash on unix like platforms.)
--disable-http2
This stops rclone from trying to use HTTP/2 if available. This can
sometimes speed up transfers due to a problem in the Go standard
library.
--dscp VALUE
Specify a DSCP value or name to use in connections. This could help QoS
system to identify traffic class. BE, EF, DF, LE, CSx and AFxx are
allowed.
-n, --dry-run
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 sync
command which deletes files in the destination.
--expect-continue-timeout=TIME
This specifies the amount of time to wait for a server's first response
headers after fully writing the request headers if the request has an
"Expect: 100-continue" header. Not all backends support using this.
--error-on-no-transfer
By default, rclone will exit with return code 0 if there were no errors.
--fix-case
--fs-cache-expire-duration=TIME
When using rclone via the API rclone caches created remotes for 5
minutes by default in the "fs cache". This means that if you do repeated
actions on the same remote then rclone won't have to build it again from
scratch, which makes it more efficient.
This flag sets the time that the remotes are cached for. If you set it
to 0 (or negative) then rclone won't cache the remotes at all.
Note that if you use some flags, eg --backup-dir and if this is set to 0
rclone may build two remotes (one for the source or destination and one
for the --backup-dir where it may have only built one before.
--fs-cache-expire-interval=TIME
This controls how often rclone checks for cached remotes to expire. See
the --fs-cache-expire-duration documentation above for more info. The
default is 60s, set to 0 to disable expiry.
--header
Add an HTTP header for all transactions. The flag can be repeated to add
multiple headers.
If you want to add headers only for uploads use --header-upload and if
you want to add headers only for downloads use --header-download.
This flag is supported for all HTTP based backends even those not
supported by --header-upload and --header-download so may be used as a
workaround for those with care.
--header-download
Add an HTTP header for all download transactions. The flag can be
repeated to add multiple headers.
--header-upload
Add an HTTP header for all upload transactions. The flag can be repeated
to add multiple headers.
--human-readable
Rclone commands output values for sizes (e.g. number of bytes) and
counts (e.g. number of files) either as raw numbers, or in
human-readable format.
Command size outputs both human-readable and raw numbers in the same
output.
The tree command also considers --human-readable, but it will not use
the exact same notation as the other commands: It rounds to one decimal,
and uses single letter suffix, e.g. K instead of Ki. The reason for this
is that it relies on an external library.
--ignore-case-sync
Using this option will cause rclone to ignore the case of the files when
synchronizing so files will not be copied/synced when the existing
filenames are the same, even if the casing is different.
--ignore-checksum
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.
--ignore-existing
Using this option will make rclone unconditionally skip all files that
exist on the destination, no matter the content of these files.
While this isn'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.
--ignore-size
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 --checksum is set then it only checks the
checksum.
It will also cause rclone to skip verifying the sizes are the same after
transfer.
This can be useful for transferring files to and from OneDrive which
occasionally misreports the size of image files (see #399 for more
info).
-I, --ignore-times
Using this option will cause rclone to unconditionally upload all files
regardless of the state of files on the destination.
Normally rclone would skip any files that have the same modification
time and are the same size (or have the same checksum if using
--checksum).
--immutable
With this option set, files will be created and deleted as requested,
but existing files will never be updated. If an existing file does not
match between the source and destination, rclone will give the error
Source and destination exist but do not match: immutable file modified.
Note that only commands which transfer files (e.g. sync, copy, move) are
affected by this behavior, and only modification is disallowed. Files
may still be deleted explicitly (e.g. delete, purge) or implicitly (e.g.
sync, move). Use copy --immutable if it is desired to avoid deletion as
well as modification.
--inplace
The --inplace flag changes the behaviour of rclone when uploading files
to some backends (backends with the PartialUploads feature flag set)
such as:
- local
- ftp
- sftp
- pcloud
original-file-name.XXXXXX.partial
(rclone will make sure the final name is no longer than 100 characters
by truncating the original-file-name part if necessary).
When the upload is complete, rclone will rename the .partial file to the
correct name, overwriting any existing file at that point. If the upload
fails then the .partial file will be deleted.
This prevents other users of the backend from seeing partially uploaded
files in their new names and prevents overwriting the old file until the
new one is completely uploaded.
Note that on the local file system if you don't use --inplace hard links
(Unix only) will be broken. And if you do use --inplace you won't be
able to update in use executables.
-i, --interactive
This flag can be used to tell rclone that you wish a manual confirmation
before destructive operations.
For example
--leave-root
During rmdirs it will not remove root directory, even if it's empty.
--log-file=FILE
Log all of rclone's output to FILE. This is not active by default. This
can be useful for tracking down problems with syncs in combination with
the -v flag. See the Logging section for more info.
Note that if you are using the logrotate program to manage rclone's
logs, then you should use the copytruncate option as rclone doesn't have
a signal to rotate logs.
--log-format LIST
Comma separated list of log format options. Accepted options are date,
time, microseconds, pid, longfile, shortfile, UTC. Any other keywords
will be silently ignored. pid will tag log messages with process
identifier which useful with rclone mount --daemon. Other accepted
options are explained in the go documentation. The default log format is
"date,time".
--log-level LEVEL
This sets the log level for rclone. The default log level is NOTICE.
--use-json-log
This switches the log format to JSON for rclone. The fields of json log
are level, msg, source, time.
--low-level-retries NUMBER
--max-backlog=N
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 KiB of memory
when the backlog is in use.
Setting this large allows rclone to calculate how many files are pending
more accurately, give a more accurate estimated finish time and make
--order-by work more accurately.
Setting this small will make rclone more synchronous to the listings of
the remote which may be desirable.
--max-delete=N
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.
--max-delete-size=SIZE
Rclone will stop deleting files when the total size of deletions has
reached the size specified. It defaults to off.
--max-depth=N
This modifies the recursion depth for all the commands except purge.
Note that if you use this with sync and --delete-excluded the files not
recursed through are considered excluded and will be deleted on the
destination. Test first with --dry-run if you are not sure what will
happen.
--max-duration=TIME
Rclone will stop transferring when it has run for the duration
specified. Defaults to off.
When the limit is reached all transfers will stop immediately. Use
--cutoff-mode to modify this behaviour.
Rclone will exit with exit code 10 if the duration limit is reached.
--max-transfer=SIZE
Rclone will stop transferring when it has reached the size specified.
Defaults to off.
When the limit is reached all transfers will stop immediately. Use
--cutoff-mode to modify this behaviour.
Rclone will exit with exit code 8 if the transfer limit is reached.
--cutoff-mode=hard|soft|cautious
-M, --metadata
Setting this flag enables rclone to copy the metadata from the source to
the destination. For local backends this is ownership, permissions,
xattr etc. See the metadata section for more info.
--metadata-mapper SpaceSepList
This uses a simple JSON based protocol with input on STDIN and output on
STDOUT. This will be called for every file and directory copied and may
be called concurrently.
The program's job is to take a metadata blob on the input and turn it
into a metadata blob on the output suitable for the destination backend.
Input to the program (via STDIN) might look like this. This provides
some context for the Metadata which may be important.
- SrcFs is the config string for the remote that the object is
currently on.
- SrcFsType is the name of the source backend.
- DstFs is the config string for the remote that the object is being
copied to
- DstFsType is the name of the destination backend.
- Remote is the path of the object relative to the root.
- Size, MimeType, ModTime are attributes of the object.
- IsDir is true if this is a directory (not yet implemented).
- ID is the source ID of the object if known.
- Metadata is the backend specific metadata as described in the
backend docs.
{
"SrcFs": "gdrive:",
"SrcFsType": "drive",
"DstFs": "newdrive:user",
"DstFsType": "onedrive",
"Remote": "test.txt",
"Size": 6,
"MimeType": "text/plain; charset=utf-8",
"ModTime": "2022-10-11T17:53:10.286745272+01:00",
"IsDir": false,
"ID": "xyz",
"Metadata": {
"btime": "2022-10-11T16:53:11Z",
"content-type": "text/plain; charset=utf-8",
"mtime": "2022-10-11T17:53:10.286745272+01:00",
"owner": "[email protected]",
"permissions": "...",
"description": "my nice file",
"starred": "false"
}
}
The program should then modify the input as desired and send it to
STDOUT. The returned Metadata field will be used in its entirety for the
destination object. Any other fields will be ignored. Note in this
example we translate user names and permissions and add something to the
description:
{
"Metadata": {
"btime": "2022-10-11T16:53:11Z",
"content-type": "text/plain; charset=utf-8",
"mtime": "2022-10-11T17:53:10.286745272+01:00",
"owner": "[email protected]",
"permissions": "...",
"description": "my nice file [migrated from domain1]",
"starred": "false"
}
}
i = json.load(sys.stdin)
metadata = i["Metadata"]
# Add tag to description
if "description" in metadata:
metadata["description"] += " [migrated from domain1]"
else:
metadata["description"] = "[migrated from domain1]"
# Modify owner
if "owner" in metadata:
metadata["owner"] = metadata["owner"].replace("domain1.com", "domain2.com")
o = { "Metadata": metadata }
json.dump(o, sys.stdout, indent="\t")
You can find this example (slightly expanded) in the rclone source code
at bin/test_metadata_mapper.py.
If you want to see the input to the metadata mapper and the output
returned from it in the log you can use -vv --dump mapper.
--metadata-set key=value
Add metadata key = value when uploading. This can be repeated as many
times as required. See the metadata section for more info.
--modify-window=TIME
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.
This command line flag allows you to override that computed default.
--multi-thread-write-buffer-size=SIZE
When transferring with multiple threads, rclone will buffer SIZE bytes
in memory before writing to disk for each thread.
This can improve performance if the underlying filesystem does not deal
well with a lot of small writes in different positions of the file, so
if you see transfers being limited by disk write speed, you might want
to experiment with different values. Specially for magnetic drives and
remote file systems a higher value can be useful.
Nevertheless, the default of 128k should be fine for almost all use
cases, so before changing it ensure that network is not really your
bottleneck.
As a final hint, size is not the only factor: block size (or similar
concept) can have an impact. In one case, we observed that exact
multiples of 16k performed much better than other values.
--multi-thread-chunk-size=SizeSuffix
Normally the chunk size for multi thread transfers is set by the
backend. However some backends such as local and smb (which implement
OpenWriterAt but not OpenChunkWriter) don't have a natural chunk size.
--multi-thread-cutoff=SIZE
When transferring files above SIZE to capable backends, rclone will use
multiple threads to transfer the file (default 256M).
NB that this only works with supported backends as the destination but
will work with any backend as the source.
--no-check-dest
The --no-check-dest can be used with move or copy and it causes rclone
not to check the destination at all when copying files.
This flag is useful to minimise the transactions if you know that none
of the files are on the destination.
--no-gzip-encoding
Don't set Accept-Encoding: gzip. This means that rclone won't ask the
server for compressed files automatically. Useful if you've set the
server to return files with Content-Encoding: gzip but you uploaded
compressed files.
--no-traverse
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 --no-traverse will stop rclone listing the destination and save
time.
--no-unicode-normalization
Don't normalize unicode characters in filenames during the sync routine.
Using this flag will disable that functionality, treating each unicode
character as unique. For example, by default é and é will be normalized
into the same character. With --no-unicode-normalization they will be
treated as unique characters.
--no-update-modtime
When using this flag, rclone won't update modification times of remote
files if they are incorrect as it would normally.
This can be used if the remote is being synced with another tool also
(e.g. the Google Drive client).
--no-update-dir-modtime
When using this flag, rclone won't update modification times of remote
directories if they are incorrect as it would normally.
--order-by string
The --order-by flag controls the order in which files in the backlog are
processed in rclone sync, rclone copy and rclone move.
The order by string is constructed like this. The first part describes
what aspect is being measured:
For example
- --order-by size,desc - send the largest files first
- --order-by modtime,ascending - send the oldest files first
- --order-by name - send the files with alphabetically by path first
Limitations
The --order-by flag does not do a separate pass over the data. This
means that it may transfer some files out of the order specified if
- there are no files in the backlog or the source has not been fully
scanned yet
- there are more than --max-backlog files in the backlog
Rclone will do its best to transfer the best file it has so in practice
this should not cause a problem. Think of --order-by as being more of a
best efforts flag rather than a perfect ordering.
If you want perfect ordering then you will need to specify --check-first
which will find all the files which need transferring first before
transferring any.
--partial-suffix
--password-command SpaceSepList
This flag supplies a program which should supply the config password
when run. This is an alternative to rclone prompting for the password or
setting the RCLONE_CONFIG_PASS variable. It is also used when setting
the config password for the first time.
Eg
-P, --progress
This flag makes rclone update the stats in a static block in the
terminal providing a realtime overview of the transfer.
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.
Normally this is updated every 500mS but this period can be overridden
with the --stats flag.
This can be used with the --stats-one-line flag for a simpler display.
Note: On Windows until this bug is fixed all non-ASCII characters will
be replaced with . when --progress is in use.
--progress-terminal-title
This flag, when used with -P/--progress, will print the string ETA: %s
to the terminal title.
-q, --quiet
--refresh-times
This is useful if you uploaded files with the incorrect timestamps and
you now wish to correct them.
This flag is only useful for destinations which don't support hashes
(e.g. crypt).
This can be used any of the sync commands sync, copy or move.
To use this flag you will need to be doing a modification time sync (so
not using --size-only or --checksum). The flag will have no effect when
using --size-only or --checksum.
If this flag is used when rclone comes to upload a file it will check to
see if there is an existing file on the destination. If this file
matches the source with size (and checksum if available) but has a
differing timestamp then instead of re-uploading it, rclone will update
the timestamp on the destination file. If the checksum does not match
rclone will upload the new file. If the checksum is absent (e.g. on a
crypt backend) then rclone will update the timestamp.
Note that some remotes can't set the modification time without
re-uploading the file so this flag is less useful on them.
Normally if you are doing a modification time sync rclone will update
modification times without --refresh-times provided that the remote
supports checksums and the checksums match on the file. However if the
checksums are absent then rclone will upload the file rather than
setting the timestamp as this is the safe behaviour.
--retries int
Retry the entire sync if it fails this many times it fails (default 3).
Some remotes can be unreliable and a few retries help pick up the files
which didn't get transferred because of errors.
--retries-sleep=TIME
--server-side-across-configs
Note that this isn't enabled by default because it isn't easy for rclone
to tell if it will work between any two configurations.
--size-only
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.
This can be useful transferring files from Dropbox which have been
modified by the desktop sync client which doesn't set checksums of
modification times in the same way as rclone.
--stats=TIME
Commands which transfer data (sync, copy, copyto, move, moveto) will
print data transfer stats at regular intervals to show their progress.
If you set the stats interval then all commands can show stats. This can
be useful when running other commands, check or mount for example.
Stats are logged at INFO level by default which means they won't show at
default log level NOTICE. Use --stats-log-level NOTICE or -v to make
them show. See the Logging section for more info on log levels.
Note that on macOS you can send a SIGINFO (which is normally ctrl-T in
the terminal) to make the stats print immediately.
--stats-file-name-length integer
By default, the --stats output will truncate file names and paths longer
than 40 characters. This is equivalent to providing
--stats-file-name-length 40. Use --stats-file-name-length 0 to disable
any truncation of file names printed by stats.
--stats-log-level string
Log level to show --stats output at. This can be DEBUG, INFO, NOTICE, or
ERROR. The default is INFO. This means at the default level of logging
which is NOTICE the stats won't show - if you want them to then use
--stats-log-level NOTICE. See the Logging section for more info on log
levels.
--stats-one-line
When this is specified, rclone condenses the stats into a single line
showing the most important stats only.
--stats-one-line-date
--stats-one-line-date-format
--stats-unit=bits|bytes
This option allows the data rate to be printed in bits per second.
--suffix=SUFFIX
When using sync, copy or move any files which would have been
overwritten or deleted will have the suffix added to them. If there is a
file with the same path (after the suffix has been added), then it will
be overwritten.
The remote in use must support server-side move or copy and you must use
the same remote as the destination of the sync.
This is for use with files to add the suffix in the current directory or
with --backup-dir. See --backup-dir for more info.
For example
--suffix-keep-extension
When using --suffix, setting this causes rclone put the SUFFIX before
the extension of the files that it backs up rather than after.
If a file has two (or more) extensions and the second (or subsequent)
extension is recognised as a valid mime type, then the suffix will go
before that extension. So file.tar.gz would be backed up to
file-2019-01-01.tar.gz whereas file.badextension.gz would be backed up
to file.badextension-2019-01-01.gz.
--syslog
On capable OSes (not Windows or Plan9) send all log output to syslog.
--syslog-facility string
If using --syslog this sets the syslog facility (e.g. KERN, USER). See
man syslog for a list of possible facilities. The default facility is
DAEMON.
--temp-dir=DIR
Specify the directory rclone will use for temporary files, to override
the default. Make sure the directory exists and have accessible
permissions.
When overriding the default with this option, the specified path will be
set as value of environment variable TMPDIR on Unix systems and TMP and
TEMP on Windows.
You can use the config paths command to see the current value.
--tpslimit float
Use this when the number of transactions per second from rclone is
causing a problem with the cloud storage provider (e.g. getting you
banned or rate limited).
This can be very useful for rclone mount to control the behaviour of
applications using it.
This limit applies to all HTTP based backends and to the FTP and SFTP
backends. It does not apply to the local backend or the Storj backend.
--tpslimit-burst int
--track-renames
An rclone sync with --track-renames runs like a normal sync, but keeps
track of objects which exist in the destination but not in the source
(which would normally be deleted), and which objects exist in the source
but not the destination (which would normally be transferred). These
objects are then candidates for renaming.
After the sync, rclone matches up the source only and destination only
objects using the --track-renames-strategy specified and either renames
the destination object or transfers the source and deletes the
destination object. --track-renames is stateless like all of rclone's
syncs.
--track-renames-strategy (hash,modtime,leaf,size)
--delete-(before,during,after)
This option allows you to specify when files on your destination are
deleted when you sync folders.
--fast-list
When doing anything which involves a directory listing (e.g. sync, copy,
ls - in fact nearly every command), rclone has different strategies to
choose from.
Some backends provide the support for an alternative strategy, where all
files beneath a directory can be listed in one (or a small number) of
transactions. Rclone supports this alternative strategy through an
optional backend feature called ListR. You can see in the storage system
overview documentation's optional features section which backends it is
enabled for (these tend to be the bucket-based ones, e.g. S3, B2, GCS,
Swift). This strategy requires fewer transactions for highly recursive
operations, which is important on backends where this is charged or
heavily rate limited. It may be faster (due to fewer transactions) or
slower (because it can't be parallelized) depending on different
parameters, and may require more memory if rclone has to keep the whole
listing in memory.
Rclone is not able to take all relevant parameters into account for
deciding the best strategy, and therefore allows you to influence the
choice in two ways: You can stop rclone from using ListR by disabling
the feature, using the --disable option (--disable ListR), or you can
allow rclone to use ListR where it would normally choose not to do so
due to higher memory usage, using the --fast-list option. Rclone should
always produce identical results either way. Using --disable ListR or
--fast-list on a remote which doesn't support ListR does nothing, rclone
will just ignore it.
A rule of thumb is that if you pay for transactions and can fit your
entire sync listing into memory, then --fast-list is recommended. If you
have a very big sync to do, then don't use --fast-list, otherwise you
will run out of memory. Run some tests and compare before you decide,
and if in doubt then just leave the default, let rclone decide, i.e. not
use --fast-list.
--timeout=TIME
This sets the IO idle timeout. If a transfer has started but then
becomes idle for this long it is considered broken and disconnected.
--transfers=N
-u, --update
This forces rclone to skip any files which exist on the destination and
have a modified time that is newer than the source file.
--use-mmap
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 --buffer-size). Memory allocated
like this does not go on the Go heap and can be returned to the OS
immediately when it is finished with.
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.
--use-server-modtime
Use this flag to disable the extra API call and rely instead on the
server's modified time. In cases such as a local to remote sync using
--update, 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.
Using this flag on a sync operation without also using --update would
cause all files modified at any time other than the last upload time to
be uploaded again, which is probably not what you want.
With -v rclone will tell you about each file that is transferred and a
small number of significant events.
With -vv rclone will become very verbose telling you about every file it
considers and transfers. Please send bug reports with a log with this
setting.
-V, --version
SSL/TLS options
--ca-cert stringArray
This loads the PEM encoded certificate authority certificates and uses
it to verify the certificates of the servers rclone connects to.
If you have generated certificates signed with a local CA then you will
need this flag to connect to servers using those certificates.
--client-cert string
--client-key string
This loads the PEM encoded client side private key used for mutual TLS
authentication. Used in conjunction with --client-cert.
--no-check-certificate=true/false
Configuration Encryption
If you are in an environment where that isn't possible, you can add a
password to your configuration. This means that you will have to supply
the password every time you start rclone.
>rclone config
Current remotes:
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:
password:
Confirm NEW password:
password:
Password set
Your configuration is encrypted.
c) Change Password
u) Unencrypt configuration
q) Quit to main menu
c/u/q>
Your configuration is now encrypted, and every time you start rclone you
will have to supply the password. See below for details. In the same
menu, you can change the password or completely remove encryption from
your configuration.
rclone uses nacl secretbox which in turn uses XSalsa20 and Poly1305 to
encrypt and authenticate your configuration with secret-key
cryptography. The password is SHA-256 hashed, which produces the key for
secretbox. The hashed password is not stored.
While this provides very good security, we do not recommend storing your
encrypted rclone configuration in public if it contains sensitive
information, maybe except if you use a very strong password.
You can set this for a session from a script. For unix like systems save
this to a file called set-rclone-password:
read -s RCLONE_CONFIG_PASS
export RCLONE_CONFIG_PASS
Then source the file when you want to use it. From the shell you would
do source set-rclone-password. It will then ask you for the password and
set it in the environment variable.
If the passwordstore password manager holds the password for the rclone
configuration, using the script method means the password is primarily
protected by the passwordstore system, and is never embedded in the
clear in scripts, nor available for examination using the standard
commands available. It is quite possible with long running rclone
sessions for copies of passwords to be innocently captured in log files
or terminal scroll buffers, etc. Using the script method of supplying
the password enhances the security of the config password considerably.
If you are running rclone inside a script, unless you are using the
--password-command method, you might want to disable password prompts.
To do that, pass the parameter --ask-password=false to rclone. This will
make rclone fail instead of asking for a password if RCLONE_CONFIG_PASS
doesn't contain a valid password, and --password-command has not been
supplied.
Mac
Linux
- Prerequisite
Linux doesn't come with a default password manager. Let's install the
"pass" utility using a package manager, e.g. apt install pass,
yum install pass, etc.; then initialize a password store:
[Environment]::SetEnvironmentVariable("RCLONE_PASSWORD_COMMAND",
"[System.Runtime.InteropServices.Marshal]::PtrToStringAuto([System.Runtime.InteropS
ervices.Marshal]::SecureStringToBSTR((Import-Clixml -Path "rclone-
credential.xml").Password))")
Developer options
These options are useful when developing or debugging rclone. There are
also some more remote specific options which aren't documented here
which are used for testing. These start with remote name e.g.
--drive-test-option - see the docs for the remote in question.
--cpuprofile=FILE
Write CPU profile to file. This can be analysed with go tool pprof.
--dump flag,flag,flag
The --dump flag takes a comma separated list of flags to dump info
about.
--dump headers
Dump HTTP headers with Authorization: lines removed. May still contain
sensitive info. Can be very verbose. Useful for debugging only.
--dump bodies
Dump HTTP headers and bodies - may contain sensitive info. Can be very
verbose. Useful for debugging only.
Note that the bodies are buffered in memory so don't use this for
enormous files.
--dump requests
Like --dump bodies but dumps the request bodies and the response
headers. Useful for debugging download problems.
--dump responses
Like --dump bodies but dumps the response bodies and the request
headers. Useful for debugging upload problems.
--dump auth
--dump filters
Dump the filters to the output. Useful to see exactly what include and
exclude options are filtering on.
--dump goroutines
This dumps a list of the running go-routines at the end of the command
to standard output.
--dump openfiles
This dumps a list of the open files at the end of the command. It uses
the lsof command to do that so you'll need that installed to use it.
--dump mapper
This shows the JSON blobs being sent to the program supplied with
--metadata-mapper and received from it. It can be useful for debugging
the metadata mapper interface.
--memprofile=FILE
Write memory profile to file. This can be analysed with go tool pprof.
Filtering
- --delete-excluded
- --filter
- --filter-from
- --exclude
- --exclude-from
- --exclude-if-present
- --include
- --include-from
- --files-from
- --files-from-raw
- --min-size
- --max-size
- --min-age
- --max-age
- --dump filters
- --metadata-include
- --metadata-include-from
- --metadata-exclude
- --metadata-exclude-from
- --metadata-filter
- --metadata-filter-from
Remote control
For the remote control options and for instructions on how to remote
control rclone
- --rc
- and anything starting with --rc-
Logging
By default, rclone logs to standard error. This means you can redirect
standard error and still see the normal output of rclone commands (e.g.
rclone ls).
If you use the -q flag, rclone will only produce Error messages.
If you use the -v flag, rclone will produce Error, Notice and Info
messages.
If you use the -vv flag, rclone will produce Error, Notice, Info and
Debug messages.
You can also control the log levels with the --log-level flag.
If you use the --log-file=FILE option, rclone will redirect Error, Info
and Debug messages along with standard error to FILE.
If you use the --syslog flag then rclone will log to syslog and the
--syslog-facility control which facility it uses.
Rclone prefixes all log messages with their level in capitals, e.g. INFO
which makes it easy to grep the log file for different kinds of
information.
Metrics
To enable the metrics endpoint, use the --metrics-addr flag. Metrics can
also be published on the --rc-addr port if the --rc flag and
--rc-enable-metrics flags are supplied or if using rclone rcd
--rc-enable-metrics
Rclone provides extensive configuration options for the metrics HTTP
endpoint. These settings are grouped under the Metrics section and have
a prefix --metrics-*.
Exit Code
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.
- 0 - success
- 1 - Syntax or usage error
- 2 - Error not otherwise categorised
- 3 - Directory not found
- 4 - File not found
- 5 - Temporary error (one that more retries might fix) (Retry errors)
- 6 - Less serious errors (like 461 errors from dropbox) (NoRetry
errors)
- 7 - Fatal error (one that more retries won't fix, like account
suspended) (Fatal errors)
- 8 - Transfer exceeded - limit set by --max-transfer reached
- 9 - Operation successful, but no files transferred (Requires
--error-on-no-transfer)
- 10 - Duration exceeded - limit set by --max-duration reached
Environment Variables
Options
Every option in rclone can have its default set by environment variable.
To find the name of the environment variable, first, take the long
option name, strip the leading --, change - to _, make upper case and
prepend RCLONE_.
For example, to always set --stats 5s, set the environment variable
RCLONE_STATS=5s. If you set stats on the command line this will override
the environment variable setting.
The same parser is used for the options and the environment variables so
they take exactly the same form.
The options set by environment variables can be seen with the -vv flag,
e.g. rclone version -vv.
Options that can appear multiple times (type stringArray) are treated
slighly differently as environment variables can only be defined once.
In order to allow a simple mechanism for adding one or many items, the
input is treated as a CSV encoded string. For example
-----------------------------------------------------------------------------------
-----
Environment Variable Equivalent options
------------------------------------------------------
---------------------------------
RCLONE_EXCLUDE="*.jpg" --exclude "*.jpg"
-----------------------------------------------------------------------------------
-----
Config file
You can set defaults for values in the config file on an individual
remote basis. The names of the config items are documented in the page
for each backend.
To find the name of the environment variable, you need to set, take
RCLONE_CONFIG_ + name of remote + _ + name of config file option and
make it all uppercase. Note one implication here is the remote's name
must be convertible into a valid environment variable name, so it can
only contain letters, digits, or the _ (underscore) character.
Note that if you want to create a remote using environment variables you
must create the ..._TYPE variable as above.
Note that you can only set the options of the immediate backend, so
RCLONE_CONFIG_MYS3CRYPT_ACCESS_KEY_ID has no effect, if myS3Crypt is a
crypt remote based on an S3 remote. However RCLONE_S3_ACCESS_KEY_ID will
set the access key of all remotes using S3, including myS3Crypt.
Note also that now rclone has connection strings, it is probably easier
to use those instead which makes the above example
Precedence
The options set by environment variables can be seen with the -vv and
--log-level=DEBUG flags, e.g. rclone version -vv.
y) Yes (default)
n) No
y/n> n
Option config_token.
For this to work, you will need rclone available on a machine that has
a web browser available.
For more help and alternate methods see: https://rclone.org/remote_setup/
Execute the following on the machine with the web browser (same rclone
version recommended):
rclone authorize "onedrive"
Then paste the result.
Enter a value.
config_token>
config_token> 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>
Rclone stores all of its config in a single configuration file. This can
easily be copied to configure a remote rclone.
rclone config
Find the config file by running rclone config file, for example
Now transfer it to the remote box (scp, cut paste, ftp, sftp, etc.) and
place it in the correct place (use rclone config file on the remote box
to find out where).
Linux and MacOS users can utilize SSH Tunnel to redirect the headless
box port 53682 to local machine by using the following command:
Then on the headless box run rclone config and answer Y to the
Use auto config? question.
y) Yes (default)
n) No
y/n> y
Filter flags determine which files rclone sync, move, ls, lsl, md5sum,
sha1sum, size, delete, check and similar commands apply to.
To test filters without risk of damage to data, apply them to rclone ls,
or with the --dry-run and -vv flags.
Rclone filter patterns can only be used in filter command line options,
not in the specification of a remote.
Pattern syntax
character-range:
c matches character c (c != \, -, ])
\c matches reserved character c (c = \, -, ])
lo - hi matches character c for lo <= c <= hi
pattern-list:
pattern { , pattern }
comma-separated (without spaces) patterns
regexp for advanced users to insert a regular expression - see below for
more info:
If the filter pattern starts with a / then it only matches at the top
level of the directory tree, relative to the root of the remote (not
necessarily the root of the drive). If it does not start with / then it
is matched starting at the end of the path/file name but it only matches
a complete path element - it must match from a / separator or the
beginning of the path/file.
The top level of the remote might not be the top level of the drive.
F:
├── bkp
├── data
│ ├── excl
│ │ ├── 123.jpg
│ │ └── 456.jpg
│ ├── incl
│ │ └── document.pdf
To copy the contents of folder data into folder bkp excluding the
contents of subfolder exclthe following command treats F:\data and
F:\bkp as top level for filtering.
With --ignore-case
The syntax of filter patterns is glob style matching (like bash uses) to
make things easy for users. However this does not provide absolute
control over the matching, so for advanced users rclone also provides a
regular expression syntax.
You can also use regexp flags - to set case insensitive, for example
{{start[^/]*end\.jpg}}
Not
{{start.*end\.jpg}}
Which will match a directory called start with a file called end.jpg in
it as the .* will match / characters.
Note that you can use -vv --dump filters to show the filter patterns in
regexp format - rclone implements the glob patterns by transforming them
into regular expressions.
- --include
- --include-from
- --exclude
- --exclude-from
- --filter
- --filter-from
Rclone internally uses a combined list of all the include and exclude
rules. The order in which rules are processed can influence the result
of the filter.
All flags of the same type are processed together in the order above,
regardless of what order the different types of flags are included on
the command line.
Multiple instances of the same flag are processed from left to right
according to their position in the command line.
If rclone does not find a match, after testing against all rules
(including the implied rule if appropriate), the path/file name is
included.
To see the internal combined rule list, in regular expression form, for
a command add the --dump filters flag. Running an rclone command with
--dump filters and -vv flags lists the internal filter elements and
shows how they are applied to each source path/file. There is not
currently a means provided to pass regular expression filter options
into rclone directly though character class filter rules contain
character classes. Go regular expression reference
Rclone commands can use directory filter rules to determine whether they
recurse into subdirectories. This potentially optimises access to a
remote by avoiding listing unnecessary directories. Whether optimisation
is desirable depends on the specific filter rules and source remote
content.
- A source remote does not support the rclone ListR primitive. local,
sftp, Microsoft OneDrive and WebDAV do not support ListR. Google
Drive and most bucket type storage do. Full list
/a/
E.g. rclone ls remote: --include /directory/ will not match any files.
Because it is an --include option the --exclude ** rule is implied, and
the /directory/ pattern serves only to optimise access to the remote by
ignoring everything outside of that directory.
- /dir1/
- /dir2/
+ *.pdf
- **
{dir1/**,dir2/**}
Rclone will match files below directories dir1 or dir2 only, but will
not be able to use this filter to exclude a directory dir3 from being
traversed.
E.g. rclone ls remote: --exclude *.bak excludes all .bak files from
listing.
E.g. rclone size remote: --exclude "/dir/**" returns the total size of
all files on remote: excluding those in root directory dir and sub
directories.
This flag can be repeated. See above for the order filter flags are
processed in.
E.g. multiple rclone copy commands can be combined with --include and a
pattern-list.
is equivalent to:
This flag can be repeated. See above for the order filter flags are
processed in.
This flag can be repeated. See above for the order filter flags are
processed in.
E.g. rclone ls remote: --filter "- *.bak" excludes all .bak files from a
list of remote:.
This flag can be repeated. See above for the order filter flags are
processed in.
Arrange the order of filter rules with the most restrictive first and
work down.
- secret*.jpg
+ *.jpg
+ *.png
+ file2.avi
- *
+ *.jpg
+ *.gif
!
+ 42.doc
- *
Rclone commands do not error if any names in the --files-from file are
missing from the source remote.
Paths within the --files-from file are interpreted as starting with the
root specified in the rclone command. Leading / separators are ignored.
See --files-from-raw if you need the input to be processed in a raw
manner.
# comment
file1.jpg
subdir/file2.jpg
/home/user1/42
/home/user1/dir/ford
/home/user2/prefect
First find a common subdirectory - in this case /home and put the
remaining files in files-from.txt with or without leading /, e.g.
user1/42
user1/dir/ford
user2/prefect
/home/user1/42 → remote:backup/user1/important
/home/user1/dir/ford → remote:backup/user1/dir/file
/home/user2/prefect → remote:backup/user2/stuff
/home/user1/42
/home/user1/dir/ford
/home/user2/prefect
/home/user1/42 → remote:backup/home/user1/42
/home/user1/dir/ford → remote:backup/home/user1/dir/ford
/home/user2/prefect → remote:backup/home/user2/prefect
This flag is the same as --files-from except that input is read in a raw
manner. Lines with leading / trailing whitespace, and lines starting
with ; or # are read without any processing. rclone lsf has a compatible
format that can be used to export file lists from remotes for input to
--files-from-raw.
- --include \*.jpg
- --include '*.jpg'
- --include='*.jpg'
Other filters
Controls the minimum size file within the scope of an rclone command.
Default units are KiB but abbreviations B, K, M, G, T or P are valid.
Controls the maximum size file within the scope of an rclone command.
Default units are KiB but abbreviations B, K, M, G, T or P are valid.
Controls the maximum age of files within the scope of an rclone command.
Controls the minimum age of files within the scope of an rclone command.
(see --max-age for valid formats)
Other flags
Important this flag is dangerous to your data - use with --dry-run and
-v first.
All files on B: which are less than 50 KiB are deleted because they are
excluded from the rclone sync command.
dir1/file1
dir1/dir2/file2
dir1/dir2/dir3/file3
dir1/dir2/dir3/.ignore
Metadata filters
The metadata filters work in a very similar way to the normal file name
filters, except they match metadata on the object.
For example if you wished to list only local files with a mode of 100664
you could do that with:
rclone lsf -M --files-only --metadata-include "mode=100664" .
Each flag can be repeated. See the section on how filter rules are
applied for more details - these flags work in an identical way to the
file name filtering flags, but instead of file name patterns have
metadata patterns.
Common pitfalls
The most frequent filter support issues on the rclone forum are:
GUI (Experimental)
Rclone can serve a web based GUI (graphical user interface). This is
somewhat experimental at the moment so things may be subject to change.
Run this command in a terminal and rclone will download and then display
the GUI in a web browser.
This will produce logs like this and rclone needs to continue to run to
serve the GUI:
If you find your GUI broken, you may force it to update by add
--rc-web-gui-force-update.
Once the GUI opens, you will be looking at the dashboard which has an
overall overview.
On the left hand side you will see a series of view buttons you can
click on:
How it works
When you run the rclone rcd --rc-web-gui this is what happens
- Rclone starts but only runs the remote control API ("rc").
- The API is bound to localhost with an auto-generated username and
password.
- If the API bundle is missing then rclone will download it.
- rclone will start serving the files from the API bundle over the
same port as the API
- rclone will open the browser with a login_token so it can log
straight in.
Advanced use
The rclone rcd may use any of the flags documented on the rc page.
For example the GUI could be served on a public port over SSL using an
htpasswd file using the following flags:
- --rc-web-gui
- --rc-addr :443
- --rc-htpasswd /path/to/htpasswd
- --rc-cert /path/to/ssl.crt
- --rc-key /path/to/ssl.key
If you want to run the GUI behind a proxy at /rclone you could use these
flags:
- --rc-web-gui
- --rc-baseurl rclone
- --rc-htpasswd /path/to/htpasswd
- --rc-user me
- --rc-pass mypassword
Project
If you have questions then please ask them on the rclone forum.
If rclone is run with the --rc flag then it starts an HTTP server which
can be used to remote control rclone using its API.
You can either use the rc command to access the API or use HTTP
directly.
If you just want to run a remote control then see the rcd command.
Supported parameters
--rc
--rc-addr=IP
--rc-cert=KEY
--rc-client-ca=PATH
--rc-htpasswd=PATH
htpasswd file - if not provided no authentication is done
--rc-key=PATH
--rc-max-header-bytes=VALUE
--rc-min-tls-version=VALUE
The minimum TLS version that is acceptable. Valid values are "tls1.0",
"tls1.1", "tls1.2" and "tls1.3" (default "tls1.0").
--rc-user=VALUE
--rc-pass=VALUE
--rc-realm=VALUE
--rc-server-read-timeout=DURATION
--rc-server-write-timeout=DURATION
--rc-serve
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
Default Off.
--rc-serve-no-modtime
Set this flag to skip reading the modification time (can speed things
up).
Default Off.
--rc-files /path/to/directory
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.
If --rc-user or --rc-pass is set then the URL that is opened will have
the authorization in the URL in the http://user:pass@localhost/ style.
Default Off.
--rc-enable-metrics
Default Off.
--rc-web-gui
Set this flag to serve the default web gui on the same port as rclone.
Default Off.
--rc-allow-origin
--rc-web-fetch-url
Default
https://api.github.com/repos/rclone/rclone-webui-react/releases/latest.
--rc-web-gui-update
Default Off.
--rc-web-gui-force-update
Default Off.
--rc-web-gui-no-open-browser
Default Off.
--rc-job-expire-duration=DURATION
Expire finished async jobs older than DURATION (default 60s).
--rc-job-expire-interval=DURATION
--rc-no-auth
Default Off.
--rc-baseurl
Default is root
--rc-template
User-specified template.
Run rclone rc on its own to see the help for the installed remote
control commands.
JSON input
rclone rc also supports a --json flag which can be used to send more
complicated input parameters.
$ rclone rc --json '{ "p1": [1,"2",null,4], "p2": { "a":1, "b":2 } }' rc/noop
{
"p1": [
1,
"2",
null,
4
],
"p2": {
"a": 1,
"b": 2
}
}
Rather than
Special parameters
Query the status to see if the job has finished. For more information on
the meaning of these return parameters see the job/status call.
$ rclone rc job/list
{
"jobids": [
2
]
}
If you wish to set config (the equivalent of the global flags) for the
duration of an rc call only then pass in the _config parameter.
For example, if you wished to run a sync with the --checksum parameter,
you would pass this parameter in your JSON blob.
"_config":{"CheckSum": true}
Any config parameters you don't set will inherit the global defaults
which were set with command line flags or environment variables.
"_config":{"BufferSize": "42M"}
"_config":{"BufferSize": 44040192}
If you wish to check the _config assignment has worked properly then
calling options/local will show what the value got set to.
If you wish to set filters for the duration of an rc call only then pass
in the _filter parameter.
This should be in the same format as the filter key returned by
options/get.
Any filter parameters you don't set will inherit the global defaults
which were set with command line flags or environment variables.
"_filter":{"MinSize": "42M"}
"_filter":{"MinSize": 44040192}
If you wish to check the _filter assignment has worked properly then
calling options/local will show what the value got set to.
Each rc call has its own stats group for tracking its metrics. By
default grouping is done by the composite group name from prefix job/
and id of the job like so job/1.
If _group has a value then stats for that request will be grouped under
that value. This allows caller to group stats under their own name.
Data types
When the API returns types, these will mostly be straight forward
integer, string or boolean types.
However some of the types returned by the options/get call and taken by
the options/set calls as well as the vfsOpt, mountOpt and the _config
parameters.
Option blocks
The calls options/info (for the main config) and config/providers (for
the backend config) may be used to get information on the rclone
configuration options. This can be used to build user interfaces for
displaying and setting any rclone option.
------------------------------------------------------------------------
Field Type Optional Description
------------- ------------ ------------------- -------------------------
Name string N name of the option in
snake_case
An example of this might be the --log-level flag. Note that the Name of
the option becomes the command line flag with _ replaced with -.
{
"Advanced": false,
"Default": 5,
"DefaultStr": "NOTICE",
"Examples": [
{
"Help": "",
"Value": "EMERGENCY"
},
{
"Help": "",
"Value": "ALERT"
},
...
],
"Exclusive": true,
"FieldName": "LogLevel",
"Groups": "Logging",
"Help": "Log level DEBUG|INFO|NOTICE|ERROR",
"Hide": 0,
"IsPassword": false,
"Name": "log_level",
"NoPrefix": true,
"Required": true,
"Sensitive": false,
"Type": "LogLevel",
"Value": null,
"ValueStr": "NOTICE"
},
Note that the Help may be multiple lines separated by \n. The first line
will always be a short sentence and this is the sentence shown when
running rclone help flags.
Remotes are specified with the fs=, srcFs=, dstFs= parameters depending
on the command being used.
{
"_name": "remote",
"_root": "/tmp"
}
{
"type": "sftp",
"host": "example.com",
"_root": "/tmp"
}
{
type = "local",
_root = "/tmp/dir"
}
Supported commands
Returns:
- result - result from the backend command
Example:
Returns
{
"result": {
"arg": [
"path1",
"path2"
],
"name": "noop",
"opt": {
"blue": "",
"echo": "yes"
}
}
}
Note that this is the direct equivalent of using this "backend" command:
Eg
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 exclusive. 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.
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
Any parameter with a key that starts with "file" can be used to specify
files to fetch, e.g.
See the config create command for more information on the above.
Parameters:
See the config delete command for more information on the above.
Where keys are remote names and values are the config parameters.
See the config dump command for more information on the above.
Parameters:
- name - name of remote to get
See the config dump command for more information on the above.
config/listremotes: Lists the remotes in the config file and defined in environment
variables.
See the config password command for more information on the above.
config/paths: Reads the config file path and other important paths.
Eg
{
"cache": "/home/USER/.cache/rclone",
"config": "/home/USER/.rclone.conf",
"temp": "/tmp"
}
See the config paths command for more information on the above.
See the config providers command for more information on the above.
Note that the Options blocks are in the same format as returned by
"options/info". They are described in the option blocks section.
See the config update command for more information on the above.
This sets the bandwidth limit to the string passed in. This should be a
single bandwidth limit entry or a pair of upload:download bandwidth.
Eg
rclone rc core/bwlimit
{
"bytesPerSecond": 1048576,
"bytesPerSecondTx": 1048576,
"bytesPerSecondRx": 1048576,
"rate": "1M"
}
Returns:
Example:
Returns:
{
"error": false,
"result": "<Raw command line output>"
}
OR
{
"error": true,
"result": "<Raw command line output>"
}
This returns the disk usage for the local directory passed in as dir.
If the directory is not passed in, it defaults to the directory pointed
to by --cache-dir.
Returns:
{
"dir": "/",
"info": {
"Available": 361769115648,
"Free": 361785892864,
"Total": 982141468672
}
}
{
"groups": an array of group names:
[
"group1",
"group2",
...
]
}
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
Pass a clear string and rclone will obscure it for the config file: -
clear - string
This returns PID of current process. Useful for stopping rclone process.
rclone rc core/stats
If group is not provided then summed up stats for all groups will be
returned.
Parameters
{
"bytes": total transferred bytes since the start of the group,
"checks": number of files checked,
"deletes" : number of files deleted,
"elapsedTime": time in floating point seconds since rclone was started,
"errors": number of errors,
"eta": estimated time in seconds until the group completes,
"fatalError": boolean whether there has been at least one fatal error,
"lastError": last error string,
"renames" : number of files renamed,
"retryError": boolean showing whether there has been at least one non-
NoRetryError,
"serverSideCopies": number of server side copies done,
"serverSideCopyBytes": number bytes server side copied,
"serverSideMoves": number of server side moves done,
"serverSideMoveBytes": number bytes server side moved,
"speed": average speed in bytes per second since start of the group,
"totalBytes": total number of bytes in the group,
"totalChecks": total number of checks in the group,
"totalTransfers": total number of transfers in the group,
"transferTime" : total time spent on running jobs,
"transfers": number of transferred files,
"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": average speed over the whole transfer in bytes per
second,
"speedAvg": current speed in bytes per second as an
exponentially weighted moving average,
"size": size of the file in bytes
}
],
"checking": an array of names of currently active file checks
[]
}
Parameters
This clears counters, errors and finished transfers for all stats or
specific stats group if group is provided.
Parameters
rclone rc core/transferred
If group is not provided then completed transfers for all groups will be
returned.
Parameters
{
"transferred": an array of completed transfers (including failed ones):
[
{
"name": name of the file,
"size": size of the file in bytes,
"bytes": total transferred bytes for this file,
"checked": if the transfer is only checked (skipped, deleted),
"timestamp": integer representing millisecond unix epoch,
"error": string description of the error (empty if successful),
"jobid": id of the job that this transfer belongs to
}
]
}
After calling this you can use this to see the blocking profile:
Parameters:
- rate - int
Parameters:
- gc-percent - int
To turn off profiling entirely, pass rate 0. To just read the current
rate, pass rate < 0. (For n>1 the details of sampling may change.)
Once this is set you can look use this to profile the mutex contention:
Parameters:
- rate - int
Results:
- previousRate - int
The input limit is provided as bytes, and includes all memory mapped,
managed, and not released by the Go runtime. Notably, it does not
account for space used by the Go binary and memory external to Go, such
as memory managed by the underlying system on behalf of the process, or
memory managed by non-Go code inside the same process. Examples of
excluded memory sources include: OS kernel memory held on behalf of the
process, memory allocated by C code, and memory mapped by syscall.Mmap
(because it is not managed by the Go runtime).
A zero limit or a limit that's lower than the amount of memory used by
the Go runtime may cause the garbage collector to run nearly
continuously. However, the application may still make progress.
Parameters:
- mem-limit - int
This clears the fs cache. This is where remotes created from backends
are cached for a short while to make repeated rc calls more efficient.
If you change the parameters of a backend then you may want to call this
to clear an existing remote out of the cache before re-creating it.
Parameters: None.
Results:
Parameters:
Results:
- finished - boolean
- duration - time in seconds that the job ran for
- endTime - time the job finished (e.g.
"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 (e.g.
"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
- progress - output of the progress related to the underlying job
Parameters:
Parameters:
Eg
rclone rc mount/listmounts
rclone allows Linux, FreeBSD, macOS and Windows to mount any of Rclone's
cloud storage systems as a file system with FUSE.
Example:
The vfsOpt are as described in options/get and can be seen in the the
"vfs" section when running and the mountOpt can be seen in the "mount"
section:
rclone rc options/get
This shows all possible mount types and returns them as a list.
The mount types are strings like "mount", "mount2", "cmount" and can be
passed to mount/mount as the mountType parameter.
Eg
rclone rc mount/types
rclone allows Linux, FreeBSD, macOS and Windows to mount any of Rclone's
cloud storage systems as a file system with FUSE.
- mountPoint: valid path on the local machine where the mount was
created (required)
Example:
rclone allows Linux, FreeBSD, macOS and Windows to mount any of Rclone's
cloud storage systems as a file system with FUSE.
This takes no parameters and returns error if unmount does not succeed.
Eg
rclone rc mount/unmountall
Checks the files in the source and destination match. It compares sizes
and hashes and logs a report of files that don't match. It doesn't alter
the source or destination.
- srcFs - a remote name string e.g. "drive:" for the source, "/" for
local filesystem
- dstFs - a remote name string e.g. "drive2:" for the destination, "/"
for local filesystem
- download - check by downloading rather than with hash
- checkFileHash - treat checkFileFs:checkFileRemote as a SUM file with
hashes of given type
- checkFileFs - treat checkFileFs:checkFileRemote as a SUM file with
hashes of given type
- checkFileRemote - treat checkFileFs:checkFileRemote as a SUM file
with hashes of given type
- oneWay - check one way only, source files must exist on remote
- combined - make a combined report of changes (default false)
- missingOnSrc - report all files missing from the source (default
true)
- missingOnDst - report all files missing from the destination
(default true)
- match - report all matching files (default false)
- differ - report all non-matching files (default true)
- error - report all files with errors (hashing or reading) (default
true)
If you supply the download flag, it will download the data from both
remotes and check them against each other on the fly. This can be useful
for remotes that don't support hashes or if you really want to check all
the data.
If you supply the size-only global flag, it will only compare the sizes
not the hashes as well. Use this for a quick check.
If you supply the checkFileHash option with a valid hash name, the
checkFileFs:checkFileRemote must point to a text file in the SUM format.
This treats the checksum file as the source and dstFs as the
destination. Note that srcFs is not used and should not be supplied in
this case.
Returns:
- srcFs - a remote name string e.g. "drive:" for the source, "/" for
local filesystem
- srcRemote - a path within that remote e.g. "file.txt" for the source
- dstFs - a remote name string e.g. "drive2:" for the destination, "/"
for local filesystem
- dstRemote - a path within that remote e.g. "file2.txt" for the
destination
{
// optional features and whether they are available or not
"Features": {
"About": true,
"BucketBased": false,
"BucketBasedRootOK": false,
"CanHaveEmptyDirectories": true,
"CaseInsensitive": false,
"ChangeNotify": false,
"CleanUp": false,
"Command": true,
"Copy": false,
"DirCacheFlush": false,
"DirMove": true,
"Disconnect": false,
"DuplicateFiles": false,
"GetTier": false,
"IsLocal": true,
"ListR": false,
"MergeDirs": false,
"MetadataInfo": true,
"Move": true,
"OpenWriterAt": true,
"PublicLink": false,
"Purge": true,
"PutStream": true,
"PutUnchecked": false,
"ReadMetadata": true,
"ReadMimeType": false,
"ServerSideAcrossConfigs": false,
"SetTier": false,
"SetWrapper": false,
"Shutdown": false,
"SlowHash": true,
"SlowModTime": false,
"UnWrap": false,
"UserInfo": false,
"UserMetadata": true,
"WrapFs": false,
"WriteMetadata": true,
"WriteMimeType": false
},
// Names of hashes available
"Hashes": [
"md5",
"sha1",
"whirlpool",
"crc32",
"sha256",
"dropbox",
"mailru",
"quickxor"
],
"Name": "local", // Name as created
"Precision": 1, // Precision of timestamps in ns
"Root": "/", // Path as created
"String": "Local file system at /", // how the remote will appear in
logs
// Information about the system metadata for this backend
"MetadataInfo": {
"System": {
"atime": {
"Help": "Time of last access",
"Type": "RFC 3339",
"Example": "2006-01-
02T15:04:05.999999999Z07:00"
},
"btime": {
"Help": "Time of file birth (creation)",
"Type": "RFC 3339",
"Example": "2006-01-
02T15:04:05.999999999Z07:00"
},
"gid": {
"Help": "Group ID of owner",
"Type": "decimal number",
"Example": "500"
},
"mode": {
"Help": "File type and mode",
"Type": "octal, unix style",
"Example": "0100664"
},
"mtime": {
"Help": "Time of last modification",
"Type": "RFC 3339",
"Example": "2006-01-
02T15:04:05.999999999Z07:00"
},
"rdev": {
"Help": "Device ID (if special file)",
"Type": "hexadecimal",
"Example": "1abc"
},
"uid": {
"Help": "User ID of owner",
"Type": "decimal number",
"Example": "500"
}
},
"Help": "Textual help string\n"
}
}
This command does not have a command line equivalent so use this
instead:
operations/hashsum: Produces a hashsum file for all the objects in the path.
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.
- fs - a remote name string e.g. "drive:" for the source, "/" for
local filesystem
- this can point to a file and just that file will be returned in
the listing.
- hashType - type of hash to be used
- download - check by downloading rather than with hash (boolean)
- base64 - output the hashes in base64 rather than hex (boolean)
If you supply the download flag, it will download the data from the
remote and create the hash on the fly. This can be useful for remotes
that don't support the given hash or if you really want to check all the
data.
Note that if you wish to supply a checkfile to check hashes against the
current files then you should use operations/check instead of
operations/hashsum.
Returns:
Example:
Returns:
- list
- This is an array of objects as described in the lsjson command
See the lsjson command for more information on the above and examples.
Authentication is required for this call.
- srcFs - a remote name string e.g. "drive:" for the source, "/" for
local filesystem
- srcRemote - a path within that remote e.g. "file.txt" for the source
- dstFs - a remote name string e.g. "drive2:" for the destination, "/"
for local filesystem
- dstRemote - a path within that remote e.g. "file2.txt" for the
destination
Returns:
Returns:
The result is
Note that if you are only interested in files then it is much more
efficient to set the filesOnly flag in the options.
See the lsjson command for more information on the above and examples.
Returns an object where keys are option block names and values are an
object with the current option values in.
Parameters:
Note that these are the global options which are unaffected by use of
the _config and _filter parameters. If you wish to read the parameters
set in _config then use options/config and for _filter use
options/filter.
This shows the internal names of the option within rclone which should
map to the external options very easily with a few exceptions.
Returns an object where keys are option block names and values are an
array of objects with info about each options.
Parameters:
Returns an object with the keys "config" and "filter". The "config" key
contains the local config and the "filter" key contains the local
filters.
Note that these are the local options specific to this rc call. If
_config was not supplied then they will be the global options. Likewise
with "_filter".
This call is mostly useful for seeing if _config and _filter passing is
working.
This shows the internal names of the option within rclone which should
map to the external options very easily with a few exceptions.
Parameters:
For example:
This sets DEBUG level logs (-vv) (these can be set by number or string)
- url - http url of the github repo where the plugin is hosted
(http://github.com/rclone/rclone-webui-react).
Example:
rclone rc pluginsctl/addPlugin
Returns:
Example:
This allows you to get the currently enabled plugins and their details.
E.g.
rclone rc pluginsctl/listPlugins
E.g.
rclone rc pluginsctl/listTestPlugins
Authentication is required for this call.
E.g.
Example:
This returns an error with the input as part of its error string. Useful
for testing error handling.
This lists all the registered remote control commands as a JSON map in
the commands response.
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.
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.
See bisync command help and full bisync description for more
information.
This forgets the paths in the directory cache causing them to be re-read
from the remote when needed.
If no paths are passed in then it will forget all the paths in the
directory cache.
rclone rc vfs/forget
It returns a list under the key "vfses" where the values are the VFS
names that could be passed to the other VFS commands in the "fs"
parameter.
vfs/poll-interval: Get the status or update the value of the poll-interval option.
Without any parameter given this returns the current status of the
poll-interval setting.
The new poll-interval value will only be active when the timeout is not
reached.
If poll-interval is updated or disabled temporarily, some changes might
not get picked up by the polling function, depending on the used remote.
This returns info about the upload queue for the selected VFS.
This is only useful if --vfs-cache-mode > off. If you call it when the
--vfs-cache-mode is off, it will return an empty result.
{
"queued": // an array of files queued for upload
[
{
"name": "file", // string: name (full path) of the file,
"id": 123, // integer: id of this item in the queue,
"size": 79, // integer: size of the file in bytes
"expiry": 1.5 // float: time until file is eligible for
transfer, lowest goes first
"tries": 1, // integer: number of times we have tried to
upload
"delay": 5.0, // float: seconds between upload attempts
"uploading": false, // boolean: true if item is being uploaded
},
],
}
The expiry time is the time until the file is elegible for being
uploaded in floating point seconds. This may go negative. As rclone only
transfers --transfers files at once, only the lowest --transfers expiry
times will have uploading as true. So there may be files with negative
expiry times for which uploading is false.
vfs/queue-set-expiry: Set the expiry time for an item queued for upload.
Use this to adjust the expiry time for an item in the upload queue. You
will need to read the id of the item using vfs/queue before using this
call.
You can then set expiry to a floating point number of seconds from now
when the item is eligible for upload. If you want the item to be
uploaded as soon as possible then set it to a large negative number (eg
-1000000000). If you want the upload of the item to be delayed for a
long time then set it to a large positive number.
Setting the expiry of an item which has already has started uploading
will have no effect - the item will carry on being uploaded.
This reads the directories for the specified paths and freshens the
directory cache.
rclone rc vfs/refresh
{
// Status of the disk cache - only present if --vfs-cache-mode > off
"diskCache": {
"bytesUsed": 0,
"erroredFiles": 0,
"files": 0,
"hashType": 1,
"outOfSpace": false,
"path": "/home/user/.cache/rclone/vfs/local/mnt/a",
"pathMeta": "/home/user/.cache/rclone/vfsMeta/local/mnt/a",
"uploadsInProgress": 0,
"uploadsQueued": 0
},
"fs": "/mnt/a",
"inUse": 1,
// Status of the in memory metadata cache
"metadataCache": {
"dirs": 1,
"files": 0
},
// Options as returned by options/get
"opt": {
"CacheMaxAge": 3600000000000,
// ...
"WriteWait": 1000000000
}
}
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 curl.
The response will be a JSON blob in the body of the response. This is
formatted to be reasonably human-readable.
Error returns
If an error occurs then there will be an HTTP error status (e.g. 500)
and the body of the response will contain a JSON encoded error object,
e.g.
{
"error": "Expecting string value for key \"remote\" (was float64)",
"input": {
"fs": "/tmp",
"remote": 3
},
"status": 400
"path": "operations/rmdir",
}
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
CORS
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.
Response
{
"potato": "1",
"sausage": "2"
}
{
"error": "arbitrary error on input map[potato:1 sausage:2]",
"input": {
"potato": "1",
"sausage": "2"
}
}
Note that curl doesn't return errors to the shell unless you use the -f
option
Response
{
"potato": "1",
"sausage": "2"
}
Note that you can combine these with URL parameters too with the POST
parameters taking precedence.
Response
{
"potato": "1",
"rutabaga": "3",
"sausage": "4"
}
response
{
"password": "xyz",
"username": "xyz"
}
This can be combined with URL parameters too if required. The JSON blob
takes precedence.
{
"potato": 2,
"rutabaga": "3",
"sausage": 1
}
If you use the --rc flag this will also enable the use of the go
profiling tools on the same port.
This should open a page in your browser showing what is using what
memory.
You can also use the -text flag to produce a textual summary
Memory leaks are most often caused by go routine leaks keeping memory
alive which should have been garbage collected.
curl http://localhost:5572/debug/pprof/goroutine?debug=1
Or go to http://localhost:5572/debug/pprof/goroutine?debug=1 in your
browser.
See the net/http/pprof docs for more info on how to use the profiling
and for a general overview see the Go team's blog post on profiling go
programs.
Features
¹ Dropbox supports its own custom hash. This is an SHA256 sum of all the
4 MiB block SHA256s.
² SFTP supports checksums if the same login has shell access and md5sum
or sha1sum as well as echo are in the remote's PATH.
³ WebDAV supports hashes when used with Fastmail Files, Owncloud and
Nextcloud only.
⁴ WebDAV supports modtimes when used with Fastmail Files, Owncloud and
Nextcloud only.
⁸ Opendrive does not support creation of duplicate files using their web
client interface or other stock clients, but the underlying storage
platform has been determined to allow duplicate files, and it is
possible to create them with rclone. It may be that this is a mistake or
an unsupported feature.
⁹ QingStor does not support SetModTime for objects bigger than 5 GiB.
¹⁰ FTP supports modtimes for the major FTP servers, and also others if
they advertised required protocol extensions. See this for more details.
¹² HiDrive supports its own custom hash. It combines SHA1 sums for each
4 KiB block hierarchically to a single top-level sum.
¹³ Uloz.to provides server-calculated MD5 hash upon file upload. MD5 and
SHA256 hashes are client-calculated and stored as metadata fields.
Hash
The cloud storage system supports various hash types of the objects. The
hashes are used when transferring data as an integrity check and can be
specifically used with the --checksum flag in syncs and in the check
command.
ModTime
-----------------------------------------------------------------------
Key Explanation
------------------- ---------------------------------------------------
- ModTimes not supported - times likely the upload
time
Storage systems with R/W (for read/write) in the ModTime column, means
they do also support modtime-only operations.
Storage systems with D in the ModTime column means that the following
symbols apply to directories as well as files.
Case Insensitive
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.
The local filesystem and SFTP may or may not be case sensitive depending
on OS.
Most of the time this doesn't cause any problems as people tend to avoid
files whose name differs only by case even on case sensitive systems.
Duplicate files
If a cloud storage system allows duplicate files then it can have two
objects with the same name.
This confuses rclone greatly when syncing - use the rclone dedupe
command to rename or remove duplicates.
Restricted filenames
Caveats
The filename encoding system works well in most cases, at least where
file names are written in English or similar languages. You might not
even notice it: It just works. In some cases it may lead to issues,
though. E.g. when file names are written in Chinese, or Japanese, where
it is always the Unicode fullwidth variants of the punctuation marks
that are used.
However, if you have files on your Windows system originally with these
same Unicode characters in their names, they will be included in the
same conversion process. E.g. if you create a file in your Windows
filesystem with name Test:1.jpg, where : is the Unicode fullwidth
colon symbol, and use rclone to upload it to Google Drive, which
supports regular : (halfwidth question mark), rclone will replace the
fullwidth : with the halfwidth : and store the file as Test:1.jpg in
Google Drive. Since both Windows and Google Drive allows the name
Test:1.jpg, it would probably be better if rclone just kept the name as
is in this case.
Its virtually impossible to handle all cases like these correctly in all
situations, but by customizing the encoding option, changing the set of
characters that rclone should convert, you should be able to create a
configuration that works well for your specific situation. See also the
example below.
(Windows was used as an example of a file system with many restricted
characters, and Google drive a storage system with few.)
The table below shows the characters that are replaced by default.
Each cloud storage backend can use a different set of characters, which
will be specified in the documentation for each backend.
The default encoding will also encode these file names as they are
problematic with many cloud storage systems.
Some backends only support a sequence of well formed UTF-8 bytes as file
or directory names.
In this case all invalid UTF-8 bytes will be replaced with a quoted
representation of the byte value to allow uploading a file to such a
backend. For example, the invalid byte 0xFE will be encoded as ‛FE.
A common source of invalid UTF-8 bytes are local filesystems, that store
names in a different encoding than UTF-8 or UTF-16, like latin1. See the
local filenames section for details.
Encoding option
This will have default value which encodes and decodes characters in
such a way as to preserve the maximum number of characters (see above).
However this can be incorrect in some scenarios, for example if you have
a Windows file system with Unicode fullwidth characters *, ? or :,
that you want to remain as those characters on the remote rather than
being translated to regular (halfwidth) *, ? and :.
The --backend-encoding flags allow you to change that. You can disable
the encoding completely with --backend-encoding Raw or set
encoding = Raw in the config file.
Encoding takes a comma separated list of encodings. You can see the list
of all possible values by passing an invalid value to this flag, e.g.
--local-encoding "help". The command rclone help flags encoding will
show you the defaults for the backends.
----------------------------------------------------------------------------------
Encoding Characters Encoded as
---------------------- ------------------------
----------------------------------
Asterisk * *
BackQuote ` `
BackSlash \ \
Colon : :
Dollar $ $
Dot . or .. as entire string ., ..
DoubleQuote " "
Exclamation ! !
Hash # #
Percent % %
Pipe | |
Question ? ?
Semicolon ; ;
SingleQuote ' '
Slash / /
SquareBracket [, ] [, ]
----------------------------------------------------------------------------------
¹ Encoding from NUL 0x00 to ␀ is always implicit except when using Raw.
It was previously incorrectly documented as disabling encoding, and to
maintain backward compatibility, its behavior has not been changed.
Encoding example: FTP
--ftp-encoding "Slash,Del,Ctl,RightSpace,Dot"
However, let's say the FTP server is running on Windows and can't have
any of the invalid Windows characters in file names. You are backing up
Linux servers to this FTP server which do have those characters in file
names. So you would add the Windows set which are
Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightP
eriod,InvalidUtf8,Dot
Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightP
eriod,InvalidUtf8,Dot,Del,RightSpace
To avoid this you can change the set of characters rclone should convert
for the local filesystem, using command-line argument --local-encoding.
Rclone's default behavior on Windows corresponds to
--local-encoding
"Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,Right
Period,InvalidUtf8,Dot"
--local-encoding
"Slash,LtGt,DoubleQuote,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot"
The risk by doing this is that if you have a filename with the regular
(halfwidth) :, * and ? in your cloud storage, and you try to download it
to your Windows filesystem, this will fail. These characters are not
valid in filenames on Windows, and you have told rclone not to work
around this by converting them to valid fullwidth variants.
MIME Type
MIME types (also known as media types) classify types of documents using
a simple text classification, e.g. text/html or application/pdf.
Some cloud storage systems support reading (R) the MIME type of objects
and some support writing (W) the MIME type of objects.
The MIME type can be important if you are serving files directly to HTTP
from the storage system.
If you are copying from a remote which supports reading (R) to a remote
which supports writing (W) then rclone will preserve the MIME types.
Otherwise they will be guessed from the extension, or the remote itself
may assign the MIME type.
Metadata
-----------------------------------------------------------------------
Key Explanation
------------------- ---------------------------------------------------
R Read only System Metadata on files only
RWU Read and write System Metadata and read and write
User Metadata on files only
DRWU Read and write System Metadata and read and write
User Metadata on files and directories
-----------------------------------------------------------------------
Optional Features
All rclone remotes support a base command set. Other features depend
upon backend-specific capabilities.
-----------------------------------------------------------------------------------
--------------------------------------------------
Name Purge Copy Move DirMove CleanUp ListR StreamUpload
MultithreadUpload LinkSharing About EmptyDir
--------------- ------- ------ ------ --------- --------- ------- --------------
------------------- ------------- ------- ----------
1Fichier No Yes Yes No No No No
No Yes No Yes
Google Photos No No No No No No No
No No No No
HTTP No No No No No No No
No No No Yes
Sia No No No No No No Yes
No No No Yes
-----------------------------------------------------------------------------------
--------------------------------------------------
This deletes a directory quicker than just deleting all the files in the
directory.
Copy
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 rclone copy or rclone move if
the remote doesn't support Move directly.
If the server doesn't support Copy directly then for copy operations the
file is downloaded then re-uploaded.
Move
If the server isn't capable of Move then rclone simulates it with Copy
then delete. If the server doesn't support Copy then rclone will
download the file and re-upload it.
DirMove
CleanUp
This is used for emptying the trash for a remote by rclone cleanup.
If the server can't do CleanUp then rclone cleanup will return an error.
‡‡ Note that while Box implements this it has to delete every file
individually so it will be slower than emptying the trash via the WebUI
ListR
The remote supports a recursive list to list all the contents beneath a
directory quickly. This enables the --fast-list flag to work. See the
rclone docs for more details.
StreamUpload
Some remotes allow files to be uploaded without knowing the file size in
advance. This allows certain operations to work without spooling the
file to local disk first, e.g. rclone rcat.
MultithreadUpload
LinkSharing
Sets the necessary permissions on a file or folder and prints a link
that allows others to access them, even if they don't have an account on
the particular cloud provider.
About
EmptyDir
The remote supports empty directories. See Limitations for details. Most
Object/Bucket-based remotes do not support this.
Global Flags
This describes the global flags available to every rclone command split
into groups.
Copy
Sync
Important
Check
Networking
Performance
Config
Debugging
Filter
Listing
Logging
Metadata
RC
Metrics
Backend
Introduction
Docker 1.9 has added support for creating named volumes via command-line
interface and mounting them in containers as a way to share data between
them. Since Docker 1.10 you can create named volumes with Docker Compose
by descriptions in docker-compose.yml files for use by container groups
on a single host. As of Docker 1.12 volumes are supported by Docker
Swarm included with Docker Engine and created from descriptions in swarm
compose v3 files for use with swarm stacks across multiple cluster
nodes.
Docker Volume Plugins augment the default local volume driver included
in Docker with stateful volumes shared across containers and hosts.
Unlike local volumes, your data will not be deleted when such volume is
removed. Plugins can run managed by the docker daemon, as a native
system service (under systemd, sysv or upstart) or as a standalone
executable. Rclone can run as docker volume plugin in all these modes.
It interacts with the local docker daemon via plugin API and handles
mounting of remote file systems into docker containers so it must run on
the same host as the docker daemon or on every Swarm node.
Getting started
In the first example we will use the SFTP rclone volume with Docker
engine on a standalone Ubuntu machine.
Install the managed rclone docker plugin for your architecture (here
amd64):
Note that since all options are static, you don't even have to run
rclone config or create the rclone.conf file (but the config directory
should still be present). In the simplest case you can use localhost as
hostname and your SSH credentials as username and password. You can also
change the remote path to your home directory on the host, for example
-o path=/home/username.
Time to create a test container and mount the volume into it:
If all goes well, you will enter the new container and change right to
the mounted SFTP remote. You can type ls to list the mounted directory
or otherwise play with it. Type exit when you are done. The container
will stop but the volume will stay, ready to be reused. When it's not
needed anymore, remove it:
You should start from installing Docker and FUSE, creating plugin
directories and installing rclone plugin on every swarm node. Then setup
the Swarm.
Google Drive volumes need an access token which can be setup via web
browser and will be periodically renewed by rclone. The managed plugin
cannot run a browser so we will use a technique similar to the rclone
setup on a headless box.
Run rclone config on another machine equipped with web browser and
graphical user interface. Create the Google Drive remote. When done,
transfer the resulting rclone.conf to the Swarm cluster and save as
/var/lib/docker-plugins/rclone/config/rclone.conf on every node. By
default this location is accessible only to the root user so you will
need appropriate privileges. The resulting config will look like this:
[gdrive]
type = drive
scope = drive
drive_id = 1234567...
root_folder_id = 0Abcd...
token = {"access_token":...}
Now create the file named example.yml with a swarm stack description
like this:
version: '3'
services:
heimdall:
image: linuxserver/heimdall:latest
ports: [8080:80]
volumes: [configdata:/config]
volumes:
configdata:
driver: rclone
driver_opts:
remote: 'gdrive:heimdall'
allow_other: 'true'
vfs_cache_mode: full
poll_interval: 0
After a few seconds docker will spread the parsed stack description over
cluster, create the example_heimdall service on port 8080, run service
containers on one or more cluster nodes and request the
example_configdata volume from rclone plugins on the node hosts. You can
use the following commands to confirm results:
docker service ls
docker service ps example_heimdall
docker volume ls
Volumes can be created with docker volume create. Here are a few
examples:
Note the -d rclone flag that tells docker to request volume from the
rclone driver. This works even if you installed managed driver by its
full name rclone/docker-volume-rclone because you provided the
--alias rclone option.
Volumes can be inspected as follows:
Volume Configuration
Rclone flags and volume options are set via the -o flag to the
docker volume create command. They include backend-specific parameters
as well as mount and VFS options. Also there are a few special -o
options: remote, fs, type, path, mount-type and persist.
remote determines an existing remote name from the config file, with
trailing colon and optionally with a remote path. See the full syntax in
the rclone documentation. This option can be aliased as fs to prevent
confusion with the remote parameter of such backends as crypt or alias.
-o type=backend -o path=dir/subdir
-o remote=:backend:dir/subdir
Mount and VFS options as well as backend parameters are named like their
twin command-line flags without the -- CLI prefix. Optionally you can
use underscores instead of dashes in option names. For example,
--vfs-cache-mode full becomes -o vfs-cache-mode=full or
-o vfs_cache_mode=full. Boolean CLI flags without value will gain the
true value, e.g. --allow-other becomes -o allow-other=true or
-o allow_other=true.
Please note that you can provide parameters only for the backend
immediately referenced by the backend type of mounted remote. If this is
a wrapping backend like alias, chunker or crypt, you cannot provide
options for the referred to remote or backend. This limitation is
imposed by the rclone connection string parser. The only workaround is
to feed plugin with rclone.conf or configure plugin arguments (see
below).
mount-type determines the mount method and in general can be one of:
mount, cmount, or mount2. This can be aliased as mount_type. It should
be noted that the managed rclone docker plugin currently does not
support the cmount method and mount2 is rarely needed. This option
defaults to the first found method, which is usually mount so you
generally won't need it.
-o remote=:sftp:/home -o sftp-host=localhost
-o remote=:sftp,host=localhost:/home
This difference exists because flag options -o key=val include not only
backend parameters but also mount/VFS flags and possibly other settings.
Also it allows to discriminate the remote option from the crypt-remote
(or similarly named backend parameters) and arguably simplifies
scripting due to clearer value substitution.
Both Docker Swarm and Docker Compose use YAML-formatted text files to
describe groups (stacks) of containers, their properties, networks and
volumes. Compose uses the compose v2 format, Swarm uses the compose v3
format. They are mostly similar, differences are explained in the docker
documentation.
volumes:
volume_name_1:
driver: rclone
driver_opts:
remote: 'gdrive:'
allow_other: 'true'
vfs_cache_mode: full
token: '{"type": "borrower", "expires": "2021-12-31"}'
poll_interval: 0
Docker daemon can install plugins from an image registry and run them
managed. We maintain the docker-volume-rclone plugin image on Docker
Hub.
The :amd64 part of the image specification after colon is called a tag.
Usually you will want to install the latest plugin for your
architecture. In this case the tag will just name it, like amd64 above.
The following plugin architectures are currently available: - amd64 -
arm64 - arm-v7
Sometimes you might want a concrete plugin version, not the latest one.
Then you should use image tag in the form :ARCHITECTURE-VERSION. For
example, to install plugin version v1.56.2 on architecture arm64 you
will use tag arm64-1.56.2 (note the removed v) so the full image
specification becomes rclone/docker-volume-rclone:arm64-1.56.2.
We also provide the latest plugin tag, but since docker does not support
multi-architecture plugins as of the time of this writing, this tag is
currently an alias for amd64. By convention the latest tag is the
default one and can be omitted, thus both
rclone/docker-volume-rclone:latest and just rclone/docker-volume-rclone
will refer to the latest plugin release for the amd64 platform.
Also the amd64 part can be omitted from the versioned rclone plugin
tags. For example, rclone image reference
rclone/docker-volume-rclone:amd64-1.56.2 can be abbreviated as
rclone/docker-volume-rclone:1.56.2 for convenience. However, for
non-intel architectures you still have to use the full tag as amd64 or
latest will fail to start.
You can tweak a few plugin settings after installation when it's
disabled (not in use), for instance:
Note that if docker refuses to disable the plugin, you should find and
remove all active volumes connected with it as well as containers and
swarm services that use them. This is rather tedious so please carefully
plan in advance.
You can tweak the following settings: args, config, cache, HTTP_PROXY,
HTTPS_PROXY, NO_PROXY and RCLONE_VERBOSE. It's your task to keep plugin
settings in sync across swarm cluster nodes.
args sets command-line arguments for the rclone serve docker command
(none by default). Arguments should be separated by space so you will
normally want to put them in quotes on the docker plugin set command
line. Both serve docker flags and generic rclone flags are supported,
including backend parameters that will be used as defaults for volume
creation. Note that plugin will fail (due to this docker bug) if the
args value is empty. Use e.g. args="-v" as a workaround.
You can set custom plugin options right when you install it, in one go:
Healthchecks
The docker plugin volume protocol doesn't provide a way for plugins to
inform the docker daemon that a volume is (un-)available. As a
workaround you can setup a healthcheck to verify that the mount is
responding, for example:
services:
my_service:
image: my_image
healthcheck:
test: ls /path/to/rclone/mount || exit 1
interval: 1m
timeout: 15s
retries: 3
start_period: 15s
In most cases you should prefer managed mode. Moreover, MacOS and
Windows do not support native Docker plugins. Please use managed mode on
these systems. Proceed further only if you are on Linux.
First, install rclone. You can just run it (type rclone serve docker and
hit enter) for the test.
Install FUSE:
cp docker-volume-plugin.service /etc/systemd/system/
cp docker-volume-plugin.socket /etc/systemd/system/
Please note that all commands in this section must be run as root but we
omit sudo prefix for brevity. Now create directories required by the
service:
mkdir -p /var/lib/docker-volumes/rclone
mkdir -p /var/lib/docker-plugins/rclone/config
mkdir -p /var/lib/docker-plugins/rclone/cache
systemctl daemon-reload
systemctl start docker-volume-rclone.service
systemctl enable docker-volume-rclone.socket
systemctl start docker-volume-rclone.socket
systemctl restart docker
The two methods are equivalent from the user perspective, but I
personally prefer socket activation.
Troubleshooting
Note that docker (including latest 20.10.7) will not show actual values
of args, just the defaults.
Use journalctl --unit docker to see managed plugin output as part of the
docker daemon log. Note that docker reflects plugin lines as errors but
their actual level can be seen from encapsulated message string.
You will usually install the latest version of managed plugin for your
platform. Use the following commands to print the actual installed
version:
You can even use runc to run shell inside the plugin container:
Also you can use curl to check the plugin socket connectivity:
Caveats
Bisync
Getting started
If all looks good, run it again without --dry-run. After that, remove
--resync as well.
Positional arguments:
Path1, Path2 Local path, or remote storage with ':' plus optional path.
Type 'rclone listremotes' for list of configured remotes.
Optional Flags:
--backup-dir1 string --backup-dir for Path1. Must be a
non-overlapping path on the same remote.
--backup-dir2 string --backup-dir for Path2. Must be a
non-overlapping path on the same remote.
--check-access Ensure expected RCLONE_TEST files
are found on both Path1 and Path2 filesystems, else abort.
--check-filename string Filename for --check-access
(default: RCLONE_TEST)
--check-sync string Controls comparison of final
listings: true|false|only (default: true) (default "true")
--compare string Comma-separated list of bisync-
specific compare options ex. 'size,modtime,checksum' (default: 'size,modtime')
--conflict-loser ConflictLoserAction Action to take on the loser of a
sync conflict (when there is a winner) or on both files (when there is no
winner): , num, pathname, delete (default: num)
--conflict-resolve string Automatically resolve conflicts by
preferring the version that is: none, path1, path2, newer, older, larger, smaller
(default: none) (default "none")
--conflict-suffix string Suffix to use when renaming a --
conflict-loser. Can be either one string or two comma-separated strings to assign
different suffixes to Path1/Path2. (default: 'conflict')
--create-empty-src-dirs Sync creation and deletion of
empty directories. (Not compatible with --remove-empty-dirs)
--download-hash Compute hash by downloading when
otherwise unavailable. (warning: may be slow and use lots of data!)
--filters-file string Read filtering patterns from a
file
--force Bypass --max-delete safety check
and run the sync. Consider using with --verbose
-h, --help help for bisync
--ignore-listing-checksum Do not use checksums for listings
(add --ignore-checksum to additionally skip post-copy checksum checks)
--max-lock Duration Consider lock files older than
this to be expired (default: 0 (never expire)) (minimum: 2m) (default 0s)
--no-cleanup Retain working files (useful for
troubleshooting and testing).
--no-slow-hash Ignore listing checksums only on
backends where they are slow
--recover Automatically recover from
interruptions without requiring --resync.
--remove-empty-dirs Remove ALL empty directories at
the final cleanup step.
--resilient Allow future runs to retry after
certain less-serious errors, instead of requiring --resync. Use at your own risk!
-1, --resync Performs the resync run.
Equivalent to --resync-mode path1. Consider using --verbose or --dry-run first.
--resync-mode string During resync, prefer the version
that is: path1, path2, newer, older, larger, smaller (default: path1 if --resync,
otherwise none for no resync.) (default "none")
--retries int Retry operations this many times
if they fail (requires --resilient). (default 3)
--retries-sleep Duration Interval between retrying
operations if they fail, e.g. 500ms, 60s, 5m (0 to disable) (default 0s)
--slow-hash-sync-only Ignore slow checksums for listings
and deltas, but still consider them during sync calls.
--workdir string Use custom working dir - useful
for testing. (default: {WORKDIR})
--max-delete PERCENT Safety check on maximum percentage
of deleted files allowed. If exceeded, the bisync run will abort. (default: 50%)
-n, --dry-run Go through the motions - No files
are copied/deleted.
-v, --verbose Increases logging verbosity. May
be specified more than once for more details.
Arbitrary rclone flags may be specified on the bisync command line, for
example
rclone bisync ./testdir/path1/ gdrive:testdir/path2/ --drive-skip-gdocs -v -v --
timeout 10s
Note that interactions of various rclone flags with bisync process flow
has not been fully tested yet.
Paths
Path1 and Path2 are treated equally, in that neither has priority for
file changes (except during --resync), and access efficiency does not
change whether a remote is on Path1 or Path2.
Any empty directories after the sync on both the Path1 and Path2
filesystems are not deleted by default, unless --create-empty-src-dirs
is specified. If the --remove-empty-dirs flag is specified, then both
paths will have ALL empty directories purged as the last step in the
process.
Command-line flags
--resync
This will effectively make both Path1 and Path2 filesystems contain a
matching superset of all files. By default, Path2 files that do not
exist in Path1 will be copied to Path1, and the process will then copy
the Path1 tree to Path2.
The base directories on both Path1 and Path2 filesystems must exist or
bisync will fail. This is required for safety - that bisync can verify
that both paths are valid.
For a resync run, one of the paths may be empty (no files in the path
tree). The resync run should result in files on both paths, else a
normal non-resync run will fail.
For a non-resync run, either path being empty (no files in the tree)
fails with
Empty current PathN listing. Cannot sync to an empty directory: X.pathN.lst
This is a safety check that an unexpected empty path does not result in
deleting everything in the other path.
Note that --resync implies --resync-mode path1 unless a different
--resync-mode is explicitly specified. It is not necessary to use both
the --resync and --resync-mode flags -- either one is sufficient without
the other.
The rest of the time, you should omit --resync. The reason is because
--resync will only copy (not sync) each side to the other. Therefore, if
you included --resync for every bisync run, it would never be possible
to delete a file -- the deleted file would always keep reappearing at
the end of every run (because it's being copied from the other side
where it still exists). Similarly, renaming a file would always result
in a duplicate copy (both old and new name) on both sides.
--resync-mode CHOICE
--check-access
Access check files are an additional safety measure against data loss.
bisync will ensure it can find matching RCLONE_TEST files in the same
places in the Path1 and Path2 filesystems. RCLONE_TEST files are not
generated automatically. For --check-access to succeed, you must first
either: A) Place one or more RCLONE_TEST files in both systems, or B)
Set --check-filename to a filename already in use in various locations
throughout your sync'd fileset. Recommended methods for A) include: *
rclone touch Path1/RCLONE_TEST (create a new file) *
rclone copyto Path1/RCLONE_TEST Path2/RCLONE_TEST (copy an existing
file) *
rclone copy Path1/RCLONE_TEST Path2/RCLONE_TEST --include "RCLONE_TEST"
(copy multiple files at once, recursively) * create the files manually
(outside of rclone) * run bisync once without --check-access to set
matching files on both filesystems will also work, but is not preferred,
due to potential for user error (you are temporarily disabling the
safety feature).
--check-filename
--compare
If the --compare flag is set, it will override these defaults. This can
be useful if you wish to compare based on combinations not currently
supported in sync, such as comparing all three of size AND modtime AND
checksum simultaneously (or just modtime AND checksum).
--compare size,checksum
--compare size,modtime,checksum
--compare overrides any conflicting flags. For example, if you set the
conflicting flags --compare checksum --size-only, --size-only will be
ignored, and bisync will compare checksum and not size. To avoid
confusion, it is recommended to use either --compare or the normal sync
flags, but not both.
When comparing with checksum and/or size without modtime, bisync cannot
determine whether a file is newer or older -- only whether it is changed
or unchanged. (If it is changed on both sides, bisync still does the
standard equality-check to avoid declaring a sync conflict unless it
absolutely has to.)
It is recommended to do a --resync when changing --compare settings, as
otherwise your prior listing files may not contain the attributes you
wish to compare (for example, they will not have stored checksums if you
were not previously comparing checksums.)
--ignore-listing-checksum
--no-slow-hash
--slow-hash-sync-only
--download-hash
--max-delete
--filters-file
By using rclone filter features you can exclude file types or directory
sub-trees from the sync. See the bisync filters section and generic
--filter-from documentation. An example filters file contains filters
for non-allowed files for synching with Dropbox.
If you make changes to your filters file then bisync requires a run with
--resync. This is a safety feature, which prevents existing files on the
Path1 and/or Path2 side from seeming to disappear from view (since they
are excluded in the new listings), which would fool bisync into seeing
them as deleted (as compared to the prior run listings), and then bisync
would proceed to delete them for real.
--conflict-resolve CHOICE
For all of the above options, note the following: - If either of the
underlying remotes lacks support for the chosen method, it will be
ignored and fall back to none. (For example, if --conflict-resolve newer
is set, but one of the paths uses a remote that doesn't support
modtime.) - If a winner can't be determined because the chosen method's
attribute is missing or equal, it will be ignored and fall back to none.
(For example, if --conflict-resolve newer is set, but the Path1 and
Path2 modtimes are identical, even if the sizes may differ.) - If the
file's content is currently identical on both sides, it is not
considered a "conflict", even if new or changed on both sides since the
prior sync. (For example, if you made a change on one side and then
synced it to the other side by other means.) Therefore, none of the
conflict resolution flags apply in this scenario. - The conflict
resolution flags do not apply during a --resync, as there is no "prior
run" to speak of (but see --resync-mode for similar options.)
--conflict-loser CHOICE
For all of the above options, note that if a winner cannot be determined
(see --conflict-resolve for details on how this could happen), or if
--conflict-resolve is not in use, both files will be renamed.
--conflict-suffix STRING[,STRING]
--conflict-suffix {DateOnly}-conflict
// result: myfile.txt.2006-01-02-conflict1
All of the formats described here and here are supported, but take care
to ensure that your chosen format does not use any characters that are
illegal on your remotes (for example, macOS does not allow colons in
filenames, and slashes are also best avoided as they are often
interpreted as directory separators.) To address this particular issue,
an additional {MacFriendlyTime} (or just {mac}) option is supported,
which results in 2006-01-02 0304PM.
Finally, note that the default in bisync prior to v1.66 was to rename
conflicts with ..path1 and ..path2 (with two periods, and path instead
of conflict.) Bisync now defaults to a single dot instead of a double
dot, but additional dots can be added by including them in the specified
suffix string. For example, for behavior equivalent to the previous
default, use:
--check-sync
Enabled by default, the check-sync function checks that all of the same
files exist in both the Path1 and Path2 history listings. This
check-sync integrity check is performed at the end of the sync run by
default. Any untrapped failing copy/deletes between the two paths might
result in differences between the two listings and in the untracked file
content differences between the two paths. A resync run would correct
the error.
The check may be run manually with --check-sync=only. It runs only the
integrity check and terminates without actually synching.
Note that currently, --check-sync only checks listing snapshots and NOT
the actual files on the remotes. Note also that the listing snapshots
will not know about any changes that happened during or after the latest
bisync run, as those will be discovered on the next run. Therefore,
while listings should always match each other at the end of a bisync
run, it is expected that they will not match the underlying remotes, nor
will the remotes match each other, if there were changes during or after
the run. This is normal, and any differences will be detected and synced
on the next run.
For a robust integrity check of the current state of the remotes (as
opposed to just their listing snapshots), consider using check (or
cryptcheck, if at least one path is a crypt remote) instead of
--check-sync, keeping in mind that differences are expected if files
changed during or after your last bisync run.
3. If diffs are found, you have some choices to correct them. If one
side is more up-to-date and you want to make the other side match
it, you could run:
*Note also that rclone check does not currently include empty
directories, so if you want to know if any empty directories are out of
sync, consider alternatively running the above rclone sync command with
--dry-run added.
--resilient
When using --resilient mode, bisync will still report the error and
abort, however it will not lock out future runs -- allowing the
possibility of retrying at the next normally scheduled time, without
requiring a --resync first. Examples of such retryable errors include
access test failures, missing listing files, and filter change
detections. These safety features will still prevent the current run
from proceeding -- the difference is that if conditions have improved by
the time of the next run, that next run will be allowed to proceed.
Certain more serious errors will still enforce a --resync lockout, even
in --resilient mode, to prevent data loss.
--recover
In the rare event that a file is synced successfully during a run that
later aborts, and then that same file changes AGAIN before the next run,
bisync will think it is a sync conflict, and handle it accordingly.
(From bisync's perspective, the file has changed on both sides since the
last trusted sync, and the files on either side are not currently
identical.) Therefore, --recover carries with it a slightly increased
chance of having conflicts -- though in practice this is pretty rare, as
the conditions required to cause it are quite specific. This risk can be
reduced by using bisync's "Graceful Shutdown" mode (triggered by sending
SIGINT or Ctrl+C), when you have the choice, instead of forcing a sudden
termination.
--max-lock
If --max-lock is 0 or not set, the default is that lock files will never
expire, and will block future runs (of these same two bisync paths)
indefinitely.
The standard --backup-dir will also work, if both paths use the same
remote (but note that deleted files from both paths would be mixed
together in the same dir). If either --backup-dir1 and --backup-dir2 are
set, they will override --backup-dir.
Example:
Operation
bisync retains the listings of the Path1 and Path2 filesystems from the
prior run. On each successive run it will:
- list files on path1 and path2, and check for changes on each side.
Changes include New, Newer, Older, and Deleted files.
- Propagate changes on path1 to path2, and vice-versa.
Safety measures
------------------------------------------------------------------------
Type Description Result Implementation
--------- ---------------------------- --------------- -----------------
Path2 new File is new on Path2, does Path2 version rclone copy Path2
not exist on Path1 survives to Path1
Path1 new File is new on Path1, does Path1 version rclone copy Path1
not exist on Path2 survives to Path2
------------------------------------------------------------------------------
Type Description Result Implementation
----------------- --------------------- -------------------- -----------------
Path1 new/changed File is new/changed No change None
AND Path2 on Path1 AND
new/changed AND new/changed on Path2
Path1 == Path2 AND Path1 version is
currently identical
to Path2
Path2 newer AND File is newer on Path2 version rclone copy Path2
Path1 deleted Path2 AND also survives to Path1
deleted on Path1
Path2 deleted AND File is deleted on Path1 version rclone copy Path1
Path1 changed Path2 AND changed survives to Path2
(newer/older/size) on
Path1
Path1 deleted AND File is deleted on Path2 version rclone copy Path2
Path2 changed Path1 AND changed survives to Path1
(newer/older/size) on
Path2
------------------------------------------------------------------------------
Modification times
Error handling
Some errors are considered temporary and re-running the bisync is not
blocked. The critical return blocks further bisync runs.
Lock file
Note that while concurrent bisync runs are allowed, be very cautious
that there is no overlap in the trees being synched between concurrent
runs, lest there be replicated files, deleted files and general mayhem.
Return codes
Graceful Shutdown
Limitations
Supported backends
Bisync is considered BETA and has been tested with the following
backends: - Local filesystem - Google Drive - Dropbox - OneDrive - S3 -
SFTP - Yandex Disk - Crypt
It has not been fully tested with other services yet. If it works, or
sorta works, please let us know and we'll update the list. Run the test
suite to check for proper operation as described below.
Concurrent modifications
When using Local, FTP or SFTP remotes with --inplace, rclone does not
create temporary files at the destination when copying, and thus if the
connection is lost the created file may be corrupt, which will likely
propagate back to the original path on the next sync, resulting in data
loss. It is therefore recommended to omit --inplace.
Files that change during a bisync run may result in data loss. Prior to
rclone v1.66, this was commonly seen in highly dynamic environments,
where the filesystem was getting hammered by running processes during
the sync. As of rclone v1.66, bisync was redesigned to use a "snapshot"
model, greatly reducing the risks from changes during a sync. Changes
that are not detected during the current sync will now be detected
during the following sync, and will no longer cause the entire run to
throw a critical error. There is additionally a mechanism to mark files
as needing to be internally rechecked next time, for added safety. It
should therefore no longer be necessary to sync only at quiet times --
however, note that an error can still occur if a file happens to change
at the exact moment it's being read/written by bisync (same as would
happen in rclone sync.) (See also: --ignore-checksum,
--local-no-check-updated)
Empty directories
Renamed directories
Note that in the (probably rare) event that --fix-case is used AND a
file is new/changed on both sides AND the checksums match AND the
filename case does not match, the Path1 filename is considered the
winner, for the purposes of --fix-case (Path2 will be renamed to match
it).
Windows support
Bisync has been tested on Windows 8.1, Windows 10 Pro 64-bit and on
Windows GitHub runners.
Note that bisync output may show a mix of forward / and back \ slashes.
Filtering
See filtering documentation for how filter rules are written and
interpreted.
On the other hand, there may be only select directories that you
actually want to sync, and exclude all others. See the Example
include-style filters for Windows user directories below.
- Lines may start with spaces and tabs - rclone strips leading
whitespace.
- If the first non-whitespace character is a # then the line is a
comment and will be ignored.
- Blank lines are ignored.
- The first non-whitespace character on a filter line must be a + or
-.
- Exactly 1 space is allowed between the +/- and the path term.
- Only forward slashes (/) are used in path terms, even on Windows.
- The rest of the line is taken as the path term. Trailing whitespace
is taken literally, and probably is an error.
This Windows include-style example is based on the sync root (Path1) set
to C:\Users\MyLogin. The strategy is to select specific directories to
be synched with a network drive (Path2).
- /AppData/
- NTUSER*
- ntuser*
+ /Documents/Family/**
+ /Documents/Sketchup/**
+ /Documents/Microcapture_Photo/**
+ /Documents/Microcapture_Video/**
+ /Desktop/**
+ /Pictures/**
+ /*
- **
At the start of a bisync run, listings are gathered for Path1 and Path2
while using the user's --filters-file. During the check access phase,
bisync scans these listings for RCLONE_TEST files. Any RCLONE_TEST files
hidden by the --filters-file are not in the listings and thus not
checked during the check access phase.
Troubleshooting
Here are two normal runs. The first one has a newer file on the remote.
The second has no deltas between local and remote.
The --dry-run messages may indicate that it would try to delete some
files. For example, if a file is new on Path2 and does not exist on
Path1 then it would normally be copied to Path1, but with --dry-run
enabled those copies don't happen, which leads to the attempted delete
on Path2, blocked again by --dry-run: ... Not deleting as --dry-run.
Retries
Rclone has built-in retries. If you run with --verbose you'll see error
and retry messages such as shown below. This is usually not a bug. If at
the end of the run, you see Bisync successful and not
Bisync critical error or Bisync aborted then the run was successful, and
you can ignore the error messages.
The following run shows an intermittent fail. Lines 5 and _6- are
low-level messages. Line 6 is a bubbled-up warning message, conveying
the error. Rclone normally retries failing commands, so there may be
numerous such messages in the log.
2021/05/12 00:49:40 INFO : Google drive root '': Waiting for checks to finish
2021/05/12 00:49:40 INFO : Google drive root '': Waiting for transfers to
finish
2021/05/12 00:49:40 INFO : Google drive root '': not deleting files as there
were IO errors
2021/05/12 00:49:40 ERROR : Attempt 3/3 failed with 3 errors and: not deleting
files as there were IO errors
2021/05/12 00:49:40 ERROR : Failed to sync: not deleting files as there were IO
errors
2021/05/12 00:49:40 NOTICE: WARNING rclone sync try 3 failed. -
/path/to/local/tree/
2021/05/12 00:49:40 ERROR : Bisync aborted. Must run --resync to recover.
Google Drive has a filter for certain file types (.exe, .apk, et cetera)
that by default cannot be copied from Google Drive to the local
filesystem. If you are having problems, run with --verbose to see
specifically which files are generating complaints. If the error is
This file has been identified as malware or spam and cannot be downloaded,
consider using the flag --drive-acknowledge-abuse.
As of v1.66, Google Docs (including Google Sheets, Slides, etc.) are now
supported in bisync, subject to the same options, defaults, and
limitations as in rclone sync. When bisyncing drive with non-drive
backends, the drive -> non-drive direction is controlled by
--drive-export-formats (default "docx,xlsx,pptx,svg") and the non-drive
-> drive direction is controlled by --drive-import-formats (default
none.)
Note that these link files cannot be edited on the non-drive side -- you
will get errors if you try to sync an edited link file back to drive.
They CAN be deleted (it will result in deleting the corresponding Google
Doc.) If you create a .url file on the non-drive side that does not
match an existing Google Doc, bisyncing it will just result in copying
the literal .url file over to drive (no Google Doc will be created.) So,
as a general rule of thumb, think of them as read-only placeholders on
the non-drive side, and make all your changes on the drive side.
Lastly, take note that all Google Docs on the drive side have a size of
-1 and no checksum. Therefore, they cannot be reliably synced with the
--checksum or --size-only flags. (To be exact: they will still get
created/deleted, and bisync's delta engine will notice changes and queue
them for syncing, but the underlying sync function will consider them
identical and skip them.) To work around this, use the default (modtime
and size) instead of --checksum or --size-only.
Usage examples
Cron
Rclone does not yet have a built-in capability to monitor the local file
system for changes and must be blindly run periodically. On Windows this
can be done using a Task Scheduler, on Linux you can use Cron which is
described below.
The 1st example runs a sync every 5 minutes between a local directory
and an OwnCloud server, with output logged to a runlog file:
# Minute (0-59)
# Hour (0-23)
# Day of Month (1-31)
# Month (1-12 or Jan-Dec)
# Day of Week (0-6 or Sun-Sat)
# Command
*/5 * * * * /path/to/rclone bisync /local/files MyCloud: --check-
access --filters-file /path/to/bysync-filters.txt --log-file /path/to//bisync.log
See crontab syntax for the details of crontab time interval expressions.
bisync can keep a local folder in sync with a cloud service, but what if
you have some highly sensitive files to be synched?
rclone.conf snippet
[Dropbox]
type = dropbox
...
[Dropcrypt]
type = crypt
remote = /path/to/DBoxroot/crypt # on the Linux server
remote = C:\Users\MyLogin\Dropbox\crypt # on the Windows notebook
filename_encryption = standard
directory_name_encryption = true
password = ...
...
Testing
You should read this section only if you are developing for rclone. You
need to have rclone source code locally to work with bisync tests.
Options:
-case NAME Name(s) of the test case(s) to run. Multiple names should
be separated by commas. You can remove the `test_` prefix
and replace `_` by `-` in test name for convenience.
If not `all`, the name(s) should map to a directory under
`./cmd/bisync/testdata`.
Use `all` to run all tests (default: all)
-remote PATH1 `local` or name of cloud service with `:` (default: local)
-remote2 PATH2 `local` or name of cloud service with `:` (default: local)
-no-compare Disable comparing test results with the golden directory
(default: compare)
-no-cleanup Disable cleanup of Path1 and Path2 testdirs.
Useful for troubleshooting. (default: cleanup)
-golden Store results in the golden directory (default: false)
This flag can be used with multiple tests.
-debug Print debug messages
-stop-at NUM Stop test after given step number. (default: run to the
end)
Implies `-no-compare` and `-no-cleanup`, if the test really
ends prematurely. Only meaningful for a single test case.
-refresh-times Force refreshing the target modtime, useful for Dropbox
(default: false)
-verbose Run tests verbosely
Note: unlike rclone flags which must be prefixed by double dash (--),
the test command flags can be equally prefixed by a single - or double
dash.
Running tests
Sometimes even a slight change in the bisync source can cause little
changes spread around many log files. Updating them manually would be a
nightmare.
The -golden flag will store the test.log and *.lst listings from each
test case into respective golden directories. Golden results will
automatically contain generic strings instead of local or cloud paths
which means that they should match when run with a different cloud
service.
- test <some message> Print the line to the console and to the
test.log: test sync is working correctly with options x, y, z
- copy-listings <prefix> Save a copy of all .lst listings in the test
working directory with the specified prefix:
save-listings exclude-pass-run
- move-listings <prefix> Similar to copy-listings but removes the
source
- purge-children <dir> This will delete all child files and purge all
child subdirs under given directory but keep the parent intact. This
behavior is important for tests with Google Drive because removing
and re-creating the parent would change its ID.
- delete-file <file> Delete a single file.
- delete-glob <dir> <pattern> Delete a group of files located one
level deep in the given directory with names matching a given glob
pattern.
- touch-glob YYYY-MM-DD <dir> <pattern> Change modification time on a
group of files.
- touch-copy YYYY-MM-DD <source-file> <dest-dir> Change file
modification time then copy it to destination.
- copy-file <source-file> <dest-dir> Copy a single file to given
directory.
- copy-as <source-file> <dest-file> Similar to above but destination
must include both directory and the new file name at destination.
- copy-dir <src> <dst> and sync-dir <src> <dst> Copy/sync a directory.
Equivalent of rclone copy and rclone sync.
- list-dirs <dir> Equivalent to rclone lsf -R --dirs-only <dir>
- bisync [options] Runs bisync against -remote and -remote2.
Substitution results of the terms named like {dir/} will end with / (or
backslash on Windows), so it is not necessary to include slash in the
usage, for example delete-file {path1/}file1.txt.
Benchmarks
Here are a few data points for scale, execution times, and memory usage.
The first set of data was taken between a local disk to Dropbox. The
speedtest.net download speed was ~170 Mbps, and upload speed was ~10
Mbps. 500 files (~9.5 MB each) had been already synched. 50 files were
added in a new directory, each ~9.5 MB, ~475 MB total.
------------------------------------------------------------------------
Change Operations and times Overall run
time
------------------------ ----------------------------------- -----------
500 files synched 1x listings for Path1 & Path2 1.5 sec
(nothing to move)
500 files synched with 1x listings for Path1 & Path2 1.5 sec
--check-access
Moved local dir Queued 50 copies up: 410 sec, 50 421 sec
deletes up: 9 sec
This next data is from a user's application. They had ~400GB of data
over 1.96 million files being sync'ed between a Windows local disk and
some remote cloud. The file full path length was on average 35
characters (which factors into load time and RAM required).
- Loading the prior listing into memory (1.96 million files, listing
file size 140 MB) took ~30 sec and occupied about 1 GB of RAM.
- Getting a fresh listing of the local file system (producing the 140
MB output file) took about XXX sec.
- Getting a fresh listing of the remote file system (producing the 140
MB output file) took about XXX sec. The network download speed was
measured at XXX Mb/s.
- Once the prior and current Path1 and Path2 listings were loaded (a
total of four to be loaded, two at a time), determining the deltas
was pretty quick (a few seconds for this test case), and the
transfer time for any files to be copied was dominated by the
network bandwidth.
References
- unison
- syncthing
- cjnaz/rclonesync
- ConorWilliams/rsinc
- jwink3101/syncrclone
- DavideRossi/upback
Changelog
v1.68
v1.67
v1.66
- Copies and deletes are now handled in one operation instead of two
- --track-renames and --backup-dir are now supported
- Partial uploads known issue on local/ftp/sftp has been resolved
(unless using --inplace)
- Final listings are now generated from sync results, to avoid needing
to re-list
- Bisync is now much more resilient to changes that happen during a
bisync run, and far less prone to critical errors / undetected
changes
- Bisync is now capable of rolling a file listing back in cases of
uncertainty, essentially marking the file as needing to be rechecked
next time.
- A few basic terminal colors are now supported, controllable with
--color (AUTO|NEVER|ALWAYS)
- Initial listing snapshots of Path1 and Path2 are now generated
concurrently, using the same "march" infrastructure as check and
sync, for performance improvements and less risk of error.
- Fixed handling of unicode normalization and case insensitivity,
support for --fix-case, --ignore-case-sync,
--no-unicode-normalization
- --resync is now much more efficient (especially for users of
--create-empty-src-dirs)
- Google Docs (and other files of unknown size) are now supported
(with the same options as in sync)
- Equality checks before a sync conflict rename now fall back to
cryptcheck (when possible) or --download, instead of of --size-only,
when check is not available.
- Bisync no longer fails to find the correct listing file when configs
are overridden with backend-specific flags.
- Bisync now fully supports comparing based on any combination of
size, modtime, and checksum, lifting the prior restriction on
backends without modtime support.
- Bisync now supports a "Graceful Shutdown" mode to cleanly cancel a
run early without requiring --resync.
- New --recover flag allows robust recovery in the event of
interruptions, without requiring --resync.
- A new --max-lock setting allows lock files to automatically renew
and expire, for better automatic recovery when a run is interrupted.
- Bisync now supports auto-resolving sync conflicts and customizing
rename behavior with new --conflict-resolve, --conflict-loser, and
--conflict-suffix flags.
- A new --resync-mode flag allows more control over which version of a
file gets kept during a --resync.
- Bisync now supports --retries and --retries-sleep (when --resilient
is set.)
v1.64
Release signing
The hashes of the binary artefacts of the rclone release are signed with
a public PGP/GPG key. This can be verified manually as described below.
The same mechanism is also used by rclone selfupdate to verify that the
release has not been tampered with before the new update is installed.
This checks the SHA256 hash and the signature with a public key compiled
into the rclone binary.
- From KEYS on this website - this file contains all past signing keys
also.
- The git repository hosted on GitHub -
https://github.com/rclone/rclone/blob/master/docs/content/KEYS
- gpg --keyserver hkps://keys.openpgp.org --search [email protected]
- gpg --keyserver hkps://keyserver.ubuntu.com --search [email protected]
- https://www.craig-wood.com/nick/pub/pgp-key.txt
After importing the key, verify that the fingerprint of one of the keys
matches: FBF737ECE9F8AB18604BD2AC93935E02FF3B54FA as this key is used
for signing.
If you find anything that doesn't not match, please contact the
developers at once.
In the release directory you will see the release files and some files
called MD5SUMS, SHA1SUMS and SHA256SUMS.
The MD5SUMS, SHA1SUMS and SHA256SUMS contain hashes of the binary files
in the release directory along with a signature.
For example:
f6d1b2d7477475ce681bdce8cb56f7870f174cb6b2a9ac5d7b3764296ea4a113 rclone-
v1.63.1-freebsd-386.zip
7266febec1f01a25d6575de51c44ddf749071a4950a6384e4164954dff7ac37e rclone-
v1.63.1-freebsd-amd64.zip
...
66ca083757fb22198309b73879831ed2b42309892394bf193ff95c75dff69c73 rclone-
v1.63.1-windows-amd64.zip
bbb47c16882b6c5f2e8c1b04229378e28f68734c613321ef0ea2263760f74cd0 rclone-
v1.63.1-windows-arm64.zip
-----BEGIN PGP SIGNATURE-----
iF0EARECAB0WIQT79zfs6firGGBL0qyTk14C/ztU+gUCZLVKJQAKCRCTk14C/ztU
+pZuAJ0XJ+QWLP/3jCtkmgcgc4KAwd/rrwCcCRZQ7E+oye1FPY46HOVzCFU3L7g=
=8qrL
-----END PGP SIGNATURE-----
The first step is to download the binary and SUMs file and verify that
the SUMs you have downloaded match. Here we download
rclone-v1.63.1-windows-amd64.zip - choose the binary (or binaries)
appropriate to your architecture. We've also chosen the SHA256SUMS as
these are the most secure. You could verify the other types of hash also
for extra security. rclone selfupdate verifies just the SHA256SUMS.
$ mkdir /tmp/check
$ cd /tmp/check
$ rclone copy --http-url
https://downloads.rclone.org/v1.63.1 :http:SHA256SUMS .
$ rclone copy --http-url https://downloads.rclone.org/v1.63.1 :http:rclone-
v1.63.1-windows-amd64.zip .
Import the key. See above for ways to verify this key is correct.
Verify the signature was good and is using the fingerprint shown above.
Repeat for MD5SUMS and SHA1SUMS if desired.
Now that we know the signatures on the hashes are OK we can verify the
binaries match the hashes, completing the verification.
You can verify the signatures and hashes in one command line like this:
1Fichier
This is a backend for the 1fichier cloud storage service. Note that a
Premium subscription is required to use the API.
Configuration
The initial setup for 1Fichier involves getting the API key from the
website which you need to do in your browser.
rclone config
rclone ls remote:
Duplicated files
1Fichier can have two files with exactly the same name and path (unlike
a normal file system).
Duplicated files cause problems with the syncing and you will see
messages in the log about duplicates.
File names can also not start or end with the following characters.
These only get replaced if they are the first or last character in the
name:
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Standard options
--fichier-api-key
Properties:
- Config: api_key
- Env Var: RCLONE_FICHIER_API_KEY
- Type: string
- Required: false
Advanced options
--fichier-shared-folder
Properties:
- Config: shared_folder
- Env Var: RCLONE_FICHIER_SHARED_FOLDER
- Type: string
- Required: false
--fichier-file-password
Properties:
- Config: file_password
- Env Var: RCLONE_FICHIER_FILE_PASSWORD
- Type: string
- Required: false
--fichier-folder-password
Properties:
- Config: folder_password
- Env Var: RCLONE_FICHIER_FOLDER_PASSWORD
- Type: string
- Required: false
--fichier-cdn
Properties:
- Config: cdn
- Env Var: RCLONE_FICHIER_CDN
- Type: bool
- Default: false
--fichier-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_FICHIER_ENCODING
- Type: Encoding
- Default:
Slash,LtGt,DoubleQuote,SingleQuote,BackQuote,Dollar,BackSlash,Del,Ctl,LeftSpace,Rig
htSpace,InvalidUtf8,Dot
--fichier-description
Properties:
- Config: description
- Env Var: RCLONE_FICHIER_DESCRIPTION
- Type: string
- Required: false
Limitations
See List of backends that do not support rclone about and rclone about
Alias
During the initial setup with rclone config you will specify the target
remote. The target remote can either be a local path or another remote.
The target remote can also be a connection string. This can be used to
modify the config of a remote for different uses, e.g. the alias
myDriveTrash with the target remote myDrive,trashed_only: can be used to
only show the trashed files in myDrive.
Configuration
rclone config
Name Type
==== ====
remote alias
rclone ls remote:
Standard options
Here are the Standard options specific to alias (Alias for an existing
remote).
--alias-remote
Properties:
- Config: remote
- Env Var: RCLONE_ALIAS_REMOTE
- Type: string
- Required: true
Advanced options
Here are the Advanced options specific to alias (Alias for an existing
remote).
--alias-description
Properties:
- Config: description
- Env Var: RCLONE_ALIAS_DESCRIPTION
- Type: string
- Required: false
- AWS S3
- Alibaba Cloud (Aliyun) Object Storage System (OSS)
- Ceph
- China Mobile Ecloud Elastic Object Storage (EOS)
- Cloudflare R2
- Arvan Cloud Object Storage (AOS)
- DigitalOcean Spaces
- Dreamhost
- GCS
- Huawei OBS
- IBM COS S3
- IDrive e2
- IONOS Cloud
- Leviia Object Storage
- Liara Object Storage
- Linode Object Storage
- Magalu Object Storage
- Minio
- Petabox
- Qiniu Cloud Object Storage (Kodo)
- RackCorp Object Storage
- Rclone Serve S3
- Scaleway
- Seagate Lyve Cloud
- SeaweedFS
- StackPath
- Storj
- Synology C2 Object Storage
- Tencent Cloud Object Storage (COS)
- Wasabi
Paths are specified as remote:bucket (or remote: for the lsd command.)
You may put subdirectories in too, e.g. remote:bucket/path/to/dir.
Once you have made a remote (see the provider specific section above)
you can use it like this:
rclone ls remote:bucket
Configuration
First run
rclone config
Modification times
Note that reading this from the object takes an additional HEAD request
as the metadata isn't returned in object listings.
Hashes
or you can use rclone check to verify the hashes are OK.
For large objects, calculating this hash can take some time so the
addition of this hash can be disabled with --s3-disable-checksum. This
will mean that these objects do not have an MD5 checksum.
Note that reading this from the object takes an additional HEAD request
as the metadata isn't returned in object listings.
Reducing costs
The modification time 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 on S3 because
it requires an extra API call to retrieve the metadata.
The extra API calls can be avoided when syncing (using rclone sync or
rclone copy) in a few different ways, each with its own tradeoffs.
- --size-only
- Only checks the size of files.
- Uses no extra transactions.
- If the file doesn't change size then rclone won't detect it has
changed.
- rclone sync --size-only /path/to/source s3:bucket
- --checksum
- Checks the size and MD5 checksum of files.
- Uses no extra transactions.
- The most accurate detection of changes possible.
- Will cause the source to read an MD5 checksum which, if it is a
local disk, will cause lots of disk activity.
- If the source and destination are both S3 this is the
recommended flag to use for maximum efficiency.
- rclone sync --checksum /path/to/source s3:bucket
- --update --use-server-modtime
- Uses no extra transactions.
- Modification time becomes the time the object was uploaded.
- For many operations this is sufficient to determine if it needs
uploading.
- Using --update along with --use-server-modtime, avoids the extra
API call and uploads files whose local modification time is
newer than the time it was last uploaded.
- Files created with timestamps in the past will be missed by the
sync.
- rclone sync --update --use-server-modtime /path/to/source s3:bucket
These flags can and should be used in combination with --fast-list - see
below.
If using rclone mount or any command using the VFS (eg rclone serve)
commands then you might want to consider using the VFS flag --no-modtime
which will stop rclone reading the modification time for every object.
You could also use --use-server-modtime if you are happy with the
modification times of the objects being the time of upload.
--fast-list trades off API transactions for memory use. As a rough guide
rclone uses 1k of memory per object stored, so using --fast-list on a
sync of a million objects will use roughly 1 GiB of RAM.
If you are only copying a small number of files into a big repository
then using --no-traverse is a good idea. This finds objects directly
instead of through directory listings. You can do a "top-up" sync very
cheaply by using --max-age and --no-traverse to copy only recent files,
eg
You can disable this with the --s3-no-head option - see there for more
details.
Setting this flag increases the chance for undetected upload failures.
Increasing performance
If you are copying objects between S3 buckets in the same region, you
should use server-side copy. This is much faster than downloading and
re-uploading the objects, as no data is transferred.
For rclone to use server-side copy, you must use the same remote for the
source and destination.
Rclone uses a very conservative defaults for these settings, as not all
providers support high rates of requests. Depending on your provider,
you can increase significantly the number of transfers and checkers.
For example, with AWS S3, if you can increase the number of checkers to
values like 200. If you are doing a server-side copy, you can also
increase the number of transfers to 200.
You will need to experiment with these values to find the optimal
settings for your setup.
Versions
When bucket versioning is enabled (this can be done with rclone with the
rclone backend versioning command) when rclone uploads a new version of
a file it creates a new version of it Likewise when you delete a file,
the old version will be marked hidden and still be available.
If you wish to remove all the old versions then you can use the
rclone backend cleanup-hidden remote:bucket command which will delete
all the old hidden versions of files, leaving the current ones intact.
You can also supply a path and only old versions under that path will be
deleted, e.g. rclone backend cleanup-hidden remote:bucket/path/to/stuff.
When you purge a bucket, the current and the old versions will be
deleted then the bucket will be deleted.
However delete will cause the current versions of the files to become
hidden old versions.
Show current version and all the versions with --s3-versions flag.
$ rclone -q ls s3:cleanup-test
9 one.txt
$ ls -l /tmp/one-v2016-07-04-141003-000.txt
-rw-rw-r-- 1 ncw ncw 16 Jul 2 17:46 /tmp/one-v2016-07-04-141003-000.txt
Clean up all the old versions and show that they've gone.
$ rclone -q ls s3:cleanup-test
9 one.txt
When using --s3-versions flag rclone is relying on the file name to work
out whether the objects are versions or not. Versions' names are created
by inserting timestamp between file name and its extension.
9 file.txt
8 file-v2023-07-17-161032-000.txt
16 file-v2023-06-15-141003-000.txt
If there are real files present with the same names as versions, then
behaviour of --s3-versions can be unpredictable.
Cleanup
If you run rclone cleanup s3:bucket then it will remove all pending
multipart uploads older than 24 hours. You can use the --interactive/i
or --dry-run flag to see exactly what it will do. If you want more
control over the expiry date then run
rclone backend cleanup s3:bucket -o max-age=1h to expire all uploads
older than one hour. You can use
rclone backend list-multipart-uploads s3:bucket to see the pending
multipart uploads.
The following characters are replaced since these are problematic when
dealing with the REST API:
The encoding will also encode these file names as they don't seem to
work with the SDK properly:
Multipart uploads
rclone supports multipart uploads with S3 which means that it can upload
files bigger than 5 GiB.
Note that files uploaded both with multipart upload and through crypt
remotes do not have MD5 sums.
Authentication
With env_auth = true rclone (which uses the SDK for Go v2) should
support all authentication methods that the aws CLI tool does and the
other AWS SDKs.
S3 Permissions
- ListBucket
- DeleteObject
- GetObject
- PutObject
- PutObjectACL
- CreateBucket (unless using s3-no-check-bucket)
When using the lsd subcommand, the ListAllMyBuckets permission is
required.
Example policy:
{
"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"
]
},
{
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "arn:aws:s3:::*"
}
]
}
Notes on above:
For reference, here's an Ansible script that will generate one or more
buckets that will work with rclone sync.
If you are using server-side encryption with KMS then you must make sure
rclone is configured with server_side_encryption = aws:kms otherwise you
will find you can't transfer small objects - these will create checksum
errors.
You can upload objects using the glacier storage class or transition
them to glacier using a lifecycle policy. The bucket can still be synced
or copied into normally, but if rclone tries to access data from the
glacier storage class you will see an error like below.
2017/09/11 19:07:43 Failed to sync: failed to open source object: Object in
GLACIER, restore first: path/to/file
In this case you need to restore the object(s) in question before using
rclone.
Note that rclone only speaks the S3 API it does not speak the Glacier
Vault API, so rclone cannot directly access Glacier Vaults.
Standard options
--s3-provider
Properties:
- Config: provider
- Env Var: RCLONE_S3_PROVIDER
- Type: string
- Required: false
- Examples:
- "AWS"
- Amazon Web Services (AWS) S3
- "Alibaba"
- Alibaba Cloud Object Storage System (OSS) formerly Aliyun
- "ArvanCloud"
- Arvan Cloud Object Storage (AOS)
- "Ceph"
- Ceph Object Storage
- "ChinaMobile"
- China Mobile Ecloud Elastic Object Storage (EOS)
- "Cloudflare"
- Cloudflare R2 Storage
- "DigitalOcean"
- DigitalOcean Spaces
- "Dreamhost"
- Dreamhost DreamObjects
- "GCS"
- Google Cloud Storage
- "HuaweiOBS"
- Huawei Object Storage Service
- "IBMCOS"
- IBM COS S3
- "IDrive"
- IDrive e2
- "IONOS"
- IONOS Cloud
- "LyveCloud"
- Seagate Lyve Cloud
- "Leviia"
- Leviia Object Storage
- "Liara"
- Liara Object Storage
- "Linode"
- Linode Object Storage
- "Magalu"
- Magalu Object Storage
- "Minio"
- Minio Object Storage
- "Netease"
- Netease Object Storage (NOS)
- "Petabox"
- Petabox Object Storage
- "RackCorp"
- RackCorp Object Storage
- "Rclone"
- Rclone S3 Server
- "Scaleway"
- Scaleway Object Storage
- "SeaweedFS"
- SeaweedFS S3
- "StackPath"
- StackPath Object Storage
- "Storj"
- Storj (S3 Compatible Gateway)
- "Synology"
- Synology C2 Object Storage
- "TencentCOS"
- Tencent Cloud Object Storage (COS)
- "Wasabi"
- Wasabi Object Storage
- "Qiniu"
- Qiniu Object Storage (Kodo)
- "Other"
- Any other S3 compatible provider
--s3-env-auth
Properties:
- Config: env_auth
- Env Var: RCLONE_S3_ENV_AUTH
- Type: bool
- Default: false
- Examples:
- "false"
- Enter AWS credentials in the next step.
- "true"
- Get AWS credentials from the environment (env vars or IAM).
--s3-access-key-id
Properties:
- Config: access_key_id
- Env Var: RCLONE_S3_ACCESS_KEY_ID
- Type: string
- Required: false
--s3-secret-access-key
Properties:
- Config: secret_access_key
- Env Var: RCLONE_S3_SECRET_ACCESS_KEY
- Type: string
- Required: false
--s3-region
Properties:
- Config: region
- Env Var: RCLONE_S3_REGION
- Provider: AWS
- Type: string
- Required: false
- Examples:
- "us-east-1"
- The default endpoint - a good choice if you are unsure.
- US Region, Northern Virginia, or Pacific Northwest.
- Leave location constraint empty.
- "us-east-2"
- US East (Ohio) Region.
- Needs location constraint us-east-2.
- "us-west-1"
- US West (Northern California) Region.
- Needs location constraint us-west-1.
- "us-west-2"
- US West (Oregon) Region.
- Needs location constraint us-west-2.
- "ca-central-1"
- Canada (Central) Region.
- Needs location constraint ca-central-1.
- "eu-west-1"
- EU (Ireland) Region.
- Needs location constraint EU or eu-west-1.
- "eu-west-2"
- EU (London) Region.
- Needs location constraint eu-west-2.
- "eu-west-3"
- EU (Paris) Region.
- Needs location constraint eu-west-3.
- "eu-north-1"
- EU (Stockholm) Region.
- Needs location constraint eu-north-1.
- "eu-south-1"
- EU (Milan) Region.
- Needs location constraint eu-south-1.
- "eu-central-1"
- EU (Frankfurt) Region.
- Needs location constraint eu-central-1.
- "ap-southeast-1"
- Asia Pacific (Singapore) Region.
- Needs location constraint ap-southeast-1.
- "ap-southeast-2"
- Asia Pacific (Sydney) Region.
- Needs location constraint ap-southeast-2.
- "ap-northeast-1"
- Asia Pacific (Tokyo) Region.
- Needs location constraint ap-northeast-1.
- "ap-northeast-2"
- Asia Pacific (Seoul).
- Needs location constraint ap-northeast-2.
- "ap-northeast-3"
- Asia Pacific (Osaka-Local).
- Needs location constraint ap-northeast-3.
- "ap-south-1"
- Asia Pacific (Mumbai).
- Needs location constraint ap-south-1.
- "ap-east-1"
- Asia Pacific (Hong Kong) Region.
- Needs location constraint ap-east-1.
- "sa-east-1"
- South America (Sao Paulo) Region.
- Needs location constraint sa-east-1.
- "il-central-1"
- Israel (Tel Aviv) Region.
- Needs location constraint il-central-1.
- "me-south-1"
- Middle East (Bahrain) Region.
- Needs location constraint me-south-1.
- "af-south-1"
- Africa (Cape Town) Region.
- Needs location constraint af-south-1.
- "cn-north-1"
- China (Beijing) Region.
- Needs location constraint cn-north-1.
- "cn-northwest-1"
- China (Ningxia) Region.
- Needs location constraint cn-northwest-1.
- "us-gov-east-1"
- AWS GovCloud (US-East) Region.
- Needs location constraint us-gov-east-1.
- "us-gov-west-1"
- AWS GovCloud (US) Region.
- Needs location constraint us-gov-west-1.
--s3-endpoint
Leave blank if using AWS to use the default endpoint for the region.
Properties:
- Config: endpoint
- Env Var: RCLONE_S3_ENDPOINT
- Provider: AWS
- Type: string
- Required: false
--s3-location-constraint
Properties:
- Config: location_constraint
- Env Var: RCLONE_S3_LOCATION_CONSTRAINT
- Provider: AWS
- Type: string
- Required: false
- Examples:
- ""
- Empty for US Region, Northern Virginia, or Pacific Northwest
- "us-east-2"
- US East (Ohio) Region
- "us-west-1"
- US West (Northern California) Region
- "us-west-2"
- US West (Oregon) Region
- "ca-central-1"
- Canada (Central) Region
- "eu-west-1"
- EU (Ireland) Region
- "eu-west-2"
- EU (London) Region
- "eu-west-3"
- EU (Paris) Region
- "eu-north-1"
- EU (Stockholm) Region
- "eu-south-1"
- EU (Milan) Region
- "EU"
- EU Region
- "ap-southeast-1"
- Asia Pacific (Singapore) Region
- "ap-southeast-2"
- Asia Pacific (Sydney) Region
- "ap-northeast-1"
- Asia Pacific (Tokyo) Region
- "ap-northeast-2"
- Asia Pacific (Seoul) Region
- "ap-northeast-3"
- Asia Pacific (Osaka-Local) Region
- "ap-south-1"
- Asia Pacific (Mumbai) Region
- "ap-east-1"
- Asia Pacific (Hong Kong) Region
- "sa-east-1"
- South America (Sao Paulo) Region
- "il-central-1"
- Israel (Tel Aviv) Region
- "me-south-1"
- Middle East (Bahrain) Region
- "af-south-1"
- Africa (Cape Town) Region
- "cn-north-1"
- China (Beijing) Region
- "cn-northwest-1"
- China (Ningxia) Region
- "us-gov-east-1"
- AWS GovCloud (US-East) Region
- "us-gov-west-1"
- AWS GovCloud (US) Region
--s3-acl
Canned ACL used when creating buckets and storing or copying objects.
This ACL is used for creating objects and if bucket_acl isn't set, for
creating buckets too.
If the acl is an empty string then no X-Amz-Acl: header is added and the
default (private) will be used.
Properties:
- Config: acl
- Env Var: RCLONE_S3_ACL
- Provider: !Storj,Synology,Cloudflare
- Type: string
- Required: false
- Examples:
- "default"
- Owner gets Full_CONTROL.
- No one else has access rights (default).
- "private"
- Owner gets FULL_CONTROL.
- No one else has access rights (default).
- "public-read"
- Owner gets FULL_CONTROL.
- The AllUsers group gets READ access.
- "public-read-write"
- Owner gets FULL_CONTROL.
- The AllUsers group gets READ and WRITE access.
- Granting this on a bucket is generally not recommended.
- "authenticated-read"
- Owner gets FULL_CONTROL.
- The AuthenticatedUsers group gets READ access.
- "bucket-owner-read"
- Object owner gets FULL_CONTROL.
- Bucket owner gets READ access.
- If you specify this canned ACL when creating a bucket,
Amazon S3 ignores it.
- "bucket-owner-full-control"
- Both the object owner and the bucket owner get FULL_CONTROL
over the object.
- If you specify this canned ACL when creating a bucket,
Amazon S3 ignores it.
- "private"
- 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.
- "public-read"
- 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-write"
- Owner gets FULL_CONTROL.
- The AllUsers group gets READ and WRITE access.
- This acl is available on IBM Cloud (Infra), On-Premise IBM
COS.
- "authenticated-read"
- 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.
--s3-server-side-encryption
Properties:
- Config: server_side_encryption
- Env Var: RCLONE_S3_SERVER_SIDE_ENCRYPTION
- Provider: AWS,Ceph,ChinaMobile,Minio
- Type: string
- Required: false
- Examples:
- ""
- None
- "AES256"
- AES256
- "aws:kms"
- aws:kms
--s3-sse-kms-key-id
Properties:
- Config: sse_kms_key_id
- Env Var: RCLONE_S3_SSE_KMS_KEY_ID
- Provider: AWS,Ceph,Minio
- Type: string
- Required: false
- Examples:
- ""
- None
- "arn:aws:kms:us-east-1:*"
- arn:aws:kms:*
--s3-storage-class
Properties:
- Config: storage_class
- Env Var: RCLONE_S3_STORAGE_CLASS
- Provider: AWS
- Type: string
- Required: false
- Examples:
- ""
- Default
- "STANDARD"
- Standard storage class
- "REDUCED_REDUNDANCY"
- Reduced redundancy storage class
- "STANDARD_IA"
- Standard Infrequent Access storage class
- "ONEZONE_IA"
- One Zone Infrequent Access storage class
- "GLACIER"
- Glacier storage class
- "DEEP_ARCHIVE"
- Glacier Deep Archive storage class
- "INTELLIGENT_TIERING"
- Intelligent-Tiering storage class
- "GLACIER_IR"
- Glacier Instant Retrieval storage class
Advanced options
Note that this ACL is applied when only when creating buckets. If it
isn't set then "acl" is used instead.
Properties:
- Config: bucket_acl
- Env Var: RCLONE_S3_BUCKET_ACL
- Type: string
- Required: false
- Examples:
- "private"
- Owner gets FULL_CONTROL.
- No one else has access rights (default).
- "public-read"
- Owner gets FULL_CONTROL.
- The AllUsers group gets READ access.
- "public-read-write"
- Owner gets FULL_CONTROL.
- The AllUsers group gets READ and WRITE access.
- Granting this on a bucket is generally not recommended.
- "authenticated-read"
- Owner gets FULL_CONTROL.
- The AuthenticatedUsers group gets READ access.
--s3-requester-pays
Properties:
- Config: requester_pays
- Env Var: RCLONE_S3_REQUESTER_PAYS
- Provider: AWS
- Type: bool
- Default: false
--s3-sse-customer-algorithm
Properties:
- Config: sse_customer_algorithm
- Env Var: RCLONE_S3_SSE_CUSTOMER_ALGORITHM
- Provider: AWS,Ceph,ChinaMobile,Minio
- Type: string
- Required: false
- Examples:
- ""
- None
- "AES256"
- AES256
--s3-sse-customer-key
To use SSE-C you may provide the secret encryption key used to
encrypt/decrypt your data.
Properties:
- Config: sse_customer_key
- Env Var: RCLONE_S3_SSE_CUSTOMER_KEY
- Provider: AWS,Ceph,ChinaMobile,Minio
- Type: string
- Required: false
- Examples:
- ""
- None
--s3-sse-customer-key-base64
If using SSE-C you must provide the secret encryption key encoded in
base64 format to encrypt/decrypt your data.
Properties:
- Config: sse_customer_key_base64
- Env Var: RCLONE_S3_SSE_CUSTOMER_KEY_BASE64
- Provider: AWS,Ceph,ChinaMobile,Minio
- Type: string
- Required: false
- Examples:
- ""
- None
--s3-sse-customer-key-md5
If using SSE-C you may provide the secret encryption key MD5 checksum
(optional).
Properties:
- Config: sse_customer_key_md5
- Env Var: RCLONE_S3_SSE_CUSTOMER_KEY_MD5
- Provider: AWS,Ceph,ChinaMobile,Minio
- Type: string
- Required: false
- Examples:
- ""
- None
--s3-upload-cutoff
Any files larger than this will be uploaded in chunks of chunk_size. The
minimum is 0 and the maximum is 5 GiB.
Properties:
- Config: upload_cutoff
- Env Var: RCLONE_S3_UPLOAD_CUTOFF
- Type: SizeSuffix
- Default: 200Mi
--s3-chunk-size
If you are transferring large files over high-speed links and you have
enough memory, then increasing this will speed up the transfers.
Rclone will automatically increase the chunk size when uploading a large
file of known size to stay below the 10,000 chunks limit.
Files of unknown size are uploaded with the configured chunk_size. Since
the default chunk size is 5 MiB and there can be at most 10,000 chunks,
this means that by default the maximum size of a file you can stream
upload is 48 GiB. If you wish to stream upload larger files then you
will need to increase chunk_size.
Properties:
- Config: chunk_size
- Env Var: RCLONE_S3_CHUNK_SIZE
- Type: SizeSuffix
- Default: 5Mi
--s3-max-upload-parts
This option defines the maximum number of multipart chunks to use when
doing a multipart upload.
This can be useful if a service does not support the AWS S3
specification of 10,000 chunks.
Rclone will automatically increase the chunk size when uploading a large
file of a known size to stay below this number of chunks limit.
Properties:
- Config: max_upload_parts
- Env Var: RCLONE_S3_MAX_UPLOAD_PARTS
- Type: int
- Default: 10000
--s3-copy-cutoff
Any files larger than this that need to be server-side copied will be
copied in chunks of this size.
Properties:
- Config: copy_cutoff
- Env Var: RCLONE_S3_COPY_CUTOFF
- Type: SizeSuffix
- Default: 4.656Gi
--s3-disable-checksum
Normally rclone will calculate the MD5 checksum of the input before
uploading it so it can add it to metadata on the object. This is great
for data integrity checking but can cause long delays for large files to
start uploading.
Properties:
- Config: disable_checksum
- Env Var: RCLONE_S3_DISABLE_CHECKSUM
- Type: bool
- Default: false
--s3-shared-credentials-file
Linux/OSX: "$HOME/.aws/credentials"
Windows: "%USERPROFILE%\.aws\credentials"
Properties:
- Config: shared_credentials_file
- Env Var: RCLONE_S3_SHARED_CREDENTIALS_FILE
- Type: string
- Required: false
--s3-profile
If env_auth = true then rclone can use a shared credentials file. This
variable controls which profile is used in that file.
Properties:
- Config: profile
- Env Var: RCLONE_S3_PROFILE
- Type: string
- Required: false
--s3-session-token
Properties:
- Config: session_token
- Env Var: RCLONE_S3_SESSION_TOKEN
- Type: string
- Required: false
--s3-upload-concurrency
This is the number of chunks of the same file that are uploaded
concurrently for multipart uploads and copies.
If you are uploading small numbers of large files over high-speed links
and these uploads do not fully utilize your bandwidth, then increasing
this may help to speed up the transfers.
Properties:
- Config: upload_concurrency
- Env Var: RCLONE_S3_UPLOAD_CONCURRENCY
- Type: int
- Default: 4
--s3-force-path-style
If true use path style access if false use virtual hosted style.
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 for
more info.
Some providers (e.g. AWS, Aliyun OSS, Netease COS, or Tencent COS)
require this set to false - rclone will do this automatically based on
the provider setting.
Note that if your bucket isn't a valid DNS name, i.e. has '.' or '_' in,
you'll need to set this to true.
Properties:
- Config: force_path_style
- Env Var: RCLONE_S3_FORCE_PATH_STYLE
- Type: bool
- Default: true
--s3-v2-auth
Use this only if v4 signatures don't work, e.g. pre Jewel/v10 CEPH.
Properties:
- Config: v2_auth
- Env Var: RCLONE_S3_V2_AUTH
- Type: bool
- Default: false
--s3-use-dual-stack
Properties:
- Config: use_dual_stack
- Env Var: RCLONE_S3_USE_DUAL_STACK
- Type: bool
- Default: false
--s3-use-accelerate-endpoint
Properties:
- Config: use_accelerate_endpoint
- Env Var: RCLONE_S3_USE_ACCELERATE_ENDPOINT
- Provider: AWS
- Type: bool
- Default: false
--s3-leave-parts-on-error
Properties:
- Config: leave_parts_on_error
- Env Var: RCLONE_S3_LEAVE_PARTS_ON_ERROR
- Provider: AWS
- Type: bool
- Default: false
--s3-list-chunk
Properties:
- Config: list_chunk
- Env Var: RCLONE_S3_LIST_CHUNK
- Type: int
- Default: 1000
--s3-list-version
However in May 2016 the ListObjectsV2 call was introduced. This is much
higher performance and should be used if at all possible.
Properties:
- Config: list_version
- Env Var: RCLONE_S3_LIST_VERSION
- Type: int
- Default: 0
--s3-list-url-encode
Properties:
- Config: list_url_encode
- Env Var: RCLONE_S3_LIST_URL_ENCODE
- Type: Tristate
- Default: unset
--s3-no-check-bucket
It can also be needed if the user you are using does not have bucket
creation permissions. Before v1.52.0 this would have passed silently due
to a bug.
Properties:
- Config: no_check_bucket
- Env Var: RCLONE_S3_NO_CHECK_BUCKET
- Type: bool
- Default: false
--s3-no-head
- the metadata, including modtime, storage class and content type was
as uploaded
- the size was as uploaded
It reads the following items from the response for a single part PUT:
- the MD5SUM
- The uploaded date
Properties:
- Config: no_head
- Env Var: RCLONE_S3_NO_HEAD
- Type: bool
- Default: false
--s3-no-head-object
Properties:
- Config: no_head_object
- Env Var: RCLONE_S3_NO_HEAD_OBJECT
- Type: bool
- Default: false
--s3-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_S3_ENCODING
- Type: Encoding
- Default: Slash,InvalidUtf8,Dot
--s3-memory-pool-flush-time
How often internal memory buffer pools will be flushed. (no longer used)
Properties:
- Config: memory_pool_flush_time
- Env Var: RCLONE_S3_MEMORY_POOL_FLUSH_TIME
- Type: Duration
- Default: 1m0s
--s3-memory-pool-use-mmap
Whether to use mmap buffers in internal memory pool. (no longer used)
Properties:
- Config: memory_pool_use_mmap
- Env Var: RCLONE_S3_MEMORY_POOL_USE_MMAP
- Type: bool
- Default: false
--s3-disable-http2
Disable usage of http2 for S3 backends.
See: https://github.com/rclone/rclone/issues/4673,
https://github.com/rclone/rclone/issues/3631
Properties:
- Config: disable_http2
- Env Var: RCLONE_S3_DISABLE_HTTP2
- Type: bool
- Default: false
--s3-download-url
Properties:
- Config: download_url
- Env Var: RCLONE_S3_DOWNLOAD_URL
- Type: string
- Required: false
--s3-directory-markers
Empty folders are unsupported for bucket based remotes, this option
creates an empty object ending with "/", to persist the folder.
Properties:
- Config: directory_markers
- Env Var: RCLONE_S3_DIRECTORY_MARKERS
- Type: bool
- Default: false
--s3-use-multipart-etag
This should be true, false or left unset to use the default for the
provider.
Properties:
- Config: use_multipart_etag
- Env Var: RCLONE_S3_USE_MULTIPART_ETAG
- Type: Tristate
- Default: unset
--s3-use-unsigned-payload
Rclone has to avoid the AWS SDK seeking the body when calling PutObject.
The AWS provider can add checksums in the trailer to avoid seeking but
other providers can't.
This should be true, false or left unset to use the default for the
provider.
Properties:
- Config: use_unsigned_payload
- Env Var: RCLONE_S3_USE_UNSIGNED_PAYLOAD
- Type: Tristate
- Default: unset
--s3-use-presigned-request
If this is false rclone will use PutObject from the AWS SDK to upload an
object.
Versions of rclone < 1.59 use presigned requests to upload a single part
object and setting this flag to true will re-enable that functionality.
This shouldn't be necessary except in exceptional circumstances or for
testing.
Properties:
- Config: use_presigned_request
- Env Var: RCLONE_S3_USE_PRESIGNED_REQUEST
- Type: bool
- Default: false
--s3-versions
Properties:
- Config: versions
- Env Var: RCLONE_S3_VERSIONS
- Type: bool
- Default: false
--s3-version-at
Note that when using this no file write operations are permitted, so you
can't upload files or delete them.
See the time option docs for valid formats.
Properties:
- Config: version_at
- Env Var: RCLONE_S3_VERSION_AT
- Type: Time
- Default: off
--s3-version-deleted
This shows deleted file markers in the listing when using versions.
These will appear as 0 size files. The only operation which can be
performed on them is deletion.
Properties:
- Config: version_deleted
- Env Var: RCLONE_S3_VERSION_DELETED
- Type: bool
- Default: false
--s3-decompress
If this flag is set then rclone will decompress these files with
"Content-Encoding: gzip" as they are received. This means that rclone
can't check the size and hash but the file contents will be
decompressed.
Properties:
- Config: decompress
- Env Var: RCLONE_S3_DECOMPRESS
- Type: bool
- Default: false
--s3-might-gzip
Normally providers will not alter objects when they are downloaded. If
an object was not uploaded with Content-Encoding: gzip then it won't be
set on download.
However some providers may gzip objects even if they weren't uploaded
with Content-Encoding: gzip (eg Cloudflare).
If this is set to unset (the default) then rclone will choose according
to the provider setting what to apply, but you can override rclone's
choice here.
Properties:
- Config: might_gzip
- Env Var: RCLONE_S3_MIGHT_GZIP
- Type: Tristate
- Default: unset
--s3-use-accept-encoding-gzip
However some providers such as Google Cloud Storage may alter the HTTP
headers, breaking the signature of the request.
Properties:
- Config: use_accept_encoding_gzip
- Env Var: RCLONE_S3_USE_ACCEPT_ENCODING_GZIP
- Type: Tristate
- Default: unset
--s3-no-system-metadata
Properties:
- Config: no_system_metadata
- Env Var: RCLONE_S3_NO_SYSTEM_METADATA
- Type: bool
- Default: false
--s3-sts-endpoint
Leave blank if using AWS to use the default endpoint for the region.
Properties:
- Config: sts_endpoint
- Env Var: RCLONE_S3_STS_ENDPOINT
- Provider: AWS
- Type: string
- Required: false
--s3-use-already-exists
Properties:
- Config: use_already_exists
- Env Var: RCLONE_S3_USE_ALREADY_EXISTS
- Type: Tristate
- Default: unset
--s3-use-multipart-uploads
You can change this if you want to disable the use of multipart uploads.
This shouldn't be necessary in normal operation.
Properties:
- Config: use_multipart_uploads
- Env Var: RCLONE_S3_USE_MULTIPART_UPLOADS
- Type: Tristate
- Default: unset
--s3-sdk-log-mode
Set to debug the SDK
- Signing
- Retries
- Request
- RequestWithBody
- Response
- ResponseWithBody
- DeprecatedUsage
- RequestEventMessage
- ResponseEventMessage
Use Off to disable and All to set all log levels. You will need to use
-vv to see the debug level logs.
Properties:
- Config: sdk_log_mode
- Env Var: RCLONE_S3_SDK_LOG_MODE
- Type: Bits
- Default: Off
--s3-description
Properties:
- Config: description
- Env Var: RCLONE_S3_DESCRIPTION
- Type: string
- Required: false
Metadata
Here are the possible system metadata items for the s3 backend.
-----------------------------------------------------------------------------------
-------------------------------
Name Help Type Example
Read Only
--------------------- --------------------- -----------
------------------------------------- --------------------
btime Time of file birth RFC 3339 2006-01-
02T15:04:05.999999999Z07:00 Y
(creation) read from
Last-Modified header
-----------------------------------------------------------------------------------
-------------------------------
Backend commands
The help below will explain what arguments each command takes.
See the backend command for more info on how to pass options and
arguments.
restore
This command can be used to restore one or more objects from GLACIER to
normal storage or from INTELLIGENT-TIERING Archive Access / Deep Archive
Access tier to the Frequent Access tier.
Usage Examples:
This flag also obeys the filters. Test first with --interactive/-i or
--dry-run flags
[
{
"Status": "OK",
"Remote": "test.txt"
},
{
"Status": "OK",
"Remote": "test/file4.txt"
}
]
Options:
restore-status
Show the restore status for objects being restored from GLACIER or
INTELLIGENT-TIERING storage
This command can be used to show the status for objects being restored
from GLACIER to normal storage or from INTELLIGENT-TIERING Archive
Access / Deep Archive Access tier to the Frequent Access tier.
Usage Examples:
[
{
"Remote": "file.txt",
"VersionID": null,
"RestoreStatus": {
"IsRestoreInProgress": true,
"RestoreExpiryDate": "2023-09-06T12:29:19+01:00"
},
"StorageClass": "GLACIER"
},
{
"Remote": "test.pdf",
"VersionID": null,
"RestoreStatus": {
"IsRestoreInProgress": false,
"RestoreExpiryDate": "2023-09-06T12:29:19+01:00"
},
"StorageClass": "DEEP_ARCHIVE"
},
{
"Remote": "test.gz",
"VersionID": null,
"RestoreStatus": {
"IsRestoreInProgress": true,
"RestoreExpiryDate": "null"
},
"StorageClass": "INTELLIGENT_TIERING"
}
]
Options:
- "all": if set then show all objects, not just ones with restore
status
list-multipart-uploads
You can call it with no bucket in which case it lists all bucket, with a
bucket or with a bucket and path.
{
"rclone": [
{
"Initiated": "2020-06-26T14:20:36Z",
"Initiator": {
"DisplayName": "XXX",
"ID": "arn:aws:iam::XXX:user/XXX"
},
"Key": "KEY",
"Owner": {
"DisplayName": null,
"ID": "XXX"
},
"StorageClass": "STANDARD",
"UploadId": "XXX"
}
],
"rclone-1000files": [],
"rclone-dst": []
}
cleanup
Note that you can use --interactive/-i or --dry-run with this command to
see what it would do.
Durations are parsed as per the rest of rclone, 2h, 7d, 7w etc.
Options:
cleanup-hidden
Note that you can use --interactive/-i or --dry-run with this command to
see what it would do.
versioning
set
This set command can be used to update the config parameters for a
running s3 backend.
Usage Examples:
The option keys are named as they are in the config file.
[anons3]
type = s3
provider = AWS
Then use it as normal with the name of the public bucket, e.g.
You will be able to list and copy data but not upload it.
Providers
AWS S3
eg.
[snowball]
type = s3
provider = Other
access_key_id = YOUR_ACCESS_KEY
secret_access_key = YOUR_SECRET_KEY
endpoint = http://[IP of Snowball]:8080
upload_cutoff = 0
Ceph
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:
[ceph]
type = s3
provider = Ceph
env_auth = false
access_key_id = XXX
secret_access_key = YYY
region =
endpoint = https://ceph.endpoint.example.com
location_constraint =
acl =
server_side_encryption =
storage_class =
If you are using an older version of CEPH (e.g. 10.2.x Jewel) and a
version of rclone before v1.59 then you may need to supply the parameter
--s3-upload-cutoff 0 or put this in the config file as upload_cutoff 0
to work around a bug which causes uploading of small files to fail.
Note also that Ceph sometimes puts / 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 / escaped as \/. Make sure you only write / in the
secret access key.
Eg the dump from Ceph looks something like this (irrelevant keys
removed).
{
"user_id": "xxx",
"display_name": "xxxx",
"keys": [
{
"user": "xxx",
"access_key": "xxxxxx",
"secret_key": "xxxxxx\/xxxx"
}
],
}
Cloudflare R2
rclone config
Note that all buckets are private, and all are stored in the same "auto"
region. It is necessary to use Cloudflare workers to share the content
of a bucket publicly.
[r2]
type = s3
provider = Cloudflare
access_key_id = ACCESS_KEY
secret_access_key = SECRET_ACCESS_KEY
region = auto
endpoint = https://ACCOUNT_ID.r2.cloudflarestorage.com
acl = private
Now run rclone lsf r2: to see your buckets and rclone lsf r2:bucket to
look within a bucket.
For R2 tokens with the "Object Read & Write" permission, you may also
need to add no_check_bucket = true for object uploads to work correctly.
Dreamhost
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:
[dreamobjects]
type = s3
provider = DreamHost
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 =
To connect to Google Cloud Storage you will need an access key and
secret key. These can be retrieved by creating an HMAC key.
[gs]
type = s3
provider = GCS
access_key_id = your_access_key
secret_access_key = your_secret_key
endpoint = https://storage.googleapis.com
Note that --s3-versions does not work with GCS when it needs to do
directory paging. Rclone will return the error:
DigitalOcean Spaces
To connect to DigitalOcean Spaces you will need an access key and secret
key. These can be retrieved on the "Applications & API" page of the
DigitalOcean control panel. They will be needed when prompted by
rclone config for your access_key_id and secret_access_key.
Storage> s3
env_auth> 1
access_key_id> YOUR_ACCESS_KEY
secret_access_key> YOUR_SECRET_KEY
region>
endpoint> nyc3.digitaloceanspaces.com
location_constraint>
acl>
storage_class>
[spaces]
type = s3
provider = DigitalOcean
env_auth = false
access_key_id = YOUR_ACCESS_KEY
secret_access_key = YOUR_SECRET_KEY
region =
endpoint = nyc3.digitaloceanspaces.com
location_constraint =
acl =
server_side_encryption =
storage_class =
Once configured, you can create a new Space and begin copying files. For
example:
Huawei OBS
OBS provides an S3 interface, you can copy and modify the following
configuration and add it to your rclone configuration file.
[obs]
type = s3
provider = HuaweiOBS
access_key_id = your-access-key-id
secret_access_key = your-secret-access-key
region = af-south-1
endpoint = obs.af-south-1.myhuaweicloud.com
acl = private
Name Type
==== ====
obs s3
6. Specify the endpoint for IBM COS. For Public IBM COS, choose from
the option below. For On Premise IBM COS, enter an endpoint address.
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).
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"
acl> 1
12. Review the displayed configuration and accept to save the "remote"
then quit. The config file should look like this
[xxx]
type = s3
Provider = IBMCOS
access_key_id = xxx
secret_access_key = yyy
endpoint = s3-api.us-geo.objectstorage.softlayer.net
location_constraint = us-standard
acl = private
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
IDrive e2
rclone config
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
[snip]
XX / Amazon S3 Compliant Storage Providers including AWS, ...
\ (s3)
[snip]
Storage> s3
Option provider.
Choose your S3 provider.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
[snip]
XX / IDrive e2
\ (IDrive)
[snip]
provider> IDrive
Option env_auth.
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.
Choose a number from below, or type in your own boolean value (true or false).
Press Enter for the default (false).
1 / Enter AWS credentials in the next step.
\ (false)
2 / Get AWS credentials from the environment (env vars or IAM).
\ (true)
env_auth>
Option access_key_id.
AWS Access Key ID.
Leave blank for anonymous access or runtime credentials.
Enter a value. Press Enter to leave empty.
access_key_id> YOUR_ACCESS_KEY
Option secret_access_key.
AWS Secret Access Key (password).
Leave blank for anonymous access or runtime credentials.
Enter a value. Press Enter to leave empty.
secret_access_key> YOUR_SECRET_KEY
Option acl.
Canned ACL used when creating buckets and storing or copying objects.
This ACL is used for creating objects and if bucket_acl isn't set, for creating
buckets too.
For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-
overview.html#canned-acl
Note that this ACL is applied when server-side copying objects as S3
doesn't copy the ACL from the source but rather writes a fresh one.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
/ Owner gets FULL_CONTROL.
1 | No one else has access rights (default).
\ (private)
/ Owner gets FULL_CONTROL.
2 | The AllUsers group gets READ access.
\ (public-read)
/ Owner gets FULL_CONTROL.
3 | The AllUsers group gets READ and WRITE access.
| Granting this on a bucket is generally not recommended.
\ (public-read-write)
/ Owner gets FULL_CONTROL.
4 | The AuthenticatedUsers group gets READ access.
\ (authenticated-read)
/ Object owner gets FULL_CONTROL.
5 | Bucket owner gets READ access.
| If you specify this canned ACL when creating a bucket, Amazon S3 ignores
it.
\ (bucket-owner-read)
/ Both the object owner and the bucket owner get FULL_CONTROL over the
object.
6 | If you specify this canned ACL when creating a bucket, Amazon S3 ignores
it.
\ (bucket-owner-full-control)
acl>
Configuration complete.
Options:
- type: s3
- provider: IDrive
- access_key_id: YOUR_ACCESS_KEY
- secret_access_key: YOUR_SECRET_KEY
- endpoint: q9d9.la12.idrivee2-5.com
Keep this "e2" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
IONOS Cloud
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
[snip]
XX / Amazon S3 Compliant Storage Providers including AWS, ...
\ (s3)
[snip]
Storage> s3
Type IONOS:
Option provider.
Choose your S3 provider.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
[snip]
XX / IONOS Cloud
\ (IONOS)
[snip]
provider> IONOS
Option env_auth.
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.
Choose a number from below, or type in your own boolean value (true or false).
Press Enter for the default (false).
1 / Enter AWS credentials in the next step.
\ (false)
2 / Get AWS credentials from the environment (env vars or IAM).
\ (true)
env_auth>
Enter your Access Key and Secret key. These can be retrieved in the Data
Center Designer, click on the menu “Manager resources” / "Object Storage
Key Manager".
Option access_key_id.
AWS Access Key ID.
Leave blank for anonymous access or runtime credentials.
Enter a value. Press Enter to leave empty.
access_key_id> YOUR_ACCESS_KEY
Option secret_access_key.
AWS Secret Access Key (password).
Leave blank for anonymous access or runtime credentials.
Enter a value. Press Enter to leave empty.
secret_access_key> YOUR_SECRET_KEY
Option region.
Region where your bucket will be created and your data stored.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
1 / Frankfurt, Germany
\ (de)
2 / Berlin, Germany
\ (eu-central-2)
3 / Logrono, Spain
\ (eu-south-2)
region> 2
Option endpoint.
Endpoint for IONOS S3 Object Storage.
Specify the endpoint from the same region.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
1 / Frankfurt, Germany
\ (s3-eu-central-1.ionoscloud.com)
2 / Berlin, Germany
\ (s3-eu-central-2.ionoscloud.com)
3 / Logrono, Spain
\ (s3-eu-south-2.ionoscloud.com)
endpoint> 1
Press Enter to choose the default option or choose the desired ACL
setting:
Option acl.
Canned ACL used when creating buckets and storing or copying objects.
This ACL is used for creating objects and if bucket_acl isn't set, for creating
buckets too.
For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-
overview.html#canned-acl
Note that this ACL is applied when server-side copying objects as S3
doesn't copy the ACL from the source but rather writes a fresh one.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
/ Owner gets FULL_CONTROL.
1 | No one else has access rights (default).
\ (private)
/ Owner gets FULL_CONTROL.
[snip]
acl>
Configuration complete.
Options:
- type: s3
- provider: IONOS
- access_key_id: YOUR_ACCESS_KEY
- secret_access_key: YOUR_SECRET_KEY
- endpoint: s3-eu-central-1.ionoscloud.com
Keep this "ionos-fra" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
Done! Now you can try some commands (for macOS, use ./rclone instead of
rclone).
1) Create a bucket (the name must be unique within the whole IONOS S3)
rclone ls ionos-fra:my-bucket
Minio
Browser Access:
http://192.168.1.106:9000 http://172.23.0.1:9000
These details need to go into rclone config like this. Note that it is
important to put the region in as stated above.
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>
[minio]
type = s3
provider = Minio
env_auth = false
access_key_id = USWUXHGYZQYFYFFIT3RE
secret_access_key = MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
region = us-east-1
endpoint = http://192.168.1.106:9000
location_constraint =
server_side_encryption =
rclone config
No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> qiniu
3. Select s3 storage.
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 ("").
access_key_id> AKIDxxxxxxxxxx
AWS Secret Access Key (password)
Leave blank for anonymous access or runtime credentials.
Enter a string value. Press Enter for the default ("").
secret_access_key> xxxxxxxxxxx
6. Select endpoint for Qiniu Kodo. This is the standard endpoint for
different region.
Option endpoint.
Endpoint for Qiniu Object Storage.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
1 / East China Endpoint 1
\ (s3-cn-east-1.qiniucs.com)
2 / East China Endpoint 2
\ (s3-cn-east-2.qiniucs.com)
3 / North China Endpoint 1
\ (s3-cn-north-1.qiniucs.com)
4 / South China Endpoint 1
\ (s3-cn-south-1.qiniucs.com)
5 / North America Endpoint 1
\ (s3-us-north-1.qiniucs.com)
6 / Southeast Asia Endpoint 1
\ (s3-ap-southeast-1.qiniucs.com)
7 / Northeast Asia Endpoint 1
\ (s3-ap-northeast-1.qiniucs.com)
endpoint> 1
Option location_constraint.
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.
Press Enter to leave empty.
1 / East China Region 1
\ (cn-east-1)
2 / East China Region 2
\ (cn-east-2)
3 / North China Region 1
\ (cn-north-1)
4 / South China Region 1
\ (cn-south-1)
5 / North America Region 1
\ (us-north-1)
6 / Southeast Asia Region 1
\ (ap-southeast-1)
7 / Northeast Asia Region 1
\ (ap-northeast-1)
location_constraint> 1
Name Type
==== ====
qiniu s3
RackCorp
Before you can use RackCorp Object Storage, you'll need to "sign up" for
an account on our "portal". Next you can create an access key, a
secret key and buckets, in your location of choice with ease. These
details are required for the next steps of configuration, when
rclone config asks for your access_key_id and secret_access_key.
[RCS3-demo-config]
type = s3
provider = RackCorp
env_auth = true
access_key_id = YOURACCESSKEY
secret_access_key = YOURSECRETACCESSKEY
region = au-nsw
endpoint = s3.rackcorp.com
location_constraint = au-nsw
Rclone Serve S3
Rclone can serve any remote over the S3 protocol. For details see the
rclone serve s3 documentation.
For example, to serve remote:path over s3, run the server like this:
[serves3]
type = s3
provider = Rclone
endpoint = http://127.0.0.1:8080/
access_key_id = ACCESS_KEY_ID
secret_access_key = SECRET_ACCESS_KEY
use_multipart_uploads = false
Scaleway
Scaleway 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.
[scaleway]
type = s3
provider = Scaleway
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 = nl-ams
acl = private
upload_cutoff = 5M
chunk_size = 5M
copy_cutoff = 5M
Here is a config run through for a remote called remote - you may choose
a different name of course. Note that to create an access key and secret
key you will need to create a service account first.
$ rclone config
No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> remote
Choose s3 backend
Take the default (just press enter) to enter access key and secret in
the config file.
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.
Choose a number from below, or type in your own boolean value (true or false).
Press Enter for the default (false).
1 / Enter AWS credentials in the next step.
\ (false)
2 / Get AWS credentials from the environment (env vars or IAM).
\ (true)
env_auth>
Canned ACL used when creating buckets and storing or copying objects.
This ACL is used for creating objects and if bucket_acl isn't set, for creating
buckets too.
For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-
overview.html#canned-acl
Note that this ACL is applied when server-side copying objects as S3
doesn't copy the ACL from the source but rather writes a fresh one.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
/ Owner gets FULL_CONTROL.
1 | No one else has access rights (default).
\ (private)
[snip]
acl>
[remote]
type = s3
provider = LyveCloud
access_key_id = XXX
secret_access_key = YYY
endpoint = s3.us-east-1.lyvecloud.seagate.com
SeaweedFS
[seaweedfs_s3]
type = s3
provider = SeaweedFS
access_key_id = any
secret_access_key = any
endpoint = localhost:8333
Wasabi
[wasabi]
type = s3
provider = Wasabi
env_auth = false
access_key_id = YOURACCESSKEY
secret_access_key = YOURSECRETACCESSKEY
region =
endpoint = s3.wasabisys.com
location_constraint =
acl =
server_side_encryption =
storage_class =
Alibaba OSS
rclone config
rclone config
Leviia Object Storage, backup and secure your data in a 100% French
cloud, independent of GAFAM..
rclone config
No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> leviia
3. Select s3 storage.
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 ("").
access_key_id> ZnIx.xxxxxxxxxxxxxxx
AWS Secret Access Key (password)
Leave blank for anonymous access or runtime credentials.
Enter a string value. Press Enter for the default ("").
secret_access_key> xxxxxxxxxxx
7. Choose acl.
Name Type
==== ====
leviia s3
Liara
rclone config
[Liara]
type = s3
provider = Liara
env_auth = false
access_key_id = YOURACCESSKEY
secret_access_key = YOURSECRETACCESSKEY
region =
endpoint = storage.iran.liara.space
location_constraint =
acl =
server_side_encryption =
storage_class =
Linode
rclone config
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
[snip]
XX / Amazon S3 Compliant Storage Providers including AWS, ...Linode, ...and
others
\ (s3)
[snip]
Storage> s3
Option provider.
Choose your S3 provider.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
[snip]
XX / Linode Object Storage
\ (Linode)
[snip]
provider> Linode
Option env_auth.
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.
Choose a number from below, or type in your own boolean value (true or false).
Press Enter for the default (false).
1 / Enter AWS credentials in the next step.
\ (false)
2 / Get AWS credentials from the environment (env vars or IAM).
\ (true)
env_auth>
Option access_key_id.
AWS Access Key ID.
Leave blank for anonymous access or runtime credentials.
Enter a value. Press Enter to leave empty.
access_key_id> ACCESS_KEY
Option secret_access_key.
AWS Secret Access Key (password).
Leave blank for anonymous access or runtime credentials.
Enter a value. Press Enter to leave empty.
secret_access_key> SECRET_ACCESS_KEY
Option endpoint.
Endpoint for Linode Object Storage API.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
1 / Atlanta, GA (USA), us-southeast-1
\ (us-southeast-1.linodeobjects.com)
2 / Chicago, IL (USA), us-ord-1
\ (us-ord-1.linodeobjects.com)
3 / Frankfurt (Germany), eu-central-1
\ (eu-central-1.linodeobjects.com)
4 / Milan (Italy), it-mil-1
\ (it-mil-1.linodeobjects.com)
5 / Newark, NJ (USA), us-east-1
\ (us-east-1.linodeobjects.com)
6 / Paris (France), fr-par-1
\ (fr-par-1.linodeobjects.com)
7 / Seattle, WA (USA), us-sea-1
\ (us-sea-1.linodeobjects.com)
8 / Singapore ap-south-1
\ (ap-south-1.linodeobjects.com)
9 / Stockholm (Sweden), se-sto-1
\ (se-sto-1.linodeobjects.com)
10 / Washington, DC, (USA), us-iad-1
\ (us-iad-1.linodeobjects.com)
endpoint> 3
Option acl.
Canned ACL used when creating buckets and storing or copying objects.
This ACL is used for creating objects and if bucket_acl isn't set, for creating
buckets too.
For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-
overview.html#canned-acl
Note that this ACL is applied when server-side copying objects as S3
doesn't copy the ACL from the source but rather writes a fresh one.
If the acl is an empty string then no X-Amz-Acl: header is added and
the default (private) will be used.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
/ Owner gets FULL_CONTROL.
1 | No one else has access rights (default).
\ (private)
[snip]
acl>
Configuration complete.
Options:
- type: s3
- provider: Linode
- access_key_id: ACCESS_KEY
- secret_access_key: SECRET_ACCESS_KEY
- endpoint: eu-central-1.linodeobjects.com
Keep this "linode" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
[linode]
type = s3
provider = Linode
access_key_id = ACCESS_KEY
secret_access_key = SECRET_ACCESS_KEY
endpoint = eu-central-1.linodeobjects.com
Magalu
rclone config
Option provider.
Choose your S3 provider.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
[snip]
XX / Magalu Object Storage
\ (Magalu)
[snip]
provider> Magalu
Option env_auth.
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.
Choose a number from below, or type in your own boolean value (true or false).
Press Enter for the default (false).
1 / Enter AWS credentials in the next step.
\ (false)
2 / Get AWS credentials from the environment (env vars or IAM).
\ (true)
env_auth> 1
Option access_key_id.
AWS Access Key ID.
Leave blank for anonymous access or runtime credentials.
Enter a value. Press Enter to leave empty.
access_key_id> ACCESS_KEY
Option secret_access_key.
AWS Secret Access Key (password).
Leave blank for anonymous access or runtime credentials.
Enter a value. Press Enter to leave empty.
secret_access_key> SECRET_ACCESS_KEY
Option endpoint.
Endpoint for Magalu Object Storage API.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
1 / São Paulo, SP (BR), br-se1
\ (br-se1.magaluobjects.com)
2 / Fortaleza, CE (BR), br-ne1
\ (br-ne1.magaluobjects.com)
endpoint> 2
Option acl.
Canned ACL used when creating buckets and storing or copying objects.
This ACL is used for creating objects and if bucket_acl isn't set, for creating
buckets too.
For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-
overview.html#canned-acl
Note that this ACL is applied when server-side copying objects as S3
doesn't copy the ACL from the source but rather writes a fresh one.
If the acl is an empty string then no X-Amz-Acl: header is added and
the default (private) will be used.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
/ Owner gets FULL_CONTROL.
1 | No one else has access rights (default).
\ (private)
[snip]
acl>
Configuration complete.
Options:
- type: s3
- provider: magalu
- access_key_id: ACCESS_KEY
- secret_access_key: SECRET_ACCESS_KEY
- endpoint: br-ne1.magaluobjects.com
Keep this "magalu" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
[magalu]
type = s3
provider = Magalu
access_key_id = ACCESS_KEY
secret_access_key = SECRET_ACCESS_KEY
endpoint = br-ne1.magaluobjects.com
ArvanCloud
[ArvanCloud]
type = s3
provider = ArvanCloud
env_auth = false
access_key_id = YOURACCESSKEY
secret_access_key = YOURSECRETACCESSKEY
region =
endpoint = s3.arvanstorage.com
location_constraint =
acl =
server_side_encryption =
storage_class =
Tencent COS
rclone config
No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> cos
3. Select s3 storage.
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 ("").
access_key_id> AKIDxxxxxxxxxx
AWS Secret Access Key (password)
Leave blank for anonymous access or runtime credentials.
Enter a string value. Press Enter for the default ("").
secret_access_key> xxxxxxxxxxx
6. Select endpoint for Tencent COS. This is the standard endpoint for
different region.
1 / Beijing Region.
\ "cos.ap-beijing.myqcloud.com"
2 / Nanjing Region.
\ "cos.ap-nanjing.myqcloud.com"
3 / Shanghai Region.
\ "cos.ap-shanghai.myqcloud.com"
4 / Guangzhou Region.
\ "cos.ap-guangzhou.myqcloud.com"
[snip]
endpoint> 4
Name Type
==== ====
cos s3
Netease NOS
For Netease NOS configure as per the configurator rclone config setting
the provider Netease. This will automatically set
force_path_style = false which is necessary for it to run properly.
Petabox
rclone config
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
[snip]
XX / Amazon S3 Compliant Storage Providers including AWS, ...
\ "s3"
[snip]
Storage> s3
Option provider.
Choose your S3 provider.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
[snip]
XX / Petabox Object Storage
\ (Petabox)
[snip]
provider> Petabox
Option env_auth.
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.
Choose a number from below, or type in your own boolean value (true or false).
Press Enter for the default (false).
1 / Enter AWS credentials in the next step.
\ (false)
2 / Get AWS credentials from the environment (env vars or IAM).
\ (true)
env_auth> 1
Option access_key_id.
AWS Access Key ID.
Leave blank for anonymous access or runtime credentials.
Enter a value. Press Enter to leave empty.
access_key_id> YOUR_ACCESS_KEY_ID
Option secret_access_key.
AWS Secret Access Key (password).
Leave blank for anonymous access or runtime credentials.
Enter a value. Press Enter to leave empty.
secret_access_key> YOUR_SECRET_ACCESS_KEY
Option region.
Region where your bucket will be created and your data stored.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
1 / US East (N. Virginia)
\ (us-east-1)
2 / Europe (Frankfurt)
\ (eu-central-1)
3 / Asia Pacific (Singapore)
\ (ap-southeast-1)
4 / Middle East (Bahrain)
\ (me-south-1)
5 / South America (São Paulo)
\ (sa-east-1)
region> 1
Option endpoint.
Endpoint for Petabox S3 Object Storage.
Specify the endpoint from the same region.
Choose a number from below, or type in your own value.
1 / US East (N. Virginia)
\ (s3.petabox.io)
2 / US East (N. Virginia)
\ (s3.us-east-1.petabox.io)
3 / Europe (Frankfurt)
\ (s3.eu-central-1.petabox.io)
4 / Asia Pacific (Singapore)
\ (s3.ap-southeast-1.petabox.io)
5 / Middle East (Bahrain)
\ (s3.me-south-1.petabox.io)
6 / South America (São Paulo)
\ (s3.sa-east-1.petabox.io)
endpoint> 1
Option acl.
Canned ACL used when creating buckets and storing or copying objects.
This ACL is used for creating objects and if bucket_acl isn't set, for creating
buckets too.
For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-
overview.html#canned-acl
Note that this ACL is applied when server-side copying objects as S3
doesn't copy the ACL from the source but rather writes a fresh one.
If the acl is an empty string then no X-Amz-Acl: header is added and
the default (private) will be used.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
/ Owner gets FULL_CONTROL.
1 | No one else has access rights (default).
\ (private)
/ Owner gets FULL_CONTROL.
2 | The AllUsers group gets READ access.
\ (public-read)
/ Owner gets FULL_CONTROL.
3 | The AllUsers group gets READ and WRITE access.
| Granting this on a bucket is generally not recommended.
\ (public-read-write)
/ Owner gets FULL_CONTROL.
4 | The AuthenticatedUsers group gets READ access.
\ (authenticated-read)
/ Object owner gets FULL_CONTROL.
5 | Bucket owner gets READ access.
| If you specify this canned ACL when creating a bucket, Amazon S3 ignores
it.
\ (bucket-owner-read)
/ Both the object owner and the bucket owner get FULL_CONTROL over the
object.
6 | If you specify this canned ACL when creating a bucket, Amazon S3 ignores
it.
\ (bucket-owner-full-control)
acl> 1
Configuration complete.
Options:
- type: s3
- provider: Petabox
- access_key_id: YOUR_ACCESS_KEY_ID
- secret_access_key: YOUR_SECRET_ACCESS_KEY
- region: us-east-1
- endpoint: s3.petabox.io
Keep this "My Petabox Storage" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
Storj
Note that s3 credentials are generated when you create an access grant.
Backend quirks
Backend bugs
Due to issue #39 uploading multipart files via the S3 gateway causes
them to lose their metadata. For rclone's purpose this means that the
modification time is not stored, nor is any MD5SUM (if one is available
from the source).
- Using rclone rcat will fail as the medatada doesn't match after
upload
- Uploading files with rclone mount will fail for the same reason
- This can worked around by using --vfs-cache-mode writes or
--vfs-cache-mode full or setting --s3-upload-cutoff large
- Files uploaded via a multipart upload won't have their modtimes
- This will mean that rclone sync will likely keep trying to
upload files bigger than --s3-upload-cutoff
- This can be worked around with --checksum or --size-only or
setting --s3-upload-cutoff large
- The maximum value for --s3-upload-cutoff is 5GiB though
Use this backend and the S3 compatible Hosted Gateway to increase upload
performance and reduce the load on your systems and network. Uploads
will be encrypted and erasure-coded server-side, thus a 1GB upload will
result in only in 1GB of data being uploaded to storage nodes across the
network.
For more detailed comparison please check the documentation of the storj
backend.
Rclone loads each directory into memory as rclone objects. Each rclone
object takes 0.5k-1k of memory, so approximately 1GB per 1,000,000
files, and the sync for that directory does not begin until it is
entirely loaded in memory. So the sync can take a long time to start for
large directories.
At some point rclone will gain a sync mode which is effectively this
workaround but built in to rclone.
Limitations
See List of backends that do not support rclone about and rclone about
First run:
rclone config
n/s/q> n
Storage> s3
provider> Synology
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
access_key_id> accesskeyid
secret_access_key> secretaccesskey
region > 1
Option endpoint.
Endpoint for Synology C2 Object Storage API.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
1 / EU Endpoint 1
\ (eu-001.s3.synologyc2.net)
2 / US Endpoint 1
\ (us-001.s3.synologyc2.net)
3 / TW Endpoint 1
\ (tw-001.s3.synologyc2.net)
endpoint> 1
Option location_constraint.
Location constraint - must be set to match the Region.
Leave blank if not sure. Used when creating buckets only.
Enter a value. Press Enter to leave empty.
location_constraint>
Option no_check_bucket.
If set, don't attempt to check the bucket exists or create it.
This can be useful when trying to minimise the number of transactions
rclone does if you know the bucket exists already.
It can also be needed if the user you are using does not have bucket
creation permissions. Before v1.52.0 this would have passed silently
due to a bug.
Enter a boolean value (true or false). Press Enter for the default (true).
no_check_bucket> true
Configuration complete.
Options:
- type: s3
- provider: Synology
- region: eu-001
- endpoint: eu-001.s3.synologyc2.net
- no_check_bucket: true
Keep this "syno" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
Backblaze B2
Paths are specified as remote:bucket (or remote: for the lsd command.)
You may put subdirectories in too, e.g. remote:bucket/path/to/dir.
Configuration
rclone config
This will guide you through an interactive setup process. 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.
This remote is called remote and can now be used like this
rclone ls remote:bucket
Application Keys
B2 supports multiple Application Keys for different access permission to
B2 Buckets.
You can use these with rclone too; you will need to use rclone version
1.43 or later.
Note that you must put the applicationKeyId as the account – you can't
use the master Account ID. If you try then B2 will return 401 errors.
--fast-list
Modification times
Modified times are used in syncing and are fully supported. Note that if
a modification time needs to be updated on an object then it will create
a new version of the object.
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
SHA1 checksums
The SHA1 checksums of the files are checked on upload and download and
will be used in the syncing process.
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
for exactly which remotes support SHA1.
Sources which don't support SHA1, in particular crypt will upload large
files without SHA1 checksums. This may be fixed in the future (see
#1767).
Transfers
Note that uploading big files (bigger than 200 MiB by default) will use
a 96 MiB RAM buffer by default. There can be at most --transfers of
these in use at any moment, so this sets the upper limit on the memory
used.
Versions
If you wish to remove all the old versions, and unfinished large file
uploads, then you can use the rclone cleanup remote:bucket command which
will delete all the old versions of files, leaving the current ones
intact. You can also supply a path and only old versions under that path
will be deleted, e.g. rclone cleanup remote:bucket/path/to/stuff.
Note that cleanup will remove partially uploaded files from the bucket
if they are more than a day old. If you want more control over the
expiry date then run rclone backend cleanup b2:bucket -o max-age=1h to
remove all unfinished large file uploads older than one hour, leaving
old versions intact.
If you wish to remove all the old versions, leaving current files and
unfinished large files intact, then you can use the
rclone backend cleanup-hidden remote:bucket command. You can also supply
a path and only old versions under that path will be deleted, e.g.
rclone backend cleanup-hidden remote:bucket/path/to/stuff.
When you purge a bucket, the current and the old versions will be
deleted then the bucket will be deleted.
However delete will cause the current versions of the files to become
hidden old versions.
Show current version and all the versions with --b2-versions flag.
$ rclone -q ls b2:cleanup-test
9 one.txt
$ ls -l /tmp/one-v2016-07-04-141003-000.txt
-rw-rw-r-- 1 ncw ncw 16 Jul 2 17:46 /tmp/one-v2016-07-04-141003-000.txt
Clean up all the old versions and show that they've gone.
$ rclone -q ls b2:cleanup-test
9 one.txt
When using --b2-versions flag rclone is relying on the file name to work
out whether the objects are versions or not. Versions' names are created
by inserting timestamp between file name and its extension.
9 file.txt
8 file-v2023-07-17-161032-000.txt
16 file-v2023-06-15-141003-000.txt
If there are real files present with the same names as versions, then
behaviour of --b2-versions can be unpredictable.
Data usage
It is useful to know how many requests are sent to the server in
different scenarios.
/b2api/v1/b2_authorize_account
/b2api/v1/b2_create_bucket
/b2api/v1/b2_list_buckets
/b2api/v1/b2_list_file_names
Uploading files that do not require chunking, will send 2 requests per
file upload:
/b2api/v1/b2_get_upload_url
/b2api/v1/b2_upload_file/
/b2api/v1/b2_start_large_file
/b2api/v1/b2_get_upload_part_url
/b2api/v1/b2_upload_part/
/b2api/v1/b2_finish_large_file
Versions
$ rclone -q ls b2:cleanup-test
9 one.txt
And with
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.
Rclone supports generating file share links for private B2 buckets. They
can either be for a file for example:
you can then use the authorization token (the part of the url from the
?Authorization= on) on any file path under that directory. For example:
https://f002.backblazeb2.com/file/bucket/path/to/file1?Authorization=xxxxxxxx
https://f002.backblazeb2.com/file/bucket/path/file2?Authorization=xxxxxxxx
https://f002.backblazeb2.com/file/bucket/path/folder/file3?
Authorization=xxxxxxxx
Standard options
--b2-account
Properties:
- Config: account
- Env Var: RCLONE_B2_ACCOUNT
- Type: string
- Required: true
--b2-key
Application Key.
Properties:
- Config: key
- Env Var: RCLONE_B2_KEY
- Type: string
- Required: true
--b2-hard-delete
Properties:
- Config: hard_delete
- Env Var: RCLONE_B2_HARD_DELETE
- Type: bool
- Default: false
Advanced options
Properties:
- Config: endpoint
- Env Var: RCLONE_B2_ENDPOINT
- Type: string
- Required: false
--b2-test-mode
- "fail_some_uploads"
- "expire_some_account_authorization_tokens"
- "force_cap_exceeded"
Properties:
- Config: test_mode
- Env Var: RCLONE_B2_TEST_MODE
- Type: string
- Required: false
--b2-versions
Note that when using this no file write operations are permitted, so you
can't upload files or delete them.
Properties:
- Config: versions
- Env Var: RCLONE_B2_VERSIONS
- Type: bool
- Default: false
--b2-version-at
Note that when using this no file write operations are permitted, so you
can't upload files or delete them.
Properties:
- Config: version_at
- Env Var: RCLONE_B2_VERSION_AT
- Type: Time
- Default: off
--b2-upload-cutoff
This value should be set no larger than 4.657 GiB (== 5 GB).
Properties:
- Config: upload_cutoff
- Env Var: RCLONE_B2_UPLOAD_CUTOFF
- Type: SizeSuffix
- Default: 200Mi
--b2-copy-cutoff
Any files larger than this that need to be server-side copied will be
copied in chunks of this size.
Properties:
- Config: copy_cutoff
- Env Var: RCLONE_B2_COPY_CUTOFF
- Type: SizeSuffix
- Default: 4Gi
--b2-chunk-size
When uploading large files, chunk the file into this size.
Must fit in memory. These chunks are buffered in memory and there might
a maximum of "--transfers" chunks in progress at once.
Properties:
- Config: chunk_size
- Env Var: RCLONE_B2_CHUNK_SIZE
- Type: SizeSuffix
- Default: 96Mi
--b2-upload-concurrency
This is the number of chunks of the same file that are uploaded
concurrently.
Note that chunks are stored in memory and there may be up to
"--transfers" * "--b2-upload-concurrency" chunks stored at once in
memory.
Properties:
- Config: upload_concurrency
- Env Var: RCLONE_B2_UPLOAD_CONCURRENCY
- Type: int
- Default: 4
--b2-disable-checksum
Normally rclone will calculate the SHA1 checksum of the input before
uploading it so it can add it to metadata on the object. This is great
for data integrity checking but can cause long delays for large files to
start uploading.
Properties:
- Config: disable_checksum
- Env Var: RCLONE_B2_DISABLE_CHECKSUM
- Type: bool
- Default: false
--b2-download-url
The URL provided here SHOULD have the protocol and SHOULD NOT have a
trailing slash or specify the /file/bucket subpath as rclone will
request files with "{download_url}/file/{bucket_name}/{path}".
Properties:
- Config: download_url
- Env Var: RCLONE_B2_DOWNLOAD_URL
- Type: string
- Required: false
--b2-download-auth-duration
Properties:
- Config: download_auth_duration
- Env Var: RCLONE_B2_DOWNLOAD_AUTH_DURATION
- Type: Duration
- Default: 1w
--b2-memory-pool-flush-time
How often internal memory buffer pools will be flushed. (no longer used)
Properties:
- Config: memory_pool_flush_time
- Env Var: RCLONE_B2_MEMORY_POOL_FLUSH_TIME
- Type: Duration
- Default: 1m0s
--b2-memory-pool-use-mmap
Whether to use mmap buffers in internal memory pool. (no longer used)
Properties:
- Config: memory_pool_use_mmap
- Env Var: RCLONE_B2_MEMORY_POOL_USE_MMAP
- Type: bool
- Default: false
--b2-lifecycle
Set the number of days deleted files should be kept when creating a
bucket.
You can also enable hard_delete in the config also which will mean
deletions won't cause versions but overwrites will still cause versions
to be made.
- Config: lifecycle
- Env Var: RCLONE_B2_LIFECYCLE
- Type: int
- Default: 0
--b2-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_B2_ENCODING
- Type: Encoding
- Default: Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot
--b2-description
Properties:
- Config: description
- Env Var: RCLONE_B2_DESCRIPTION
- Type: string
- Required: false
Backend commands
The help below will explain what arguments each command takes.
See the backend command for more info on how to pass options and
arguments.
lifecycle
This command can be used to read or set the lifecycle for a bucket.
Usage Examples:
This will dump something like this showing the lifecycle rules.
[
{
"daysFromHidingToDeleting": 1,
"daysFromUploadingToHiding": null,
"fileNamePrefix": ""
}
]
If there are no lifecycle rules (the default) then it will just return
[].
This will run and then print the new lifecycle rules as above.
Rclone only lets you set lifecycles for the whole bucket with the
fileNamePrefix = "".
You can't disable versioning with B2. The best you can do is to set the
daysFromHidingToDeleting to 1 day. You can enable hard_delete in the
config also which will mean deletions won't cause versions but
overwrites will still cause versions to be made.
See: https://www.backblaze.com/docs/cloud-storage-lifecycle-rules
Options:
cleanup
This command removes unfinished large file uploads of age greater than
max-age, which defaults to 24 hours.
Note that you can use --interactive/-i or --dry-run with this command to
see what it would do.
Durations are parsed as per the rest of rclone, 2h, 7d, 7w etc.
Options:
cleanup-hidden
Note that you can use --interactive/-i or --dry-run with this command to
see what it would do.
Limitations
See List of backends that do not support rclone about and rclone about
Box
The initial setup for Box involves getting a token from Box which you
can do either in your browser, or with a config.json downloaded from Box
to use JWT authentication. rclone config walks you through it.
Configuration
rclone config
See the remote setup docs for how to set it up on a machine with no
Internet browser available.
Note that rclone runs a webserver on your local machine to collect the
token as returned from Box. This only runs from the moment it opens your
browser to the moment you get back the verification code. This is on
http://127.0.0.1:53682/ and this it may require you to unblock it
temporarily if you are running a host firewall.
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.
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.
To fix this you will need to use oauth2 again to update the refresh
token. You can use the methods in the remote setup docs, bearing in mind
that if you use the copy the config file method, you should not use that
remote on the computer you did the authentication on.
$ rclone config
Current remotes:
Name Type
==== ====
remote box
Box supports SHA1 type hashes, so you can use the --checksum flag.
File names can also not end with the following characters. These only
get replaced if they are the last character in the name:
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Transfers
For files above 50 MiB rclone will use a chunked transfer. Rclone will
upload up to --transfers chunks at the same time (shared among all the
multipart uploads). Chunks are buffered in memory and are normally 8 MiB
so increasing --transfers will increase memory use.
Deleting files
Depending on the enterprise settings for your user, the item will either
be actually deleted from Box or moved to the trash.
Emptying the trash is supported via the rclone however cleanup command
however this deletes every trashed file and folder individually so it
may take a very long time. Emptying the trash via the WebUI does not
have this limitation so it is advised to empty the trash via the WebUI.
Root folder ID
You can set the root_folder_id for rclone. This is the directory
(identified by its Folder ID) that rclone considers to be the root of
your Box drive.
Normally you will leave this blank and rclone will determine the correct
root to use itself.
In order to do this you will have to find the Folder ID 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 Box web interface.
So if the folder you want rclone to use has a URL which looks like
https://app.box.com/folder/11xxxxxxxxx8 in the browser, then you use
11xxxxxxxxx8 as the root_folder_id in the config.
Standard options
--box-client-id
Properties:
- Config: client_id
- Env Var: RCLONE_BOX_CLIENT_ID
- Type: string
- Required: false
--box-client-secret
Properties:
- Config: client_secret
- Env Var: RCLONE_BOX_CLIENT_SECRET
- Type: string
- Required: false
--box-box-config-file
Properties:
- Config: box_config_file
- Env Var: RCLONE_BOX_BOX_CONFIG_FILE
- Type: string
- Required: false
--box-access-token
Properties:
- Config: access_token
- Env Var: RCLONE_BOX_ACCESS_TOKEN
- Type: string
- Required: false
--box-box-sub-type
Properties:
- Config: box_sub_type
- Env Var: RCLONE_BOX_BOX_SUB_TYPE
- Type: string
- Default: "user"
- Examples:
- "user"
- Rclone should act on behalf of a user.
- "enterprise"
- Rclone should act on behalf of a service account.
Advanced options
--box-token
Properties:
- Config: token
- Env Var: RCLONE_BOX_TOKEN
- Type: string
- Required: false
--box-auth-url
Properties:
- Config: auth_url
- Env Var: RCLONE_BOX_AUTH_URL
- Type: string
- Required: false
--box-token-url
Properties:
- Config: token_url
- Env Var: RCLONE_BOX_TOKEN_URL
- Type: string
- Required: false
--box-root-folder-id
Fill in for rclone to use a non root folder as its starting point.
Properties:
- Config: root_folder_id
- Env Var: RCLONE_BOX_ROOT_FOLDER_ID
- Type: string
- Default: "0"
--box-upload-cutoff
Cutoff for switching to multipart upload (>= 50 MiB).
Properties:
- Config: upload_cutoff
- Env Var: RCLONE_BOX_UPLOAD_CUTOFF
- Type: SizeSuffix
- Default: 50Mi
--box-commit-retries
Properties:
- Config: commit_retries
- Env Var: RCLONE_BOX_COMMIT_RETRIES
- Type: int
- Default: 100
--box-list-chunk
Properties:
- Config: list_chunk
- Env Var: RCLONE_BOX_LIST_CHUNK
- Type: int
- Default: 1000
--box-owned-by
Only show items owned by the login (email address) passed in.
Properties:
- Config: owned_by
- Env Var: RCLONE_BOX_OWNED_BY
- Type: string
- Required: false
--box-impersonate
Setting this flag allows rclone, when using a JWT service account, to
act on behalf of another user by setting the as-user header.
The user ID is the Box identifier for a user. User IDs can found for any
user via the GET /users endpoint, which is only available to admins, or
by calling the GET /users/me endpoint with an authenticated user
session.
See: https://developer.box.com/guides/authentication/jwt/as-user/
Properties:
- Config: impersonate
- Env Var: RCLONE_BOX_IMPERSONATE
- Type: string
- Required: false
--box-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_BOX_ENCODING
- Type: Encoding
- Default: Slash,BackSlash,Del,Ctl,RightSpace,InvalidUtf8,Dot
--box-description
Properties:
- Config: description
- Env Var: RCLONE_BOX_DESCRIPTION
- Type: string
- Required: false
Limitations
Note that Box is case insensitive so you can't have a file called
"Hello.doc" and one called "hello.doc".
Box file names can't have the \ character in. rclone maps this to and
from an identical looking unicode equivalent \ (U+FF3C Fullwidth
Reverse Solidus).
Box has API rate limits that sometimes reduce the speed of rclone.
rclone about is not supported by the Box backend. Backends without this
capability cannot determine free space for an rclone mount or use policy
mfs (most free space) as a member of an rclone union remote.
See List of backends that do not support rclone about and rclone about
1. Go to the Box Developer Console and login, then click My Apps on the
sidebar. Click Create New App and select Custom App.
2. In the first screen on the box that pops up, you can pretty much
enter whatever you want. The App Name can be whatever. For Purpose
choose automation to avoid having to fill out anything else. Click
Next.
3. In the second screen of the creation screen, select
User Authentication (OAuth 2.0). Then click Create App.
4. You should now be on the Configuration tab of your new app. If not,
click on it at the top of the webpage. Copy down Client ID and
Client Secret, you'll need those for rclone.
Cache
The cache remote wraps another existing remote and stores file structure
and its data for long running tasks like rclone mount.
Status
The cache backend is due to be phased out in favour of the VFS caching
layer eventually which is more tightly integrated into rclone.
Until this happens we recommend only using the cache backend if you find
you can't work without it. There are many docs online describing the use
of the cache backend to minimize API hits and by-and-large these are out
of date and the cache backend isn't needed in those scenarios any more.
Configuration
To get started you just need to have an existing remote which can be
configured with cache.
rclone config
rclone ls test-cache:
Write Features
Offline uploading
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. The queue and the temporary storage is persistent
across restarts but can be cleared on startup with the --cache-db-purge
flag.
Write Support
Writes are supported through cache. 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.
Consider using Offline uploading for reliable writes.
One special case is covered with cache-writes 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.
Read Features
Multiple connections
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.
Plex Integration
Note: If Plex options are not configured, cache will function with its
configured options without adapting any of its settings.
How to enable? Run rclone config and add all the Plex options (endpoint,
username and password) in your remote and it will be automatically
enabled.
Certificate Validation
https://ip-with-dots-replaced.server-hash.plex.direct:32400/
The ip-with-dots-replaced part can be any IPv4 address, where the dots
have been replaced with dashes, e.g. 127.0.0.1 becomes 127-0-0-1.
https://plex.tv/api/resources?includeHttps=1&X-Plex-Token=your-plex-token
This page will list all the available Plex servers for your account with
at least one .plex.direct link for each. Copy one URL and replace the IP
address with the desired address. This can be used as the plex_url
value.
Known issues
To avoid getting in a scenario where dir cache has obsolete data and
cache would have the correct one, try to set --dir-cache-time to a lower
time than --cache-info-age. Default values are already configured in
this way.
There are a couple of issues with Windows mount functionality that still
require some investigations. It should be considered as experimental
thus far as fixes come in for this OS.
- https://github.com/rclone/rclone/issues/1935
- https://github.com/rclone/rclone/issues/1907
- https://github.com/rclone/rclone/issues/1834
Risk of throttling
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.
Future enhancements:
- https://github.com/rclone/rclone/issues/1937
- https://github.com/rclone/rclone/issues/1936
One common scenario is to keep your data encrypted in the cloud provider
using the crypt remote. crypt uses a similar technique to wrap around an
existing remote and handles this translation in a seamless way.
There is an issue with wrapping the remotes in this order: cloud remote
-> crypt -> cache
cache can not differentiate between relative and absolute paths for the
wrapped remote. Any path given in the remote 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 / character.
This behavior is irrelevant for most backend types, but there are
backends where a leading / changes the effective directory, e.g. in the
sftp backend paths starting with a / are relative to the root of the SSH
server and paths without are relative to the user home directory. As a
result sftp:bin and sftp:/bin will share the same cache folder, even if
they represent a different directory on the SSH server.
Cache supports the new --rc 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.
rc cache/expire
Standard options
--cache-remote
Remote to cache.
Properties:
- Config: remote
- Env Var: RCLONE_CACHE_REMOTE
- Type: string
- Required: true
--cache-plex-url
The URL of the Plex server.
Properties:
- Config: plex_url
- Env Var: RCLONE_CACHE_PLEX_URL
- Type: string
- Required: false
--cache-plex-username
Properties:
- Config: plex_username
- Env Var: RCLONE_CACHE_PLEX_USERNAME
- Type: string
- Required: false
--cache-plex-password
Properties:
- Config: plex_password
- Env Var: RCLONE_CACHE_PLEX_PASSWORD
- Type: string
- Required: false
--cache-chunk-size
Use lower numbers for slower connections. 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.
Properties:
- Config: chunk_size
- Env Var: RCLONE_CACHE_CHUNK_SIZE
- Type: SizeSuffix
- Default: 5Mi
- Examples:
- "1M"
- 1 MiB
- "5M"
- 5 MiB
- "10M"
- 10 MiB
--cache-info-age
Properties:
- Config: info_age
- Env Var: RCLONE_CACHE_INFO_AGE
- Type: Duration
- Default: 6h0m0s
- Examples:
- "1h"
- 1 hour
- "24h"
- 24 hours
- "48h"
- 48 hours
--cache-chunk-total-size
The total size that the chunks can take up on the local disk.
If the cache exceeds this value then it will start to delete the oldest
chunks until it goes under this value.
Properties:
- Config: chunk_total_size
- Env Var: RCLONE_CACHE_CHUNK_TOTAL_SIZE
- Type: SizeSuffix
- Default: 10Gi
- Examples:
- "500M"
- 500 MiB
- "1G"
- 1 GiB
- "10G"
- 10 GiB
Advanced options
--cache-plex-token
Properties:
- Config: plex_token
- Env Var: RCLONE_CACHE_PLEX_TOKEN
- Type: string
- Required: false
--cache-plex-insecure
Properties:
- Config: plex_insecure
- Env Var: RCLONE_CACHE_PLEX_INSECURE
- Type: string
- Required: false
--cache-db-path
Properties:
- Config: db_path
- Env Var: RCLONE_CACHE_DB_PATH
- Type: string
- Default: "$HOME/.cache/rclone/cache-backend"
--cache-chunk-path
Path to where partial file data (chunks) are stored locally. The remote
name is appended to the final path.
Properties:
- Config: chunk_path
- Env Var: RCLONE_CACHE_CHUNK_PATH
- Type: string
- Default: "$HOME/.cache/rclone/cache-backend"
--cache-db-purge
Properties:
- Config: db_purge
- Env Var: RCLONE_CACHE_DB_PURGE
- Type: bool
- Default: false
--cache-chunk-clean-interval
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.
Properties:
- Config: chunk_clean_interval
- Env Var: RCLONE_CACHE_CHUNK_CLEAN_INTERVAL
- Type: Duration
- Default: 1m0s
--cache-read-retries
For really slow connections, increase this to a point where the stream
is able to provide data but your experience will be very stuttering.
Properties:
- Config: read_retries
- Env Var: RCLONE_CACHE_READ_RETRIES
- Type: int
- Default: 10
--cache-workers
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.
Note: 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.
Properties:
- Config: workers
- Env Var: RCLONE_CACHE_WORKERS
- Type: int
- Default: 4
--cache-chunk-no-memory
By default, cache will keep file data during streaming in RAM as well to
provide it to readers as fast as possible.
Properties:
- Config: chunk_no_memory
- Env Var: RCLONE_CACHE_CHUNK_NO_MEMORY
- Type: bool
- Default: false
--cache-rps
This setting places a hard limit on the number of requests per second
that cache will be doing to the cloud provider remote and try to respect
that value by setting waits between reads.
If you find that you'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.
A good balance of all the other settings should make this setting
useless but it is available to set for more special cases.
NOTE: This will limit the number of requests during streams but other
API calls to the cloud provider like directory listings will still pass.
Properties:
- Config: rps
- Env Var: RCLONE_CACHE_RPS
- Type: int
- Default: -1
--cache-writes
If you need to read files immediately after you upload them through
cache you can enable this flag to have their data stored in the cache
store at the same time during upload.
Properties:
- Config: writes
- Env Var: RCLONE_CACHE_WRITES
- Type: bool
- Default: false
--cache-tmp-upload-path
This is the path where cache will use as a temporary storage for new
files that need to be uploaded to the cloud provider.
Properties:
- Config: tmp_upload_path
- Env Var: RCLONE_CACHE_TMP_UPLOAD_PATH
- Type: string
- Required: false
--cache-tmp-wait-time
How long should files be stored in local cache before being uploaded.
This is the duration that a file must wait in the temporary location
cache-tmp-upload-path before it is selected for upload.
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.
Properties:
- Config: tmp_wait_time
- Env Var: RCLONE_CACHE_TMP_WAIT_TIME
- Type: Duration
- Default: 15s
--cache-db-wait-time
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.
Properties:
- Config: db_wait_time
- Env Var: RCLONE_CACHE_DB_WAIT_TIME
- Type: Duration
- Default: 1s
--cache-description
Properties:
- Config: description
- Env Var: RCLONE_CACHE_DESCRIPTION
- Type: string
- Required: false
Backend commands
The help below will explain what arguments each command takes.
See the backend command for more info on how to pass options and
arguments.
stats
Chunker
The chunker overlay transparently splits large files into smaller chunks
during upload to wrapped remote and transparently assembles them back
when the file is downloaded. This allows to effectively overcome size
limits imposed by storage providers.
Configuration
Now configure chunker using rclone config. We will call this one overlay
to separate it from the remote itself.
In normal use, make sure the remote has a : in. If you specify the
remote without a : then rclone will use a local directory of that name.
So if you use a remote of /path/to/secret/files then rclone will chunk
stuff in that directory. If you use a remote of name then rclone will
put files in a directory called name in the current directory.
Chunking
When rclone starts a file upload, chunker checks the file size. If it
doesn't exceed the configured chunk size, chunker will just pass the
file to the wrapped remote (however, see caveat below). If a file is
large, chunker will transparently cut data in pieces with temporary
names and stream them one by one, on the fly. Each data chunk will
contain the specified number of bytes, except for the last one which may
have less data. If file size is unknown in advance (this is called a
streaming upload), chunker will internally create a temporary copy,
record its size and repeat the above process.
When upload completes, temporary chunk files are finally renamed. This
scheme guarantees that operations can be run in parallel and look from
outside as atomic. A similar method with hidden temporary chunks is used
for other operations (copy/move/rename, etc.). If an operation fails,
hidden chunks are normally destroyed, and the target composite file
stays intact.
When the list rclone command scans a directory on wrapped remote, the
potential chunk files are accounted for, grouped and assembled into
composite directory entries. Any temporary chunks are hidden.
List and other commands can sometimes come across composite files with
missing or invalid chunks, e.g. shadowed by like-named directory or
another file. This usually means that wrapped file system has been
directly tampered with or damaged. If chunker detects a missing chunk it
will by default print warning, skip the whole incomplete group of chunks
but proceed with current command. You can set the --chunker-fail-hard
flag to have commands abort with error message in such cases.
Chunk names
Note that list assembles composite directory entries only when chunk
names match the configured format and treats non-conforming file names
as normal non-chunked files.
Besides data chunks chunker will by default create metadata object for a
composite file. The object is named after the original file. Chunker
allows user to disable metadata completely (the none format). Note that
metadata is normally not created for files smaller than the configured
chunk size. This may change in future rclone releases.
This is the default format. It supports hash sums and chunk validation
for composite files. Meta objects carry the following fields:
There is no field for composite file name as it's simply equal to the
name of meta object on the wrapped remote. Please refer to respective
sections for details on hashsums and modified time handling.
No metadata
You can disable meta objects by setting the meta format option to none.
In this mode chunker will scan directory for all files that follow
configured chunk name format, group them by detecting chunks with the
same base name and show group names as virtual composite files. This
method is more prone to missing chunk errors (especially missing last
chunk) than format with metadata enabled.
Hashsums
Please note that by default metadata is stored only for composite files.
If a file is smaller than configured chunk size, chunker will
transparently redirect hash requests to wrapped remote, so support
depends on that. You will see the empty string as a hashsum of requested
type for small files if the wrapped remote doesn't support it.
Many storage backends support MD5 and SHA1 hash types, so does chunker.
With chunker you can choose one or another but not both. MD5 is set by
default as the most supported type. Since chunker keeps hashes for
composite files and falls back to the wrapped remote hash for
non-chunked ones, we advise you to choose the same hash type as
supported by wrapped remote so that your file listings look coherent.
If your storage backend does not support MD5 or SHA1 but you need
consistent file hashing, configure chunker with md5all or sha1all. These
two modes guarantee given hash for all files. If wrapped remote doesn't
support it, chunker will then add metadata to all files, even small.
However, this can double the amount of small files in storage and incur
additional service charges. You can even use chunker to force md5/sha1
support in any other remote at expense of sidecar meta objects by
setting e.g. hash_type=sha1all to force hashsums and chunk_size=1P to
effectively disable chunking.
Modification times
Migrations
- Collect all your chunked files under a directory and have your
chunker remote point to it.
- Create another directory (most probably on the same cloud storage)
and configure a new remote with desired metadata format, hash type,
chunk naming etc.
- Now run rclone sync --interactive oldchunks: newchunks: and all your
data will be transparently converted in transfer. This may take some
time, yet chunker will try server-side copy if possible.
- After checking data integrity you may remove configuration section
of the old remote.
Note that a move implemented using the copy-and-delete method may incur
double charging with some cloud storage providers.
Chunker will not automatically rename existing chunks when you run
rclone config on a live remote and change the chunk name format. Beware
that in result of this some files which have been treated as chunks
before the change can pop up in directory listings as normal files and
vice versa. The same warning holds for the chunk size. If you
desperately need to change critical chunking settings, you should run
data migration as described above.
Standard options
--chunker-remote
Remote to chunk/unchunk.
Properties:
- Config: remote
- Env Var: RCLONE_CHUNKER_REMOTE
- Type: string
- Required: true
--chunker-chunk-size
Properties:
- Config: chunk_size
- Env Var: RCLONE_CHUNKER_CHUNK_SIZE
- Type: SizeSuffix
- Default: 2Gi
--chunker-hash-type
Properties:
- Config: hash_type
- Env Var: RCLONE_CHUNKER_HASH_TYPE
- Type: string
- Default: "md5"
- Examples:
- "none"
- Pass any hash supported by wrapped remote for non-chunked
files.
- Return nothing otherwise.
- "md5"
- MD5 for composite files.
- "sha1"
- SHA1 for composite files.
- "md5all"
- MD5 for all files.
- "sha1all"
- SHA1 for all files.
- "md5quick"
- Copying a file to chunker will request MD5 from the source.
- Falling back to SHA1 if unsupported.
- "sha1quick"
- Similar to "md5quick" but prefers SHA1 over MD5.
Advanced options
--chunker-name-format
The two placeholders are: base file name (*) and chunk number (#...).
There must be one and only one asterisk and one or more consecutive hash
characters. If chunk number has less digits than the number of hashes,
it is left-padded by zeros. If there are more digits in the number, they
are left as is. Possible chunk files are ignored if their name does not
match given format.
Properties:
- Config: name_format
- Env Var: RCLONE_CHUNKER_NAME_FORMAT
- Type: string
- Default: "*.rclone_chunk.###"
--chunker-start-from
Minimum valid chunk number. Usually 0 or 1.
Properties:
- Config: start_from
- Env Var: RCLONE_CHUNKER_START_FROM
- Type: int
- Default: 1
--chunker-meta-format
Properties:
- Config: meta_format
- Env Var: RCLONE_CHUNKER_META_FORMAT
- Type: string
- Default: "simplejson"
- Examples:
- "none"
- Do not use metadata files at all.
- Requires hash type "none".
- "simplejson"
- Simple JSON supports hash sums and chunk validation.
-
- It has the following fields: ver, size, nchunks, md5, sha1.
--chunker-fail-hard
Choose how chunker should handle files with missing or invalid chunks.
Properties:
- Config: fail_hard
- Env Var: RCLONE_CHUNKER_FAIL_HARD
- Type: bool
- Default: false
- Examples:
- "true"
- Report errors and abort current command.
- "false"
- Warn user, skip incomplete file and proceed.
--chunker-transactions
Properties:
- Config: transactions
- Env Var: RCLONE_CHUNKER_TRANSACTIONS
- Type: string
- Default: "rename"
- Examples:
- "rename"
- Rename temporary files after a successful transaction.
- "norename"
- Leave temporary file names and write transaction ID to
metadata file.
- Metadata is required for no rename transactions (meta format
cannot be "none").
- If you are using norename transactions you should be careful
not to downgrade Rclone
- as older versions of Rclone don't support this transaction
style and will misinterpret
- files manipulated by norename transactions.
- This method is EXPERIMENTAL, don't use on production
systems.
- "auto"
- Rename or norename will be used depending on capabilities of
the backend.
- If meta format is set to "none", rename transactions will
always be used.
- This method is EXPERIMENTAL, don't use on production
systems.
--chunker-description
Properties:
- Config: description
- Env Var: RCLONE_CHUNKER_DESCRIPTION
- Type: string
- Required: false
Citrix ShareFile
Configuration
The initial setup for Citrix ShareFile involves getting a token from
Citrix ShareFile which you can in your browser. rclone config walks you
through it.
rclone config
Leave blank to access "Personal Folders". You can use one of the
standard values here or any folder ID (long hex number ID).
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
1 / Access the Personal Folders. (Default)
\ ""
2 / Access the Favorites folder.
\ "favorites"
3 / Access all the shared folders.
\ "allshared"
4 / Access all the individual connectors.
\ "connectors"
5 / Access the home, favorites, and shared folders as well as the connectors.
\ "top"
root_folder_id>
Edit advanced config? (y/n)
y) Yes
n) No
y/n> n
Remote config
Use web browser to automatically authenticate rclone with remote?
* Say Y if the machine running rclone has a web browser you can use
* Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.
y) Yes
n) No
y/n> y
If your browser doesn't open automatically go to the following link:
http://127.0.0.1:53682/auth?state=XXX
Log in and authorize rclone for access
Waiting for code...
Got code
Configuration complete.
Options:
- type: sharefile
- endpoint: https://XXX.sharefile.com
- token:
{"access_token":"XXX","token_type":"bearer","refresh_token":"XXX","expiry":"2019-
09-30T19:41:45.878561877+01:00"}
Keep this "remote" remote?
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
See the remote setup docs for how to set it up on a machine with no
Internet browser available.
Note that rclone runs a webserver on your local machine to collect the
token as returned from Citrix ShareFile. This only runs from the moment
it opens your browser to the moment you get back the verification code.
This is on http://127.0.0.1:53682/ and this it may require you to
unblock it temporarily if you are running a host firewall.
rclone ls remote:
ShareFile supports MD5 type hashes, so you can use the --checksum flag.
Transfers
For files above 128 MiB rclone will use a chunked transfer. Rclone will
upload up to --transfers chunks at the same time (shared among all the
multipart uploads). Chunks are buffered in memory and are normally 64
MiB so increasing --transfers will increase memory use.
File names can also not start or end with the following characters.
These only get replaced if they are the first or last character in the
name:
Standard options
--sharefile-client-id
Properties:
- Config: client_id
- Env Var: RCLONE_SHAREFILE_CLIENT_ID
- Type: string
- Required: false
--sharefile-client-secret
Properties:
- Config: client_secret
- Env Var: RCLONE_SHAREFILE_CLIENT_SECRET
- Type: string
- Required: false
--sharefile-root-folder-id
Leave blank to access "Personal Folders". You can use one of the
standard values here or any folder ID (long hex number ID).
Properties:
- Config: root_folder_id
- Env Var: RCLONE_SHAREFILE_ROOT_FOLDER_ID
- Type: string
- Required: false
- Examples:
- ""
- Access the Personal Folders (default).
- "favorites"
- Access the Favorites folder.
- "allshared"
- Access all the shared folders.
- "connectors"
- Access all the individual connectors.
- "top"
- Access the home, favorites, and shared folders as well as
the connectors.
Advanced options
--sharefile-token
Properties:
- Config: token
- Env Var: RCLONE_SHAREFILE_TOKEN
- Type: string
- Required: false
--sharefile-auth-url
Properties:
- Config: auth_url
- Env Var: RCLONE_SHAREFILE_AUTH_URL
- Type: string
- Required: false
--sharefile-token-url
Properties:
- Config: token_url
- Env Var: RCLONE_SHAREFILE_TOKEN_URL
- Type: string
- Required: false
--sharefile-upload-cutoff
Properties:
- Config: upload_cutoff
- Env Var: RCLONE_SHAREFILE_UPLOAD_CUTOFF
- Type: SizeSuffix
- Default: 128Mi
--sharefile-chunk-size
Properties:
- Config: chunk_size
- Env Var: RCLONE_SHAREFILE_CHUNK_SIZE
- Type: SizeSuffix
- Default: 64Mi
--sharefile-endpoint
This is usually auto discovered as part of the oauth process, but can be
set manually to something like: https://XXX.sharefile.com
Properties:
- Config: endpoint
- Env Var: RCLONE_SHAREFILE_ENDPOINT
- Type: string
- Required: false
--sharefile-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_SHAREFILE_ENCODING
- Type: Encoding
- Default:
Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,LeftSpace,LeftPer
iod,RightSpace,RightPeriod,InvalidUtf8,Dot
--sharefile-description
Properties:
- Config: description
- Env Var: RCLONE_SHAREFILE_DESCRIPTION
- Type: string
- Required: false
Limitations
Note that ShareFile is case insensitive so you can't have a file called
"Hello.doc" and one called "hello.doc".
See List of backends that do not support rclone about and rclone about
Crypt
A remote of type crypt does not access a storage system directly, but
instead wraps another remote, which in turn accesses the storage system.
This is similar to how alias, union, chunker and a few others work. It
makes the usage very flexible, as you can add a layer, in this case an
encryption layer, on top of any other backend, even in multiple layers.
Rclone's functionality can be used as with any other remote, for example
you can mount a crypt remote.
Configuration
Configure crypt using rclone config. In this example the crypt remote is
called secret, to differentiate it from the underlying remote.
When you are done you can use the crypt remote named secret just as you
would with any other remote, e.g. rclone copy D:\docs secret:\docs, and
rclone will encrypt and decrypt as needed on the fly. If you access the
wrapped remote remote:path directly you will bypass the encryption, and
anything you read will be in encrypted form, and anything you write will
be unencrypted. To avoid issues it is best to configure a dedicated path
for encrypted content, and access it exclusively through a crypt remote.
Remote to encrypt/decrypt.
Normally should contain a ':' and a path, eg "myremote:path/to/dir",
"myremote:bucket" or maybe "myremote:" (not recommended).
Enter a string value. Press Enter for the default ("").
remote> remote:path
How to encrypt the filenames.
Enter a string value. Press Enter for the default ("standard").
Choose a number from below, or type in your own value.
/ Encrypt the filenames.
1 | See the docs for the details.
\ "standard"
2 / Very simple filename obfuscation.
\ "obfuscate"
/ Don't encrypt the file names.
3 | Adds a ".bin" extension only.
\ "off"
filename_encryption>
Option to either encrypt directory names or leave them intact.
The primary use case is to specify the path into an already configured
remote (e.g. remote:path/to/dir or remote:bucket), such that data in a
remote untrusted location can be stored encrypted.
The path you specify does not have to exist, rclone will create it when
needed.
If you intend to use the wrapped remote both directly for keeping
unencrypted content, as well as through a crypt remote for encrypted
content, it is recommended to point the crypt remote to a separate
directory within the wrapped remote. If you use a bucket-based storage
system (e.g. Swift, S3, Google Compute Storage, B2) it is generally
advisable to wrap the crypt remote around a specific bucket (s3:bucket).
If wrapping around the entire root of the storage (s3:), and use the
optional file name encryption, rclone will encrypt the bucket name.
Changing password
Depending on the size of your data, your bandwidth, storage quota etc,
there are different approaches you can take: - If you have everything in
a different location, for example on your local system, you could remove
all of the prior encrypted files, change the password for your
configured crypt remote (or delete and re-create the crypt
configuration), and then re-upload everything from the alternative
location. - If you have enough space on the storage system you can
create a new crypt remote pointing to a separate directory on the same
backend, and then use rclone to copy everything from the original crypt
remote to the new, effectively decrypting everything on the fly using
the old password and re-encrypting using the new password. When done,
delete the original crypt remote directory and finally the rclone crypt
configuration with the old password. All data will be streamed from the
storage system and back, so you will get half the bandwidth and be
charged twice if you have upload and download quota on the storage
system.
Example
plaintext/
├── file0.txt
├── file1.txt
└── subdir
├── file2.txt
├── file3.txt
└── subsubdir
└── file4.txt
$ rclone -q ls remote:path
55 hagjclgavj2mbiqm6u6cnjjqcg
54 v05749mltvv1tf4onltun46gls
57 86vhrsv86mpbtd3a0akjuqslj8/dlj7fkq4kdq72emafg7a7s41uo
58
86vhrsv86mpbtd3a0akjuqslj8/7uu829995du6o42n32otfhjqp4/b9pausrfansjth5ob3jkdqd4lc
56 86vhrsv86mpbtd3a0akjuqslj8/8njh1sk437gttmep3p70g81aps
$ rclone -q ls secret:subdir
8 file2.txt
9 file3.txt
10 subsubdir/file4.txt
$ 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
Off
Standard
Obfuscation
This is a simple "rotate" of the filename, with each file having a rot
distance based on the filename. Rclone stores the distance at the
beginning of the filename. A file called "hello" may become "53.jgnnq".
Cloud storage systems have limits on file name length and total path
length which rclone is more likely to breach using "Standard" file name
encryption. Where file names are 143 or fewer characters in length
issues should not be encountered, irrespective of cloud storage
provider.
Crypt offers the option of encrypting dir names or leaving them intact.
There are two options:
True
False
Hashes are not stored for crypt. However the data integrity is protected
by an extremely strong crypto authenticator.
Standard options
--crypt-remote
Remote to encrypt/decrypt.
- Config: remote
- Env Var: RCLONE_CRYPT_REMOTE
- Type: string
- Required: true
--crypt-filename-encryption
Properties:
- Config: filename_encryption
- Env Var: RCLONE_CRYPT_FILENAME_ENCRYPTION
- Type: string
- Default: "standard"
- Examples:
- "standard"
- Encrypt the filenames.
- See the docs for the details.
- "obfuscate"
- Very simple filename obfuscation.
- "off"
- Don't encrypt the file names.
- Adds a ".bin", or "suffix" extension only.
--crypt-directory-name-encryption
Properties:
- Config: directory_name_encryption
- Env Var: RCLONE_CRYPT_DIRECTORY_NAME_ENCRYPTION
- Type: bool
- Default: true
- Examples:
- "true"
- Encrypt directory names.
- "false"
- Don't encrypt directory names, leave them intact.
--crypt-password
Properties:
- Config: password
- Env Var: RCLONE_CRYPT_PASSWORD
- Type: string
- Required: true
--crypt-password2
Password or pass phrase for salt.
Properties:
- Config: password2
- Env Var: RCLONE_CRYPT_PASSWORD2
- Type: string
- Required: false
Advanced options
--crypt-server-side-across-configs
Normally this option is not what you want, but if you have two crypts
pointing to the same backend you can use it.
This can be used, for example, to change file name encryption type
without re-uploading all the data. Just make two crypt backends pointing
to two different directories with the single changed parameter and use
rclone move to move the files between the crypt remotes.
Properties:
- Config: server_side_across_configs
- Env Var: RCLONE_CRYPT_SERVER_SIDE_ACROSS_CONFIGS
- Type: bool
- Default: false
--crypt-show-mapping
If this flag is set then for each file that the remote is asked to list,
it will log (at level INFO) a line stating the decrypted file name and
the encrypted file name.
This is so you can work out which encrypted names are which decrypted
names just in case you need to do something with the encrypted file
names, or for debugging purposes.
Properties:
- Config: show_mapping
- Env Var: RCLONE_CRYPT_SHOW_MAPPING
- Type: bool
- Default: false
--crypt-no-data-encryption
Properties:
- Config: no_data_encryption
- Env Var: RCLONE_CRYPT_NO_DATA_ENCRYPTION
- Type: bool
- Default: false
- Examples:
- "true"
- Don't encrypt file data, leave it unencrypted.
- "false"
- Encrypt file data.
--crypt-pass-bad-blocks
Properties:
- Config: pass_bad_blocks
- Env Var: RCLONE_CRYPT_PASS_BAD_BLOCKS
- Type: bool
- Default: false
--crypt-strict-names
If set, this will raise an error when crypt comes across a filename that
can't be decrypted.
(By default, rclone will just log a NOTICE and continue as normal.) This
can happen if encrypted and unencrypted files are stored in the same
directory (which is not recommended.) It may also indicate a more
serious problem that should be investigated.
Properties:
- Config: strict_names
- Env Var: RCLONE_CRYPT_STRICT_NAMES
- Type: bool
- Default: false
--crypt-filename-encoding
This option could help with shortening the encrypted filename. The
suitable option would depend on the way your remote count the filename
length and if it's case sensitive.
Properties:
- Config: filename_encoding
- Env Var: RCLONE_CRYPT_FILENAME_ENCODING
- Type: string
- Default: "base32"
- Examples:
- "base32"
- Encode using base32. Suitable for all remote.
- "base64"
- Encode using base64. Suitable for case sensitive remote.
- "base32768"
- Encode using base32768. Suitable if your remote counts
UTF-16 or
- Unicode codepoint instead of UTF-8 byte length. (Eg.
Onedrive, Dropbox)
--crypt-suffix
Properties:
- Config: suffix
- Env Var: RCLONE_CRYPT_SUFFIX
- Type: string
- Default: ".bin"
--crypt-description
Properties:
- Config: description
- Env Var: RCLONE_CRYPT_DESCRIPTION
- Type: string
- Required: false
Metadata
Backend commands
The help below will explain what arguments each command takes.
See the backend command for more info on how to pass options and
arguments.
These can be run on a running backend using the rc command
backend/command.
encode
Usage Example:
decode
Usage Example:
For example, let's say you have your original remote at remote: with the
encrypted version at eremote: with path remote:crypt. You would then set
up the new remote remote2: and then the encrypted version eremote2: with
path remote2:crypt using the same passwords as eremote:.
File formats
File encryption
Files are encrypted 1:1 source file to destination object. The file has
a header and is divided into chunks.
Header
The initial nonce is generated from the operating systems crypto strong
random number generator. The nonce is incremented for each chunk read
making sure each nonce is unique for each block written. The chance of a
nonce being reused is minuscule. If you wrote an exabyte of data (10¹⁸
bytes) you would have a probability of approximately 2×10⁻³² of re-using
a nonce.
Chunk
Each chunk will contain 64 KiB 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.
64k chunk size was chosen as the best performing chunk size (the
authenticator takes too much time below this and the performance drops
off due to cache effects above this). Note that these chunks are
buffered in memory so they can't be too big.
This uses a 32 byte (256 bit key) key derived from the user password.
Examples
- 32 bytes header
- 17 bytes data chunk
49 bytes total
- 32 bytes header
- 16 chunks of 65568 bytes
1049120 bytes total (a 0.05% overhead). This is the overhead for big
files.
Name encryption
File names are encrypted segment by segment - the path is broken up into
/ separated strings and these are encrypted individually.
File segments are padded using PKCS#7 to a multiple of 16 bytes before
encryption.
They are then encrypted with EME using AES with 256 bit key. EME
(ECB-Mix-ECB) is a wide-block encryption mode presented in the 2003
paper "A Parallelizable Enciphering Mode" by Halevi and Rogaway.
This makes for deterministic encryption which is what we want - the same
filename must encrypt to the same thing otherwise we can't find it on
the cloud storage system.
This uses a 32 byte key (256 bits) and a 16 byte (128 bits) IV both of
which are derived from the user password.
base32 is used rather than the more efficient base64 so rclone can be
used on case insensitive remotes (e.g. Windows, Box, Dropbox, Onedrive
etc).
Key derivation
Rclone uses scrypt with parameters N=16384, r=8, p=1 with an optional
user supplied salt (password2) to derive the 32+32+16 = 80 bytes of key
material required. If the user doesn't supply a salt then rclone uses an
internal one.
SEE ALSO
Compress
Warning
This remote is currently experimental. Things may break and data may be
lost. Anything you do with this remote is at your own risk. Please
understand the risks associated with using experimental code and don't
use this remote in critical applications.
Configuration
To use this remote, all you need to do is specify another remote and a
compression mode to use:
Current remotes:
Name Type
==== ====
remote_to_press sometype
Remote to compress.
Enter a string value. Press Enter for the default ("").
remote> remote_to_press:subdir
Compression mode.
Enter a string value. Press Enter for the default ("gzip").
Choose a number from below, or type in your own value
1 / Gzip compression balanced for speed and compression strength.
\ "gzip"
compression_mode> gzip
Edit advanced config? (y/n)
y) Yes
n) No (default)
y/n> n
Remote config
--------------------
[compress]
type = compress
remote = remote_to_press:subdir
compression_mode = gzip
--------------------
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
Compression Modes
If you open a remote wrapped by compress, you will see that there are
many files with an extension corresponding to the compression algorithm
you chose. These files are standard files that can be opened by various
archive programs, but they have some hidden metadata that allows them to
be used by rclone. While you may download and decompress these files at
will, do not manually delete or rename files. Files without correct
metadata files will not be recognized by rclone.
File names
Standard options
--compress-remote
Remote to compress.
Properties:
- Config: remote
- Env Var: RCLONE_COMPRESS_REMOTE
- Type: string
- Required: true
--compress-mode
Compression mode.
Properties:
- Config: mode
- Env Var: RCLONE_COMPRESS_MODE
- Type: string
- Default: "gzip"
- Examples:
- "gzip"
- Standard gzip compression with fastest parameters.
Advanced options
--compress-level
Properties:
- Config: level
- Env Var: RCLONE_COMPRESS_LEVEL
- Type: int
- Default: -1
--compress-ram-cache-limit
Some remotes don't allow the upload of files with unknown size. In this
case the compressed file will need to be cached to determine it's size.
Files smaller than this limit will be cached in RAM, files larger than
this limit will be cached on disk.
Properties:
- Config: ram_cache_limit
- Env Var: RCLONE_COMPRESS_RAM_CACHE_LIMIT
- Type: SizeSuffix
- Default: 20Mi
--compress-description
Properties:
- Config: description
- Env Var: RCLONE_COMPRESS_DESCRIPTION
- Type: string
- Required: false
Metadata
Combine
The combine backend joins remotes together into a single directory tree.
For example you might have a remote for images on one provider:
During the initial setup with rclone config you will specify the
upstreams remotes as a space separated list. The upstream remotes can
either be a local paths or other remotes.
Configuration
rclone config
Rclone has a convenience feature for making a combine backend for all
the shared drives you have access to.
Assuming your main (non shared drive) Google drive remote is called
drive: you would run
[My Drive]
type = alias
remote = drive,team_drive=0ABCDEF-01234567890,root_folder_id=:
[Test Drive]
type = alias
remote = drive,team_drive=0ABCDEFabcdefghijkl,root_folder_id=:
[AllDrives]
type = combine
upstreams = "My Drive=My Drive:" "Test Drive=Test Drive:"
If you then add that config to your config file (find it with
rclone config file) then you can access all the shared drives in one
place with the AllDrives: remote.
Standard options
--combine-upstreams
dir=remote:path dir2=remote2:path
Where before the = is specified the root directory and after is the
remote to put there.
Properties:
- Config: upstreams
- Env Var: RCLONE_COMBINE_UPSTREAMS
- Type: SpaceSepList
- Default:
Advanced options
--combine-description
Properties:
- Config: description
- Env Var: RCLONE_COMBINE_DESCRIPTION
- Type: string
- Required: false
Metadata
Dropbox
Configuration
The initial setup for dropbox involves getting a token from Dropbox
which you need to do in your browser. rclone config walks you through
it.
rclone config
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
[snip]
XX / Dropbox
\ "dropbox"
[snip]
Storage> dropbox
Dropbox App Key - leave blank normally.
app_key>
Dropbox App Secret - leave blank normally.
app_secret>
Remote config
Please visit:
https://www.dropbox.com/1/oauth2/authorize?
client_id=XXXXXXXXXXXXXXX&response_type=code
Enter the code: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXXXXXXXX
Configuration complete.
Options:
- type: dropbox
- app_key:
- app_secret:
- token: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXX_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Keep this "remote" remote?
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
See the remote setup docs for how to set it up on a machine with no
Internet browser available.
Note that rclone runs a webserver on your local machine to collect the
token as returned from Dropbox. This only runs from the moment it opens
your browser to the moment you get back the verification code. This is
on http://127.0.0.1:53682/ and it may require you to unblock it
temporarily if you are running a host firewall, or use manual mode.
rclone ls remote:
If you wish to see Team Folders you must use a leading / in the path, so
rclone lsd remote:/ will refer to the root and show you all Team Folders
and your User Folder.
You can then use team folders like this remote:/TeamFolder and
remote:/TeamFolder/path/to/file.
Dropbox supports modified times, but the only way to set a modification
time is to re-upload the file.
This means that if you uploaded your data with an older version of
rclone which didn't support the v2 API and modified times, rclone will
decide to upload all your old data to fix the modification times. If you
don't want this to happen use --size-only or --checksum flag to stop it.
Dropbox supports its own hash type which is checked for all transfers.
File names can also not end with the following characters. These only
get replaced if they are the last character in the name:
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Using batch mode uploads is very important for performance when using
the Dropbox API. See the dropbox performance guide for more info.
--dropbox-batch-mode off
In this mode rclone will not use upload batching. This was the default
before rclone v1.55. It has the disadvantage that it is very likely to
encounter too_many_requests errors like this
When rclone receives these it has to wait for 15s or sometimes 300s
before continuing which really slows down transfers.
--dropbox-batch-mode sync
Using this mode means you can use a much higher --transfers parameter
(32 or 64 works fine) without receiving too_many_requests errors.
Note that there may be a pause when quitting rclone while rclone
finishes up the last batch using this mode.
--dropbox-batch-mode async
However it will not wait for the status of the batch to be returned to
the caller. This means rclone can use a much bigger batch size (much
bigger than --transfers), at the cost of not being able to check the
status of the upload.
This provides the maximum possible upload speed especially with lots of
small files, however rclone can't check the file got uploaded properly
using this mode.
If you are using this mode then using "rclone check" after the transfer
completes is recommended. Or you could do an initial transfer with
--dropbox-batch-mode async then do a final transfer with
--dropbox-batch-mode sync (the default).
Note that there may be a pause when quitting rclone while rclone
finishes up the last batch using this mode.
Standard options
--dropbox-client-id
Properties:
- Config: client_id
- Env Var: RCLONE_DROPBOX_CLIENT_ID
- Type: string
- Required: false
--dropbox-client-secret
Properties:
- Config: client_secret
- Env Var: RCLONE_DROPBOX_CLIENT_SECRET
- Type: string
- Required: false
Advanced options
--dropbox-token
Properties:
- Config: token
- Env Var: RCLONE_DROPBOX_TOKEN
- Type: string
- Required: false
--dropbox-auth-url
Properties:
- Config: auth_url
- Env Var: RCLONE_DROPBOX_AUTH_URL
- Type: string
- Required: false
--dropbox-token-url
Properties:
- Config: token_url
- Env Var: RCLONE_DROPBOX_TOKEN_URL
- Type: string
- Required: false
--dropbox-chunk-size
Any files larger than this will be uploaded in chunks of this size.
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 128 MiB in tests) at the cost of using more memory. It
can be set smaller if you are tight on memory.
Properties:
- Config: chunk_size
- Env Var: RCLONE_DROPBOX_CHUNK_SIZE
- Type: SizeSuffix
- Default: 48Mi
--dropbox-impersonate
Note that if you want to use impersonate, you should make sure this flag
is set when running "rclone config" as this will cause rclone to request
the "members.read" scope which it won't normally. This is needed to
lookup a members email address into the internal ID that dropbox uses in
the API.
You will have to use your own App (setting your own client_id and
client_secret) to use this option as currently rclone's default set of
permissions doesn't include "members.read". This can be added once v1.55
or later is in use everywhere.
Properties:
- Config: impersonate
- Env Var: RCLONE_DROPBOX_IMPERSONATE
- Type: string
- Required: false
--dropbox-shared-files
In this mode rclone's features are extremely limited - only list (ls,
lsl, etc.) operations and read operations (e.g. downloading) are
supported in this mode. All other operations will be disabled.
Properties:
- Config: shared_files
- Env Var: RCLONE_DROPBOX_SHARED_FILES
- Type: bool
- Default: false
--dropbox-shared-folders
When this flag is used with no path only the List operation is supported
and all available shared folders will be listed. If you specify a path
the first part will be interpreted as the name of shared folder. Rclone
will then try to mount this shared to the root namespace. On success
shared folder rclone proceeds normally. The shared folder is now pretty
much a normal folder and all normal operations are supported.
Properties:
- Config: shared_folders
- Env Var: RCLONE_DROPBOX_SHARED_FOLDERS
- Type: bool
- Default: false
--dropbox-pacer-min-sleep
Properties:
- Config: pacer_min_sleep
- Env Var: RCLONE_DROPBOX_PACER_MIN_SLEEP
- Type: Duration
- Default: 10ms
--dropbox-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_DROPBOX_ENCODING
- Type: Encoding
- Default: Slash,BackSlash,Del,RightSpace,InvalidUtf8,Dot
--dropbox-root-namespace
Properties:
- Config: root_namespace
- Env Var: RCLONE_DROPBOX_ROOT_NAMESPACE
- Type: string
- Required: false
--dropbox-batch-mode
- off - no batching
- sync - batch uploads and check completion (default)
- async - batch upload and don't check completion
Rclone will close any outstanding batches when it exits which may make a
delay on quit.
Properties:
- Config: batch_mode
- Env Var: RCLONE_DROPBOX_BATCH_MODE
- Type: string
- Default: "sync"
--dropbox-batch-size
This sets the batch size of files to upload. It has to be less than
1000.
By default this is 0 which means rclone will calculate the batch size
depending on the setting of batch_mode.
Rclone will close any outstanding batches when it exits which may make a
delay on quit.
Setting this is a great idea if you are uploading lots of small files as
it will make them a lot quicker. You can use --transfers 32 to maximise
throughput.
Properties:
- Config: batch_size
- Env Var: RCLONE_DROPBOX_BATCH_SIZE
- Type: int
- Default: 0
--dropbox-batch-timeout
If an upload batch is idle for more than this long then it will be
uploaded.
The default for this is 0 which means rclone will choose a sensible
default based on the batch_mode in use.
Properties:
- Config: batch_timeout
- Env Var: RCLONE_DROPBOX_BATCH_TIMEOUT
- Type: Duration
- Default: 0s
--dropbox-batch-commit-timeout
- Config: batch_commit_timeout
- Env Var: RCLONE_DROPBOX_BATCH_COMMIT_TIMEOUT
- Type: Duration
- Default: 10m0s
--dropbox-description
Properties:
- Config: description
- Env Var: RCLONE_DROPBOX_DESCRIPTION
- Type: string
- Required: false
Limitations
Note that Dropbox is case insensitive so you can't have a file called
"Hello.doc" and one called "hello.doc".
There are some file names such as thumbs.db which Dropbox can't store.
There is a full list of them in the "Ignored Files" section of this
document. Rclone will issue an error message
File name disallowed - not uploading if it attempts to upload one of
those file names, but the sync won't fail.
When you use rclone with Dropbox in its default configuration you are
using rclone's App ID. This is shared between all the rclone users.
1. Log into the Dropbox App console with your Dropbox Account (It need
not to be the same account as the Dropbox you want to access)
4. Name your App. The app name is global, so you can't use rclone for
example
8. Find the App key and App secret values on the Settings tab. Use
these values in rclone config to add a new remote or edit an
existing remote. The App key setting corresponds to client_id in
rclone config, the App secret corresponds to client_secret
This backend supports Storage Made Easy's Enterprise File Fabric™ which
provides a software solution to integrate and unify File and Object
Storage accessible through a global file system.
Configuration
The initial setup for the Enterprise File Fabric backend involves
getting a token from the Enterprise File Fabric which you need to do in
your browser. rclone config walks you through it.
rclone config
rclone ls remote:
The Enterprise File Fabric does not support any data hashes at this
time.
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Empty files
Empty files aren't supported by the Enterprise File Fabric. Rclone will
therefore upload an empty file as a single space with a mime type of
application/vnd.rclone.empty.file and files with that mime type are
treated as empty.
Root folder ID
You can set the root_folder_id for rclone. This is the directory
(identified by its Folder ID) that rclone considers to be the root of
your Enterprise File Fabric.
Normally you will leave this blank and rclone will determine the correct
root to use itself.
In order to do this you will have to find the Folder ID of the directory
you wish rclone to display. These aren't displayed in the web interface,
but you can use rclone lsf to find them, for example
Standard options
--filefabric-url
- Config: url
- Env Var: RCLONE_FILEFABRIC_URL
- Type: string
- Required: true
- Examples:
- "https://storagemadeeasy.com"
- Storage Made Easy US
- "https://eu.storagemadeeasy.com"
- Storage Made Easy EU
- "https://yourfabric.smestorage.com"
- Connect to your Enterprise File Fabric
--filefabric-root-folder-id
Properties:
- Config: root_folder_id
- Env Var: RCLONE_FILEFABRIC_ROOT_FOLDER_ID
- Type: string
- Required: false
--filefabric-permanent-token
Properties:
- Config: permanent_token
- Env Var: RCLONE_FILEFABRIC_PERMANENT_TOKEN
- Type: string
- Required: false
Advanced options
--filefabric-token
Session Token.
This is a session token which rclone caches in the config file. It is
usually valid for 1 hour.
Properties:
- Config: token
- Env Var: RCLONE_FILEFABRIC_TOKEN
- Type: string
- Required: false
--filefabric-token-expiry
Properties:
- Config: token_expiry
- Env Var: RCLONE_FILEFABRIC_TOKEN_EXPIRY
- Type: string
- Required: false
--filefabric-version
Properties:
- Config: version
- Env Var: RCLONE_FILEFABRIC_VERSION
- Type: string
- Required: false
--filefabric-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_FILEFABRIC_ENCODING
- Type: Encoding
- Default: Slash,Del,Ctl,InvalidUtf8,Dot
--filefabric-description
Properties:
- Config: description
- Env Var: RCLONE_FILEFABRIC_DESCRIPTION
- Type: string
- Required: false
Files.com
Files.com is a cloud storage service that provides a secure and easy way
to store and share files.
Configuration
rclone config
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
[snip]
XX / Files.com
\ "filescom"
[snip]
Storage> filescom
Option site.
Your site subdomain (e.g. mysite) or custom domain (e.g.
myfiles.customdomain.com)
Enter a value. Press Enter to leave empty.
site> mysite
Option username.
The username used to authenticate with Files.com.
Enter a value. Press Enter to leave empty.
username> user
Option password.
The password used to authenticate with Files.com.
Choose an alternative below. Press Enter for the default (n).
y) Yes, type in my own password
g) Generate random password
n) No, leave this optional password blank (default)
y/g/n> y
Enter the password:
password:
Confirm the password:
password:
Configuration complete.
Options:
- type: filescom
- site: mysite
- username: user
- password: *** ENCRYPTED ***
Keep this "remote" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
rclone ls remote:
Standard options
--filescom-site
Properties:
- Config: site
- Env Var: RCLONE_FILESCOM_SITE
- Type: string
- Required: false
--filescom-username
- Config: username
- Env Var: RCLONE_FILESCOM_USERNAME
- Type: string
- Required: false
--filescom-password
Properties:
- Config: password
- Env Var: RCLONE_FILESCOM_PASSWORD
- Type: string
- Required: false
Advanced options
--filescom-api-key
Properties:
- Config: api_key
- Env Var: RCLONE_FILESCOM_API_KEY
- Type: string
- Required: false
--filescom-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_FILESCOM_ENCODING
- Type: Encoding
- Default:
Slash,BackSlash,Del,Ctl,RightSpace,RightCrLfHtVt,InvalidUtf8,Dot
--filescom-description
Properties:
- Config: description
- Env Var: RCLONE_FILESCOM_DESCRIPTION
- Type: string
- Required: false
FTP
FTP is the File Transfer Protocol. Rclone FTP support is provided using
the github.com/jlaffaye/ftp package.
Paths are specified as remote:path. If the path does not begin with a /
it is relative to the home directory of the user. An empty path remote:
refers to the user's home directory.
Configuration
rclone config
rclone ls remote:path/to/directory
Anonymous FTP
When connecting to a FTP server that allows anonymous login, you can use
the special "anonymous" username. Traditionally, this user account
accepts any string as a password, although it is common to use either
the password "anonymous" or "guest". Some servers require the use of a
valid e-mail address as password.
The above examples work in Linux shells and in PowerShell, but not
Windows Command Prompt. They execute the rclone obscure command to
create a password string in the format required by the pass option. The
following examples are exactly the same, except use an already obscured
string representation of the same password "dummy", and therefore works
even in Windows Command Prompt:
rclone lsf :ftp: --ftp-host=speedtest.tele2.net --ftp-user=anonymous --ftp-
pass=IXs2wc8OJOz7SYLBk47Ji1rHTmxM
rclone
lsf :ftp,host=speedtest.tele2.net,user=anonymous,pass=IXs2wc8OJOz7SYLBk47Ji1rHTmxM:
Implicit TLS
Rlone FTP supports implicit FTP over TLS servers (FTPS). This has to be
enabled in the FTP backend config for the remote, or with --ftp-tls. The
default FTPS port is 990, not 21 and can be set with --ftp-port.
Not all FTP servers can have all characters in file names, for example:
Standard options
--ftp-host
E.g. "ftp.example.com".
Properties:
- Config: host
- Env Var: RCLONE_FTP_HOST
- Type: string
- Required: true
--ftp-user
FTP username.
Properties:
- Config: user
- Env Var: RCLONE_FTP_USER
- Type: string
- Default: "$USER"
--ftp-port
Properties:
- Config: port
- Env Var: RCLONE_FTP_PORT
- Type: int
- Default: 21
--ftp-pass
FTP password.
Properties:
- Config: pass
- Env Var: RCLONE_FTP_PASS
- Type: string
- Required: false
--ftp-tls
When using implicit FTP over TLS the client connects using TLS right
from the start which breaks compatibility with non-TLS-aware servers.
This is usually served over port 990 rather than port 21. Cannot be used
in combination with explicit FTPS.
Properties:
- Config: tls
- Env Var: RCLONE_FTP_TLS
- Type: bool
- Default: false
--ftp-explicit-tls
When using explicit FTP over TLS the client explicitly requests security
from the server in order to upgrade a plain text connection to an
encrypted one. Cannot be used in combination with implicit FTPS.
Properties:
- Config: explicit_tls
- Env Var: RCLONE_FTP_EXPLICIT_TLS
- Type: bool
- Default: false
Advanced options
--ftp-concurrency
If you are doing a sync or copy then make sure concurrency is one more
than the sum of --transfers and --checkers.
If you use --check-first then it just needs to be one more than the
maximum of --checkers and --transfers.
Properties:
- Config: concurrency
- Env Var: RCLONE_FTP_CONCURRENCY
- Type: int
- Default: 0
--ftp-no-check-certificate
Properties:
- Config: no_check_certificate
- Env Var: RCLONE_FTP_NO_CHECK_CERTIFICATE
- Type: bool
- Default: false
--ftp-disable-epsv
Properties:
- Config: disable_epsv
- Env Var: RCLONE_FTP_DISABLE_EPSV
- Type: bool
- Default: false
--ftp-disable-mlsd
Properties:
- Config: disable_mlsd
- Env Var: RCLONE_FTP_DISABLE_MLSD
- Type: bool
- Default: false
--ftp-disable-utf8
Properties:
- Config: disable_utf8
- Env Var: RCLONE_FTP_DISABLE_UTF8
- Type: bool
- Default: false
--ftp-writing-mdtm
Properties:
- Config: writing_mdtm
- Env Var: RCLONE_FTP_WRITING_MDTM
- Type: bool
- Default: false
--ftp-force-list-hidden
Use LIST -a to force listing of hidden files and folders. This will
disable the use of MLSD.
Properties:
- Config: force_list_hidden
- Env Var: RCLONE_FTP_FORCE_LIST_HIDDEN
- Type: bool
- Default: false
--ftp-idle-timeout
Properties:
- Config: idle_timeout
- Env Var: RCLONE_FTP_IDLE_TIMEOUT
- Type: Duration
- Default: 1m0s
--ftp-close-timeout
Properties:
- Config: close_timeout
- Env Var: RCLONE_FTP_CLOSE_TIMEOUT
- Type: Duration
- Default: 1m0s
--ftp-tls-cache-size
Size of TLS session cache for all control and data connections.
TLS cache allows to resume TLS sessions and reuse PSK between
connections. Increase if default size is not enough resulting in TLS
resumption errors. Enabled by default. Use 0 to disable.
Properties:
- Config: tls_cache_size
- Env Var: RCLONE_FTP_TLS_CACHE_SIZE
- Type: int
- Default: 32
--ftp-disable-tls13
Disable TLS 1.3 (workaround for FTP servers with buggy TLS)
Properties:
- Config: disable_tls13
- Env Var: RCLONE_FTP_DISABLE_TLS13
- Type: bool
- Default: false
--ftp-shut-timeout
Properties:
- Config: shut_timeout
- Env Var: RCLONE_FTP_SHUT_TIMEOUT
- Type: Duration
- Default: 1m0s
--ftp-ask-password
If this is set and no password is supplied then rclone will ask for a
password
Properties:
- Config: ask_password
- Env Var: RCLONE_FTP_ASK_PASSWORD
- Type: bool
- Default: false
--ftp-socks-proxy
myUser:myPass@localhost:9005
Properties:
- Config: socks_proxy
- Env Var: RCLONE_FTP_SOCKS_PROXY
- Type: string
- Required: false
--ftp-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_FTP_ENCODING
- Type: Encoding
- Default: Slash,Del,Ctl,RightSpace,Dot
- Examples:
- "Asterisk,Ctl,Dot,Slash"
- ProFTPd can't handle '*' in file names
- "BackSlash,Ctl,Del,Dot,RightSpace,Slash,SquareBracket"
- PureFTPd can't handle '[]' or '*' in file names
- "Ctl,LeftPeriod,Slash"
- VsFTPd can't handle file names starting with dot
--ftp-description
Properties:
- Config: description
- Env Var: RCLONE_FTP_DESCRIPTION
- Type: string
- Required: false
Limitations
FTP servers acting as rclone remotes must support passive mode. The mode
cannot be configured as passive is the only supported one. Rclone's FTP
implementation is not compatible with active mode as the library it uses
doesn't support it. This will likely never be supported due to security
concerns.
Rclone's FTP backend does not support any checksums but can compare file
sizes.
rclone about is not supported by the FTP backend. Backends without this
capability cannot determine free space for an rclone mount or use policy
mfs (most free space) as a member of an rclone union remote.
See List of backends that do not support rclone about and rclone about
Rclone's FTP backend could support server-side move but does not at
present.
Modification times
Support for precise file time with other FTP servers varies depending on
what protocol extensions they advertise. If all the MLSD, MDTM and MFTM
extensions are present, rclone will use them together to provide precise
time. Otherwise the times you see on the FTP server through rclone are
those of the last file upload.
You can use the following command to check whether rclone can use
precise time with your FTP server:
rclone backend features your_ftp_remote: (the trailing colon is
important). Look for the number in the line tagged by Precision
designating the remote time precision expressed as nanoseconds. A value
of 1000000000 means that file time precision of 1 second is available. A
value of 3153600000000000000 (or another large number) means
"unsupported".
Gofile
The initial setup for Gofile involves logging in to the web interface
and going to the "My Profile" section. Copy the "Account API token" for
use in the config file.
Note that if you wish to connect rclone to Gofile you will need a
premium account.
Configuration
rclone config
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
XX / Gofile
\ (gofile)
Storage> gofile
Option access_token.
API Access token
You can get this from the web control panel.
Enter a value. Press Enter to leave empty.
access_token> YOURACCESSTOKEN
Configuration complete.
Options:
- type: gofile
- access_token: YOURACCESSTOKEN
Keep this "remote" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
Gofile supports MD5 hashes, so you can use the --checksum flag.
File names can also not start or end with the following characters.
These only get replaced if they are the first or last character in the
name:
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Public Links
Root folder ID
You can set the root_folder_id for rclone. This is the directory
(identified by its Folder ID) that rclone considers to be the root of
your Gofile drive.
Normally you will leave this blank and rclone will determine the correct
root to use itself and fill in the value in the config file.
In order to do this you will have to find the Folder ID of the directory
you wish rclone to display.
root_folder_id = d6341f53-ee65-4f29-9f59-d11e8070b2a0
Standard options
Here are the Standard options specific to gofile (Gofile).
--gofile-access-token
Properties:
- Config: access_token
- Env Var: RCLONE_GOFILE_ACCESS_TOKEN
- Type: string
- Required: false
Advanced options
--gofile-root-folder-id
Properties:
- Config: root_folder_id
- Env Var: RCLONE_GOFILE_ROOT_FOLDER_ID
- Type: string
- Required: false
--gofile-account-id
Account ID
Properties:
- Config: account_id
- Env Var: RCLONE_GOFILE_ACCOUNT_ID
- Type: string
- Required: false
--gofile-list-chunk
Properties:
- Config: list_chunk
- Env Var: RCLONE_GOFILE_LIST_CHUNK
- Type: int
- Default: 1000
--gofile-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_GOFILE_ENCODING
- Type: Encoding
- Default:
Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,LeftPeriod,Ri
ghtPeriod,InvalidUtf8,Dot,Exclamation
--gofile-description
Properties:
- Config: description
- Env Var: RCLONE_GOFILE_DESCRIPTION
- Type: string
- Required: false
Limitations
Directories should not be cached for more than 24h otherwise files in
the directory may not be downloadable. In practice this means when using
a VFS based rclone command such as rclone mount you should make sure
--dir-cache-time is less than 24h.
Duplicated files
Rclone cannot sync that to a normal file system but it can be fixed with
the rclone dedupe command.
Duplicated files cause problems with the syncing and you will see
messages in the log about duplicates.
Paths are specified as remote:bucket (or remote: for the lsd command.)
You may put subdirectories in too, e.g. remote:bucket/path/to/dir.
Configuration
The initial setup for google cloud storage involves getting a token from
Google Cloud Storage which you need to do in your browser. rclone config
walks you through it.
rclone config
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
[snip]
XX / Google Cloud Storage (this is not Google Drive)
\ "google cloud storage"
[snip]
Storage> google cloud storage
Google Application Client Id - leave blank normally.
client_id>
Google Application Client Secret - leave blank normally.
client_secret>
Project number optional - needed only for list/create/delete buckets - see your
developer console.
project_number> 12345678
Service Account Credentials JSON file path - needed only if you want use SA
instead of interactive login.
service_account_file>
Access Control List for new objects.
Choose a number from below, or type in your own value
1 / Object owner gets OWNER access, and all Authenticated Users get READER
access.
\ "authenticatedRead"
2 / Object owner gets OWNER access, and project team owners get OWNER access.
\ "bucketOwnerFullControl"
3 / Object owner gets OWNER access, and project team owners get READER access.
\ "bucketOwnerRead"
4 / Object owner gets OWNER access [default if left blank].
\ "private"
5 / Object owner gets OWNER access, and project team members get access
according to their roles.
\ "projectPrivate"
6 / Object owner gets OWNER access, and all Users get READER access.
\ "publicRead"
object_acl> 4
Access Control List for new buckets.
Choose a number from below, or type in your own value
1 / Project team owners get OWNER access, and all Authenticated Users get
READER access.
\ "authenticatedRead"
2 / Project team owners get OWNER access [default if left blank].
\ "private"
3 / Project team members get access according to their roles.
\ "projectPrivate"
4 / Project team owners get OWNER access, and all Users get READER access.
\ "publicRead"
5 / Project team owners get OWNER access, and all Users get WRITER access.
\ "publicReadWrite"
bucket_acl> 2
Location for the newly created buckets.
Choose a number from below, or type in your own value
1 / Empty for default location (US).
\ ""
2 / Multi-regional location for Asia.
\ "asia"
3 / Multi-regional location for Europe.
\ "eu"
4 / Multi-regional location for United States.
\ "us"
5 / Taiwan.
\ "asia-east1"
6 / Tokyo.
\ "asia-northeast1"
7 / Singapore.
\ "asia-southeast1"
8 / Sydney.
\ "australia-southeast1"
9 / Belgium.
\ "europe-west1"
10 / London.
\ "europe-west2"
11 / Iowa.
\ "us-central1"
12 / South Carolina.
\ "us-east1"
13 / Northern Virginia.
\ "us-east4"
14 / Oregon.
\ "us-west1"
location> 12
The storage class to use when storing objects in Google Cloud Storage.
Choose a number from below, or type in your own value
1 / Default
\ ""
2 / Multi-regional storage class
\ "MULTI_REGIONAL"
3 / Regional storage class
\ "REGIONAL"
4 / Nearline storage class
\ "NEARLINE"
5 / Coldline storage class
\ "COLDLINE"
6 / Durable reduced availability storage class
\ "DURABLE_REDUCED_AVAILABILITY"
storage_class> 5
Remote config
Use web browser to automatically authenticate rclone with remote?
* Say Y if the machine running rclone has a web browser you can use
* Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.
y) Yes
n) No
y/n> y
If your browser doesn't open automatically go to the following link:
http://127.0.0.1:53682/auth
Log in and authorize rclone for access
Waiting for code...
Got code
Configuration complete.
Options:
- type: google cloud storage
- client_id:
- client_secret:
- token: {"AccessToken":"xxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"x/
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxx","Expiry":"2014-07-
17T20:49:14.929208288+01:00","Extra":null}
- project_number: 12345678
- object_acl: private
- bucket_acl: private
Keep this "remote" remote?
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
See the remote setup docs for how to set it up on a machine with no
Internet browser available.
Note that rclone runs a webserver on your local machine to collect the
token as returned from Google if using web browser to automatically
authenticate. This only runs from the moment it opens your browser to
the moment you get back the verification code. This is on
http://127.0.0.1:53682/ and this it may require you to unblock it
temporarily if you are running a host firewall, or use manual mode.
This remote is called remote and can now be used like this
rclone ls remote:bucket
You can set up rclone with Google Cloud Storage in an unattended mode,
i.e. not tied to a specific end-user Google account. This is useful when
you want to synchronise files onto machines that don't have actively
logged-in users, for example build machines.
To get credentials for Google Cloud Platform IAM Service Accounts,
please head to the Service Account section of the Google Developer
Console. Service Accounts behave just like normal User permissions in
Google Cloud Storage ACLs, so you can limit their access (e.g. make them
read only). After creating an account, a JSON file containing the
Service Account's credentials will be downloaded onto your machines.
These credentials are what rclone will use for authentication.
To use a Service Account instead of OAuth2 token flow, enter the path to
your Service Account credentials at the service_account_file prompt and
rclone won't use the browser based authentication flow. If you'd rather
stuff the contents of the credentials file into the rclone config file,
you can set service_account_credentials with the actual contents of the
file instead, or set the equivalent environment variable.
Anonymous Access
For downloads of objects that permit public access you can configure
rclone to use anonymous access by setting anonymous to true. With
unauthorized access you can't write or create files but only read or
list those buckets and objects that have public read access.
Note that in the case application default credentials are used, there is
no need to explicitly configure a project number.
--fast-list
You can set custom upload headers with the --header-upload flag. Google
Cloud Storage supports the headers as described in the working with
metadata documentation
- Cache-Control
- Content-Disposition
- Content-Encoding
- Content-Language
- Content-Type
- X-Goog-Storage-Class
- X-Goog-Meta-
Note that the last of these is for setting custom metadata in the form
--header-upload "x-goog-meta-key: value"
Modification times
Google Cloud Storage stores md5sum natively. Google's gsutil tool stores
modification time with one-second precision as goog-reserved-file-mtime
in file metadata.
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Standard options
Here are the Standard options specific to google cloud storage (Google
Cloud Storage (this is not Google Drive)).
--gcs-client-id
Properties:
- Config: client_id
- Env Var: RCLONE_GCS_CLIENT_ID
- Type: string
- Required: false
--gcs-client-secret
Properties:
- Config: client_secret
- Env Var: RCLONE_GCS_CLIENT_SECRET
- Type: string
- Required: false
--gcs-project-number
Project number.
Properties:
- Config: project_number
- Env Var: RCLONE_GCS_PROJECT_NUMBER
- Type: string
- Required: false
--gcs-user-project
User project.
Properties:
- Config: user_project
- Env Var: RCLONE_GCS_USER_PROJECT
- Type: string
- Required: false
--gcs-service-account-file
Properties:
- Config: service_account_file
- Env Var: RCLONE_GCS_SERVICE_ACCOUNT_FILE
- Type: string
- Required: false
--gcs-service-account-credentials
Properties:
- Config: service_account_credentials
- Env Var: RCLONE_GCS_SERVICE_ACCOUNT_CREDENTIALS
- Type: string
- Required: false
--gcs-anonymous
Set to 'true' if you just want to download files and don't configure
credentials.
Properties:
- Config: anonymous
- Env Var: RCLONE_GCS_ANONYMOUS
- Type: bool
- Default: false
--gcs-object-acl
Properties:
- Config: object_acl
- Env Var: RCLONE_GCS_OBJECT_ACL
- Type: string
- Required: false
- Examples:
- "authenticatedRead"
- Object owner gets OWNER access.
- All Authenticated Users get READER access.
- "bucketOwnerFullControl"
- Object owner gets OWNER access.
- Project team owners get OWNER access.
- "bucketOwnerRead"
- Object owner gets OWNER access.
- Project team owners get READER access.
- "private"
- Object owner gets OWNER access.
- Default if left blank.
- "projectPrivate"
- Object owner gets OWNER access.
- Project team members get access according to their roles.
- "publicRead"
- Object owner gets OWNER access.
- All Users get READER access.
--gcs-bucket-acl
Properties:
- Config: bucket_acl
- Env Var: RCLONE_GCS_BUCKET_ACL
- Type: string
- Required: false
- Examples:
- "authenticatedRead"
- Project team owners get OWNER access.
- All Authenticated Users get READER access.
- "private"
- Project team owners get OWNER access.
- Default if left blank.
- "projectPrivate"
- Project team members get access according to their roles.
- "publicRead"
- Project team owners get OWNER access.
- All Users get READER access.
- "publicReadWrite"
- Project team owners get OWNER access.
- All Users get WRITER access.
--gcs-bucket-policy-only
If you want to upload objects to a bucket with Bucket Policy Only set
then you will need to set this.
Docs: https://cloud.google.com/storage/docs/bucket-policy-only
Properties:
- Config: bucket_policy_only
- Env Var: RCLONE_GCS_BUCKET_POLICY_ONLY
- Type: bool
- Default: false
--gcs-location
Properties:
- Config: location
- Env Var: RCLONE_GCS_LOCATION
- Type: string
- Required: false
- Examples:
- ""
- Empty for default location (US)
- "asia"
- Multi-regional location for Asia
- "eu"
- Multi-regional location for Europe
- "us"
- Multi-regional location for United States
- "asia-east1"
- Taiwan
- "asia-east2"
- Hong Kong
- "asia-northeast1"
- Tokyo
- "asia-northeast2"
- Osaka
- "asia-northeast3"
- Seoul
- "asia-south1"
- Mumbai
- "asia-south2"
- Delhi
- "asia-southeast1"
- Singapore
- "asia-southeast2"
- Jakarta
- "australia-southeast1"
- Sydney
- "australia-southeast2"
- Melbourne
- "europe-north1"
- Finland
- "europe-west1"
- Belgium
- "europe-west2"
- London
- "europe-west3"
- Frankfurt
- "europe-west4"
- Netherlands
- "europe-west6"
- Zürich
- "europe-central2"
- Warsaw
- "us-central1"
- Iowa
- "us-east1"
- South Carolina
- "us-east4"
- Northern Virginia
- "us-west1"
- Oregon
- "us-west2"
- California
- "us-west3"
- Salt Lake City
- "us-west4"
- Las Vegas
- "northamerica-northeast1"
- Montréal
- "northamerica-northeast2"
- Toronto
- "southamerica-east1"
- São Paulo
- "southamerica-west1"
- Santiago
- "asia1"
- Dual region: asia-northeast1 and asia-northeast2.
- "eur4"
- Dual region: europe-north1 and europe-west4.
- "nam4"
- Dual region: us-central1 and us-east1.
--gcs-storage-class
The storage class to use when storing objects in Google Cloud Storage.
Properties:
- Config: storage_class
- Env Var: RCLONE_GCS_STORAGE_CLASS
- Type: string
- Required: false
- Examples:
- ""
- Default
- "MULTI_REGIONAL"
- Multi-regional storage class
- "REGIONAL"
- Regional storage class
- "NEARLINE"
- Nearline storage class
- "COLDLINE"
- Coldline storage class
- "ARCHIVE"
- Archive storage class
- "DURABLE_REDUCED_AVAILABILITY"
- Durable reduced availability storage class
--gcs-env-auth
Properties:
- Config: env_auth
- Env Var: RCLONE_GCS_ENV_AUTH
- Type: bool
- Default: false
- Examples:
- "false"
- Enter credentials in the next step.
- "true"
- Get GCP IAM credentials from the environment (env vars or
IAM).
Advanced options
Here are the Advanced options specific to google cloud storage (Google
Cloud Storage (this is not Google Drive)).
--gcs-token
Properties:
- Config: token
- Env Var: RCLONE_GCS_TOKEN
- Type: string
- Required: false
--gcs-auth-url
Properties:
- Config: auth_url
- Env Var: RCLONE_GCS_AUTH_URL
- Type: string
- Required: false
--gcs-token-url
Properties:
- Config: token_url
- Env Var: RCLONE_GCS_TOKEN_URL
- Type: string
- Required: false
--gcs-directory-markers
Empty folders are unsupported for bucket based remotes, this option
creates an empty object ending with "/", to persist the folder.
Properties:
- Config: directory_markers
- Env Var: RCLONE_GCS_DIRECTORY_MARKERS
- Type: bool
- Default: false
--gcs-no-check-bucket
Properties:
- Config: no_check_bucket
- Env Var: RCLONE_GCS_NO_CHECK_BUCKET
- Type: bool
- Default: false
--gcs-decompress
If this flag is set then rclone will decompress these files with
"Content-Encoding: gzip" as they are received. This means that rclone
can't check the size and hash but the file contents will be
decompressed.
Properties:
- Config: decompress
- Env Var: RCLONE_GCS_DECOMPRESS
- Type: bool
- Default: false
--gcs-endpoint
Properties:
- Config: endpoint
- Env Var: RCLONE_GCS_ENDPOINT
- Type: string
- Required: false
--gcs-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_GCS_ENCODING
- Type: Encoding
- Default: Slash,CrLf,InvalidUtf8,Dot
--gcs-description
Properties:
- Config: description
- Env Var: RCLONE_GCS_DESCRIPTION
- Type: string
- Required: false
Limitations
rclone about is not supported by the Google Cloud Storage backend.
Backends without this capability cannot determine free space for an
rclone mount or use policy mfs (most free space) as a member of an
rclone union remote.
See List of backends that do not support rclone about and rclone about
Google Drive
Configuration
The initial setup for drive involves getting a token from Google drive
which you need to do in your browser. rclone config walks you through
it.
rclone config
See the remote setup docs for how to set it up on a machine with no
Internet browser available.
Note that rclone runs a webserver on your local machine to collect the
token as returned from Google if using web browser to automatically
authenticate. This only runs from the moment it opens your browser to
the moment you get back the verification code. This is on
http://127.0.0.1:53682/ and it may require you to unblock it temporarily
if you are running a host firewall, or use manual mode.
Scopes
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.
drive
This is the default scope and allows full access to all files, except
for the Application Data Folder (see below).
drive.readonly
This allows read only access to all files. Files may be listed and
downloaded but not uploaded, renamed or deleted.
drive.file
With this scope rclone can read/view/modify only those files and folders
it creates.
So if you uploaded files to drive via the web interface (or any other
means) they will not be visible to rclone.
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.
Files created with this scope are visible in the web interface.
drive.appfolder
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't be able to
see rclone's files from the web interface either.
drive.metadata.readonly
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.
Root folder ID
This option has been moved to the advanced section. You can set the
root_folder_id for rclone. This is the directory (identified by its
Folder ID) that rclone considers to be the root of your drive.
Normally you will leave this blank and rclone will determine the correct
root to use itself.
In order to do this you will have to find the Folder ID 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.
So if the folder you want rclone to use has a URL which looks like
https://drive.google.com/drive/folders/1XyfxxxxxxxxxxxxxxxxxxxxxxxxxKHCh
in the browser, then you use 1XyfxxxxxxxxxxxxxxxxxxxxxxxxxKHCh as the
root_folder_id in the config.
NB folders under the "Computers" tab seem to be read only (drive gives a
500 error) when using rclone.
Note also that rclone can't access any data under the "Backups" tab on
the google drive web interface yet.
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't have actively logged-in
users, for example build machines.
To use a Service Account instead of OAuth2 token flow, enter the path to
your Service Account credentials at the service_account_file prompt
during rclone config and rclone won't use the browser based
authentication flow. If you'd rather stuff the contents of the
credentials file into the rclone config file, you can set
service_account_credentials with the actual contents of the file
instead, or set the equivalent environment variable.
Let's say that you are the administrator of a Google Workspace. The goal
is to read or write data on an individual's Drive account, who IS a
member of the domain. We'll call the domain example.com, and the user
[email protected].
If you ever need to remove access, press the "Delete service account
key" button.
rclone config
n/s/q> n # New
name>gdrive # Gdrive is an example name
Storage> # Type drive
client_id> # Can be left blank
client_secret> # Can be left blank
scope> # Select the scope use used in step 2
root_folder_id> # Can be left blank
service_account_file> /home/foo/myJSONfile.json # Path to the JSON file you
downloaded in step 1.
y/n> # Auto config, n
Note: in case you configured a specific root folder on gdrive and rclone
is unable to access the contents of that folder when using
--drive-impersonate, do this instead: - in the gdrive web interface,
share your root folder with the user/email of the new Service Account
you created/selected at step 1 - use rclone without specifying the
--drive-impersonate option, like this: rclone -v lsf gdrive:backup
This will fetch the list of Shared Drives from google and allow you to
configure which one you want to use. You can also type in a Shared Drive
ID if you prefer.
For example:
--fast-list
It does this by combining multiple list calls into a single API request.
In tests, these batch requests were up to 20x faster than the regular
method. Running the following command against different sized folders
gives:
Hash algorithms MD5, SHA1 and SHA256 are supported. Note, however, that
a small fraction of files uploaded may not have SHA1 or SHA256 hashes
especially if they were uploaded before 2018.
Only Invalid UTF-8 bytes will be replaced, as they can't be used in JSON
strings.
Revisions
Revisions follow the standard google policy which at time of writing was
Deleting files
By default rclone will send all files to the trash when deleting files.
If deleting them permanently is required then use the
--drive-use-trash=false flag, or set the equivalent environment
variable.
Shortcuts
Shortcuts are files that link to other files on Google Drive somewhat
like a symlink in unix, except they point to the underlying file data
(e.g. the inode in unix terms) so they don't break if the source is
renamed or moved about.
- When listing the shortcut appears as a folder and that folder will
contain the contents of the linked folder appear (including any sub
folders)
- When downloading the contents of the linked folder and sub contents
are downloaded
- When uploading to a shortcut folder the file will be placed in the
linked folder
- When server-side moving (renaming) the shortcut is renamed, not the
destination folder
- When server-side copying the contents of the linked folder is
copied, not the shortcut.
- When deleting with rclone rmdir or rclone purge the shortcut is
deleted not the linked folder.
- NB When deleting with rclone remove or rclone mount the contents of
the linked folder will be deleted.
Emptying trash
If you wish to empty your trash you can use the rclone cleanup remote:
command which will permanently delete all your trashed files. This
command does not take any path arguments.
Note that Google Drive takes some time (minutes to days) to empty the
trash even though the command returns within a few seconds. No output is
echoed, so there will be no confirmation even using -v or -vv.
Quota information
To view your current quota you can use the rclone about remote: 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.
When choosing a format, rclone runs down the list provided in order and
chooses the first file format the doc can be exported as from the list.
If the file can't be exported to a format on the formats list, then
rclone will choose a format from the default list.
When importing files into Google Drive, rclone will convert all files
with an extension in --drive-import-formats to their associated document
type. rclone will not convert any files by default, since the conversion
is lossy process.
The conversion must result in a file with the same extension when the
--drive-export-formats rules are applied to the uploaded document.
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.
This list can be changed by Google Drive at any time and might not
represent the currently available conversions.
-----------------------------------------------------------------------------------
---------------------------------------
Extension Mime Type
Description
-------------------
---------------------------------------------------------------------------
--------------------------
bmp image/bmp
Windows Bitmap format
csv text/csv
Standard CSV format for
Spreadsheets
doc application/msword
Classic Word file
docx application/vnd.openxmlformats-
officedocument.wordprocessingml.document Microsoft Office Document
epub application/epub+zip
E-book format
html text/html
An HTML Document
jpg image/jpeg
A JPEG Image File
json application/vnd.google-apps.script+json
JSON Text Format for
odp application/vnd.oasis.opendocument.presentation
Openoffice Presentation
ods application/vnd.oasis.opendocument.spreadsheet
Openoffice Spreadsheet
ods application/x-vnd.oasis.opendocument.spreadsheet
Openoffice Spreadsheet
odt application/vnd.oasis.opendocument.text
Openoffice Document
pdf application/pdf
Adobe PDF Format
pjpeg image/pjpeg
Progressive JPEG Image
png image/png
PNG Image Format
pptx application/vnd.openxmlformats-
officedocument.presentationml.presentation Microsoft Office
Powerpoint
rtf application/rtf
Rich Text Format
svg image/svg+xml
Scalable Vector Graphics
Format
tsv text/tab-separated-values
Standard TSV format for
spreadsheets
txt text/plain
Plain Text
wmf application/x-msmetafile
Windows Meta File
xls application/vnd.ms-excel
Classic Excel file
xlsx application/vnd.openxmlformats-
officedocument.spreadsheetml.sheet Microsoft Office
Spreadsheet
zip application/zip
A ZIP file of HTML, Images
CSS
-----------------------------------------------------------------------------------
---------------------------------------
Google documents can also be exported as link files. These files will
open a browser window for the Google Docs website of that document when
opened. The link file extension has to be specified as a
--drive-export-formats parameter. They will match all available Google
Documents.
Extension Description OS Support
----------- ----------------------------------------- ----------------
desktop freedesktop.org specified desktop entry Linux
link.html An HTML Document with a redirect All
url INI style link file macOS, Windows
webloc macOS specific XML format macOS
Standard options
--drive-client-id
Properties:
- Config: client_id
- Env Var: RCLONE_DRIVE_CLIENT_ID
- Type: string
- Required: false
--drive-client-secret
Properties:
- Config: client_secret
- Env Var: RCLONE_DRIVE_CLIENT_SECRET
- Type: string
- Required: false
--drive-scope
Comma separated list of scopes that rclone should use when requesting
access from drive.
Properties:
- Config: scope
- Env Var: RCLONE_DRIVE_SCOPE
- Type: string
- Required: false
- Examples:
- "drive"
- Full access all files, excluding Application Data Folder.
- "drive.readonly"
- Read-only access to file metadata and file contents.
- "drive.file"
- Access to files created by rclone only.
- These are visible in the drive website.
- File authorization is revoked when the user deauthorizes the
app.
- "drive.appfolder"
- Allows read and write access to the Application Data folder.
- This is not visible in the drive website.
- "drive.metadata.readonly"
- Allows read-only access to file metadata but
- does not allow any access to read or download file content.
--drive-service-account-file
Properties:
- Config: service_account_file
- Env Var: RCLONE_DRIVE_SERVICE_ACCOUNT_FILE
- Type: string
- Required: false
--drive-alternate-export
Properties:
- Config: alternate_export
- Env Var: RCLONE_DRIVE_ALTERNATE_EXPORT
- Type: bool
- Default: false
Advanced options
--drive-token
Properties:
- Config: token
- Env Var: RCLONE_DRIVE_TOKEN
- Type: string
- Required: false
--drive-auth-url
Properties:
- Config: auth_url
- Env Var: RCLONE_DRIVE_AUTH_URL
- Type: string
- Required: false
--drive-token-url
Properties:
- Config: token_url
- Env Var: RCLONE_DRIVE_TOKEN_URL
- Type: string
- Required: false
--drive-root-folder-id
Properties:
- Config: root_folder_id
- Env Var: RCLONE_DRIVE_ROOT_FOLDER_ID
- Type: string
- Required: false
--drive-service-account-credentials
Properties:
- Config: service_account_credentials
- Env Var: RCLONE_DRIVE_SERVICE_ACCOUNT_CREDENTIALS
- Type: string
- Required: false
--drive-team-drive
Properties:
- Config: team_drive
- Env Var: RCLONE_DRIVE_TEAM_DRIVE
- Type: string
- Required: false
--drive-auth-owner-only
- Config: auth_owner_only
- Env Var: RCLONE_DRIVE_AUTH_OWNER_ONLY
- Type: bool
- Default: false
--drive-use-trash
Properties:
- Config: use_trash
- Env Var: RCLONE_DRIVE_USE_TRASH
- Type: bool
- Default: true
--drive-copy-shortcut-content
When doing server side copies, normally rclone will copy shortcuts as
shortcuts.
If this flag is used then rclone will copy the contents of shortcuts
rather than shortcuts themselves when doing server side copies.
Properties:
- Config: copy_shortcut_content
- Env Var: RCLONE_DRIVE_COPY_SHORTCUT_CONTENT
- Type: bool
- Default: false
--drive-skip-gdocs
Properties:
- Config: skip_gdocs
- Env Var: RCLONE_DRIVE_SKIP_GDOCS
- Type: bool
- Default: false
--drive-show-all-gdocs
If you try a server side copy on a Google Form without this flag, you
will get this error:
No export formats found for "application/vnd.google-apps.form"
However adding this flag will allow the form to be server side copied.
Note that rclone doesn't add extensions to the Google Docs file names in
this mode.
Do not use this flag when trying to download Google Docs - rclone will
fail to download them.
Properties:
- Config: show_all_gdocs
- Env Var: RCLONE_DRIVE_SHOW_ALL_GDOCS
- Type: bool
- Default: false
--drive-skip-checksum-gphotos
Use this if you get checksum errors when transferring Google photos or
videos.
Setting this flag will cause Google photos and videos to return a blank
checksums.
Properties:
- Config: skip_checksum_gphotos
- Env Var: RCLONE_DRIVE_SKIP_CHECKSUM_GPHOTOS
- Type: bool
- Default: false
--drive-shared-with-me
This works both with the "list" (lsd, lsl, etc.) and the "copy" commands
(copy, sync, etc.), and with all other commands too.
Properties:
- Config: shared_with_me
- Env Var: RCLONE_DRIVE_SHARED_WITH_ME
- Type: bool
- Default: false
--drive-trashed-only
Only show files that are in the trash.
Properties:
- Config: trashed_only
- Env Var: RCLONE_DRIVE_TRASHED_ONLY
- Type: bool
- Default: false
--drive-starred-only
Properties:
- Config: starred_only
- Env Var: RCLONE_DRIVE_STARRED_ONLY
- Type: bool
- Default: false
--drive-formats
Properties:
- Config: formats
- Env Var: RCLONE_DRIVE_FORMATS
- Type: string
- Required: false
--drive-export-formats
Properties:
- Config: export_formats
- Env Var: RCLONE_DRIVE_EXPORT_FORMATS
- Type: string
- Default: "docx,xlsx,pptx,svg"
--drive-import-formats
Properties:
- Config: import_formats
- Env Var: RCLONE_DRIVE_IMPORT_FORMATS
- Type: string
- Required: false
--drive-allow-import-name-change
Properties:
- Config: allow_import_name_change
- Env Var: RCLONE_DRIVE_ALLOW_IMPORT_NAME_CHANGE
- Type: bool
- Default: false
--drive-use-created-date
Useful when downloading data and you want the creation date used in
place of the last modified date.
When uploading to your drive all files will be overwritten unless they
haven't been modified since their creation. And the inverse will occur
while downloading. This side effect can be avoided by using the
"--checksum" flag.
Properties:
- Config: use_created_date
- Env Var: RCLONE_DRIVE_USE_CREATED_DATE
- Type: bool
- Default: false
--drive-use-shared-date
Properties:
- Config: use_shared_date
- Env Var: RCLONE_DRIVE_USE_SHARED_DATE
- Type: bool
- Default: false
--drive-list-chunk
Properties:
- Config: list_chunk
- Env Var: RCLONE_DRIVE_LIST_CHUNK
- Type: int
- Default: 1000
--drive-impersonate
Properties:
- Config: impersonate
- Env Var: RCLONE_DRIVE_IMPERSONATE
- Type: string
- Required: false
--drive-upload-cutoff
Properties:
- Config: upload_cutoff
- Env Var: RCLONE_DRIVE_UPLOAD_CUTOFF
- Type: SizeSuffix
- Default: 8Mi
--drive-chunk-size
Making this larger will improve performance, but note that each chunk is
buffered in memory one per transfer.
Properties:
- Config: chunk_size
- Env Var: RCLONE_DRIVE_CHUNK_SIZE
- Type: SizeSuffix
- Default: 8Mi
--drive-acknowledge-abuse
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.
Note that if you are using service account it will need Manager
permission (not Content Manager) to for this flag to work. If the SA
does not have the right permission, Google will just ignore the flag.
Properties:
- Config: acknowledge_abuse
- Env Var: RCLONE_DRIVE_ACKNOWLEDGE_ABUSE
- Type: bool
- Default: false
--drive-keep-revision-forever
Properties:
- Config: keep_revision_forever
- Env Var: RCLONE_DRIVE_KEEP_REVISION_FOREVER
- Type: bool
- Default: false
--drive-size-as-quota
Show the size of a file as the storage quota used. This is the current
version plus any older versions that have been set to keep forever.
If you do use this flag for syncing (not recommended) then you will need
to use --ignore size also.
Properties:
- Config: size_as_quota
- Env Var: RCLONE_DRIVE_SIZE_AS_QUOTA
- Type: bool
- Default: false
--drive-v2-download-min-size
Properties:
- Config: v2_download_min_size
- Env Var: RCLONE_DRIVE_V2_DOWNLOAD_MIN_SIZE
- Type: SizeSuffix
- Default: off
--drive-pacer-min-sleep
Properties:
- Config: pacer_min_sleep
- Env Var: RCLONE_DRIVE_PACER_MIN_SLEEP
- Type: Duration
- Default: 100ms
--drive-pacer-burst
Properties:
- Config: pacer_burst
- Env Var: RCLONE_DRIVE_PACER_BURST
- Type: int
- Default: 100
--drive-server-side-across-configs
Properties:
- Config: server_side_across_configs
- Env Var: RCLONE_DRIVE_SERVER_SIDE_ACROSS_CONFIGS
- Type: bool
- Default: false
--drive-disable-http2
There is currently an unsolved issue with the google drive backend and
HTTP/2. HTTP/2 is therefore disabled by default for the drive backend
but can be re-enabled here. When the issue is solved this flag will be
removed.
See: https://github.com/rclone/rclone/issues/3631
Properties:
- Config: disable_http2
- Env Var: RCLONE_DRIVE_DISABLE_HTTP2
- Type: bool
- Default: true
--drive-stop-on-upload-limit
See: https://github.com/rclone/rclone/issues/3857
Properties:
- Config: stop_on_upload_limit
- Env Var: RCLONE_DRIVE_STOP_ON_UPLOAD_LIMIT
- Type: bool
- Default: false
--drive-stop-on-download-limit
Properties:
- Config: stop_on_download_limit
- Env Var: RCLONE_DRIVE_STOP_ON_DOWNLOAD_LIMIT
- Type: bool
- Default: false
--drive-skip-shortcuts
Properties:
- Config: skip_shortcuts
- Env Var: RCLONE_DRIVE_SKIP_SHORTCUTS
- Type: bool
- Default: false
--drive-skip-dangling-shortcuts
If this is set then rclone will not show any dangling shortcuts in
listings.
Properties:
- Config: skip_dangling_shortcuts
- Env Var: RCLONE_DRIVE_SKIP_DANGLING_SHORTCUTS
- Type: bool
- Default: false
--drive-resource-key
https://drive.google.com/drive/folders/XXX?resourcekey=YYY&usp=sharing
Then you will need to use the first part "XXX" as the "root_folder_id"
and the second part "YYY" as the "resource_key" otherwise you will get
404 not found errors when trying to access the directory.
See: https://developers.google.com/drive/api/guides/resource-keys
Note also that opening the folder once in the web interface (with the
user you've authenticated rclone with) seems to be enough so that the
resource key is not needed.
Properties:
- Config: resource_key
- Env Var: RCLONE_DRIVE_RESOURCE_KEY
- Type: string
- Required: false
--drive-fast-list-bug-fix
Normally rclone will work around a bug in Google Drive when using
--fast-list (ListR) where the search "(A in parents) or (B in parents)"
returns nothing sometimes. See #3114, #4289 and
https://issuetracker.google.com/issues/149522397
Rclone detects this by finding no items in more than one directory when
listing and retries them as lists of individual directories.
This means that if you have a lot of empty directories rclone will end
up listing them all individually and this can take many more API calls.
Properties:
- Config: fast_list_bug_fix
- Env Var: RCLONE_DRIVE_FAST_LIST_BUG_FIX
- Type: bool
- Default: true
--drive-metadata-owner
Note that you can't set the owner on Shared Drives, and that setting
ownership will generate an email to the new owner (this can't be
disabled), and you can't transfer ownership to someone outside your
organization.
Properties:
- Config: metadata_owner
- Env Var: RCLONE_DRIVE_METADATA_OWNER
- Type: Bits
- Default: read
- Examples:
- "off"
- Do not read or write the value
- "read"
- Read the value only
- "write"
- Write the value only
- "failok"
- If writing fails log errors only, don't fail the transfer
- "read,write"
- Read and Write the value.
--drive-metadata-permissions
Note that rclone drops any inherited permissions on Shared Drives and
any owner permission on My Drives as these are duplicated in the owner
metadata.
Properties:
- Config: metadata_permissions
- Env Var: RCLONE_DRIVE_METADATA_PERMISSIONS
- Type: Bits
- Default: off
- Examples:
- "off"
- Do not read or write the value
- "read"
- Read the value only
- "write"
- Write the value only
- "failok"
- If writing fails log errors only, don't fail the transfer
- "read,write"
- Read and Write the value.
--drive-metadata-labels
Reading labels metadata from files takes an extra API transaction and
will slow down listings. It isn't always desirable to set the labels
from the metadata.
When setting labels, the label and fields must already exist - rclone
will not create them. This means that if you are transferring labels
from two different accounts you will have to create the labels in
advance and use the metadata mapper to translate the IDs between the two
accounts.
Properties:
- Config: metadata_labels
- Env Var: RCLONE_DRIVE_METADATA_LABELS
- Type: Bits
- Default: off
- Examples:
- "off"
- Do not read or write the value
- "read"
- Read the value only
- "write"
- Write the value only
- "failok"
- If writing fails log errors only, don't fail the transfer
- "read,write"
- Read and Write the value.
--drive-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_DRIVE_ENCODING
- Type: Encoding
- Default: InvalidUtf8
--drive-env-auth
Properties:
- Config: env_auth
- Env Var: RCLONE_DRIVE_ENV_AUTH
- Type: bool
- Default: false
- Examples:
- "false"
- Enter credentials in the next step.
- "true"
- Get GCP IAM credentials from the environment (env vars or
IAM).
--drive-description
Properties:
- Config: description
- Env Var: RCLONE_DRIVE_DESCRIPTION
- Type: string
- Required: false
Metadata
Here are the possible system metadata items for the drive backend.
-----------------------------------------------------------------------------------
-----------------------------------------------
Name Help Type
Example Read Only
--------------------------------- ------------------------------- -----------
------------------------------- --------------------
btime Time of file birth (creation) RFC 3339
2006-01-02T15:04:05.999Z07:00 N
with mS accuracy. Note that
this is only writable on fresh
uploads - it can't be written
for updates.
-----------------------------------------------------------------------------------
-----------------------------------------------
Backend commands
The help below will explain what arguments each command takes.
See the backend command for more info on how to pass options and
arguments.
These can be run on a running backend using the rc command
backend/command.
get
This is a get command which will be used to fetch the various drive
config parameters
Usage Examples:
Options:
set
This is a set command which will be used to update the various drive
config parameters
Usage Examples:
Options:
shortcut
Usage:
Options:
drives
This command lists the Shared Drives (Team Drives) available to this
account.
Usage:
[
{
"id": "0ABCDEF-01234567890",
"kind": "drive#teamDrive",
"name": "My Drive"
},
{
"id": "0ABCDEFabcdefghijkl",
"kind": "drive#teamDrive",
"name": "Test Drive"
}
]
[My Drive]
type = alias
remote = drive,team_drive=0ABCDEF-01234567890,root_folder_id=:
[Test Drive]
type = alias
remote = drive,team_drive=0ABCDEFabcdefghijkl,root_folder_id=:
[AllDrives]
type = combine
upstreams = "My Drive=My Drive:" "Test Drive=Test Drive:"
Adding this to the rclone config file will cause those team drives to be
accessible with the aliases shown. Any illegal characters will be
substituted with "_" and duplicate names will have numbers suffixed. It
will also add a remote called AllDrives which shows all the shared
drives combined into one directory tree.
untrash
This command untrashes all the files and directories in the directory
passed in recursively.
Usage:
This takes an optional directory to trash which make this easier to use
via the API.
Result:
{
"Untrashed": 17,
"Errors": 0
}
copyid
Copy files by ID
Usage:
It copies the drive file with ID given to the path (an rclone path which
will be passed internally to rclone copyto). The ID and path pairs can
be repeated.
The path should end with a / to indicate copy the file as named to this
directory. If it doesn't end with a / then the last path component will
be used as the file name.
importformats
query
Usage:
The query syntax is documented at Google Drive Search query terms and
operators.
For example:
[
{
"createdTime": "2017-06-29T19:58:28.537Z",
"id": "0AxBe_CDEF4zkGHI4d0FjYko2QkD",
"md5Checksum": "68518d16be0c6fbfab918be61d658032",
"mimeType": "text/plain",
"modifiedTime": "2024-02-02T10:40:02.874Z",
"name": "foo ' \\.txt",
"parents": [
"0BxAe_BCDE4zkFGZpcWJGek0xbzC"
],
"resourceKey": "0-ABCDEFGHIXJQpIGqBJq3MC",
"sha1Checksum": "8f284fa768bfb4e45d076a579ab3905ab6bfa893",
"size": "311",
"webViewLink":
"https://drive.google.com/file/d/0AxBe_CDEF4zkGHI4d0FjYko2QkD/view?usp=drivesdk\
u0026resourcekey=0-ABCDEFGHIXJQpIGqBJq3MC"
}
]
Limitations
Drive has quite a lot of rate limiting. This causes rclone to be limited
to transferring about 2 files per second only. Individual files may be
transferred much faster at 100s of MiB/s but lots of small files can
take a long time.
Server side copies are also subject to a separate rate limit. If you see
User rate limit exceeded errors, wait at least 24 hours and retry. You
can disable server-side copies with --disable copy to download and
upload the files if you prefer.
Google docs will appear as size -1 in rclone ls, rclone ncdu etc, and as
size 0 in anything which uses the VFS layer, e.g. rclone mount and
rclone serve. When calculating directory totals, e.g. in rclone size and
rclone ncdu, they will be counted in as empty files.
This is because rclone can't find out the size of the Google docs
without downloading them.
Google docs will transfer correctly with rclone sync, rclone copy etc as
rclone knows to ignore the size when doing the transfer.
Duplicated files
Sometimes, for no reason I've been able to track down, drive will
duplicate a file that rclone uploads. Drive unlike all the other remotes
can have duplicated files.
Duplicated files cause problems with the syncing and you will see
messages in the log about duplicates.
Note that this isn't just a problem with rclone, even Google Photos on
Android duplicates files on drive sometimes.
The most likely cause of this is the duplicated file issue above - run
rclone dedupe and check your logs for duplicate object or directory
messages.
All files have MD5 hashes, but a small fraction of files uploaded may
not have SHA1 or SHA256 hashes especially if they were uploaded before
2018.
When you use rclone with Google drive in its default configuration you
are using rclone's client_id. This is shared between all the rclone
users. There is a global rate limit on the number of queries per second
that each client_id can do set by Google. rclone already has a high
quota and I will continue to make sure it is high enough by contacting
Google.
Here is how to create your own Google Drive client ID for rclone:
1. Log into the Google API Console with your Google account. It doesn't
matter what Google account you use. (It need not be the same account
as the Google Drive you want to access)
3. Under "ENABLE APIS AND SERVICES" search for "Drive", and enable the
"Google Drive API".
- https://www.googleapis.com/auth/docs
- https://www.googleapis.com/auth/drive in order to be able to edit,
create and delete files with RClone.
- https://www.googleapis.com/auth/drive.metadata.readonly which you
may also want to add.
- If you want to add all at once, comma separated it would be
https://www.googleapis.com/auth/docs,https://www.googleapis.com/auth/
drive,https://www.googleapis.com/auth/drive.metadata.readonly.
6. After adding scopes, click "Save and continue" to add test users. Be
sure to add your own account to the test users. Once you've added
yourself as a test user and saved the changes, click again on
"Credentials" on the left panel to go back to the "Credentials"
screen.
(PS: if you are a GSuite user, you could also select "Internal"
instead of "External" above, but this will restrict API use to
Google Workspace users in your organisation).
7. Click on the "+ CREATE CREDENTIALS" button at the top of the screen,
then select "OAuth client ID".
10. Go to "Oauth consent screen" and then click "PUBLISH APP" button and
confirm. You will also want to add yourself as a test user.
Google Photos
NB The Google Photos API which rclone uses has quite a few limitations,
so please read the limitations section carefully to make sure it is
suitable for your use.
Configuration
The initial setup for google cloud storage involves getting a token from
Google Photos which you need to do in your browser. rclone config walks
you through it.
rclone config
If you choose read only then rclone will only request read only access
to your photos, otherwise rclone will request full access.
Enter a boolean value (true or false). Press Enter for the default ("false").
read_only>
Edit advanced config? (y/n)
y) Yes
n) No
y/n> n
Remote config
Use web browser to automatically authenticate rclone with remote?
* Say Y if the machine running rclone has a web browser you can use
* Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.
y) Yes
n) No
y/n> y
If your browser doesn't open automatically go to the following link:
http://127.0.0.1:53682/auth
Log in and authorize rclone for access
Waiting for code...
Got code
*** IMPORTANT: All media items uploaded to Google Photos with rclone
*** are stored in full resolution at original quality. These uploads
*** will count towards storage in your Google Account.
Configuration complete.
Options:
- type: google photos
- token:
{"access_token":"XXX","token_type":"Bearer","refresh_token":"XXX","expiry":"2019-
06-28T17:38:04.644930156+01:00"}
Keep this "remote" remote?
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
See the remote setup docs for how to set it up on a machine with no
Internet browser available.
Note that rclone runs a webserver on your local machine to collect the
token as returned from Google if using web browser to automatically
authenticate. This only runs from the moment it opens your browser to
the moment you get back the verification code. This is on
http://127.0.0.1:53682/ and this may require you to unblock it
temporarily if you are running a host firewall, or use manual mode.
This remote is called remote and can now be used like this
rclone ls remote:album/newAlbum
Layout
Note that all your photos and videos will appear somewhere under media,
but they may not appear under album unless you've put them into albums.
/
- upload
- file1.jpg
- file2.jpg
- ...
- media
- all
- file1.jpg
- file2.jpg
- ...
- by-year
- 2000
- file1.jpg
- ...
- 2001
- file2.jpg
- ...
- ...
- by-month
- 2000
- 2000-01
- file1.jpg
- ...
- 2000-02
- file2.jpg
- ...
- ...
- by-day
- 2000
- 2000-01-01
- file1.jpg
- ...
- 2000-01-02
- file2.jpg
- ...
- ...
- album
- album name
- album name/sub
- shared-album
- album name
- album name/sub
- feature
- favorites
- file1.jpg
- file2.jpg
There are two writable parts of the tree, the upload directory and sub
directories of the album directory.
The upload directory is for uploading files you don't want to put into
albums. This will be empty to start with and will contain the files
you've uploaded for one rclone session only, becoming empty again when
you restart rclone. The use case for this would be if you have a load of
files you just want to once off dump into Google Photos. For repeated
syncing, uploading to album will work better.
Directories within the album directory are also writeable and you may
create new directories (albums) under album. If you copy files with a
directory hierarchy in there then rclone will create albums with the /
character in them. For example if you do
images
- file1.jpg
dir
file2.jpg
dir2
dir3
file3.jpg
Then rclone will create the following albums with the following files in
- images
- file1.jpg
- images/dir
- file2.jpg
- images/dir2/dir3
- file3.jpg
This means that you can use the album path pretty much like a normal
filesystem and it is a good target for repeated syncing.
The shared-album directory shows albums shared with you or by you. This
is similar to the Sharing tab in the Google Photos web interface.
Standard options
Here are the Standard options specific to google photos (Google Photos).
--gphotos-client-id
Properties:
- Config: client_id
- Env Var: RCLONE_GPHOTOS_CLIENT_ID
- Type: string
- Required: false
--gphotos-client-secret
Properties:
- Config: client_secret
- Env Var: RCLONE_GPHOTOS_CLIENT_SECRET
- Type: string
- Required: false
--gphotos-read-only
If you choose read only then rclone will only request read only access
to your photos, otherwise rclone will request full access.
Properties:
- Config: read_only
- Env Var: RCLONE_GPHOTOS_READ_ONLY
- Type: bool
- Default: false
Advanced options
Here are the Advanced options specific to google photos (Google Photos).
--gphotos-token
Properties:
- Config: token
- Env Var: RCLONE_GPHOTOS_TOKEN
- Type: string
- Required: false
--gphotos-auth-url
Properties:
- Config: auth_url
- Env Var: RCLONE_GPHOTOS_AUTH_URL
- Type: string
- Required: false
--gphotos-token-url
Properties:
- Config: token_url
- Env Var: RCLONE_GPHOTOS_TOKEN_URL
- Type: string
- Required: false
--gphotos-read-size
Set to read the size of media items.
Normally rclone does not read the size of media items since this takes
another transaction. This isn't necessary for syncing. However rclone
mount needs to know the size of files in advance of reading them, so
setting this flag when using rclone mount is recommended if you want to
read the media.
Properties:
- Config: read_size
- Env Var: RCLONE_GPHOTOS_READ_SIZE
- Type: bool
- Default: false
--gphotos-start-year
Properties:
- Config: start_year
- Env Var: RCLONE_GPHOTOS_START_YEAR
- Type: int
- Default: 2000
--gphotos-include-archived
By default, rclone does not request archived media. Thus, when syncing,
archived media is not visible in directory listings or transferred.
Note that media in albums is always visible and synced, no matter their
archive status.
With this flag, archived media are always visible in directory listings
and transferred.
Properties:
- Config: include_archived
- Env Var: RCLONE_GPHOTOS_INCLUDE_ARCHIVED
- Type: bool
- Default: false
--gphotos-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_GPHOTOS_ENCODING
- Type: Encoding
- Default: Slash,CrLf,InvalidUtf8,Dot
--gphotos-batch-mode
- off - no batching
- sync - batch uploads and check completion (default)
- async - batch upload and don't check completion
Rclone will close any outstanding batches when it exits which may make a
delay on quit.
Properties:
- Config: batch_mode
- Env Var: RCLONE_GPHOTOS_BATCH_MODE
- Type: string
- Default: "sync"
--gphotos-batch-size
This sets the batch size of files to upload. It has to be less than 50.
By default this is 0 which means rclone will calculate the batch size
depending on the setting of batch_mode.
Rclone will close any outstanding batches when it exits which may make a
delay on quit.
Setting this is a great idea if you are uploading lots of small files as
it will make them a lot quicker. You can use --transfers 32 to maximise
throughput.
Properties:
- Config: batch_size
- Env Var: RCLONE_GPHOTOS_BATCH_SIZE
- Type: int
- Default: 0
--gphotos-batch-timeout
If an upload batch is idle for more than this long then it will be
uploaded.
The default for this is 0 which means rclone will choose a sensible
default based on the batch_mode in use.
Properties:
- Config: batch_timeout
- Env Var: RCLONE_GPHOTOS_BATCH_TIMEOUT
- Type: Duration
- Default: 0s
--gphotos-batch-commit-timeout
Properties:
- Config: batch_commit_timeout
- Env Var: RCLONE_GPHOTOS_BATCH_COMMIT_TIMEOUT
- Type: Duration
- Default: 10m0s
--gphotos-description
Properties:
- Config: description
- Env Var: RCLONE_GPHOTOS_DESCRIPTION
- Type: string
- Required: false
Limitations
Only images and videos can be uploaded. If you attempt to upload non
videos or images or formats that Google Photos doesn't understand,
rclone will upload the file, then Google Photos will give an error when
it is put turned into a media item.
Note that all media items uploaded to Google Photos through the API are
stored in full resolution at "original quality" and will count towards
your storage quota in your Google Account. The API does not offer a way
to upload in "high quality" mode..
See List of backends that do not support rclone about See rclone about
Downloading Images
When Images are downloaded this strips EXIF location (according to the
docs and my tests). This is a limitation of the Google Photos API and is
covered by bug #112096115.
Downloading Videos
Duplicates
If you upload the same image (with the same binary data) twice then
Google Photos will deduplicate it. However it will retain the filename
from the first upload which may confuse rclone. For example if you
uploaded an image to upload then uploaded the same image to
album/my_album the filename of the image in album/my_album will be what
it was uploaded with initially, not what you uploaded it with to album.
In practise this shouldn't cause too many problems.
Modification times
This is not changeable by rclone and is not the modification date of the
media on local disk. This means that rclone cannot use the dates from
Google Photos for syncing purposes.
Size
The Google Photos API does not return the size of media. This means that
when syncing to Google Photos, rclone can only do a file existence
check.
It is possible to read the size of the media, but this needs an extra
HTTP HEAD request per media item so is very slow and uses up a lot of
transactions. This can be enabled with the --gphotos-read-size option or
the read_size = true config parameter.
If you want to use the backend with rclone mount you may need to enable
this flag (depending on your OS and application using the photos)
otherwise you may not be able to read media off the mount. You'll need
to experiment to see if it works for you without the flag.
Albums
Deleting files
Rclone can remove files from albums it created, but note that the Google
Photos API does not allow media to be deleted permanently so this media
will still remain. See bug #109759781.
Deleting albums
The Google Photos API does not support deleting albums - see bug
#135714733.
Hasher
Getting started
Let's call the base remote myRemote:path here. Note that anything inside
myRemote:path will be handled by hasher and anything outside won't. This
means that if you are using a bucket based remote (S3, B2, Swift) then
you should put the bucket in the remote s3:bucket.
Interactive configuration
Manual configuration
Run rclone config path to see the path of current active config file,
usually YOURHOME/.config/rclone/rclone.conf. Open it in your favorite
text editor, find section for the base remote and create new section for
hasher like in the following examples:
[Hasher1]
type = hasher
remote = myRemote:path
hashes = md5
max_age = off
[Hasher2]
type = hasher
remote = /local/path
hashes = dropbox,sha1
max_age = 24h
Make sure the remote has : (colon) in. If you specify the remote without
a colon then rclone will use a local directory of that name. So if you
use a remote of /local/path then rclone will handle hashes for that
directory. If you use remote = name literally then rclone will put files
in a directory called name located under current directory.
Usage
Basic operations
The way to refresh all cached checksums (even unsupported by the base
backend) for a subtree is to re-download all files in the subtree. For
example, use hashsum --download using any supported hashsum on the
command line (we just care to re-read):
You can print or drop hashsum cache using custom backend commands:
Hasher supports two backend commands: generic SUM file import and faster
but less consistent stickyimport.
Instead of SHA1 it can be any hash supported by the remote. The last
argument can point to either a local or an other-remote:path text file
in SUM format. The command will parse the SUM file, then walk down the
path given by the first argument, snapshot current fingerprints and fill
in the cache entries correspondingly. - Paths in the SUM file are
treated as relative to hasher:dir/subdir. - The command will not check
that supplied values are correct. You must know what you are doing. -
This is a one-time action. The SUM file will not get "attached" to the
remote. Cache entries can still be overwritten later, should the
object's fingerprint change. - The tree walk can take long depending on
the tree size. You can increase --checkers to make it faster. Or use
stickyimport if you don't care about fingerprints and consistency.
Configuration reference
Standard options
Here are the Standard options specific to hasher (Better checksums for
other remotes).
--hasher-remote
- Config: remote
- Env Var: RCLONE_HASHER_REMOTE
- Type: string
- Required: true
--hasher-hashes
Properties:
- Config: hashes
- Env Var: RCLONE_HASHER_HASHES
- Type: CommaSepList
- Default: md5,sha1
--hasher-max-age
Properties:
- Config: max_age
- Env Var: RCLONE_HASHER_MAX_AGE
- Type: Duration
- Default: off
Advanced options
Here are the Advanced options specific to hasher (Better checksums for
other remotes).
--hasher-auto-size
Properties:
- Config: auto_size
- Env Var: RCLONE_HASHER_AUTO_SIZE
- Type: SizeSuffix
- Default: 0
--hasher-description
Properties:
- Config: description
- Env Var: RCLONE_HASHER_DESCRIPTION
- Type: string
- Required: false
Metadata
Backend commands
The help below will explain what arguments each command takes.
See the backend command for more info on how to pass options and
arguments.
drop
Drop cache
dump
fulldump
import
Amend hash cache from a SUM file and bind checksums to files by
size/time. Usage Example: rclone backend import hasher:subdir md5
/path/to/sum.md5
stickyimport
Perform fast import of a SUM file
Fill hash cache from a SUM file without verifying file fingerprints.
Usage Example: rclone backend stickyimport hasher:subdir md5
remote:path/to/sum.md5
Hashsum command
Other operations
- any time a hash is requested, follow the logic from 1-4 from hashsum
above
- whenever a file is uploaded or downloaded in full, capture the
stream to calculate all supported hashes on the fly and update
database
- server-side move will update keys of existing cache entries
- deletefile will remove a single cache entry
- purge will remove all cache entries under the purged path
If you set max_age = off, checksums in cache will never age, unless you
fully rewrite or delete the file.
Cache storage
Cached checksums are stored as bolt database files under rclone cache
directory, usually ~/.cache/rclone/kv/. Databases are maintained one per
base backend, named like BaseRemote~hasher.bolt. Checksums for multiple
alias-es into a single base backend will be stored in the single
database. All local paths are treated as aliases into the local backend
(unless encrypted or chunked) and stored in
~/.cache/rclone/kv/local~hasher.bolt. Databases can be shared between
multiple rclone processes.
HDFS
Configuration
rclone config
Name Type
==== ====
hadoop hdfs
This remote is called remote and can now be used like this
rclone ls remote:directory
You may start with a manual setup or use the docker image from the
tests:
For this docker image the remote needs to be configured like this:
[remote]
type = hdfs
namenode = 127.0.0.1:8020
username = root
You can stop this image with docker kill rclone-hdfs (NB it does not use
volumes, so all data uploaded will be lost.)
Modification times
Time accurate to 1 second is stored.
Checksum
Usage information
You can use the rclone about remote: command which will display
filesystem size and current usage.
Standard options
Here are the Standard options specific to hdfs (Hadoop distributed file
system).
--hdfs-namenode
Properties:
- Config: namenode
- Env Var: RCLONE_HDFS_NAMENODE
- Type: CommaSepList
- Default:
--hdfs-username
Properties:
- Config: username
- Env Var: RCLONE_HDFS_USERNAME
- Type: string
- Required: false
- Examples:
- "root"
- Connect to hdfs as root.
Advanced options
Here are the Advanced options specific to hdfs (Hadoop distributed file
system).
--hdfs-service-principal-name
Properties:
- Config: service_principal_name
- Env Var: RCLONE_HDFS_SERVICE_PRINCIPAL_NAME
- Type: string
- Required: false
--hdfs-data-transfer-protection
Properties:
- Config: data_transfer_protection
- Env Var: RCLONE_HDFS_DATA_TRANSFER_PROTECTION
- Type: string
- Required: false
- Examples:
- "privacy"
- Ensure authentication, integrity and encryption enabled.
--hdfs-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_HDFS_ENCODING
- Type: Encoding
- Default: Slash,Colon,Del,Ctl,InvalidUtf8,Dot
--hdfs-description
Properties:
- Config: description
- Env Var: RCLONE_HDFS_DESCRIPTION
- Type: string
- Required: false
Limitations
HiDrive
The initial setup for hidrive involves getting a token from HiDrive
which you need to do in your browser. rclone config walks you through
it.
Configuration
rclone config
You should be aware that OAuth-tokens can be used to access your account
and hence should not be shared with other persons. See the below section
for more information.
See the remote setup docs for how to set it up on a machine with no
Internet browser available.
Note that rclone runs a webserver on your local machine to collect the
token as returned from HiDrive. This only runs from the moment it opens
your browser to the moment you get back the verification code. The
webserver runs on http://127.0.0.1:53682/. If local port 53682 is
protected by a firewall you may need to temporarily unblock the firewall
to complete authorization.
rclone ls remote:
then rclone will return an error which includes a text that implies the
refresh token is invalid or expired.
To fix this you will need to authorize rclone to access your HiDrive
account again.
Using
HiDrive supports its own hash type which is used to verify the integrity
of file contents after successful transfers.
You can read about how this filename encoding works in general here.
Keep in mind that HiDrive only supports file or folder names with a
length of 255 characters or less.
Transfers
See the below section about configuration options for more details.
Root folder
You can set the root folder for rclone. This is the directory that
rclone considers to be the root of your HiDrive.
Usually, you will leave this blank, and rclone will use the root of the
account.
See the below section about configuration options for more details.
See the below section about configuration options for more details.
Standard options
--hidrive-client-id
Properties:
- Config: client_id
- Env Var: RCLONE_HIDRIVE_CLIENT_ID
- Type: string
- Required: false
--hidrive-client-secret
Properties:
- Config: client_secret
- Env Var: RCLONE_HIDRIVE_CLIENT_SECRET
- Type: string
- Required: false
--hidrive-scope-access
Access permissions that rclone should use when requesting access from
HiDrive.
Properties:
- Config: scope_access
- Env Var: RCLONE_HIDRIVE_SCOPE_ACCESS
- Type: string
- Default: "rw"
- Examples:
- "rw"
- Read and write access to resources.
- "ro"
- Read-only access to resources.
Advanced options
--hidrive-token
Properties:
- Config: token
- Env Var: RCLONE_HIDRIVE_TOKEN
- Type: string
- Required: false
--hidrive-auth-url
Properties:
- Config: auth_url
- Env Var: RCLONE_HIDRIVE_AUTH_URL
- Type: string
- Required: false
--hidrive-token-url
Properties:
- Config: token_url
- Env Var: RCLONE_HIDRIVE_TOKEN_URL
- Type: string
- Required: false
--hidrive-scope-role
User-level that rclone should use when requesting access from HiDrive.
Properties:
- Config: scope_role
- Env Var: RCLONE_HIDRIVE_SCOPE_ROLE
- Type: string
- Default: "user"
- Examples:
- "user"
- User-level access to management permissions.
- This will be sufficient in most cases.
- "admin"
- Extensive access to management permissions.
- "owner"
- Full access to management permissions.
--hidrive-root-prefix
Fill in to use the specified folder as the parent for all paths given to
the remote. This way rclone can use any folder as its starting point.
Properties:
- Config: root_prefix
- Env Var: RCLONE_HIDRIVE_ROOT_PREFIX
- Type: string
- Default: "/"
- Examples:
- "/"
- The topmost directory accessible by rclone.
- This will be equivalent with "root" if rclone uses a regular
HiDrive user account.
- "root"
- The topmost directory of the HiDrive user account
- ""
- This specifies that there is no root-prefix for your paths.
- When using this you will always need to specify paths to
this remote with a valid parent e.g. "remote:/path/to/dir"
or "remote:root/path/to/dir".
--hidrive-endpoint
Properties:
- Config: endpoint
- Env Var: RCLONE_HIDRIVE_ENDPOINT
- Type: string
- Default: "https://api.hidrive.strato.com/2.1"
--hidrive-disable-fetching-member-count
Do not fetch number of objects in directories unless it is absolutely
necessary.
Properties:
- Config: disable_fetching_member_count
- Env Var: RCLONE_HIDRIVE_DISABLE_FETCHING_MEMBER_COUNT
- Type: bool
- Default: false
--hidrive-chunk-size
Any files larger than the configured cutoff (or files of unknown size)
will be uploaded in chunks of this size.
The upper limit for this is 2147483647 bytes (about 2.000Gi). That is
the maximum amount of bytes a single upload-operation will support.
Setting this above the upper limit or to a negative value will cause
uploads to fail.
Setting this to larger values may increase the upload speed at the cost
of using more memory. It can be set to smaller values smaller to save on
memory.
Properties:
- Config: chunk_size
- Env Var: RCLONE_HIDRIVE_CHUNK_SIZE
- Type: SizeSuffix
- Default: 48Mi
--hidrive-upload-cutoff
Any files larger than this will be uploaded in chunks of the configured
chunksize.
The upper limit for this is 2147483647 bytes (about 2.000Gi). That is
the maximum amount of bytes a single upload-operation will support.
Setting this above the upper limit will cause uploads to fail.
Properties:
- Config: upload_cutoff
- Env Var: RCLONE_HIDRIVE_UPLOAD_CUTOFF
- Type: SizeSuffix
- Default: 96Mi
--hidrive-upload-concurrency
This is the upper limit for how many transfers for the same file are
running concurrently. Setting this above to a value smaller than 1 will
cause uploads to deadlock.
If you are uploading small numbers of large files over high-speed links
and these uploads do not fully utilize your bandwidth, then increasing
this may help to speed up the transfers.
Properties:
- Config: upload_concurrency
- Env Var: RCLONE_HIDRIVE_UPLOAD_CONCURRENCY
- Type: int
- Default: 4
--hidrive-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_HIDRIVE_ENCODING
- Type: Encoding
- Default: Slash,Dot
--hidrive-description
Properties:
- Config: description
- Env Var: RCLONE_HIDRIVE_DESCRIPTION
- Type: string
- Required: false
Limitations
Symbolic links
This does not affect the .rclonelink-files that rclone uses to encode
and store symbolic links.
Sparse files
HTTP
The HTTP remote is a read only remote for reading files of a webserver.
The webserver should provide file listings which rclone will read and
turn into a remote. This has been tested with common webservers such as
Apache/Nginx/Caddy and will likely work with file listings from most web
servers. (If it doesn't then please file an issue, or send a pull
request!)
The remote: represents the configured url, and any path following it
will be resolved relative to this url, according to the URL standard.
This means with remote url https://beta.rclone.org/branch and path fix,
the resolved URL will be https://beta.rclone.org/branch/fix, while with
path /fix the resolved URL will be https://beta.rclone.org/fix as the
absolute path is resolved from the root of the domain.
Configuration
rclone config
Name Type
==== ====
remote http
This remote is called remote and can now be used like this
rclone ls remote:directory
Read only
This remote is read only - you can't upload files to an HTTP server.
Modification times
Checksum
Since the http remote only has one config parameter it is easy to use
without a config file:
Standard options
--http-url
Properties:
- Config: url
- Env Var: RCLONE_HTTP_URL
- Type: string
- Required: true
--http-no-escape
Properties:
- Config: no_escape
- Env Var: RCLONE_HTTP_NO_ESCAPE
- Type: bool
- Default: false
Advanced options
--http-headers
Properties:
- Config: headers
- Env Var: RCLONE_HTTP_HEADERS
- Type: CommaSepList
- Default:
--http-no-slash
Use this if your target website does not use / on the end of
directories.
Note that this may cause rclone to confuse genuine HTML files with
directories.
Properties:
- Config: no_slash
- Env Var: RCLONE_HTTP_NO_SLASH
- Type: bool
- Default: false
--http-no-head
HEAD requests are mainly used to find file sizes in dir listing. If your
site is being very slow to load then you can try this option. Normally
rclone does a HEAD request for each potential file in a directory
listing to:
If you set this option, rclone will not do the HEAD request. This will
mean that directory listings are much quicker, but rclone won't have the
times or sizes of any files, and some files that don't exist may be in
the listing.
Properties:
- Config: no_head
- Env Var: RCLONE_HTTP_NO_HEAD
- Type: bool
- Default: false
--http-description
Properties:
- Config: description
- Env Var: RCLONE_HTTP_DESCRIPTION
- Type: string
- Required: false
Backend commands
The help below will explain what arguments each command takes.
See the backend command for more info on how to pass options and
arguments.
set
This set command can be used to update the config parameters for a
running http backend.
Usage Examples:
The option keys are named as they are in the config file.
This rebuilds the connection to the http backend when it is called with
the new parameters. Only new parameters need be passed as the values
will default to those currently in use.
Limitations
rclone about is not supported by the HTTP backend. Backends without this
capability cannot determine free space for an rclone mount or use policy
mfs (most free space) as a member of an rclone union remote.
See List of backends that do not support rclone about and rclone about
ImageKit
About ImageKit
Configuration
You will need to log in and get the publicKey and privateKey for your
account from the developer section.
Now run
rclone config
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
[snip]
XX / ImageKit.io
\ (imagekit)
[snip]
Storage> imagekit
Option endpoint.
You can find your ImageKit.io URL endpoint in your
[dashboard](https://imagekit.io/dashboard/developer/api-keys)
Enter a value.
endpoint> https://ik.imagekit.io/imagekit_id
Option public_key.
You can find your ImageKit.io public key in your
[dashboard](https://imagekit.io/dashboard/developer/api-keys)
Enter a value.
public_key> public_****************************
Option private_key.
You can find your ImageKit.io private key in your
[dashboard](https://imagekit.io/dashboard/developer/api-keys)
Enter a value.
private_key> private_****************************
Configuration complete.
Options:
- type: imagekit
- endpoint: https://ik.imagekit.io/imagekit_id
- public_key: public_****************************
- private_key: private_****************************
rclone ls imagekit-media-library:directory
Checksums
Standard options
--imagekit-endpoint
Properties:
- Config: endpoint
- Env Var: RCLONE_IMAGEKIT_ENDPOINT
- Type: string
- Required: true
--imagekit-public-key
Properties:
- Config: public_key
- Env Var: RCLONE_IMAGEKIT_PUBLIC_KEY
- Type: string
- Required: true
--imagekit-private-key
Properties:
- Config: private_key
- Env Var: RCLONE_IMAGEKIT_PRIVATE_KEY
- Type: string
- Required: true
Advanced options
--imagekit-only-signed
Properties:
- Config: only_signed
- Env Var: RCLONE_IMAGEKIT_ONLY_SIGNED
- Type: bool
- Default: false
--imagekit-versions
Properties:
- Config: versions
- Env Var: RCLONE_IMAGEKIT_VERSIONS
- Type: bool
- Default: false
--imagekit-upload-tags
Properties:
- Config: upload_tags
- Env Var: RCLONE_IMAGEKIT_UPLOAD_TAGS
- Type: string
- Required: false
--imagekit-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_IMAGEKIT_ENCODING
- Type: Encoding
- Default:
Slash,LtGt,DoubleQuote,Dollar,Question,Hash,Percent,BackSlash,Del,Ctl,InvalidUtf8,D
ot,SquareBracket
--imagekit-description
Properties:
- Config: description
- Env Var: RCLONE_IMAGEKIT_DESCRIPTION
- Type: string
- Required: false
Metadata
Here are the possible system metadata items for the imagekit backend.
-----------------------------------------------------------------------------------
------------------------
Name Help Type Example
Read Only
-------------------- --------------- -----------
------------------------------------- --------------------
aws-tags AI generated string tag1,tag2
Y
tags by AWS
Rekognition
associated with
the image
-----------------------------------------------------------------------------------
------------------------
Internet Archive
Refer to IAS3 API documentation for the API this backend uses.
Paths are specified as remote:bucket (or remote: for the lsd command.)
You may put subdirectories in too, e.g. remote:item/path/to/dir.
Once you have made a remote, you can use it like this:
rclone ls remote:item
Sync /home/local/directory to the remote item, deleting any excess files
in the item.
Notes
About metadata
rclone reserves all the keys starting with rclone-. Setting value for
these keys will give you warnings, but values are set according to
request.
If there are multiple values for a key, only the first one is returned.
This is a limitation of rclone, that supports one value per one key. It
can be triggered when you did a server-side copy.
These auto-created files can be excluded from the sync using metadata
filtering.
Configuration
First run
rclone config
Standard options
--internetarchive-access-key-id
Leave blank for anonymous access. You can find one here:
https://archive.org/account/s3.php
Properties:
- Config: access_key_id
- Env Var: RCLONE_INTERNETARCHIVE_ACCESS_KEY_ID
- Type: string
- Required: false
--internetarchive-secret-access-key
Properties:
- Config: secret_access_key
- Env Var: RCLONE_INTERNETARCHIVE_SECRET_ACCESS_KEY
- Type: string
- Required: false
Advanced options
Here are the Advanced options specific to internetarchive (Internet
Archive).
--internetarchive-endpoint
IAS3 Endpoint.
Properties:
- Config: endpoint
- Env Var: RCLONE_INTERNETARCHIVE_ENDPOINT
- Type: string
- Default: "https://s3.us.archive.org"
--internetarchive-front-endpoint
Properties:
- Config: front_endpoint
- Env Var: RCLONE_INTERNETARCHIVE_FRONT_ENDPOINT
- Type: string
- Default: "https://archive.org"
--internetarchive-disable-checksum
Don't ask the server to test against MD5 checksum calculated by rclone.
Normally rclone will calculate the MD5 checksum of the input before
uploading it so it can ask the server to check the object against
checksum. This is great for data integrity checking but can cause long
delays for large files to start uploading.
Properties:
- Config: disable_checksum
- Env Var: RCLONE_INTERNETARCHIVE_DISABLE_CHECKSUM
- Type: bool
- Default: true
--internetarchive-wait-archive
Properties:
- Config: wait_archive
- Env Var: RCLONE_INTERNETARCHIVE_WAIT_ARCHIVE
- Type: Duration
- Default: 0s
--internetarchive-encoding
The encoding for the backend.
Properties:
- Config: encoding
- Env Var: RCLONE_INTERNETARCHIVE_ENCODING
- Type: Encoding
- Default: Slash,LtGt,CrLf,Del,Ctl,InvalidUtf8,Dot
--internetarchive-description
Properties:
- Config: description
- Env Var: RCLONE_INTERNETARCHIVE_DESCRIPTION
- Type: string
- Required: false
Metadata
Owner is able to add custom keys. Metadata feature grabs all the keys
including them.
Here are the possible system metadata items for the internetarchive
backend.
-----------------------------------------------------------------------------------
---------------------------------------------------
Name Help Type Example
Read Only
--------------------- ---------------------------------- -----------
-------------------------------------------- --------------------
crc32 CRC32 calculated by Internet string 01234567
Y
Archive
-----------------------------------------------------------------------------------
---------------------------------------------------
Jottacloud
Authentication types
Standard authentication
When this happens, you need to replace the token as described above to
be able to use your remote again.
All personal login tokens you have taken into use will be listed in the
web interface under "My logged in devices", and from the right side of
that list you can click the "X" button to revoke individual tokens.
Legacy authentication
If you are using one of the whitelabel versions (e.g. from Elkjøp) you
may not have the option to generate a CLI token. In this case you'll
have to use the legacy authentication. To do this select yes when the
setup asks for legacy authentication and enter your username and
password. The rest of the setup is identical to the default setup.
Configuration
rclone config
rclone ls remote:
The official Jottacloud client registers a device for each computer you
install it on, and shows them in the backup section of the user
interface. For each folder you select for backup it will create a
mountpoint within this device. A built-in device called Jotta is
special, and contains mountpoints Archive, Sync and some others, used
for corresponding features in official clients.
You are allowed to create new devices and mountpoints. All devices
except the built-in Jotta device are treated as backup devices by
official Jottacloud clients, and the mountpoints on them are individual
backup sets.
With the built-in Jotta device, only existing, built-in, mountpoints can
be selected. In addition to the mentioned Archive and Sync, it may
contain several other mountpoints such as: Latest, Links, Shared and
Trash. All of these are special mountpoints with a different internal
representation than the "regular" mountpoints. Rclone will only to a
very limited degree support them. Generally you should avoid these,
unless you know what you are doing.
--fast-list
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.
Note also that with rclone version 1.58 and newer, information about
MIME types and metadata item utime are not available when using
--fast-list.
Modification times and hashes
Jottacloud supports MD5 type hashes, so you can use the --checksum flag.
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 (in location given by --temp-dir) before it is
uploaded. Small files will be cached in memory - see the
--jottacloud-md5-memory-limit flag. When uploading from local disk the
source checksum is always available, so this does not apply. Starting
with rclone version 1.52 the same is true for encrypted remotes (in
older versions the crypt backend would not calculate hashes for uploads
from local disk, so the Jottacloud backend had to do it as described
above).
Invalid UTF-8 bytes will also be replaced, as they can't be used in XML
strings.
Deleting files
By default, rclone will send all files to the trash when deleting files.
They will be permanently deleted automatically after 30 days. You may
bypass the trash and permanently delete files immediately by using the
--jottacloud-hard-delete flag, or set the equivalent environment
variable. Emptying the trash is supported by the cleanup command.
Versions
Quota information
To view your current quota you can use the rclone about remote: command
which will display your usage limit (unless it is unlimited) and the
current usage.
Standard options
--jottacloud-client-id
Properties:
- Config: client_id
- Env Var: RCLONE_JOTTACLOUD_CLIENT_ID
- Type: string
- Required: false
--jottacloud-client-secret
Properties:
- Config: client_secret
- Env Var: RCLONE_JOTTACLOUD_CLIENT_SECRET
- Type: string
- Required: false
Advanced options
--jottacloud-token
Properties:
- Config: token
- Env Var: RCLONE_JOTTACLOUD_TOKEN
- Type: string
- Required: false
--jottacloud-auth-url
Properties:
- Config: auth_url
- Env Var: RCLONE_JOTTACLOUD_AUTH_URL
- Type: string
- Required: false
--jottacloud-token-url
Properties:
- Config: token_url
- Env Var: RCLONE_JOTTACLOUD_TOKEN_URL
- Type: string
- Required: false
--jottacloud-md5-memory-limit
Files bigger than this will be cached on disk to calculate the MD5 if
required.
Properties:
- Config: md5_memory_limit
- Env Var: RCLONE_JOTTACLOUD_MD5_MEMORY_LIMIT
- Type: SizeSuffix
- Default: 10Mi
--jottacloud-trashed-only
Properties:
- Config: trashed_only
- Env Var: RCLONE_JOTTACLOUD_TRASHED_ONLY
- Type: bool
- Default: false
--jottacloud-hard-delete
Delete files permanently rather than putting them into the trash.
Properties:
- Config: hard_delete
- Env Var: RCLONE_JOTTACLOUD_HARD_DELETE
- Type: bool
- Default: false
--jottacloud-upload-resume-limit
Properties:
- Config: upload_resume_limit
- Env Var: RCLONE_JOTTACLOUD_UPLOAD_RESUME_LIMIT
- Type: SizeSuffix
- Default: 10Mi
--jottacloud-no-versions
Properties:
- Config: no_versions
- Env Var: RCLONE_JOTTACLOUD_NO_VERSIONS
- Type: bool
- Default: false
--jottacloud-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_JOTTACLOUD_ENCODING
- Type: Encoding
- Default:
Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,Del,Ctl,InvalidUtf8,Dot
--jottacloud-description
Properties:
- Config: description
- Env Var: RCLONE_JOTTACLOUD_DESCRIPTION
- Type: string
- Required: false
Metadata
Here are the possible system metadata items for the jottacloud backend.
-----------------------------------------------------------------------------------
------------------
Name Help Type Example
Read Only
-------------- --------------- ----------- -------------------------------------
--------------------
btime Time of file RFC 3339 2006-01-02T15:04:05.999999999Z07:00
N
birth
(creation),
read from
rclone metadata
-----------------------------------------------------------------------------------
------------------
Limitations
Note that Jottacloud is case insensitive so you can't have a file called
"Hello.doc" and one called "hello.doc".
There are quite a few characters that can'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.
Troubleshooting
Koofr
Configuration
rclone config
You can choose to edit advanced config in order to enter your own
service URL if you use an on-premise or white label Koofr instance, or
choose an alternative mount instead of your primary storage.
rclone ls koofr:
Invalid UTF-8 bytes will also be replaced, as they can't be used in XML
strings.
Standard options
Here are the Standard options specific to koofr (Koofr, Digi Storage and
other Koofr-compatible storage providers).
--koofr-provider
Properties:
- Config: provider
- Env Var: RCLONE_KOOFR_PROVIDER
- Type: string
- Required: false
- Examples:
- "koofr"
- Koofr, https://app.koofr.net/
- "digistorage"
- Digi Storage, https://storage.rcs-rds.ro/
- "other"
- Any other Koofr API compatible storage service
--koofr-endpoint
The Koofr API endpoint to use.
Properties:
- Config: endpoint
- Env Var: RCLONE_KOOFR_ENDPOINT
- Provider: other
- Type: string
- Required: true
--koofr-user
Properties:
- Config: user
- Env Var: RCLONE_KOOFR_USER
- Type: string
- Required: true
--koofr-password
Properties:
- Config: password
- Env Var: RCLONE_KOOFR_PASSWORD
- Provider: koofr
- Type: string
- Required: true
Advanced options
Here are the Advanced options specific to koofr (Koofr, Digi Storage and
other Koofr-compatible storage providers).
--koofr-mountid
Properties:
- Config: mountid
- Env Var: RCLONE_KOOFR_MOUNTID
- Type: string
- Required: false
--koofr-setmtime
Properties:
- Config: setmtime
- Env Var: RCLONE_KOOFR_SETMTIME
- Type: bool
- Default: true
--koofr-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_KOOFR_ENCODING
- Type: Encoding
- Default: Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot
--koofr-description
Properties:
- Config: description
- Env Var: RCLONE_KOOFR_DESCRIPTION
- Type: string
- Required: false
Limitations
Note that Koofr is case insensitive so you can't have a file called
"Hello.doc" and one called "hello.doc".
Providers
Koofr
This is the original Koofr storage provider used as main example and
described in the configuration section above.
Digi Storage
rclone config
Other
You may also want to use another, public or private storage provider
that runs a Koofr API compatible service, by simply providing the base
URL to connect to.
Here is an example of how to make a remote called other. First run:
rclone config
Linkbox
Configuration
First run:
rclone config
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
XX / Linkbox
\ (linkbox)
Storage> XX
Option token.
Token from https://www.linkbox.to/admin/account
Enter a value.
token> testFromCLToken
Configuration complete.
Options:
- type: linkbox
- token: XXXXXXXXXXX
Keep this "linkbox" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
Standard options
--linkbox-token
Token from https://www.linkbox.to/admin/account
Properties:
- Config: token
- Env Var: RCLONE_LINKBOX_TOKEN
- Type: string
- Required: true
Advanced options
--linkbox-description
Properties:
- Config: description
- Env Var: RCLONE_LINKBOX_DESCRIPTION
- Type: string
- Required: false
Limitations
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Mail.ru Cloud
Features highlights
Configuration
You will need to log in and create an app password for rclone. Rclone
will not work with your normal username and password - it will give an
error like oauth2: server response missing access_token.
Now run
rclone config
This must be an app password - rclone will not work with your normal
password. See the Configuration section in the docs for how to make an
app password.
y) Yes type in my own password
g) Generate random password
y/g> y
Enter the password:
password:
Confirm the password:
password:
Skip full upload if there is another file with same data hash.
This feature is called "speedup" or "put by hash". It is especially efficient
in case of generally available files like popular books, video or audio clips
[snip]
Enter a boolean value (true or false). Press Enter for the default ("true").
Choose a number from below, or type in your own value
1 / Enable
\ "true"
2 / Disable
\ "false"
speedup_enable> 1
Edit advanced config? (y/n)
y) Yes
n) No
y/n> n
Remote config
Configuration complete.
Options:
- type: mailru
- user: [email protected]
- pass: *** ENCRYPTED ***
- speedup_enable: true
Keep this "remote" remote?
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
Configuration of this backend does not require a local web browser. You
can use the configured backend as shown below:
rclone ls remote:directory
Emptying Trash
Quota information
To view your current quota you can use the rclone about remote: command
which will display your usage limit (quota) and the current usage.
Restricted filename characters
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Standard options
--mailru-client-id
Properties:
- Config: client_id
- Env Var: RCLONE_MAILRU_CLIENT_ID
- Type: string
- Required: false
--mailru-client-secret
Properties:
- Config: client_secret
- Env Var: RCLONE_MAILRU_CLIENT_SECRET
- Type: string
- Required: false
--mailru-user
Properties:
- Config: user
- Env Var: RCLONE_MAILRU_USER
- Type: string
- Required: true
--mailru-pass
Password.
This must be an app password - rclone will not work with your normal
password. See the Configuration section in the docs for how to make an
app password.
Properties:
- Config: pass
- Env Var: RCLONE_MAILRU_PASS
- Type: string
- Required: true
--mailru-speedup-enable
Skip full upload if there is another file with same data hash.
Properties:
- Config: speedup_enable
- Env Var: RCLONE_MAILRU_SPEEDUP_ENABLE
- Type: bool
- Default: true
- Examples:
- "true"
- Enable
- "false"
- Disable
Advanced options
--mailru-token
Properties:
- Config: token
- Env Var: RCLONE_MAILRU_TOKEN
- Type: string
- Required: false
--mailru-auth-url
Properties:
- Config: auth_url
- Env Var: RCLONE_MAILRU_AUTH_URL
- Type: string
- Required: false
--mailru-token-url
Properties:
- Config: token_url
- Env Var: RCLONE_MAILRU_TOKEN_URL
- Type: string
- Required: false
--mailru-speedup-file-patterns
Comma separated list of file name patterns eligible for speedup (put by
hash).
Patterns are case insensitive and can contain '*' or '?' meta
characters.
Properties:
- Config: speedup_file_patterns
- Env Var: RCLONE_MAILRU_SPEEDUP_FILE_PATTERNS
- Type: string
- Default: ".mkv,.avi,.mp4,.mp3,.zip,.gz,.rar,.pdf"
- Examples:
- ""
- Empty list completely disables speedup (put by hash).
- "*"
- All files will be attempted for speedup.
- ".mkv,.avi,.mp4,.mp3"
- Only common audio/video files will be tried for put by hash.
- ".zip,.gz,.rar,.pdf"
- Only common archives or PDF books will be tried for speedup.
--mailru-speedup-max-disk
This option allows you to disable speedup (put by hash) for large files.
Reason is that preliminary hashing can exhaust your RAM or disk space.
Properties:
- Config: speedup_max_disk
- Env Var: RCLONE_MAILRU_SPEEDUP_MAX_DISK
- Type: SizeSuffix
- Default: 3Gi
- Examples:
- "0"
- Completely disable speedup (put by hash).
- "1G"
- Files larger than 1Gb will be uploaded directly.
- "3G"
- Choose this option if you have less than 3Gb free on local
disk.
--mailru-speedup-max-memory
Files larger than the size given below will always be hashed on disk.
Properties:
- Config: speedup_max_memory
- Env Var: RCLONE_MAILRU_SPEEDUP_MAX_MEMORY
- Type: SizeSuffix
- Default: 32Mi
- Examples:
- "0"
- Preliminary hashing will always be done in a temporary disk
location.
- "32M"
- Do not dedicate more than 32Mb RAM for preliminary hashing.
- "256M"
- You have at most 256Mb RAM free for hash calculations.
--mailru-check-hash
Properties:
- Config: check_hash
- Env Var: RCLONE_MAILRU_CHECK_HASH
- Type: bool
- Default: true
- Examples:
- "true"
- Fail with error.
- "false"
- Ignore and continue.
--mailru-user-agent
Properties:
- Config: user_agent
- Env Var: RCLONE_MAILRU_USER_AGENT
- Type: string
- Required: false
--mailru-quirks
Properties:
- Config: quirks
- Env Var: RCLONE_MAILRU_QUIRKS
- Type: string
- Required: false
--mailru-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_MAILRU_ENCODING
- Type: Encoding
- Default:
Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,InvalidUtf8,D
ot
--mailru-description
Properties:
- Config: description
- Env Var: RCLONE_MAILRU_DESCRIPTION
- Type: string
- Required: false
Limitations
File size limits depend on your account. A single file size is limited
by 2G for a free account and unlimited for paid tariffs. Please refer to
the Mail.ru site for the total uploaded size limits.
Note that Mailru is case insensitive so you can't have a file called
"Hello.doc" and one called "hello.doc".
Mega
Mega 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.
This is an rclone backend for Mega which supports the file transfer
features of Mega using the same client side encryption.
Configuration
rclone config
NOTE: The encryption keys need to have been already generated after a
regular login via the browser, otherwise attempting to use the
credentials in rclone will fail.
rclone ls remote:
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Duplicated files
Mega can have two files with exactly the same name and path (unlike a
normal file system).
Duplicated files cause problems with the syncing and you will see
messages in the log about duplicates.
Failure to log-in
If you are connecting to your Mega remote for the first time, to test
access and synchronization, you may receive an error such as
The diagnostic steps often recommended in the rclone forum start with
the MEGAcmd utility. Note that this refers to the official C++ command
from https://github.com/meganz/MEGAcmd and not the go language built
command from t3rm1n4l/megacmd that is no longer maintained.
Follow the instructions for installing MEGAcmd and try accessing your
remote as they recommend. You can establish whether or not you can log
in using MEGAcmd, and obtain diagnostic information to help you, and
search or work with others in the forum.
Note that some have found issues with passwords containing special
characters. If you can not log on with rclone, but MEGAcmd logs on just
fine, then consider changing your password temporarily to pure
alphanumeric characters, in case that helps.
Mega remotes seem to get blocked (reject logins) under "heavy use". We
haven't worked out the exact blocking rules but it seems to be related
to fast paced, successive rclone commands.
You can mitigate this issue by mounting the remote it with rclone mount.
This will log-in when mounting and a log-out when unmounting only. You
can also run rclone rcd and then use rclone rc to run the commands over
the API to avoid logging in each time.
Rclone does not currently close mega sessions (you can see them in the
web interface), however closing the sessions does not solve the issue.
Note that this has been observed by trial and error and might not be set
in stone.
Other tools seem not to produce this blocking effect, as they use a
different working approach (state-based, using sessionIDs instead of
log-in) which isn't compatible with the current stateless rclone
approach.
Note that once blocked, the use of other tools (such as megacmd) is not
a sure workaround: following megacmd login times have been observed in
succession for blocked remote: 7 minutes, 20 min, 30min, 30 min, 30min.
Web access looks unaffected though.
So, if rclone was working nicely and suddenly you are unable to log-in
and you are sure the user and the password are correct, likely you have
got the remote blocked for a while.
Standard options
User name.
Properties:
- Config: user
- Env Var: RCLONE_MEGA_USER
- Type: string
- Required: true
--mega-pass
Password.
Properties:
- Config: pass
- Env Var: RCLONE_MEGA_PASS
- Type: string
- Required: true
Advanced options
--mega-debug
If this flag is set (along with -vv) it will print further debugging
information from the mega backend.
Properties:
- Config: debug
- Env Var: RCLONE_MEGA_DEBUG
- Type: bool
- Default: false
--mega-hard-delete
Delete files permanently rather than putting them into the trash.
Normally the mega backend will put all deletions into the trash rather
than permanently deleting them. If you specify this then rclone will
permanently delete objects instead.
Properties:
- Config: hard_delete
- Env Var: RCLONE_MEGA_HARD_DELETE
- Type: bool
- Default: false
--mega-use-https
Use HTTPS for transfers.
MEGA uses plain text HTTP connections by default. Some ISPs throttle
HTTP connections, this causes transfers to become very slow. Enabling
this will force MEGA to use HTTPS for all transfers. HTTPS is normally
not necessary since all data is already encrypted anyway. Enabling it
will increase CPU usage and add network overhead.
Properties:
- Config: use_https
- Env Var: RCLONE_MEGA_USE_HTTPS
- Type: bool
- Default: false
--mega-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_MEGA_ENCODING
- Type: Encoding
- Default: Slash,InvalidUtf8,Dot
--mega-description
Properties:
- Config: description
- Env Var: RCLONE_MEGA_DESCRIPTION
- Type: string
- Required: false
Process killed
Limitations
Memory
The memory backend is an in RAM backend. It does not persist its data -
use the local backend for that.
The memory backend behaves like a bucket-based remote (e.g. like s3).
Because it has no parameters you can just use it with the :memory:
remote name.
Configuration
You can configure it as a remote like this with rclone config too if you
want to:
Remote config
Configuration complete.
Options:
- type: memory
Keep this "remote" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
The memory backend supports MD5 hashes and modification times accurate
to 1 nS.
Advanced options
Here are the Advanced options specific to memory (In memory object
storage system.).
--memory-description
Properties:
- Config: description
- Env Var: RCLONE_MEMORY_DESCRIPTION
- Type: string
- Required: false
Akamai NetStorage
Paths are specified as remote: You may put subdirectories in too, e.g.
remote:/path/to/dir. If you have a CP code you can use that as the
folder after the domain such as <domain>/<cpcode>/<internal directories
within cpcode>.
See all buckets rclone lsd remote: The initial setup for Netstorage
involves getting an account and secret. Use rclone config to walk you
through the setup process.
Configuration
rclone config
n) New remote
d) Delete remote
q) Quit config
e/n/d/q> n
3. For this example, enter ns1 when you reach the name> prompt.
name> ns1
5. Select between the HTTP or HTTPS protocol. Most users should choose
HTTPS, which is the default. HTTP is provided primarily for
debugging purposes.
8. Set the Netstorage account secret/G2O key which will be used for
authentication purposes. Select the y option to set your own
password then enter your secret. Note: The secret is stored in the
rclone.conf file with hex-encoded encryption.
[ns1]
type = netstorage
protocol = http
host = baseball-nsu.akamaihd.net/123456/content/
account = username
secret = *** ENCRYPTED ***
--------------------
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
Example operations
Get started with rclone and NetStorage with these examples. For
additional rclone commands, visit https://rclone.org/commands/.
Your credentials must have access to two CP codes on the same remote.
You can't perform operations between different remotes.
Features
Symlink Support
Individual symlink files on the remote can be used with the commands
like "cat" to print the destination name, or "delete" to delete symlink,
or copy, copy/to and move/moveto to download from the remote to local.
Note: individual symlink files on the remote should be specified
including the suffix .rclonelink.
Note: No file with the suffix .rclonelink should ever exist on the
server since it is not possible to actually upload/create a file with
.rclonelink suffix with rclone, it can only exist if it is manually
created through a non-rclone method on the remote.
Rclone will intercept all file uploads and mkdir commands for the
NetStorage remote and will explicitly issue the mkdir command for each
directory in the uploading path. This will help with the
interoperability with the other Akamai services such as SFTP and the
Content Management Shell (CMShell). Rclone will not guarantee
correctness of operations with implicit directories which might have
been created as a result of using an upload API directly.
- Rclone will use the ListR method for some commands by default.
Commands such as lsf -R will use ListR by default. To disable this,
include the --disable listR option to use the non-recursive method
of listing objects.
- Rclone will not use the ListR method for some commands. Commands
such as sync don't use ListR by default. To force using the ListR
method, include the --fast-list option.
There are pros and cons of using the ListR method, refer to rclone
documentation. In general, the sync command over an existing deep tree
on the remote will run faster with the "--fast-list" flag but with extra
memory usage as a side effect. It might also result in higher CPU
utilization but the whole task can be completed faster.
Note: There is a known limitation that "lsf -R" will display number of
files in the directory and directory size as -1 when ListR method is
used. The workaround is to pass "--disable listR" flag if these numbers
are important in the output.
Purge
Note: Read the NetStorage Usage API for considerations when using
"quick-delete". In general, using quick-delete method will not delete
the tree immediately and objects targeted for quick-delete may still be
accessible.
Standard options
--netstorage-host
Properties:
- Config: host
- Env Var: RCLONE_NETSTORAGE_HOST
- Type: string
- Required: true
--netstorage-account
Properties:
- Config: account
- Env Var: RCLONE_NETSTORAGE_ACCOUNT
- Type: string
- Required: true
--netstorage-secret
Please choose the 'y' option to set your own password then enter your
secret.
Properties:
- Config: secret
- Env Var: RCLONE_NETSTORAGE_SECRET
- Type: string
- Required: true
Advanced options
--netstorage-protocol
Most users should choose HTTPS, which is the default. HTTP is provided
primarily for debugging purposes.
Properties:
- Config: protocol
- Env Var: RCLONE_NETSTORAGE_PROTOCOL
- Type: string
- Default: "https"
- Examples:
- "http"
- HTTP protocol
- "https"
- HTTPS protocol
--netstorage-description
Properties:
- Config: description
- Env Var: RCLONE_NETSTORAGE_DESCRIPTION
- Type: string
- Required: false
Backend commands
The help below will explain what arguments each command takes.
See the backend command for more info on how to pass options and
arguments.
du
symlink
You can create a symbolic link in ObjectStore with the symlink action.
Configuration
rclone ls remote:container
--fast-list
The modification time is stored as metadata on the object with the mtime
key. It is stored using RFC3339 Format time with nanosecond precision.
The metadata is supplied during directory listings so there is no
performance overhead to using it.
If you wish to use the Azure standard LastModified time stored on the
object as the modified time, then use the --use-server-modtime flag.
Note that rclone can't set LastModified, so using the --update flag when
syncing is recommended if using --use-server-modtime.
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,
e.g. the local disk.
Performance
File names can also not end with the following characters. These only
get replaced if they are the last character in the name:
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Authentication
Env Auth
1. Environment Variables
2. Managed Service Identity Credentials
3. Azure CLI credentials (as used by the az tool)
When using Managed Service Identity if the VM(SS) on which this program
is running has a system-assigned identity, it will be used by default.
If the resource has no system-assigned but exactly one user-assigned
identity, the user-assigned identity will be used by default.
Or
This is the most straight forward and least flexible way. Just fill in
the account and key lines and leave the rest blank.
SAS URL
This can be an account level SAS URL or container level SAS URL.
An account level SAS URL or container level SAS URL can be obtained from
the Azure portal or the Azure Storage Explorer. To get a container level
SAS URL right click on a container in the Azure Blob explorer in the
Azure portal.
If you use a container level SAS URL, rclone operations are permitted
only on a particular container, e.g.
rclone ls azureblob:container
You can also list the single container from the root. This will only
show the container specified by the SAS URL.
Note that you can't see or access any other containers - this will fail
rclone ls azureblob:othercontainer
Container level SAS URLs are useful for temporarily allowing third
parties access to a single container or putting credentials into an
untrusted environment such as a CI build server.
If these variables are set, rclone will authenticate with username and
password.
However if you have multiple user identities to choose from these must
be explicitly specified using exactly one of the msi_object_id,
msi_client_id, or msi_mi_res_id parameters.
If you want to access resources with public anonymous access then set
account only. You can do this without making an rclone config:
Standard options
--azureblob-account
Properties:
- Config: account
- Env Var: RCLONE_AZUREBLOB_ACCOUNT
- Type: string
- Required: false
--azureblob-env-auth
Properties:
- Config: env_auth
- Env Var: RCLONE_AZUREBLOB_ENV_AUTH
- Type: bool
- Default: false
--azureblob-key
Properties:
- Config: key
- Env Var: RCLONE_AZUREBLOB_KEY
- Type: string
- Required: false
--azureblob-sas-url
SAS URL for container level access only.
Properties:
- Config: sas_url
- Env Var: RCLONE_AZUREBLOB_SAS_URL
- Type: string
- Required: false
--azureblob-tenant
Properties:
- Config: tenant
- Env Var: RCLONE_AZUREBLOB_TENANT
- Type: string
- Required: false
--azureblob-client-id
Properties:
- Config: client_id
- Env Var: RCLONE_AZUREBLOB_CLIENT_ID
- Type: string
- Required: false
--azureblob-client-secret
Properties:
- Config: client_secret
- Env Var: RCLONE_AZUREBLOB_CLIENT_SECRET
- Type: string
- Required: false
--azureblob-client-certificate-path
Properties:
- Config: client_certificate_path
- Env Var: RCLONE_AZUREBLOB_CLIENT_CERTIFICATE_PATH
- Type: string
- Required: false
--azureblob-client-certificate-password
Properties:
- Config: client_certificate_password
- Env Var: RCLONE_AZUREBLOB_CLIENT_CERTIFICATE_PASSWORD
- Type: string
- Required: false
Advanced options
--azureblob-client-send-certificate-chain
Properties:
- Config: client_send_certificate_chain
- Env Var: RCLONE_AZUREBLOB_CLIENT_SEND_CERTIFICATE_CHAIN
- Type: bool
- Default: false
--azureblob-username
Properties:
- Config: username
- Env Var: RCLONE_AZUREBLOB_USERNAME
- Type: string
- Required: false
--azureblob-password
The user's password
Properties:
- Config: password
- Env Var: RCLONE_AZUREBLOB_PASSWORD
- Type: string
- Required: false
--azureblob-service-principal-file
Leave blank normally. Needed only if you want to use a service principal
instead of interactive login.
See "Create an Azure service principal" and "Assign an Azure role for
access to blob data" pages for more details.
Properties:
- Config: service_principal_file
- Env Var: RCLONE_AZUREBLOB_SERVICE_PRINCIPAL_FILE
- Type: string
- Required: false
--azureblob-use-msi
Properties:
- Config: use_msi
- Env Var: RCLONE_AZUREBLOB_USE_MSI
- Type: bool
- Default: false
--azureblob-msi-object-id
Properties:
- Config: msi_object_id
- Env Var: RCLONE_AZUREBLOB_MSI_OBJECT_ID
- Type: string
- Required: false
--azureblob-msi-client-id
Properties:
- Config: msi_client_id
- Env Var: RCLONE_AZUREBLOB_MSI_CLIENT_ID
- Type: string
- Required: false
--azureblob-msi-mi-res-id
Properties:
- Config: msi_mi_res_id
- Env Var: RCLONE_AZUREBLOB_MSI_MI_RES_ID
- Type: string
- Required: false
--azureblob-use-emulator
Properties:
- Config: use_emulator
- Env Var: RCLONE_AZUREBLOB_USE_EMULATOR
- Type: bool
- Default: false
--azureblob-endpoint
Endpoint for the service.
Properties:
- Config: endpoint
- Env Var: RCLONE_AZUREBLOB_ENDPOINT
- Type: string
- Required: false
--azureblob-upload-cutoff
Properties:
- Config: upload_cutoff
- Env Var: RCLONE_AZUREBLOB_UPLOAD_CUTOFF
- Type: string
- Required: false
--azureblob-chunk-size
Properties:
- Config: chunk_size
- Env Var: RCLONE_AZUREBLOB_CHUNK_SIZE
- Type: SizeSuffix
- Default: 4Mi
--azureblob-upload-concurrency
This is the number of chunks of the same file that are uploaded
concurrently.
If you are uploading small numbers of large files over high-speed links
and these uploads do not fully utilize your bandwidth, then increasing
this may help to speed up the transfers.
Properties:
- Config: upload_concurrency
- Env Var: RCLONE_AZUREBLOB_UPLOAD_CONCURRENCY
- Type: int
- Default: 16
--azureblob-list-chunk
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 ). This can be used
to limit the number of blobs items to return, to avoid the time out.
Properties:
- Config: list_chunk
- Env Var: RCLONE_AZUREBLOB_LIST_CHUNK
- Type: int
- Default: 5000
--azureblob-access-tier
Properties:
- Config: access_tier
- Env Var: RCLONE_AZUREBLOB_ACCESS_TIER
- Type: string
- Required: false
--azureblob-archive-tier-delete
With this flag set then before rclone attempts to overwrite an archive
tier blob, it will delete the existing blob before uploading its
replacement. This has the potential for data loss if the upload fails
(unlike updating a normal blob) and also may cost more since deleting
archive tier blobs early may be chargable.
Properties:
- Config: archive_tier_delete
- Env Var: RCLONE_AZUREBLOB_ARCHIVE_TIER_DELETE
- Type: bool
- Default: false
--azureblob-disable-checksum
Normally rclone will calculate the MD5 checksum of the input before
uploading it so it can add it to metadata on the object. This is great
for data integrity checking but can cause long delays for large files to
start uploading.
Properties:
- Config: disable_checksum
- Env Var: RCLONE_AZUREBLOB_DISABLE_CHECKSUM
- Type: bool
- Default: false
--azureblob-memory-pool-flush-time
How often internal memory buffer pools will be flushed. (no longer used)
Properties:
- Config: memory_pool_flush_time
- Env Var: RCLONE_AZUREBLOB_MEMORY_POOL_FLUSH_TIME
- Type: Duration
- Default: 1m0s
--azureblob-memory-pool-use-mmap
Whether to use mmap buffers in internal memory pool. (no longer used)
Properties:
- Config: memory_pool_use_mmap
- Env Var: RCLONE_AZUREBLOB_MEMORY_POOL_USE_MMAP
- Type: bool
- Default: false
--azureblob-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_AZUREBLOB_ENCODING
- Type: Encoding
- Default: Slash,BackSlash,Del,Ctl,RightPeriod,InvalidUtf8
--azureblob-public-access
Public access level of a container: blob or container.
Properties:
- Config: public_access
- Env Var: RCLONE_AZUREBLOB_PUBLIC_ACCESS
- Type: string
- Required: false
- Examples:
- ""
- The container and its blobs can be accessed only with an
authorized request.
- It's a default value.
- "blob"
- Blob data within this container can be read via anonymous
request.
- "container"
- Allow full public read access for container and blob data.
--azureblob-directory-markers
Empty folders are unsupported for bucket based remotes, this option
creates an empty object ending with "/", to persist the folder.
Properties:
- Config: directory_markers
- Env Var: RCLONE_AZUREBLOB_DIRECTORY_MARKERS
- Type: bool
- Default: false
--azureblob-no-check-container
Properties:
- Config: no_check_container
- Env Var: RCLONE_AZUREBLOB_NO_CHECK_CONTAINER
- Type: bool
- Default: false
--azureblob-no-head-object
Properties:
- Config: no_head_object
- Env Var: RCLONE_AZUREBLOB_NO_HEAD_OBJECT
- Type: bool
- Default: false
--azureblob-delete-snapshots
Properties:
- Config: delete_snapshots
- Env Var: RCLONE_AZUREBLOB_DELETE_SNAPSHOTS
- Type: string
- Required: false
- Choices:
- ""
- By default, the delete operation fails if a blob has
snapshots
- "include"
- Specify 'include' to remove the root blob and all its
snapshots
- "only"
- Specify 'only' to remove only the snapshots but keep the
root blob.
--azureblob-description
Properties:
- Config: description
- Env Var: RCLONE_AZUREBLOB_DESCRIPTION
- Type: string
- Required: false
You can set custom upload headers with the --header-upload flag.
- Cache-Control
- Content-Disposition
- Content-Encoding
- Content-Language
- Content-Type
Limitations
MD5 sums are only uploaded with chunked files if the source has an MD5
sum. This will always be the case for a local to azure copy.
See List of backends that do not support rclone about and rclone about
Azure Storage Emulator Support
You can run rclone with the storage emulator (usually azurite).
To do this, just set up a new remote with rclone config following the
instructions in the introduction and set use_emulator in the advanced
settings as true. You do not need to provide a default account name nor
an account key. But you can override them in the account and key
options. (Prior to v1.61 they were hard coded to azurite's
devstoreaccount1.)
Paths are specified as remote: You may put subdirectories in too, e.g.
remote:path/to/dir.
Configuration
rclone config
Option account.
Azure Storage Account Name.
Set this to the Azure Storage Account Name in use.
Leave blank to use SAS URL or connection string, otherwise it needs to be set.
If this is blank and if env_auth is set it will be read from the
environment variable `AZURE_STORAGE_ACCOUNT_NAME` if possible.
Enter a value. Press Enter to leave empty.
account> account_name
Option share_name.
Azure Files Share Name.
This is required and is the name of the share to access.
Enter a value. Press Enter to leave empty.
share_name> share_name
Option env_auth.
Read credentials from runtime (environment variables, CLI or MSI).
See the [authentication docs](/azurefiles#authentication) for full info.
Enter a boolean value (true or false). Press Enter for the default (false).
env_auth>
Option key.
Storage Account Shared Key.
Leave blank to use SAS URL or connection string.
Enter a value. Press Enter to leave empty.
key> base64encodedkey==
Option sas_url.
SAS URL.
Leave blank if using account/key or connection string.
Enter a value. Press Enter to leave empty.
sas_url>
Option connection_string.
Azure Files Connection String.
Enter a value. Press Enter to leave empty.
connection_string>
[snip]
Configuration complete.
Options:
- type: azurefiles
- account: account_name
- share_name: share_name
- key: base64encodedkey==
Keep this "remote" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d>
rclone ls remote:
Modified time
File names can also not end with the following characters. These only
get replaced if they are the last character in the name:
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Hashes
MD5 hashes are stored with files. Not all files will have MD5 hashes as
these have to be uploaded with the file.
Authentication
Env Auth
1. Environment Variables
2. Managed Service Identity Credentials
3. Azure CLI credentials (as used by the az tool)
When using Managed Service Identity if the VM(SS) on which this program
is running has a system-assigned identity, it will be used by default.
If the resource has no system-assigned but exactly one user-assigned
identity, the user-assigned identity will be used by default.
For example if you were to login with a service principal like this:
Or
This is the most straight forward and least flexible way. Just fill in
the account and key lines and leave the rest blank.
SAS URL
Connection String
If these variables are set, rclone will authenticate with username and
password.
- tenant: (optional) tenant to authenticate in. Defaults to
"organizations".
- client_id: client ID of the application the user will authenticate
to
- username: a username (usually an email address)
- password: the user's password
However if you have multiple user identities to choose from these must
be explicitly specified using exactly one of the msi_object_id,
msi_client_id, or msi_mi_res_id parameters.
Standard options
--azurefiles-account
Properties:
- Config: account
- Env Var: RCLONE_AZUREFILES_ACCOUNT
- Type: string
- Required: false
--azurefiles-share-name
- Config: share_name
- Env Var: RCLONE_AZUREFILES_SHARE_NAME
- Type: string
- Required: false
--azurefiles-env-auth
Properties:
- Config: env_auth
- Env Var: RCLONE_AZUREFILES_ENV_AUTH
- Type: bool
- Default: false
--azurefiles-key
Properties:
- Config: key
- Env Var: RCLONE_AZUREFILES_KEY
- Type: string
- Required: false
--azurefiles-sas-url
SAS URL.
Properties:
- Config: sas_url
- Env Var: RCLONE_AZUREFILES_SAS_URL
- Type: string
- Required: false
--azurefiles-connection-string
Properties:
- Config: connection_string
- Env Var: RCLONE_AZUREFILES_CONNECTION_STRING
- Type: string
- Required: false
--azurefiles-tenant
ID of the service principal's tenant. Also called its directory ID.
Properties:
- Config: tenant
- Env Var: RCLONE_AZUREFILES_TENANT
- Type: string
- Required: false
--azurefiles-client-id
Properties:
- Config: client_id
- Env Var: RCLONE_AZUREFILES_CLIENT_ID
- Type: string
- Required: false
--azurefiles-client-secret
Properties:
- Config: client_secret
- Env Var: RCLONE_AZUREFILES_CLIENT_SECRET
- Type: string
- Required: false
--azurefiles-client-certificate-path
Properties:
- Config: client_certificate_path
- Env Var: RCLONE_AZUREFILES_CLIENT_CERTIFICATE_PATH
- Type: string
- Required: false
--azurefiles-client-certificate-password
Properties:
- Config: client_certificate_password
- Env Var: RCLONE_AZUREFILES_CLIENT_CERTIFICATE_PASSWORD
- Type: string
- Required: false
Advanced options
--azurefiles-client-send-certificate-chain
Properties:
- Config: client_send_certificate_chain
- Env Var: RCLONE_AZUREFILES_CLIENT_SEND_CERTIFICATE_CHAIN
- Type: bool
- Default: false
--azurefiles-username
Properties:
- Config: username
- Env Var: RCLONE_AZUREFILES_USERNAME
- Type: string
- Required: false
--azurefiles-password
Properties:
- Config: password
- Env Var: RCLONE_AZUREFILES_PASSWORD
- Type: string
- Required: false
--azurefiles-service-principal-file
Leave blank normally. Needed only if you want to use a service principal
instead of interactive login.
See "Create an Azure service principal" and "Assign an Azure role for
access to files data" pages for more details.
Properties:
- Config: service_principal_file
- Env Var: RCLONE_AZUREFILES_SERVICE_PRINCIPAL_FILE
- Type: string
- Required: false
--azurefiles-use-msi
Properties:
- Config: use_msi
- Env Var: RCLONE_AZUREFILES_USE_MSI
- Type: bool
- Default: false
--azurefiles-msi-object-id
Properties:
- Config: msi_object_id
- Env Var: RCLONE_AZUREFILES_MSI_OBJECT_ID
- Type: string
- Required: false
--azurefiles-msi-client-id
Properties:
- Config: msi_client_id
- Env Var: RCLONE_AZUREFILES_MSI_CLIENT_ID
- Type: string
- Required: false
--azurefiles-msi-mi-res-id
Properties:
- Config: msi_mi_res_id
- Env Var: RCLONE_AZUREFILES_MSI_MI_RES_ID
- Type: string
- Required: false
--azurefiles-endpoint
Properties:
- Config: endpoint
- Env Var: RCLONE_AZUREFILES_ENDPOINT
- Type: string
- Required: false
--azurefiles-chunk-size
Properties:
- Config: chunk_size
- Env Var: RCLONE_AZUREFILES_CHUNK_SIZE
- Type: SizeSuffix
- Default: 4Mi
--azurefiles-upload-concurrency
This is the number of chunks of the same file that are uploaded
concurrently.
If you are uploading small numbers of large files over high-speed links
and these uploads do not fully utilize your bandwidth, then increasing
this may help to speed up the transfers.
Properties:
- Config: upload_concurrency
- Env Var: RCLONE_AZUREFILES_UPLOAD_CONCURRENCY
- Type: int
- Default: 16
--azurefiles-max-stream-size
Azure files needs to know in advance how big the file will be. When
rclone doesn't know it uses this value instead.
This will be used when rclone is streaming data, the most common uses
are:
You will need this much free space in the share as the file will be this
size temporarily.
Properties:
- Config: max_stream_size
- Env Var: RCLONE_AZUREFILES_MAX_STREAM_SIZE
- Type: SizeSuffix
- Default: 10Gi
--azurefiles-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_AZUREFILES_ENCODING
- Type: Encoding
- Default:
Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,RightPeriod,I
nvalidUtf8,Dot
--azurefiles-description
Properties:
- Config: description
- Env Var: RCLONE_AZUREFILES_DESCRIPTION
- Type: string
- Required: false
You can set custom upload headers with the --header-upload flag.
- Cache-Control
- Content-Disposition
- Content-Encoding
- Content-Language
- Content-Type
Limitations
MD5 sums are only uploaded with chunked files if the source has an MD5
sum. This will always be the case for a local to azure copy.
Microsoft OneDrive
Configuration
The initial setup for OneDrive involves getting a token from Microsoft
which you need to do in your browser. rclone config walks you through
it.
rclone config
See the remote setup docs for how to set it up on a machine with no
Internet browser available.
Note that rclone runs a webserver on your local machine to collect the
token as returned from Microsoft. This only runs from the moment it
opens your browser to the moment you get back the verification code.
This is on http://127.0.0.1:53682/ and this it may require you to
unblock it temporarily if you are running a host firewall.
rclone ls remote:
You may choose to create and use your own Client ID, in case the default
one does not work well for you. For example, you might see throttling.
1. Open
https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade
and then click New registration.
2. Enter a name for your app, choose account type
Accounts in any organizational directory (Any Azure AD directory - Multitenant)
and personal Microsoft accounts (e.g. Skype, Xbox),
select Web in Redirect URI, then type (do not copy and paste)
http://localhost:53682/ and click Register. Copy and keep the
Application (client) ID under the app name for later use.
3. Under manage select Certificates & secrets, click New client secret.
Enter a description (can be anything) and set Expires to 24 months.
Copy and keep that secret Value for later use (you won't be able to
see this value afterwards).
4. Under manage select API permissions, click Add a permission and
select Microsoft Graph then select delegated permissions.
5. Search and select the following permissions: Files.Read,
Files.ReadWrite, Files.Read.All, Files.ReadWrite.All,
offline_access, User.Read and Sites.Read.All (if custom access
scopes are configured, select the permissions accordingly). Once
selected click Add permissions at the bottom.
The steps for OneDrive Personal may or may not work for OneDrive
Business, depending on the security settings of the organization. A
common error is that the publisher of the App is not verified.
You may try to verify you account, or try to limit the App to your
organization only, as shown below.
Note: If you have a special region, you may need a different host in
step 4 and 5. Here are some hints.
Before rclone 1.62 the default hash for Onedrive Personal was SHA1. For
rclone 1.62 and above the default for all Onedrive backends is
QuickXorHash.
Starting from July 2023 SHA1 support is being phased out in Onedrive
Personal in favour of QuickXorHash. If necessary the
--onedrive-hash-type flag (or hash_type config option) can be used to
select SHA1 during the transition period if this is important your
workflow.
For all types of OneDrive you can use the --checksum flag.
--fast-list
This must be enabled with the --onedrive-delta flag (or delta = true in
the config file) as it can cause performance degradation.
The API used for the recursive listing (ListR) only supports listing
from the root of the drive. This will become increasingly inefficient
the further away you get from the root as rclone will have to discard
files outside of the directory you are using.
Some commands (like rclone lsf -R) will use ListR by default - you can
turn this off with --disable ListR if you need to.
File names can also not end with the following characters. These only
get replaced if they are the last character in the name:
File names can also not begin with the following characters. These only
get replaced if they are the first character in the name:
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Deleting files
Any files you delete with rclone will end up in the trash. Microsoft
doesn't provide an API to permanently delete files, nor to empty the
trash, so you will have to do that with one of Microsoft's apps or via
the OneDrive website.
Standard options
--onedrive-client-id
Properties:
- Config: client_id
- Env Var: RCLONE_ONEDRIVE_CLIENT_ID
- Type: string
- Required: false
--onedrive-client-secret
Properties:
- Config: client_secret
- Env Var: RCLONE_ONEDRIVE_CLIENT_SECRET
- Type: string
- Required: false
--onedrive-region
Properties:
- Config: region
- Env Var: RCLONE_ONEDRIVE_REGION
- Type: string
- Default: "global"
- Examples:
- "global"
- Microsoft Cloud Global
- "us"
- Microsoft Cloud for US Government
- "de"
- Microsoft Cloud Germany
- "cn"
- Azure and Office 365 operated by Vnet Group in China
Advanced options
--onedrive-token
Properties:
- Config: token
- Env Var: RCLONE_ONEDRIVE_TOKEN
- Type: string
- Required: false
--onedrive-auth-url
Properties:
- Config: auth_url
- Env Var: RCLONE_ONEDRIVE_AUTH_URL
- Type: string
- Required: false
--onedrive-token-url
Properties:
- Config: token_url
- Env Var: RCLONE_ONEDRIVE_TOKEN_URL
- Type: string
- Required: false
--onedrive-chunk-size
Properties:
- Config: chunk_size
- Env Var: RCLONE_ONEDRIVE_CHUNK_SIZE
- Type: SizeSuffix
- Default: 10Mi
--onedrive-drive-id
Properties:
- Config: drive_id
- Env Var: RCLONE_ONEDRIVE_DRIVE_ID
- Type: string
- Required: false
--onedrive-drive-type
Properties:
- Config: drive_type
- Env Var: RCLONE_ONEDRIVE_DRIVE_TYPE
- Type: string
- Required: false
--onedrive-root-folder-id
This isn't normally needed, but in special circumstances you might know
the folder ID that you wish to access but not be able to get there
through a path traversal.
Properties:
- Config: root_folder_id
- Env Var: RCLONE_ONEDRIVE_ROOT_FOLDER_ID
- Type: string
- Required: false
--onedrive-access-scopes
Choose or manually enter a custom space separated list with all scopes,
that rclone should request.
Properties:
- Config: access_scopes
- Env Var: RCLONE_ONEDRIVE_ACCESS_SCOPES
- Type: SpaceSepList
- Default: Files.Read Files.ReadWrite Files.Read.All
Files.ReadWrite.All Sites.Read.All offline_access
- Examples:
- "Files.Read Files.ReadWrite Files.Read.All Files.ReadWrite.All
Sites.Read.All offline_access"
- Read and write access to all resources
- "Files.Read Files.Read.All Sites.Read.All offline_access"
- Read only access to all resources
- "Files.Read Files.ReadWrite Files.Read.All Files.ReadWrite.All
offline_access"
- Read and write access to all resources, without the ability
to browse SharePoint sites.
- Same as if disable_site_permission was set to true
--onedrive-disable-site-permission
Properties:
- Config: disable_site_permission
- Env Var: RCLONE_ONEDRIVE_DISABLE_SITE_PERMISSION
- Type: bool
- Default: false
--onedrive-expose-onenote-files
Properties:
- Config: expose_onenote_files
- Env Var: RCLONE_ONEDRIVE_EXPOSE_ONENOTE_FILES
- Type: bool
- Default: false
--onedrive-server-side-across-configs
This will work if you are copying between two OneDrive Personal drives
AND the files to copy are already shared between them. Additionally, it
should also function for a user who has access permissions both between
Onedrive for business and SharePoint under the same tenant, and between
SharePoint and another SharePoint under the same tenant. In other cases,
rclone will fall back to normal copy (which will be slightly slower).
Properties:
- Config: server_side_across_configs
- Env Var: RCLONE_ONEDRIVE_SERVER_SIDE_ACROSS_CONFIGS
- Type: bool
- Default: false
--onedrive-list-chunk
Properties:
- Config: list_chunk
- Env Var: RCLONE_ONEDRIVE_LIST_CHUNK
- Type: int
- Default: 1000
--onedrive-no-versions
Onedrive for business creates versions when rclone uploads new files
overwriting an existing one and when it sets the modification time.
This flag checks for versions after file upload and setting modification
time and removes all but the last version.
Properties:
- Config: no_versions
- Env Var: RCLONE_ONEDRIVE_NO_VERSIONS
- Type: bool
- Default: false
--onedrive-hard-delete
Normally files will get sent to the recycle bin on deletion. Setting
this flag causes them to be permanently deleted. Use with care.
Properties:
- Config: hard_delete
- Env Var: RCLONE_ONEDRIVE_HARD_DELETE
- Type: bool
- Default: false
--onedrive-link-scope
Properties:
- Config: link_scope
- Env Var: RCLONE_ONEDRIVE_LINK_SCOPE
- Type: string
- Default: "anonymous"
- Examples:
- "anonymous"
- Anyone with the link has access, without needing to sign in.
- This may include people outside of your organization.
- Anonymous link support may be disabled by an administrator.
- "organization"
- Anyone signed into your organization (tenant) can use the
link to get access.
- Only available in OneDrive for Business and SharePoint.
--onedrive-link-type
Properties:
- Config: link_type
- Env Var: RCLONE_ONEDRIVE_LINK_TYPE
- Type: string
- Default: "view"
- Examples:
- "view"
- Creates a read-only link to the item.
- "edit"
- Creates a read-write link to the item.
- "embed"
- Creates an embeddable link to the item.
--onedrive-link-password
At the time of writing this only works with OneDrive personal paid
accounts.
Properties:
- Config: link_password
- Env Var: RCLONE_ONEDRIVE_LINK_PASSWORD
- Type: string
- Required: false
--onedrive-hash-type
Before rclone 1.62 an SHA1 hash was used by default for Onedrive
Personal. For 1.62 and later the default is to use a QuickXorHash for
all onedrive types. If an SHA1 hash is desired then set this option
accordingly.
From July 2023 QuickXorHash will be the only available hash for both
OneDrive for Business and OneDrive Personal.
If the hash requested does not exist on the object, it will be returned
as an empty string which is treated as a missing hash by rclone.
Properties:
- Config: hash_type
- Env Var: RCLONE_ONEDRIVE_HASH_TYPE
- Type: string
- Default: "auto"
- Examples:
- "auto"
- Rclone chooses the best hash
- "quickxor"
- QuickXor
- "sha1"
- SHA1
- "sha256"
- SHA256
- "crc32"
- CRC32
- "none"
- None - don't use any hashes
--onedrive-av-override
If you are 100% sure you want to download this file anyway then use the
--onedrive-av-override flag, or av_override = true in the config file.
Properties:
- Config: av_override
- Env Var: RCLONE_ONEDRIVE_AV_OVERRIDE
- Type: bool
- Default: false
--onedrive-delta
If this flag is set the onedrive backend will advertise ListR support
for recursive listings.
However the delta listing API only works at the root of the drive. If
you use it not at the root then it recurses from the root and discards
all the data that is not under the directory you asked for. So it will
be correct but may not be very efficient.
It is recommended if you are mounting your onedrive at the root (or near
the root when using crypt) and using rclone rc vfs/refresh.
Properties:
- Config: delta
- Env Var: RCLONE_ONEDRIVE_DELTA
- Type: bool
- Default: false
--onedrive-metadata-permissions
Properties:
- Config: metadata_permissions
- Env Var: RCLONE_ONEDRIVE_METADATA_PERMISSIONS
- Type: Bits
- Default: off
- Examples:
- "off"
- Do not read or write the value
- "read"
- Read the value only
- "write"
- Write the value only
- "read,write"
- Read and Write the value.
- "failok"
- If writing fails log errors only, don't fail the transfer
--onedrive-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_ONEDRIVE_ENCODING
- Type: Encoding
- Default:
Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,LeftSpace,Lef
tTilde,RightSpace,RightPeriod,InvalidUtf8,Dot
--onedrive-description
Properties:
- Config: description
- Env Var: RCLONE_ONEDRIVE_DESCRIPTION
- Type: string
- Required: false
Metadata
Permissions are read/written in JSON format using the same schema as the
OneDrive API, which differs slightly between OneDrive Personal and
Business.
[
{
"id": "1234567890ABC!123",
"grantedTo": {
"user": {
"id": "[email protected]"
},
"application": {},
"device": {}
},
"invitation": {
"email": "[email protected]"
},
"link": {
"webUrl": "https://1drv.ms/t/s!1234567890ABC"
},
"roles": [
"read"
],
"shareId": "s!1234567890ABC"
}
]
[
{
"id": "48d31887-5fad-4d73-a9f5-3c356e68a038",
"grantedToIdentities": [
{
"user": {
"displayName": "[email protected]"
},
"application": {},
"device": {}
}
],
"link": {
"type": "view",
"scope": "users",
"webUrl":
"https://contoso.sharepoint.com/:w:/t/design/a577ghg9hgh737613bmbjf839026561fmzhsr8
5ng9f3hjck2t5s"
},
"roles": [
"read"
],
"shareId": "u!LKj1lkdlals90j1nlkascl"
},
{
"id": "5D33DD65C6932946",
"grantedTo": {
"user": {
"displayName": "John Doe",
"id": "efee1b77-fb3b-4f65-99d6-274c11914d12"
},
"application": {},
"device": {}
},
"roles": [
"owner"
],
"shareId": "FWxc1lasfdbEAGM5fI7B67aB5ZMPDMmQ11U"
}
]
{
"Metadata": {
"permissions": "[{\"grantedToIdentities\":[{\"user\":
{\"id\":\"[email protected]\"}}],\"roles\":[\"read\"]}]"
}
}
Note that both reading and writing permissions requires extra API calls,
so if you don't need to read or write permissions it is recommended to
omit --onedrive-metadata-permissions.
TIP: to see the metadata and permissions for any file or folder, run:
Here are the possible system metadata items for the onedrive backend.
-----------------------------------------------------------------------------------
-------------------------------------------------------
Name Help Type
Example Read Only
------------------------------- ---------------------------------- -----------
-------------------------------------- --------------------
btime Time of file birth (creation) with RFC 3339
2006-01-02T15:04:05Z N
S accuracy (mS for OneDrive
Personal).
-----------------------------------------------------------------------------------
-------------------------------------------------------
Limitations
If you don't use rclone for 90 days the refresh token will expire. This
will result in authorization problems. This is easy to fix by running
the rclone config reconnect remote: command to get a new token and
refresh token.
Naming
Note that OneDrive is case insensitive so you can't have a file called
"Hello.doc" and one called "hello.doc".
There are quite a few characters that can't be in OneDrive file names.
These can't occur on Windows platforms, but on non-Windows platforms
they are common. Rclone will map these names to and from an identical
looking unicode equivalent. For example if a file has a ? in it will be
mapped to ? instead.
File sizes
The largest allowed file size is 250 GiB for both OneDrive Personal and
OneDrive for Business (Updated 13 Jan 2021).
Path length
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.
Number of files
For example the copy command is affected by this as rclone copies the
file and then afterwards sets the modification time to match the source
file which uses another version.
You can use the rclone cleanup command (see below) to remove all old
versions.
Or you can set the no_versions parameter to true and rclone will remove
versions after operations which create new versions. This takes extra
transactions so only enable it if you need it.
Note At the time of writing Onedrive Personal creates versions (but not
for setting the modification time) but the API for removing them returns
"API not found" so cleanup and no_versions should not be used on
Onedrive Personal.
Disabling versioning
Below are the steps for normal users to disable versioning. If you don't
see the "No Versioning" option, make sure the above requirements are
met.
1. Open the settings menu by clicking on the gear symbol at the top of
the OneDrive Business page.
2. Click Site settings.
3. Once on the Site settings page, navigate to Site Administration >
Site libraries and lists.
4. Click Customize "Documents".
5. Click General Settings > Versioning Settings.
6. 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.
7. Apply the changes by clicking OK.
8. Use rclone to upload or modify files. (I also use the
--no-update-modtime flag)
9. Restore the versioning settings after using rclone. (Optional)
Cleanup
Troubleshooting
--ignore-checksum --ignore-size
--backup-dir mysharepoint:rclone-backup-dir
access_denied (AADSTS65005)
Error: access_denied
Code: AADSTS65005
Description: Using application 'rclone' 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.
This means that rclone can't use the OneDrive for Business API with your
account. You can't do much about it, maybe write an email to your
admins.
However, there are other ways to interact with your OneDrive account.
Have a look at the WebDAV backend: https://rclone.org/webdav/#sharepoint
invalid_grant (AADSTS50076)
Error: invalid_grant
Code: AADSTS50076
Description: Due to a configuration change made by your administrator, or
because you moved to a new location, you must use multi-factor authentication to
access '...'.
1. Visit https://onedrive.live.com
2. Right click a item in Shared, then click Add shortcut to My files in
the context [make_shortcut]
3. The shortcut will appear in My files, you can access it with rclone,
it behaves like a normal folder/file. [in_my_files] [rclone_mount]
Live Photos uploaded from iOS (small video clips in .heic files)
The iOS OneDrive app introduced upload and storage of Live Photos in
2020. The usage and download of these uploaded Live Photos is
unfortunately still work-in-progress and this introduces several issues
when copying, synchronising and mounting – both in rclone and in the
native OneDrive client on Windows.
The root cause can easily be seen if you locate one of your Live Photos
in the OneDrive web interface. Then download the photo from the web
interface. You will then see that the size of downloaded .heic file is
smaller than the size displayed in the web interface. The downloaded
file is smaller because it only contains a single frame (still photo)
extracted from the Live Photo (movie) stored in OneDrive.
The different sizes will also cause rclone check to report size errors
something like this:
The different sizes will also cause rclone mount to fail downloading
with an error something like this:
OpenDrive
Configuration
rclone config
This will guide you through an interactive setup process:
n) New remote
d) Delete remote
q) Quit config
e/n/d/q> n
name> remote
Type of storage to configure.
Choose a number from below, or type in your own value
[snip]
XX / OpenDrive
\ "opendrive"
[snip]
Storage> opendrive
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:
Configuration complete.
Options:
- type: opendrive
- username:
- password: *** ENCRYPTED ***
Keep this "remote" remote?
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
rclone ls remote:
File names can also not begin or end with the following characters.
These only get replaced if they are the first or last character in the
name:
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Standard options
--opendrive-username
Username.
Properties:
- Config: username
- Env Var: RCLONE_OPENDRIVE_USERNAME
- Type: string
- Required: true
--opendrive-password
Password.
Properties:
- Config: password
- Env Var: RCLONE_OPENDRIVE_PASSWORD
- Type: string
- Required: true
Advanced options
--opendrive-encoding
The encoding for the backend.
Properties:
- Config: encoding
- Env Var: RCLONE_OPENDRIVE_ENCODING
- Type: Encoding
- Default:
Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,LeftSpace,LeftCrLfHtV
t,RightSpace,RightCrLfHtVt,InvalidUtf8,Dot
--opendrive-chunk-size
Note that these chunks are buffered in memory so increasing them will
increase memory use.
Properties:
- Config: chunk_size
- Env Var: RCLONE_OPENDRIVE_CHUNK_SIZE
- Type: SizeSuffix
- Default: 10Mi
--opendrive-description
Properties:
- Config: description
- Env Var: RCLONE_OPENDRIVE_DESCRIPTION
- Type: string
- Required: false
Limitations
Note that OpenDrive is case insensitive so you can't have a file called
"Hello.doc" and one called "hello.doc".
There are quite a few characters that can't be in OpenDrive file names.
These can't occur on Windows platforms, but on non-Windows platforms
they are common. Rclone will map these names to and from an identical
looking unicode equivalent. For example if a file has a ? in it will be
mapped to ? instead.
See List of backends that do not support rclone about and rclone about
Paths are specified as remote:bucket (or remote: for the lsd command.)
You may put subdirectories in too, e.g. remote:bucket/path/to/dir.
Configuration
rclone config
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> n
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
[snip]
XX / Oracle Cloud Infrastructure Object Storage
\ (oracleobjectstorage)
Storage> oracleobjectstorage
Option provider.
Choose your Auth Provider
Choose a number from below, or type in your own string value.
Press Enter for the default (env_auth).
1 / automatically pickup the credentials from runtime(env), first one to
provide auth wins
\ (env_auth)
/ use an OCI user and an API key for authentication.
2 | you’ll need to put in a config file your tenancy OCID, user OCID, region,
the path, fingerprint to an API key.
| https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm
\ (user_principal_auth)
/ use instance principals to authorize an instance to make API calls.
3 | each instance has its own identity, and authenticates using the
certificates that are read from instance metadata.
|
https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/callingservicesfrominstan
ces.htm
\ (instance_principal_auth)
/ use workload identity to grant Kubernetes pods policy-driven access to
Oracle Cloud
4 | Infrastructure (OCI) resources using OCI Identity and Access Management
(IAM).
|
https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contenggrantingworkloadacc
esstoresources.htm
\ (workload_identity_auth)
5 / use resource principals to make API calls
\ (resource_principal_auth)
6 / no credentials needed, this is typically for reading public buckets
\ (no_auth)
provider> 2
Option namespace.
Object storage namespace
Enter a value.
namespace> idbamagbg734
Option compartment.
Object storage compartment OCID
Enter a value.
compartment>
ocid1.compartment.oc1..aaaaaaaapufkxc7ame3sthry5i7ujrwfc7ejnthhu6bhanm5oqfjpyasjkba
Option region.
Object storage Region
Enter a value.
region> us-ashburn-1
Option endpoint.
Endpoint for Object storage API.
Leave blank to use the default endpoint for the region.
Enter a value. Press Enter to leave empty.
endpoint>
Option config_file.
Full Path to OCI config file
Choose a number from below, or type in your own string value.
Press Enter for the default (~/.oci/config).
1 / oci configuration file location
\ (~/.oci/config)
config_file> /etc/oci/dev.conf
Option config_profile.
Profile name inside OCI config file
Choose a number from below, or type in your own string value.
Press Enter for the default (Default).
1 / Use the default profile
\ (Default)
config_profile> Test
Edit advanced config?
y) Yes
n) No (default)
y/n> n
Configuration complete.
Options:
- type: oracleobjectstorage
- namespace: idbamagbg734
- compartment:
ocid1.compartment.oc1..aaaaaaaapufkxc7ame3sthry5i7ujrwfc7ejnthhu6bhanm5oqfjpyasjkba
- region: us-ashburn-1
- provider: user_principal_auth
- config_file: /etc/oci/dev.conf
- config_profile: Test
Keep this "remote" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
rclone ls remote:bucket
rclone ls remote:bucket --max-depth 1
Authentication Providers
User Principal
Instance Principal
Resource Principal
Workload Identity
No authentication
User Principal
[oos]
type = oracleobjectstorage
namespace = id<redacted>34
compartment = ocid1.compartment.oc1..aa<redacted>ba
region = us-ashburn-1
provider = user_principal_auth
config_file = /home/opc/.oci/config
config_profile = Default
Advantages: - One can use this method from any server within OCI or
on-premises or from other cloud provider.
Instance Principal
Advantages:
Considerations:
Resource Principal
export OCI_RESOURCE_PRINCIPAL_VERSION=2.2
export OCI_RESOURCE_PRINCIPAL_REGION=us-ashburn-1
export OCI_RESOURCE_PRINCIPAL_PRIVATE_PEM=/usr/share/model-server/key.pem
export OCI_RESOURCE_PRINCIPAL_RPST=/usr/share/model-server/security_token
Workload Identity
Workload Identity auth may be used when running Rclone from Kubernetes
pod on a Container Engine for Kubernetes (OKE) cluster. For more details
on configuring Workload Identity, see Granting Workloads Access to OCI
Resources. To use workload identity, ensure Rclone is started with these
environment variables set in its process.
export OCI_RESOURCE_PRINCIPAL_VERSION=2.2
export OCI_RESOURCE_PRINCIPAL_REGION=us-ashburn-1
No authentication
[oos]
type = oracleobjectstorage
namespace = id<redacted>34
compartment = ocid1.compartment.oc1..aa<redacted>ba
region = us-ashburn-1
provider = no_auth
Note that reading this from the object takes an additional HEAD request
as the metadata isn't returned in object listings.
Multipart uploads
rclone supports multipart uploads with OOS which means that it can
upload files bigger than 5 GiB.
Note that files uploaded both with multipart upload and through crypt
remotes do not have MD5 sums.
Standard options
--oos-provider
Properties:
- Config: provider
- Env Var: RCLONE_OOS_PROVIDER
- Type: string
- Default: "env_auth"
- Examples:
- "env_auth"
- automatically pickup the credentials from runtime(env),
first one to provide auth wins
- "user_principal_auth"
- use an OCI user and an API key for authentication.
- you’ll need to put in a config file your tenancy OCID, user
OCID, region, the path, fingerprint to an API key.
- https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm
- "instance_principal_auth"
- use instance principals to authorize an instance to make API
calls.
- each instance has its own identity, and authenticates using
the certificates that are read from instance metadata.
-
https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/callingservicesfrominstan
ces.htm
- "workload_identity_auth"
- use workload identity to grant OCI Container Engine for
Kubernetes workloads policy-driven access to OCI resources
using OCI Identity and Access Management (IAM).
-
https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contenggrantingworkloadacc
esstoresources.htm
- "resource_principal_auth"
- use resource principals to make API calls
- "no_auth"
- no credentials needed, this is typically for reading public
buckets
--oos-namespace
Properties:
- Config: namespace
- Env Var: RCLONE_OOS_NAMESPACE
- Type: string
- Required: true
--oos-compartment
Properties:
- Config: compartment
- Env Var: RCLONE_OOS_COMPARTMENT
- Provider: !no_auth
- Type: string
- Required: true
--oos-region
Properties:
- Config: region
- Env Var: RCLONE_OOS_REGION
- Type: string
- Required: true
--oos-endpoint
Properties:
- Config: endpoint
- Env Var: RCLONE_OOS_ENDPOINT
- Type: string
- Required: false
--oos-config-file
Properties:
- Config: config_file
- Env Var: RCLONE_OOS_CONFIG_FILE
- Provider: user_principal_auth
- Type: string
- Default: "~/.oci/config"
- Examples:
- "~/.oci/config"
- oci configuration file location
--oos-config-profile
Properties:
- Config: config_profile
- Env Var: RCLONE_OOS_CONFIG_PROFILE
- Provider: user_principal_auth
- Type: string
- Default: "Default"
- Examples:
- "Default"
- Use the default profile
Advanced options
--oos-storage-tier
Properties:
- Config: storage_tier
- Env Var: RCLONE_OOS_STORAGE_TIER
- Type: string
- Default: "Standard"
- Examples:
- "Standard"
- Standard storage tier, this is the default tier
- "InfrequentAccess"
- InfrequentAccess storage tier
- "Archive"
- Archive storage tier
--oos-upload-cutoff
Any files larger than this will be uploaded in chunks of chunk_size. The
minimum is 0 and the maximum is 5 GiB.
Properties:
- Config: upload_cutoff
- Env Var: RCLONE_OOS_UPLOAD_CUTOFF
- Type: SizeSuffix
- Default: 200Mi
--oos-chunk-size
If you are transferring large files over high-speed links and you have
enough memory, then increasing this will speed up the transfers.
Rclone will automatically increase the chunk size when uploading a large
file of known size to stay below the 10,000 chunks limit.
Files of unknown size are uploaded with the configured chunk_size. Since
the default chunk size is 5 MiB and there can be at most 10,000 chunks,
this means that by default the maximum size of a file you can stream
upload is 48 GiB. If you wish to stream upload larger files then you
will need to increase chunk_size.
Properties:
- Config: chunk_size
- Env Var: RCLONE_OOS_CHUNK_SIZE
- Type: SizeSuffix
- Default: 5Mi
--oos-max-upload-parts
This option defines the maximum number of multipart chunks to use when
doing a multipart upload.
Rclone will automatically increase the chunk size when uploading a large
file of a known size to stay below this number of chunks limit.
Properties:
- Config: max_upload_parts
- Env Var: RCLONE_OOS_MAX_UPLOAD_PARTS
- Type: int
- Default: 10000
--oos-upload-concurrency
This is the number of chunks of the same file that are uploaded
concurrently.
If you are uploading small numbers of large files over high-speed links
and these uploads do not fully utilize your bandwidth, then increasing
this may help to speed up the transfers.
Properties:
- Config: upload_concurrency
- Env Var: RCLONE_OOS_UPLOAD_CONCURRENCY
- Type: int
- Default: 10
--oos-copy-cutoff
Any files larger than this that need to be server-side copied will be
copied in chunks of this size.
Properties:
- Config: copy_cutoff
- Env Var: RCLONE_OOS_COPY_CUTOFF
- Type: SizeSuffix
- Default: 4.656Gi
--oos-copy-timeout
Properties:
- Config: copy_timeout
- Env Var: RCLONE_OOS_COPY_TIMEOUT
- Type: Duration
- Default: 1m0s
--oos-disable-checksum
Normally rclone will calculate the MD5 checksum of the input before
uploading it so it can add it to metadata on the object. This is great
for data integrity checking but can cause long delays for large files to
start uploading.
Properties:
- Config: disable_checksum
- Env Var: RCLONE_OOS_DISABLE_CHECKSUM
- Type: bool
- Default: false
--oos-encoding
The encoding for the backend.
Properties:
- Config: encoding
- Env Var: RCLONE_OOS_ENCODING
- Type: Encoding
- Default: Slash,InvalidUtf8,Dot
--oos-leave-parts-on-error
Properties:
- Config: leave_parts_on_error
- Env Var: RCLONE_OOS_LEAVE_PARTS_ON_ERROR
- Type: bool
- Default: false
--oos-attempt-resume-upload
Properties:
- Config: attempt_resume_upload
- Env Var: RCLONE_OOS_ATTEMPT_RESUME_UPLOAD
- Type: bool
- Default: false
--oos-no-check-bucket
It can also be needed if the user you are using does not have bucket
creation permissions.
Properties:
- Config: no_check_bucket
- Env Var: RCLONE_OOS_NO_CHECK_BUCKET
- Type: bool
- Default: false
--oos-sse-customer-key-file
Properties:
- Config: sse_customer_key_file
- Env Var: RCLONE_OOS_SSE_CUSTOMER_KEY_FILE
- Type: string
- Required: false
- Examples:
- ""
- None
--oos-sse-customer-key
Properties:
- Config: sse_customer_key
- Env Var: RCLONE_OOS_SSE_CUSTOMER_KEY
- Type: string
- Required: false
- Examples:
- ""
- None
--oos-sse-customer-key-sha256
Properties:
- Config: sse_customer_key_sha256
- Env Var: RCLONE_OOS_SSE_CUSTOMER_KEY_SHA256
- Type: string
- Required: false
- Examples:
- ""
- None
--oos-sse-kms-key-id
if using your own master key in vault, this header specifies the OCID
(https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
of a master encryption key used to call the Key Management service to
generate a data encryption key or to encrypt or decrypt a data
encryption key. Please note only one of
sse_customer_key_file|sse_customer_key|sse_kms_key_id is needed.
Properties:
- Config: sse_kms_key_id
- Env Var: RCLONE_OOS_SSE_KMS_KEY_ID
- Type: string
- Required: false
- Examples:
- ""
- None
--oos-sse-customer-algorithm
Properties:
- Config: sse_customer_algorithm
- Env Var: RCLONE_OOS_SSE_CUSTOMER_ALGORITHM
- Type: string
- Required: false
- Examples:
- ""
- None
- "AES256"
- AES256
--oos-description
Properties:
- Config: description
- Env Var: RCLONE_OOS_DESCRIPTION
- Type: string
- Required: false
Backend commands
See the backend command for more info on how to pass options and
arguments.
rename
Usage Examples:
list-multipart-uploads
You can call it with no bucket in which case it lists all bucket, with a
bucket or with a bucket and path.
{
"test-bucket": [
{
"namespace": "test-namespace",
"bucket": "test-bucket",
"object": "600m.bin",
"uploadId": "51dd8114-52a4-b2f2-c42f-5291f05eb3c8",
"timeCreated": "2022-07-29T06:21:16.595Z",
"storageTier": "Standard"
}
]
cleanup
Durations are parsed as per the rest of rclone, 2h, 7d, 7w etc.
Options:
restore
This command can be used to restore one or more objects from Archive to
Standard storage.
Usage Examples:
This flag also obeys the filters. Test first with --interactive/-i or
--dry-run flags
[
{
"Object": "test.txt"
"Status": "RESTORED",
},
{
"Object": "test/file4.txt"
"Status": "RESTORED",
}
]
Options:
- "hours": The number of hours for which this object will be restored.
Default is 24 hrs.
Tutorials
Mounting Buckets
QingStor
Paths are specified as remote:bucket (or remote: for the lsd command.)
You may put subdirectories in too, e.g. remote:bucket/path/to/dir.
Configuration
rclone config
This remote is called remote and can now be used like this
rclone ls remote:bucket
--fast-list
Multipart uploads
rclone supports multipart uploads with QingStor which means that it can
upload files bigger than 5 GiB. Note that files uploaded with multipart
upload don't have an MD5SUM.
With QingStor you can list buckets (rclone lsd) using any zone, but you
can only access the content of a bucket from the zone it was created in.
If you attempt to access a bucket from the wrong zone, you will get an
error, incorrect zone, the bucket is not in 'XXX' zone.
Authentication
There are two ways to supply rclone with a set of QingStor credentials.
In order of precedence:
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Standard options
--qingstor-env-auth
Properties:
- Config: env_auth
- Env Var: RCLONE_QINGSTOR_ENV_AUTH
- Type: bool
- Default: false
- Examples:
- "false"
- Enter QingStor credentials in the next step.
- "true"
- Get QingStor credentials from the environment (env vars or
IAM).
--qingstor-access-key-id
Properties:
- Config: access_key_id
- Env Var: RCLONE_QINGSTOR_ACCESS_KEY_ID
- Type: string
- Required: false
--qingstor-secret-access-key
Properties:
- Config: secret_access_key
- Env Var: RCLONE_QINGSTOR_SECRET_ACCESS_KEY
- Type: string
- Required: false
--qingstor-endpoint
Properties:
- Config: endpoint
- Env Var: RCLONE_QINGSTOR_ENDPOINT
- Type: string
- Required: false
--qingstor-zone
Default is "pek3a".
Properties:
- Config: zone
- Env Var: RCLONE_QINGSTOR_ZONE
- Type: string
- Required: false
- Examples:
- "pek3a"
- The Beijing (China) Three Zone.
- Needs location constraint pek3a.
- "sh1a"
- The Shanghai (China) First Zone.
- Needs location constraint sh1a.
- "gd2a"
- The Guangdong (China) Second Zone.
- Needs location constraint gd2a.
Advanced options
--qingstor-connection-retries
- Config: connection_retries
- Env Var: RCLONE_QINGSTOR_CONNECTION_RETRIES
- Type: int
- Default: 3
--qingstor-upload-cutoff
Any files larger than this will be uploaded in chunks of chunk_size. The
minimum is 0 and the maximum is 5 GiB.
Properties:
- Config: upload_cutoff
- Env Var: RCLONE_QINGSTOR_UPLOAD_CUTOFF
- Type: SizeSuffix
- Default: 200Mi
--qingstor-chunk-size
If you are transferring large files over high-speed links and you have
enough memory, then increasing this will speed up the transfers.
Properties:
- Config: chunk_size
- Env Var: RCLONE_QINGSTOR_CHUNK_SIZE
- Type: SizeSuffix
- Default: 4Mi
--qingstor-upload-concurrency
This is the number of chunks of the same file that are uploaded
concurrently.
NB if you set this to > 1 then the checksums of multipart uploads become
corrupted (the uploads themselves are not corrupted though).
If you are uploading small numbers of large files over high-speed links
and these uploads do not fully utilize your bandwidth, then increasing
this may help to speed up the transfers.
Properties:
- Config: upload_concurrency
- Env Var: RCLONE_QINGSTOR_UPLOAD_CONCURRENCY
- Type: int
- Default: 1
--qingstor-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_QINGSTOR_ENCODING
- Type: Encoding
- Default: Slash,Ctl,InvalidUtf8
--qingstor-description
Properties:
- Config: description
- Env Var: RCLONE_QINGSTOR_DESCRIPTION
- Type: string
- Required: false
Limitations
See List of backends that do not support rclone about and rclone about
Quatrix
The initial setup for Quatrix involves getting an API Key from Quatrix.
You can get the API key in the user's profile at
https://<account>/profile/api-keys or with the help of the API -
https://docs.maytech.net/quatrix/quatrix-api/api-explorer#/API-Key/
post_api_key_create.
Configuration
rclone config
Configuration complete.
Options:
- type: quatrix
- api_key: your_api_key
- host: example.quatrix.it
Keep this "remote" remote?
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
rclone ls remote:
API Key is created with no expiration date. It will be valid until you
delete or deactivate it in your account. After disabling, the API Key
can be enabled back. If the API Key was deleted and a new key was
created, you can update it in rclone config. The same happens if the
hostname was changed.
$ rclone config
Current remotes:
Name Type
==== ====
remote quatrix
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
Configuration complete.
Options:
- type: quatrix
- host: some_host.quatrix.it
- api_key: your_api_key
Keep this "remote" remote?
Edit remote
Option api_key.
API key for accessing Quatrix account
Enter a string value. Press Enter for the default (your_api_key)
api_key>
Option host.
Host name of Quatrix account
Enter a string value. Press Enter for the default (some_host.quatrix.it).
Configuration complete.
Options:
- type: quatrix
- host: some_host.quatrix.it
- api_key: your_api_key
Keep this "remote" remote?
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
Quatrix does not support hashes, so you cannot use the --checksum flag.
File names in Quatrix are case sensitive and have limitations like the
maximum length of a filename is 255, and the minimum length is 1. A file
name cannot be equal to . or .. nor contain / , \ or non-printable
ascii.
Transfers
For files above 50 MiB rclone will use a chunked transfer. Rclone will
upload up to --transfers chunks at the same time (shared among all
multipart uploads). Chunks are buffered in memory, and the minimal chunk
size is 10_000_000 bytes by default, and it can be changed in the
advanced configuration, so increasing --transfers will increase the
memory use. The chunk size has a maximum size limit, which is set to
100_000_000 bytes by default and can be changed in the advanced
configuration. The size of the uploaded chunk will dynamically change
depending on the upload speed. The total memory use equals the number of
transfers multiplied by the minimal chunk size. In case there's free
memory allocated for the upload (which equals the difference of
maximal_summary_chunk_size and minimal_chunk_size * transfers), the
chunk size may increase in case of high upload speed. As well as it can
decrease in case of upload speed problems. If no free memory is
available, all chunks will equal minimal_chunk_size.
Deleting files
Files you delete with rclone will end up in Trash and be stored there
for 30 days. Quatrix also provides an API to permanently delete files
and an API to empty the Trash so that you can remove files permanently
from your account.
Standard options
--quatrix-api-key
Properties:
- Config: api_key
- Env Var: RCLONE_QUATRIX_API_KEY
- Type: string
- Required: true
--quatrix-host
Properties:
- Config: host
- Env Var: RCLONE_QUATRIX_HOST
- Type: string
- Required: true
Advanced options
--quatrix-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_QUATRIX_ENCODING
- Type: Encoding
- Default: Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot
--quatrix-effective-upload-time
Properties:
- Config: effective_upload_time
- Env Var: RCLONE_QUATRIX_EFFECTIVE_UPLOAD_TIME
- Type: string
- Default: "4s"
--quatrix-minimal-chunk-size
Properties:
- Config: minimal_chunk_size
- Env Var: RCLONE_QUATRIX_MINIMAL_CHUNK_SIZE
- Type: SizeSuffix
- Default: 9.537Mi
--quatrix-maximal-summary-chunk-size
The maximal summary for all chunks. It should not be less than
'transfers'*'minimal_chunk_size'
Properties:
- Config: maximal_summary_chunk_size
- Env Var: RCLONE_QUATRIX_MAXIMAL_SUMMARY_CHUNK_SIZE
- Type: SizeSuffix
- Default: 95.367Mi
--quatrix-hard-delete
Delete files permanently rather than putting them into the trash
Properties:
- Config: hard_delete
- Env Var: RCLONE_QUATRIX_HARD_DELETE
- Type: bool
- Default: false
--quatrix-skip-project-folders
Properties:
- Config: skip_project_folders
- Env Var: RCLONE_QUATRIX_SKIP_PROJECT_FOLDERS
- Type: bool
- Default: false
--quatrix-description
Description of the remote.
Properties:
- Config: description
- Env Var: RCLONE_QUATRIX_DESCRIPTION
- Type: string
- Required: false
Storage usage
Server-side operations
Sia
Introduction
Before you can use rclone with Sia, you will need to have a running copy
of Sia-UI or siad (the Sia daemon) locally on your computer or on local
network (e.g. a NAS). Please follow the Get started guide and install
one.
rclone interacts with Sia network by talking to the Sia daemon via HTTP
API which is usually available on port 9980. By default you will run the
daemon locally on the same computer so it's safe to leave the API
password blank (the API URL will be http://127.0.0.1:9980 making
external access impossible).
However, if you want to access Sia daemon running on another node, for
example due to memory constraints or because you want to share single
daemon between several rclone and Sia-UI instances, you'll need to make
a few more provisions: - Ensure you have Sia daemon installed directly
or in a docker container because Sia-UI does not support this mode
natively. - Run it on externally accessible port, for example provide
--api-addr :9980 and --disable-api-security arguments on the daemon
command line. - Enforce API password for the siad daemon via environment
variable SIA_API_PASSWORD or text file named apipassword in the daemon
directory. - Set rclone backend option api_password taking it from above
locations.
Configuration
Here is an example of how to make a sia remote called mySia. First, run:
rclone config
rclone ls mySia:
Standard options
Here are the Standard options specific to sia (Sia Decentralized Cloud).
--sia-api-url
Note that siad must run with --disable-api-security to open API port for
other hosts (not recommended). Keep default if Sia daemon runs on
localhost.
Properties:
- Config: api_url
- Env Var: RCLONE_SIA_API_URL
- Type: string
- Default: "http://127.0.0.1:9980"
--sia-api-password
Properties:
- Config: api_password
- Env Var: RCLONE_SIA_API_PASSWORD
- Type: string
- Required: false
Advanced options
Here are the Advanced options specific to sia (Sia Decentralized Cloud).
--sia-user-agent
Sia daemon requires the 'Sia-Agent' user agent by default for security
Properties:
- Config: user_agent
- Env Var: RCLONE_SIA_USER_AGENT
- Type: string
- Default: "Sia-Agent"
--sia-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_SIA_ENCODING
- Type: Encoding
- Default: Slash,Question,Hash,Percent,Del,Ctl,InvalidUtf8,Dot
--sia-description
Properties:
- Config: description
- Env Var: RCLONE_SIA_DESCRIPTION
- Type: string
- Required: false
Limitations
Swift
Configuration
rclone config
This remote is called remote and can now be used like this
rclone ls remote:container
export OS_AUTH_URL=https://a.provider.net/v2.0
export OS_TENANT_ID=ffffffffffffffffffffffffffffffff
export OS_TENANT_NAME="1234567890123456"
export OS_USERNAME="123abc567xy"
echo "Please enter your OpenStack Password: "
read -sr OS_PASSWORD_INPUT
export OS_PASSWORD=$OS_PASSWORD_INPUT
export OS_REGION_NAME="SBG1"
if [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi
The config file needs to look something like this where $OS_USERNAME
represents the value of the OS_USERNAME variable - 123abc567xy in the
example above.
[remote]
type = swift
user = $OS_USERNAME
key = $OS_PASSWORD
auth = $OS_AUTH_URL
tenant = $OS_TENANT_NAME
Note that you may (or may not) need to set region too - try without
first.
If you prefer you can configure rclone to use swift using a standard set
of OpenStack environment variables.
When you run through the config, make sure you choose true for env_auth
and leave everything else blank.
rclone will then set any empty config parameters from the environment
using standard OpenStack environment variables. There is a list of the
variables in the docs for the swift library.
You can use rclone with swift without a config file, if desired, like
this:
source openstack-credentials-file
export RCLONE_CONFIG_MYREMOTE_TYPE=swift
export RCLONE_CONFIG_MYREMOTE_ENV_AUTH=true
rclone lsd myremote:
--fast-list
For many operations, the time the object was last uploaded to the remote
is sufficient to determine if it is "dirty". By using --update along
with --use-server-modtime, you can avoid the extra API call and simply
upload files whose local modtime is newer than the time it was last
uploaded.
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Standard options
--swift-env-auth
Properties:
- Config: env_auth
- Env Var: RCLONE_SWIFT_ENV_AUTH
- Type: bool
- Default: false
- Examples:
- "false"
- Enter swift credentials in the next step.
- "true"
- Get swift credentials from environment vars.
- Leave other fields blank if using this.
--swift-user
Properties:
- Config: user
- Env Var: RCLONE_SWIFT_USER
- Type: string
- Required: false
--swift-key
Properties:
- Config: key
- Env Var: RCLONE_SWIFT_KEY
- Type: string
- Required: false
--swift-auth
Properties:
- Config: auth
- Env Var: RCLONE_SWIFT_AUTH
- Type: string
- Required: false
- Examples:
- "https://auth.api.rackspacecloud.com/v1.0"
- Rackspace US
- "https://lon.auth.api.rackspacecloud.com/v1.0"
- Rackspace UK
- "https://identity.api.rackspacecloud.com/v2.0"
- Rackspace v2
- "https://auth.storage.memset.com/v1.0"
- Memset Memstore UK
- "https://auth.storage.memset.com/v2.0"
- Memset Memstore UK v2
- "https://auth.cloud.ovh.net/v3"
- OVH
- "https://authenticate.ain.net"
- Blomp Cloud Storage
--swift-user-id
User ID to log in - optional - most swift systems use user and leave
this blank (v3 auth) (OS_USER_ID).
Properties:
- Config: user_id
- Env Var: RCLONE_SWIFT_USER_ID
- Type: string
- Required: false
--swift-domain
Properties:
- Config: domain
- Env Var: RCLONE_SWIFT_DOMAIN
- Type: string
- Required: false
--swift-tenant
Properties:
- Config: tenant
- Env Var: RCLONE_SWIFT_TENANT
- Type: string
- Required: false
--swift-tenant-id
Properties:
- Config: tenant_id
- Env Var: RCLONE_SWIFT_TENANT_ID
- Type: string
- Required: false
--swift-tenant-domain
- Config: tenant_domain
- Env Var: RCLONE_SWIFT_TENANT_DOMAIN
- Type: string
- Required: false
--swift-region
Properties:
- Config: region
- Env Var: RCLONE_SWIFT_REGION
- Type: string
- Required: false
--swift-storage-url
Properties:
- Config: storage_url
- Env Var: RCLONE_SWIFT_STORAGE_URL
- Type: string
- Required: false
--swift-auth-token
Properties:
- Config: auth_token
- Env Var: RCLONE_SWIFT_AUTH_TOKEN
- Type: string
- Required: false
--swift-application-credential-id
Properties:
- Config: application_credential_id
- Env Var: RCLONE_SWIFT_APPLICATION_CREDENTIAL_ID
- Type: string
- Required: false
--swift-application-credential-name
Properties:
- Config: application_credential_name
- Env Var: RCLONE_SWIFT_APPLICATION_CREDENTIAL_NAME
- Type: string
- Required: false
--swift-application-credential-secret
Properties:
- Config: application_credential_secret
- Env Var: RCLONE_SWIFT_APPLICATION_CREDENTIAL_SECRET
- Type: string
- Required: false
--swift-auth-version
Properties:
- Config: auth_version
- Env Var: RCLONE_SWIFT_AUTH_VERSION
- Type: int
- Default: 0
--swift-endpoint-type
Properties:
- Config: endpoint_type
- Env Var: RCLONE_SWIFT_ENDPOINT_TYPE
- Type: string
- Default: "public"
- Examples:
- "public"
- Public (default, choose this if not sure)
- "internal"
- Internal (use internal service net)
- "admin"
- Admin
--swift-storage-policy
This applies the specified storage policy when creating a new container.
The policy cannot be changed afterwards. The allowed configuration
values and their meaning depend on your Swift storage provider.
Properties:
- Config: storage_policy
- Env Var: RCLONE_SWIFT_STORAGE_POLICY
- Type: string
- Required: false
- Examples:
- ""
- Default
- "pcs"
- OVH Public Cloud Storage
- "pca"
- OVH Public Cloud Archive
Advanced options
--swift-leave-parts-on-error
Properties:
- Config: leave_parts_on_error
- Env Var: RCLONE_SWIFT_LEAVE_PARTS_ON_ERROR
- Type: bool
- Default: false
--swift-fetch-until-empty-page
Consider using this option if rclone listings show fewer objects than
expected, or if repeated syncs copy unchanged objects.
It is safe to enable this, but rclone may make more API calls than
necessary.
Properties:
- Config: fetch_until_empty_page
- Env Var: RCLONE_SWIFT_FETCH_UNTIL_EMPTY_PAGE
- Type: bool
- Default: false
--swift-partial-page-fetch-threshold
Consider using this option if rclone listings show fewer objects than
expected, or if repeated syncs copy unchanged objects.
It is safe to enable this, but rclone may make more API calls than
necessary.
Properties:
- Config: partial_page_fetch_threshold
- Env Var: RCLONE_SWIFT_PARTIAL_PAGE_FETCH_THRESHOLD
- Type: int
- Default: 0
--swift-chunk-size
Properties:
- Config: chunk_size
- Env Var: RCLONE_SWIFT_CHUNK_SIZE
- Type: SizeSuffix
- Default: 5Gi
--swift-no-chunk
This will limit the maximum streamed upload size to 5 GiB. This is
useful because non chunked files are easier to deal with and have an
MD5SUM.
Rclone will still chunk files bigger than chunk_size when doing normal
copy operations.
Properties:
- Config: no_chunk
- Env Var: RCLONE_SWIFT_NO_CHUNK
- Type: bool
- Default: false
--swift-no-large-objects
Swift cannot transparently store files bigger than 5 GiB. There are two
schemes for chunking large files, static large objects (SLO) or dynamic
large objects (DLO), and the API does not allow rclone to determine
whether a file is a static or dynamic large object without doing a HEAD
on the object. Since these need to be treated differently, this means
rclone has to issue HEAD requests for objects for example when reading
checksums.
Setting this option implies no_chunk and also that no files will be
uploaded in chunks, so files bigger than 5 GiB will just fail on upload.
If you set this option and there are static or dynamic large objects,
then this will give incorrect hashes for them. Downloads will succeed,
but other operations such as Remove and Copy will fail.
Properties:
- Config: no_large_objects
- Env Var: RCLONE_SWIFT_NO_LARGE_OBJECTS
- Type: bool
- Default: false
--swift-use-segments-container
Swift cannot transparently store files bigger than 5 GiB and rclone will
chunk files larger than chunk_size (default 5 GiB) in order to upload
them.
If this value is unset (the default), then rclone will choose the value
to use. It will be false unless rclone detects any auth_urls that it
knows need it to be true. In this case you'll see a message in the DEBUG
log.
Properties:
- Config: use_segments_container
- Env Var: RCLONE_SWIFT_USE_SEGMENTS_CONTAINER
- Type: Tristate
- Default: unset
--swift-encoding
- Config: encoding
- Env Var: RCLONE_SWIFT_ENCODING
- Type: Encoding
- Default: Slash,InvalidUtf8
--swift-description
Properties:
- Config: description
- Env Var: RCLONE_SWIFT_DESCRIPTION
- Type: string
- Required: false
Limitations
The Swift API doesn't return a correct MD5SUM for segmented files
(Dynamic or Static Large Objects) so rclone won't check or use the
MD5SUM for these.
Troubleshooting
Rclone gives Failed to create file system for "remote:": Bad Request
So this most likely means your username / password is wrong. You can
investigate further with the --dump-bodies flag.
This may also be caused by specifying the region when you shouldn't have
(e.g. OVH).
Rclone gives Failed to create file system: Response didn't have storage url and
auth token
To use rclone with OVH cloud archive, first use rclone config to set up
a swift backend with OVH, choosing pca as the storage_policy.
Uploading Objects
Retrieving Objects
To retrieve objects use rclone copy as normal. If the objects are in a
frozen state then rclone will ask for them all to be unfrozen and it
will wait at the end of the output with a message like the following:
2019/03/23 13:06:33 NOTICE: Received retry after error - sleeping until 2019-03-
23T13:16:33.481657164+01:00 (9m59.99985121s)
Rclone will wait for the time specified then retry the copy.
pCloud
Configuration
The initial setup for pCloud involves getting a token from pCloud which
you need to do in your browser. rclone config walks you through it.
rclone config
See the remote setup docs for how to set it up on a machine with no
Internet browser available.
Note that rclone runs a webserver on your local machine to collect the
token as returned from pCloud. This only runs from the moment it opens
your browser to the moment you get back the verification code. This is
on http://127.0.0.1:53682/ and this it may require you to unblock it
temporarily if you are running a host firewall.
rclone ls remote:
pCloud supports MD5 and SHA1 hashes in the US region, and SHA1 and
SHA256 hashes in the EU region, so you can use the --checksum flag.
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Deleting files
Deleted files will be moved to the trash. Your subscription level will
determine how long items stay in the trash. rclone cleanup can be used
to empty the trash.
Due to an API limitation, the rclone cleanup command will only work if
you set your username and password in the advanced options for this
backend. Since we generally want to avoid storing user passwords in the
rclone config file, we advise you to only set this up if you need the
rclone cleanup command to work.
Root folder ID
You can set the root_folder_id for rclone. This is the directory
(identified by its Folder ID) that rclone considers to be the root of
your pCloud drive.
Normally you will leave this blank and rclone will determine the correct
root to use itself.
In order to do this you will have to find the Folder ID of the directory
you wish rclone to display. This will be the folder field of the URL
when you open the relevant folder in the pCloud web interface.
So if the folder you want rclone to use has a URL which looks like
https://my.pcloud.com/#page=filemanager&folder=5xxxxxxxx8&tpl=foldergrid
in the browser, then you use 5xxxxxxxx8 as the root_folder_id in the
config.
Standard options
--pcloud-client-id
Properties:
- Config: client_id
- Env Var: RCLONE_PCLOUD_CLIENT_ID
- Type: string
- Required: false
--pcloud-client-secret
Properties:
- Config: client_secret
- Env Var: RCLONE_PCLOUD_CLIENT_SECRET
- Type: string
- Required: false
Advanced options
--pcloud-token
Properties:
- Config: token
- Env Var: RCLONE_PCLOUD_TOKEN
- Type: string
- Required: false
--pcloud-auth-url
Properties:
- Config: auth_url
- Env Var: RCLONE_PCLOUD_AUTH_URL
- Type: string
- Required: false
--pcloud-token-url
Properties:
- Config: token_url
- Env Var: RCLONE_PCLOUD_TOKEN_URL
- Type: string
- Required: false
--pcloud-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_PCLOUD_ENCODING
- Type: Encoding
- Default: Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot
--pcloud-root-folder-id
Fill in for rclone to use a non root folder as its starting point.
Properties:
- Config: root_folder_id
- Env Var: RCLONE_PCLOUD_ROOT_FOLDER_ID
- Type: string
- Default: "d0"
--pcloud-hostname
This is normally set when rclone initially does the oauth connection,
however you will need to set it by hand if you are using remote config
with rclone authorize.
Properties:
- Config: hostname
- Env Var: RCLONE_PCLOUD_HOSTNAME
- Type: string
- Default: "api.pcloud.com"
- Examples:
- "api.pcloud.com"
- Original/US region
- "eapi.pcloud.com"
- EU region
--pcloud-username
This is only required when you want to use the cleanup command. Due to a
bug in the pcloud API the required API does not support OAuth
authentication so we have to rely on user password authentication for
it.
Properties:
- Config: username
- Env Var: RCLONE_PCLOUD_USERNAME
- Type: string
- Required: false
--pcloud-password
Properties:
- Config: password
- Env Var: RCLONE_PCLOUD_PASSWORD
- Type: string
- Required: false
--pcloud-description
Description of the remote.
Properties:
- Config: description
- Env Var: RCLONE_PCLOUD_DESCRIPTION
- Type: string
- Required: false
PikPak
Configuration
First run:
rclone config
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
XX / PikPak
\ (pikpak)
Storage> XX
Option user.
Pikpak username.
Enter a value.
user> USERNAME
Option pass.
Pikpak password.
Choose an alternative below.
y) Yes, type in my own password
g) Generate random password
y/g> y
Enter the password:
password:
Confirm the password:
password:
Configuration complete.
Options:
- type: pikpak
- user: USERNAME
- pass: *** ENCRYPTED ***
- token:
{"access_token":"eyJ...","token_type":"Bearer","refresh_token":"os...","expiry":"20
23-01-26T18:54:32.170582647+09:00"}
Keep this "remote" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
Standard options
--pikpak-user
Pikpak username.
Properties:
- Config: user
- Env Var: RCLONE_PIKPAK_USER
- Type: string
- Required: true
--pikpak-pass
Pikpak password.
Properties:
- Config: pass
- Env Var: RCLONE_PIKPAK_PASS
- Type: string
- Required: true
Advanced options
--pikpak-device-id
Device ID used for authorization.
Properties:
- Config: device_id
- Env Var: RCLONE_PIKPAK_DEVICE_ID
- Type: string
- Required: false
--pikpak-user-agent
Properties:
- Config: user_agent
- Env Var: RCLONE_PIKPAK_USER_AGENT
- Type: string
- Default: "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0)
Gecko/20100101 Firefox/129.0"
--pikpak-root-folder-id
Fill in for rclone to use a non root folder as its starting point.
Properties:
- Config: root_folder_id
- Env Var: RCLONE_PIKPAK_ROOT_FOLDER_ID
- Type: string
- Required: false
--pikpak-use-trash
Properties:
- Config: use_trash
- Env Var: RCLONE_PIKPAK_USE_TRASH
- Type: bool
- Default: true
--pikpak-trashed-only
- Config: trashed_only
- Env Var: RCLONE_PIKPAK_TRASHED_ONLY
- Type: bool
- Default: false
--pikpak-hash-memory-limit
Properties:
- Config: hash_memory_limit
- Env Var: RCLONE_PIKPAK_HASH_MEMORY_LIMIT
- Type: SizeSuffix
- Default: 10Mi
--pikpak-chunk-size
If you are transferring large files over high-speed links and you have
enough memory, then increasing this will speed up the transfers.
Rclone will automatically increase the chunk size when uploading a large
file of known size to stay below the 10,000 chunks limit.
Properties:
- Config: chunk_size
- Env Var: RCLONE_PIKPAK_CHUNK_SIZE
- Type: SizeSuffix
- Default: 5Mi
--pikpak-upload-concurrency
This is the number of chunks of the same file that are uploaded
concurrently for multipart uploads.
If you are uploading small numbers of large files over high-speed links
and these uploads do not fully utilize your bandwidth, then increasing
this may help to speed up the transfers.
Properties:
- Config: upload_concurrency
- Env Var: RCLONE_PIKPAK_UPLOAD_CONCURRENCY
- Type: int
- Default: 5
--pikpak-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_PIKPAK_ENCODING
- Type: Encoding
- Default:
Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,LeftSpace,RightSp
ace,RightPeriod,InvalidUtf8,Dot
--pikpak-description
Properties:
- Config: description
- Env Var: RCLONE_PIKPAK_DESCRIPTION
- Type: string
- Required: false
Backend commands
The help below will explain what arguments each command takes.
See the backend command for more info on how to pass options and
arguments.
addurl
Usage:
rclone backend addurl pikpak:dirpath url
decompress
Usage:
Result:
{
"Decompressed": 17,
"SourceDeleted": 0,
"Errors": 0
}
Limitations
PikPak supports MD5 hash, but sometimes given empty especially for
user-uploaded files.
Pixeldrain
To use the personal filesystem you will need a pixeldrain account and
either the Prepaid plan or one of the Patreon-based subscriptions. After
registering and subscribing, your personal filesystem will be available
at this link: https://pixeldrain.com/d/me.
Go to the API keys page on your account and generate a new API key for
rclone. Then run rclone config and use the API key to create a new
backend.
Example:
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
...
XX / Pixeldrain Filesystem
\ (pixeldrain)
...
Storage> pixeldrain
Option api_key.
API key for your pixeldrain account.
Found on https://pixeldrain.com/user/api_keys.
Enter a value. Press Enter to leave empty.
api_key> b1bb1e81-9b7b-406b-986a-c9b20be76e15
Option directory_id.
Root of the filesystem to use. Set to 'me' to use your personal filesystem.
Set to a shared directory ID to use a shared directory.
Enter a string value. Press Enter for the default (me).
directory_id>
Configuration complete.
Options:
- type: pixeldrain
- api_key: b1bb1e81-9b7b-406b-986a-c9b20be76e15
Keep this "pixeldrainfs" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d>
Current remotes:
Name Type
==== ====
pixeldrainfs pixeldrain
This will print directories in your Pixeldrain home directory and their
public IDs.
Enter this directory ID in the rclone config and you will be able to
access the directory.
Standard options
--pixeldrain-api-key
Properties:
- Config: api_key
- Env Var: RCLONE_PIXELDRAIN_API_KEY
- Type: string
- Required: false
--pixeldrain-root-folder-id
Properties:
- Config: root_folder_id
- Env Var: RCLONE_PIXELDRAIN_ROOT_FOLDER_ID
- Type: string
- Default: "me"
Advanced options
--pixeldrain-api-url
The API endpoint to connect to. In the vast majority of cases it's fine
to leave this at default. It is only intended to be changed for testing
purposes.
Properties:
- Config: api_url
- Env Var: RCLONE_PIXELDRAIN_API_URL
- Type: string
- Default: "https://pixeldrain.com/api"
--pixeldrain-description
Properties:
- Config: description
- Env Var: RCLONE_PIXELDRAIN_DESCRIPTION
- Type: string
- Required: false
Metadata
Here are the possible system metadata items for the pixeldrain backend.
-----------------------------------------------------------------------------------
--------------
Name Help Type Example Read
Only
----------- -------------- ----------- -------------------------------------
--------------------
btime Time of file RFC 3339 2006-01-02T15:04:05.999999999Z07:00 N
birth
(creation)
-----------------------------------------------------------------------------------
--------------
premiumize.me
Paths are specified as remote:path
Configuration
rclone config
Remote config
Use web browser to automatically authenticate rclone with remote?
* Say Y if the machine running rclone has a web browser you can use
* Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.
y) Yes
n) No
y/n> y
If your browser doesn't open automatically go to the following link:
http://127.0.0.1:53682/auth
Log in and authorize rclone for access
Waiting for code...
Got code
Configuration complete.
Options:
- type: premiumizeme
- token:
{"access_token":"XXX","token_type":"Bearer","refresh_token":"XXX","expiry":"2029-
08-07T18:44:15.548915378+01:00"}
Keep this "remote" remote?
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d>
See the remote setup docs for how to set it up on a machine with no
Internet browser available.
Note that rclone runs a webserver on your local machine to collect the
token as returned from premiumize.me. This only runs from the moment it
opens your browser to the moment you get back the verification code.
This is on http://127.0.0.1:53682/ and this it may require you to
unblock it temporarily if you are running a host firewall.
rclone ls remote:
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Standard options
--premiumizeme-client-id
Properties:
- Config: client_id
- Env Var: RCLONE_PREMIUMIZEME_CLIENT_ID
- Type: string
- Required: false
--premiumizeme-client-secret
OAuth Client Secret.
Properties:
- Config: client_secret
- Env Var: RCLONE_PREMIUMIZEME_CLIENT_SECRET
- Type: string
- Required: false
--premiumizeme-api-key
API Key.
Properties:
- Config: api_key
- Env Var: RCLONE_PREMIUMIZEME_API_KEY
- Type: string
- Required: false
Advanced options
--premiumizeme-token
Properties:
- Config: token
- Env Var: RCLONE_PREMIUMIZEME_TOKEN
- Type: string
- Required: false
--premiumizeme-auth-url
Properties:
- Config: auth_url
- Env Var: RCLONE_PREMIUMIZEME_AUTH_URL
- Type: string
- Required: false
--premiumizeme-token-url
Properties:
- Config: token_url
- Env Var: RCLONE_PREMIUMIZEME_TOKEN_URL
- Type: string
- Required: false
--premiumizeme-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_PREMIUMIZEME_ENCODING
- Type: Encoding
- Default: Slash,DoubleQuote,BackSlash,Del,Ctl,InvalidUtf8,Dot
--premiumizeme-description
Properties:
- Config: description
- Env Var: RCLONE_PREMIUMIZEME_DESCRIPTION
- Type: string
- Required: false
Limitations
premiumize.me file names can't have the \ or " characters in. rclone
maps these to and from an identical looking unicode equivalents \ and
"
Proton Drive
Proton Drive is an end-to-end encrypted Swiss vault for your files that
protects your data.
This is an rclone backend for Proton Drive which supports the file
transfer features of Proton Drive using the same client-side encryption.
Due to the fact that Proton Drive doesn't publish its API documentation,
this backend is implemented with best efforts by reading the
open-sourced client source code and observing the Proton Drive traffic
in the browser.
Configurations
rclone config
NOTE: The Proton Drive encryption keys need to have been already
generated after a regular login via the browser, otherwise attempting to
use the credentials in rclone will fail.
rclone ls remote:
Proton Drive Bridge does not support updating modification times yet.
Invalid UTF-8 bytes will be replaced, also left and right spaces will be
removed (code reference)
Duplicated files
Proton Drive can not have two files with exactly the same name and path.
If the conflict occurs, depending on the advanced config, the file might
or might not be overwritten.
Mailbox password
Caching
The cache is currently built for the case when the rclone is the only
instance performing operations to the mount point. The event system,
which is the proton API system that provides visibility of what has
changed on the drive, is yet to be implemented, so updates from other
clients won’t be reflected in the cache. Thus, if there are concurrent
clients accessing the same mount point, then we might have a problem
with caching the stale data.
Standard options
--protondrive-username
Properties:
- Config: username
- Env Var: RCLONE_PROTONDRIVE_USERNAME
- Type: string
- Required: true
--protondrive-password
The password of your proton account.
Properties:
- Config: password
- Env Var: RCLONE_PROTONDRIVE_PASSWORD
- Type: string
- Required: true
--protondrive-2fa
The 2FA code of your proton drive account if the account is set up with
two-factor authentication
Properties:
- Config: 2fa
- Env Var: RCLONE_PROTONDRIVE_2FA
- Type: string
- Required: false
Advanced options
--protondrive-mailbox-password
For more information regarding the mailbox password, please check the
following official knowledge base article:
https://proton.me/support/the-difference-between-the-mailbox-password-and-login-
password
Properties:
- Config: mailbox_password
- Env Var: RCLONE_PROTONDRIVE_MAILBOX_PASSWORD
- Type: string
- Required: false
--protondrive-client-uid
Properties:
- Config: client_uid
- Env Var: RCLONE_PROTONDRIVE_CLIENT_UID
- Type: string
- Required: false
--protondrive-client-access-token
Properties:
- Config: client_access_token
- Env Var: RCLONE_PROTONDRIVE_CLIENT_ACCESS_TOKEN
- Type: string
- Required: false
--protondrive-client-refresh-token
Properties:
- Config: client_refresh_token
- Env Var: RCLONE_PROTONDRIVE_CLIENT_REFRESH_TOKEN
- Type: string
- Required: false
--protondrive-client-salted-key-pass
Properties:
- Config: client_salted_key_pass
- Env Var: RCLONE_PROTONDRIVE_CLIENT_SALTED_KEY_PASS
- Type: string
- Required: false
--protondrive-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_PROTONDRIVE_ENCODING
- Type: Encoding
- Default: Slash,LeftSpace,RightSpace,InvalidUtf8,Dot
--protondrive-original-file-size
The size of the encrypted file will be different from (bigger than) the
original file size. Unless there is a reason to return the file size
after encryption is performed, otherwise, set this option to true, as
features like Open() which will need to be supplied with original
content size, will fail to operate properly
Properties:
- Config: original_file_size
- Env Var: RCLONE_PROTONDRIVE_ORIGINAL_FILE_SIZE
- Type: bool
- Default: true
--protondrive-app-version
The app version string indicates the client that is currently performing
the API request. This information is required and will be sent with
every API request.
Properties:
- Config: app_version
- Env Var: RCLONE_PROTONDRIVE_APP_VERSION
- Type: string
- Default: "[email protected]+rclone"
--protondrive-replace-existing-draft
If the option is set to true, the draft will be replaced and then the
upload operation will restart. If there are other clients also uploading
at the same file location at the same time, the behavior is currently
unknown. Need to set to true for integration tests. If the option is set
to false, an error "a draft exist - usually this means a file is being
uploaded at another client, or, there was a failed upload attempt" will
be returned, and no upload will happen.
Properties:
- Config: replace_existing_draft
- Env Var: RCLONE_PROTONDRIVE_REPLACE_EXISTING_DRAFT
- Type: bool
- Default: false
--protondrive-enable-caching
The cache is currently built for the case when the rclone is the only
instance performing operations to the mount point. The event system,
which is the proton API system that provides visibility of what has
changed on the drive, is yet to be implemented, so updates from other
clients won’t be reflected in the cache. Thus, if there are concurrent
clients accessing the same mount point, then we might have a problem
with caching the stale data.
Properties:
- Config: enable_caching
- Env Var: RCLONE_PROTONDRIVE_ENABLE_CACHING
- Type: bool
- Default: true
--protondrive-description
Properties:
- Config: description
- Env Var: RCLONE_PROTONDRIVE_DESCRIPTION
- Type: string
- Required: false
Limitations
proton-go-api provides the basic building blocks of API calls and error
handling, such as 429 exponential back-off, but it is pretty much just a
barebone interface to the Proton API. For example, the encryption and
decryption of the Proton Drive file are not provided in this library.
put.io
Configuration
The initial setup for put.io involves getting a token from put.io which
you need to do in your browser. rclone config walks you through it.
Remote config
Use web browser to automatically authenticate rclone with remote?
* Say Y if the machine running rclone has a web browser you can use
* Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.
y) Yes
n) No
y/n> y
If your browser doesn't open automatically go to the following link:
http://127.0.0.1:53682/auth
Log in and authorize rclone for access
Waiting for code...
Got code
--------------------
[putio]
type = putio
token = {"access_token":"XXXXXXXX","expiry":"0001-01-01T00:00:00Z"}
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
Current remotes:
Name Type
==== ====
putio putio
See the remote setup docs for how to set it up on a machine with no
Internet browser available.
Note that rclone runs a webserver on your local machine to collect the
token as returned from put.io if using web browser to automatically
authenticate. This only runs from the moment it opens your browser to
the moment you get back the verification code. This is on
http://127.0.0.1:53682/ and this it may require you to unblock it
temporarily if you are running a host firewall, or use manual mode.
rclone ls remote:
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Standard options
--putio-client-id
Properties:
- Config: client_id
- Env Var: RCLONE_PUTIO_CLIENT_ID
- Type: string
- Required: false
--putio-client-secret
Properties:
- Config: client_secret
- Env Var: RCLONE_PUTIO_CLIENT_SECRET
- Type: string
- Required: false
Advanced options
--putio-token
Properties:
- Config: token
- Env Var: RCLONE_PUTIO_TOKEN
- Type: string
- Required: false
--putio-auth-url
Properties:
- Config: auth_url
- Env Var: RCLONE_PUTIO_AUTH_URL
- Type: string
- Required: false
--putio-token-url
Properties:
- Config: token_url
- Env Var: RCLONE_PUTIO_TOKEN_URL
- Type: string
- Required: false
--putio-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_PUTIO_ENCODING
- Type: Encoding
- Default: Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot
--putio-description
Properties:
- Config: description
- Env Var: RCLONE_PUTIO_DESCRIPTION
- Type: string
- Required: false
Limitations
put.io has rate limiting. When you hit a limit, rclone automatically
retries after waiting the amount of time requested by the server.
If you want to avoid ever hitting these limits, you may use the
--tpslimit flag with a low number. Note that the imposed limits may be
different for different operations, and may change over time.
Proton Drive
Proton Drive is an end-to-end encrypted Swiss vault for your files that
protects your data.
This is an rclone backend for Proton Drive which supports the file
transfer features of Proton Drive using the same client-side encryption.
Due to the fact that Proton Drive doesn't publish its API documentation,
this backend is implemented with best efforts by reading the
open-sourced client source code and observing the Proton Drive traffic
in the browser.
Configurations
rclone config
NOTE: The Proton Drive encryption keys need to have been already
generated after a regular login via the browser, otherwise attempting to
use the credentials in rclone will fail.
rclone ls remote:
Proton Drive Bridge does not support updating modification times yet.
Invalid UTF-8 bytes will be replaced, also left and right spaces will be
removed (code reference)
Duplicated files
Proton Drive can not have two files with exactly the same name and path.
If the conflict occurs, depending on the advanced config, the file might
or might not be overwritten.
Mailbox password
Caching
The cache is currently built for the case when the rclone is the only
instance performing operations to the mount point. The event system,
which is the proton API system that provides visibility of what has
changed on the drive, is yet to be implemented, so updates from other
clients won’t be reflected in the cache. Thus, if there are concurrent
clients accessing the same mount point, then we might have a problem
with caching the stale data.
Standard options
--protondrive-username
Properties:
- Config: username
- Env Var: RCLONE_PROTONDRIVE_USERNAME
- Type: string
- Required: true
--protondrive-password
Properties:
- Config: password
- Env Var: RCLONE_PROTONDRIVE_PASSWORD
- Type: string
- Required: true
--protondrive-2fa
The 2FA code of your proton drive account if the account is set up with
two-factor authentication
Properties:
- Config: 2fa
- Env Var: RCLONE_PROTONDRIVE_2FA
- Type: string
- Required: false
Advanced options
--protondrive-mailbox-password
For more information regarding the mailbox password, please check the
following official knowledge base article:
https://proton.me/support/the-difference-between-the-mailbox-password-and-login-
password
Properties:
- Config: mailbox_password
- Env Var: RCLONE_PROTONDRIVE_MAILBOX_PASSWORD
- Type: string
- Required: false
--protondrive-client-uid
Properties:
- Config: client_uid
- Env Var: RCLONE_PROTONDRIVE_CLIENT_UID
- Type: string
- Required: false
--protondrive-client-access-token
Properties:
- Config: client_access_token
- Env Var: RCLONE_PROTONDRIVE_CLIENT_ACCESS_TOKEN
- Type: string
- Required: false
--protondrive-client-refresh-token
Properties:
- Config: client_refresh_token
- Env Var: RCLONE_PROTONDRIVE_CLIENT_REFRESH_TOKEN
- Type: string
- Required: false
--protondrive-client-salted-key-pass
Properties:
- Config: client_salted_key_pass
- Env Var: RCLONE_PROTONDRIVE_CLIENT_SALTED_KEY_PASS
- Type: string
- Required: false
--protondrive-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_PROTONDRIVE_ENCODING
- Type: Encoding
- Default: Slash,LeftSpace,RightSpace,InvalidUtf8,Dot
--protondrive-original-file-size
The size of the encrypted file will be different from (bigger than) the
original file size. Unless there is a reason to return the file size
after encryption is performed, otherwise, set this option to true, as
features like Open() which will need to be supplied with original
content size, will fail to operate properly
Properties:
- Config: original_file_size
- Env Var: RCLONE_PROTONDRIVE_ORIGINAL_FILE_SIZE
- Type: bool
- Default: true
--protondrive-app-version
The app version string indicates the client that is currently performing
the API request. This information is required and will be sent with
every API request.
Properties:
- Config: app_version
- Env Var: RCLONE_PROTONDRIVE_APP_VERSION
- Type: string
- Default: "[email protected]+rclone"
--protondrive-replace-existing-draft
If the option is set to true, the draft will be replaced and then the
upload operation will restart. If there are other clients also uploading
at the same file location at the same time, the behavior is currently
unknown. Need to set to true for integration tests. If the option is set
to false, an error "a draft exist - usually this means a file is being
uploaded at another client, or, there was a failed upload attempt" will
be returned, and no upload will happen.
Properties:
- Config: replace_existing_draft
- Env Var: RCLONE_PROTONDRIVE_REPLACE_EXISTING_DRAFT
- Type: bool
- Default: false
--protondrive-enable-caching
The cache is currently built for the case when the rclone is the only
instance performing operations to the mount point. The event system,
which is the proton API system that provides visibility of what has
changed on the drive, is yet to be implemented, so updates from other
clients won’t be reflected in the cache. Thus, if there are concurrent
clients accessing the same mount point, then we might have a problem
with caching the stale data.
Properties:
- Config: enable_caching
- Env Var: RCLONE_PROTONDRIVE_ENABLE_CACHING
- Type: bool
- Default: true
--protondrive-description
Properties:
- Config: description
- Env Var: RCLONE_PROTONDRIVE_DESCRIPTION
- Type: string
- Required: false
Limitations
proton-go-api provides the basic building blocks of API calls and error
handling, such as 429 exponential back-off, but it is pretty much just a
barebone interface to the Proton API. For example, the encryption and
decryption of the Proton Drive file are not provided in this library.
Seafile
This is a backend for the Seafile storage service: - It works with both
the free community edition or the professional edition. - Seafile
versions 6.x, 7.x, 8.x and 9.x are all supported. - Encrypted libraries
are also supported. - It supports 2FA enabled users - Using a Library
API Token is not supported
Configuration
There are two distinct modes you can setup your remote: - you point your
remote to the root of the server, meaning you don't specify a library
during the configuration: Paths are specified as remote:library. You may
put subdirectories in too, e.g. remote:library/path/to/dir. - you point
your remote to a specific library during the configuration: Paths are
specified as remote:path/to/dir. This is the recommended mode when using
encrypted libraries. (This mode is possibly slightly faster than the
root mode)
rclone config
This remote is called seafile. It's pointing to the root of your seafile
server and can now be used like this:
rclone ls seafile:library
rclone ls seafile:directory
--fast-list
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Please note a share link is unique for each file or directory. If you
run a link command on a file/dir that has already been shared, you will
get the exact same link.
Compatibility
It has been actively developed using the seafile docker image of these
versions: - 6.3.4 community edition - 7.0.5 community edition - 7.1.3
community edition - 9.0.10 community edition
Versions below 6.0 are not supported. Versions between 6.0 and 6.3
haven't been tested and might not work properly.
Standard options
--seafile-url
- Config: url
- Env Var: RCLONE_SEAFILE_URL
- Type: string
- Required: true
- Examples:
- "https://cloud.seafile.com/"
- Connect to cloud.seafile.com.
--seafile-user
Properties:
- Config: user
- Env Var: RCLONE_SEAFILE_USER
- Type: string
- Required: true
--seafile-pass
Password.
Properties:
- Config: pass
- Env Var: RCLONE_SEAFILE_PASS
- Type: string
- Required: false
--seafile-2fa
Properties:
- Config: 2fa
- Env Var: RCLONE_SEAFILE_2FA
- Type: bool
- Default: false
--seafile-library
Properties:
- Config: library
- Env Var: RCLONE_SEAFILE_LIBRARY
- Type: string
- Required: false
--seafile-library-key
Properties:
- Config: library_key
- Env Var: RCLONE_SEAFILE_LIBRARY_KEY
- Type: string
- Required: false
--seafile-auth-token
Authentication token.
Properties:
- Config: auth_token
- Env Var: RCLONE_SEAFILE_AUTH_TOKEN
- Type: string
- Required: false
Advanced options
--seafile-create-library
Properties:
- Config: create_library
- Env Var: RCLONE_SEAFILE_CREATE_LIBRARY
- Type: bool
- Default: false
--seafile-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_SEAFILE_ENCODING
- Type: Encoding
- Default: Slash,DoubleQuote,BackSlash,Ctl,InvalidUtf8
--seafile-description
Properties:
- Config: description
- Env Var: RCLONE_SEAFILE_DESCRIPTION
- Type: string
- Required: false
SFTP
SFTP runs over SSH v2 and is installed as standard with most modern SSH
installations.
Paths are specified as remote:path. If the path does not begin with a /
it is relative to the home directory of the user. An empty path remote:
refers to the user's home directory. For example, rclone lsd remote:
would list the home directory of the user configured in the rclone
remote config (i.e /home/sftpuser). However, rclone lsd remote:/ would
list the root directory for remote machine (i.e. /)
Note that some SFTP servers will need the leading / - Synology is a good
example of this. rsync.net and Hetzner, on the other hand, requires
users to OMIT the leading /.
Note that by default rclone will try to execute shell commands on the
server, see shell access considerations.
Configuration
rclone config
This remote is called remote and can now be used like this:
rclone ls remote:path/to/directory
SSH Authentication
- Password
- Key file, including certificate signed keys
- ssh-agent
This will generate it correctly for key_pem for use in the config:
Using an ssh-agent is the only way to load encrypted OpenSSH keys at the
moment.
If you set the ask_password option, rclone will prompt for a password
when needed and no password has been configured.
Certificate-signed keys
If you have a certificate you may use it to sign your public key,
creating a separate SSH user certificate that should be used instead of
the plain public key extracted from the private key. Then you must
provide the path to the user certificate public key file in pubkey_file.
Note: This is not the traditional public key paired with your private
key, typically saved as /home/$USER/.ssh/id_rsa.pub. Setting this path
in pubkey_file will not work.
Example:
[remote]
type = sftp
host = example.com
user = sftpuser
key_file = ~/id_rsa
pubkey_file = ~/id_rsa-cert.pub
If you concatenate a cert with a private key then you can specify the
merged file in both places.
By default rclone will not check the server's host key for validation.
This can allow an attacker to replace a server with their own and if you
use password authentication then this can lead to that password being
exposed.
[remote]
type = sftp
host = example.com
user = sftpuser
pass =
known_hosts_file = ~/.ssh/known_hosts
Alternatively you can create your own known hosts file like this:
- rclone will not manage this file for you. If the key is missing or
wrong then the connection will be refused.
- If the server is set up for a certificate host key then the entry in
the known_hosts file must be the @cert-authority entry for the CA
If the host key provided by the server does not match the one in the
file (or is missing) then the connection will be aborted and an error
returned such as
NewFs: couldn't connect SSH: ssh: handshake failed: knownhosts: key mismatch
or
NewFs: couldn't connect SSH: ssh: handshake failed: knownhosts: key is unknown
NewFs: couldn't connect SSH: ssh: handshake failed: ssh: no authorities for
hostname: example.com:22
ssh-agent on macOS
Shell access
Most servers run on some version of Unix, and then a basic Unix shell
can be assumed, without further distinction. Windows 10, Server 2019,
and later can also run a SSH server, which is a port of OpenSSH (see
official installation guide). On a Windows server the shell handling is
different: Although it can also be set up to use a Unix type shell, e.g.
Cygwin bash, the default is to use Windows Command Prompt (cmd.exe), and
PowerShell is a recommended alternative. All of these have behave
differently, which rclone must handle.
When the server is rclone serve sftp, the rclone SFTP remote will detect
this as a Unix type shell - even if it is running on Windows. This
server does not actually have a shell, but it accepts input commands
matching the specific ones that the SFTP backend relies on for Unix
shells, e.g. md5sum and df. Also it handles the string escape rules used
for Unix shell. Treating it as a Unix type shell from a SFTP remote will
therefore always be correct, and support all features.
It is also important to note that, since the shell type decides how
quoting and escaping of file paths used as command-line arguments are
performed, configuring the wrong shell type may leave you exposed to
command injection exploits. Make sure to confirm the auto-detected shell
type, or explicitly set the shell type you know is correct, or disable
shell access until you know.
Checksum
SFTP does not natively support checksums (file hash), but rclone is able
to use checksumming if the same login has shell access, and can execute
remote commands. If there is a command that can calculate compatible
checksums on the remote system, Rclone can then be configured to execute
this whenever a checksum is needed, and read back the results. Currently
MD5 and SHA-1 are supported.
About command
The about command returns the total space, free space, and used space on
the remote for the disk of the specified path on the remote or, if not
set, the disk of the root on the remote.
SFTP usually supports the about command, but it depends on the server.
If the server implements the vendor-specific VFS statistics extension,
which is normally the case with OpenSSH instances, it will be used. If
not, but the same login has access to a Unix shell, where the df command
is available (e.g. in the remote's PATH), then this will be used
instead. If the server shell is PowerShell, probably with a Windows
OpenSSH server, rclone will use a built-in shell command (see shell
access). If none of the above is applicable, about will fail.
Standard options
--sftp-host
E.g. "example.com".
Properties:
- Config: host
- Env Var: RCLONE_SFTP_HOST
- Type: string
- Required: true
--sftp-user
SSH username.
Properties:
- Config: user
- Env Var: RCLONE_SFTP_USER
- Type: string
- Default: "$USER"
--sftp-port
- Config: port
- Env Var: RCLONE_SFTP_PORT
- Type: int
- Default: 22
--sftp-pass
Properties:
- Config: pass
- Env Var: RCLONE_SFTP_PASS
- Type: string
- Required: false
--sftp-key-pem
Note that this should be on a single line with line endings replaced
with '', eg
Properties:
- Config: key_pem
- Env Var: RCLONE_SFTP_KEY_PEM
- Type: string
- Required: false
--sftp-key-file
Properties:
- Config: key_file
- Env Var: RCLONE_SFTP_KEY_FILE
- Type: string
- Required: false
--sftp-key-file-pass
Only PEM encrypted key files (old OpenSSH format) are supported.
Encrypted keys in the new OpenSSH format can't be used.
Properties:
- Config: key_file_pass
- Env Var: RCLONE_SFTP_KEY_FILE_PASS
- Type: string
- Required: false
--sftp-pubkey-file
Set this if you have a signed certificate you want to use for
authentication.
Properties:
- Config: pubkey_file
- Env Var: RCLONE_SFTP_PUBKEY_FILE
- Type: string
- Required: false
--sftp-key-use-agent
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 Too many authentication failures for *username* errors
when the ssh-agent contains many keys.
Properties:
- Config: key_use_agent
- Env Var: RCLONE_SFTP_KEY_USE_AGENT
- Type: bool
- Default: false
--sftp-use-insecure-cipher
This enables the use of the following insecure ciphers and key exchange
methods:
- aes128-cbc
- aes192-cbc
- aes256-cbc
- 3des-cbc
- diffie-hellman-group-exchange-sha256
- diffie-hellman-group-exchange-sha1
Properties:
- Config: use_insecure_cipher
- Env Var: RCLONE_SFTP_USE_INSECURE_CIPHER
- Type: bool
- Default: false
- Examples:
- "false"
- Use default Cipher list.
- "true"
- Enables the use of the aes128-cbc cipher and
diffie-hellman-group-exchange-sha256,
diffie-hellman-group-exchange-sha1 key exchange.
--sftp-disable-hashcheck
Properties:
- Config: disable_hashcheck
- Env Var: RCLONE_SFTP_DISABLE_HASHCHECK
- Type: bool
- Default: false
--sftp-ssh
Normally rclone will use its internal ssh library to connect to the SFTP
server. However it does not implement all possible ssh options so it may
be desirable to use an external ssh binary.
Rclone ignores all the internal config if you use this option and
expects you to configure the ssh binary with the user/host/port and any
other options you need.
Important The ssh command must log in without asking for a password so
needs to be configured with keys or certificates.
Rclone will run the command supplied either with the additional
arguments "-s sftp" to access the SFTP subsystem or with commands such
as "md5sum /path/to/file" appended to read checksums.
Any arguments with spaces in should be surrounded by "double quotes".
Note that when using an external ssh binary rclone makes a new ssh
connection for every hash it calculates.
Properties:
- Config: ssh
- Env Var: RCLONE_SFTP_SSH
- Type: SpaceSepList
- Default:
Advanced options
--sftp-known-hosts-file
Properties:
- Config: known_hosts_file
- Env Var: RCLONE_SFTP_KNOWN_HOSTS_FILE
- Type: string
- Required: false
- Examples:
- "~/.ssh/known_hosts"
- Use OpenSSH's known_hosts file.
--sftp-ask-password
If this is set and no password is supplied then rclone will: - ask for a
password - not contact the ssh agent
Properties:
- Config: ask_password
- Env Var: RCLONE_SFTP_ASK_PASSWORD
- Type: bool
- Default: false
--sftp-path-override
This allows checksum calculation when SFTP and SSH paths are different.
This issue affects among others Synology NAS boxes.
E.g. if shared folders can be found in directories representing volumes:
To specify only the path to the SFTP remote's root, and allow rclone to
add any relative subpaths automatically (including unwrapping/decrypting
remotes as necessary), add the '@' character to the beginning of the
path.
Note that when using this method with Synology "home" folders, the full
"/homes/USER" path should be specified instead of "/home".
Properties:
- Config: path_override
- Env Var: RCLONE_SFTP_PATH_OVERRIDE
- Type: string
- Required: false
--sftp-set-modtime
Properties:
- Config: set_modtime
- Env Var: RCLONE_SFTP_SET_MODTIME
- Type: bool
- Default: true
--sftp-shell-type
Properties:
- Config: shell_type
- Env Var: RCLONE_SFTP_SHELL_TYPE
- Type: string
- Required: false
- Examples:
- "none"
- No shell access
- "unix"
- Unix shell
- "powershell"
- PowerShell
- "cmd"
- Windows Command Prompt
--sftp-md5sum-command
Properties:
- Config: md5sum_command
- Env Var: RCLONE_SFTP_MD5SUM_COMMAND
- Type: string
- Required: false
--sftp-sha1sum-command
Properties:
- Config: sha1sum_command
- Env Var: RCLONE_SFTP_SHA1SUM_COMMAND
- Type: string
- Required: false
--sftp-skip-links
Set to skip any symlinks and any other non regular files.
Properties:
- Config: skip_links
- Env Var: RCLONE_SFTP_SKIP_LINKS
- Type: bool
- Default: false
--sftp-subsystem
Properties:
- Config: subsystem
- Env Var: RCLONE_SFTP_SUBSYSTEM
- Type: string
- Default: "sftp"
--sftp-server-command
Specifies the path or command to run a sftp server on the remote host.
[remote_name]
type = sftp
server_command = sudo /usr/libexec/openssh/sftp-server
Properties:
- Config: server_command
- Env Var: RCLONE_SFTP_SERVER_COMMAND
- Type: string
- Required: false
--sftp-use-fstat
Some servers limit the amount of open files and calling Stat after
opening the file will throw an error from the server. Setting this flag
will call Fstat instead of Stat which is called on an already open file
handle.
It has been found that this helps with IBM Sterling SFTP servers which
have "extractability" level set to 1 which means only 1 file can be
opened at any given time.
Properties:
- Config: use_fstat
- Env Var: RCLONE_SFTP_USE_FSTAT
- Type: bool
- Default: false
--sftp-disable-concurrent-reads
Normally concurrent reads are safe to use and not using them will
degrade performance, so this option is disabled by default.
Some servers limit the amount number of times a file can be downloaded.
Using concurrent reads can trigger this limit, so if you have a server
which returns
Properties:
- Config: disable_concurrent_reads
- Env Var: RCLONE_SFTP_DISABLE_CONCURRENT_READS
- Type: bool
- Default: false
--sftp-disable-concurrent-writes
Properties:
- Config: disable_concurrent_writes
- Env Var: RCLONE_SFTP_DISABLE_CONCURRENT_WRITES
- Type: bool
- Default: false
--sftp-idle-timeout
Properties:
- Config: idle_timeout
- Env Var: RCLONE_SFTP_IDLE_TIMEOUT
- Type: Duration
- Default: 1m0s
--sftp-chunk-size
This controls the maximum size of payload in SFTP protocol packets. The
RFC limits this to 32768 bytes (32k), which is the default. However, a
lot of servers support larger sizes, typically limited to a maximum
total package size of 256k, and setting it larger will increase transfer
speed dramatically on high latency links. This includes OpenSSH, and,
for example, using the value of 255k works well, leaving plenty of room
for overhead while still being within a total packet size of 256k.
Make sure to test thoroughly before using a value higher than 32k, and
only use it if you always connect to the same server or after
sufficiently broad testing. If you get errors such as "failed to send
packet payload: EOF", lots of "connection lost", or "corrupted on
transfer", when copying a larger file, try lowering the value. The
server run by rclone serve sftp sends packets with standard 32k maximum
payload so you must not set a different chunk_size when downloading
files, but it accepts packets up to the 256k total size, so for uploads
the chunk_size can be set as for the OpenSSH example above.
Properties:
- Config: chunk_size
- Env Var: RCLONE_SFTP_CHUNK_SIZE
- Type: SizeSuffix
- Default: 32Ki
--sftp-concurrency
This controls the maximum number of outstanding requests for one file.
Increasing it will increase throughput on high latency links at the cost
of using more memory.
Properties:
- Config: concurrency
- Env Var: RCLONE_SFTP_CONCURRENCY
- Type: int
- Default: 64
--sftp-connections
If you are doing a sync or copy then make sure connections is one more
than the sum of --transfers and --checkers.
If you use --check-first then it just needs to be one more than the
maximum of --checkers and --transfers.
Properties:
- Config: connections
- Env Var: RCLONE_SFTP_CONNECTIONS
- Type: int
- Default: 0
--sftp-set-env
VAR=value
to be passed to the sftp client and to any commands run (eg md5sum).
VAR1=value VAR2=value
and pass variables with spaces in quotes, eg
Properties:
- Config: set_env
- Env Var: RCLONE_SFTP_SET_ENV
- Type: SpaceSepList
- Default:
--sftp-ciphers
At least one must match with server configuration. This can be checked
for example using ssh -Q cipher.
Example:
Properties:
- Config: ciphers
- Env Var: RCLONE_SFTP_CIPHERS
- Type: SpaceSepList
- Default:
--sftp-key-exchange
At least one must match with server configuration. This can be checked
for example using ssh -Q kex.
Example:
Properties:
- Config: key_exchange
- Env Var: RCLONE_SFTP_KEY_EXCHANGE
- Type: SpaceSepList
- Default:
--sftp-macs
Example:
Properties:
- Config: macs
- Env Var: RCLONE_SFTP_MACS
- Type: SpaceSepList
- Default:
--sftp-host-key-algorithms
At least one must match with server configuration. This can be checked
for example using ssh -Q HostKeyAlgorithms.
Note: This can affect the outcome of key negotiation with the server
even if server host key validation is not enabled.
Example:
Properties:
- Config: host_key_algorithms
- Env Var: RCLONE_SFTP_HOST_KEY_ALGORITHMS
- Type: SpaceSepList
- Default:
--sftp-socks-proxy
Example:
myUser:myPass@localhost:9005
Properties:
- Config: socks_proxy
- Env Var: RCLONE_SFTP_SOCKS_PROXY
- Type: string
- Required: false
--sftp-copy-is-hardlink
The SFTP protocol does not define a copy command so normally server side
copies are not allowed with the sftp backend.
However the SFTP protocol does support hardlinking, and if you enable
this flag then the sftp backend will support server side copies. These
will be implemented by doing a hardlink from the source to the
destination.
Note that hardlinking two files together will use no additional space as
the source and the destination will be the same file.
Properties:
- Config: copy_is_hardlink
- Env Var: RCLONE_SFTP_COPY_IS_HARDLINK
- Type: bool
- Default: false
--sftp-description
Properties:
- Config: description
- Env Var: RCLONE_SFTP_DESCRIPTION
- Type: string
- Required: false
Limitations
On some SFTP servers (e.g. Synology) the paths are different for SSH and
SFTP so the hashes can't be calculated properly. For them using
disable_hashcheck is a good idea.
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 use_insecure_cipher setting in the configuration
file to true. Further details on the insecurity of this cipher can be
found in this paper.
Note that since SFTP isn't HTTP based the following flags don't work
with it: --dump-headers, --dump-bodies, --dump-auth.
rsync.net
SMB
Notes
The first path segment must be the name of the share, which you entered
when you started to share on Windows. On smbd, it's the section title in
smb.conf (usually in /etc/samba/) file. You can find shares by querying
the root if you're unsure (e.g. rclone lsd remote:).
You can't use Anonymous access for logging in. You have to use the guest
user with an empty password instead. The rclone client tries to avoid
8.3 names when uploading files by encoding trailing spaces and periods.
Alternatively, the local backend on Windows can access SMB servers using
UNC paths, by \\server\share. This doesn't apply to non-Windows OSes,
such as Linux and macOS.
Configuration
First run
rclone config
Option host.
Samba hostname to connect to.
E.g. "example.com".
Enter a value.
host> localhost
Option user.
Samba username.
Enter a string value. Press Enter for the default (lesmi).
user> guest
Option port.
Samba port number.
Enter a signed integer. Press Enter for the default (445).
port>
Option pass.
Samba password.
Choose an alternative below. Press Enter for the default (n).
y) Yes, type in my own password
g) Generate random password
n) No, leave this optional password blank (default)
y/g/n> g
Password strength in bits.
64 is just about memorable
128 is secure
1024 is the maximum
Bits> 64
Your password is: XXXX
Use this password? Please note that an obscured version of this
password (and not the password itself) will be stored under your
configuration file, so keep this generated password in a safe place.
y) Yes (default)
n) No
y/n> y
Option domain.
Domain name for NTLM authentication.
Enter a string value. Press Enter for the default (WORKGROUP).
domain>
Configuration complete.
Options:
- type: samba
- host: localhost
- user: guest
- pass: *** ENCRYPTED ***
Keep this "remote" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> d
Standard options
--smb-host
Properties:
- Config: host
- Env Var: RCLONE_SMB_HOST
- Type: string
- Required: true
--smb-user
SMB username.
Properties:
- Config: user
- Env Var: RCLONE_SMB_USER
- Type: string
- Default: "$USER"
--smb-port
Properties:
- Config: port
- Env Var: RCLONE_SMB_PORT
- Type: int
- Default: 445
--smb-pass
SMB password.
Properties:
- Config: pass
- Env Var: RCLONE_SMB_PASS
- Type: string
- Required: false
--smb-domain
Properties:
- Config: domain
- Env Var: RCLONE_SMB_DOMAIN
- Type: string
- Default: "WORKGROUP"
--smb-spn
cifs/remotehost:1020
Properties:
- Config: spn
- Env Var: RCLONE_SMB_SPN
- Type: string
- Required: false
Advanced options
--smb-idle-timeout
Properties:
- Config: idle_timeout
- Env Var: RCLONE_SMB_IDLE_TIMEOUT
- Type: Duration
- Default: 1m0s
--smb-hide-special-share
Hide special shares (e.g. print$) which users aren't supposed to access.
Properties:
- Config: hide_special_share
- Env Var: RCLONE_SMB_HIDE_SPECIAL_SHARE
- Type: bool
- Default: true
--smb-case-insensitive
Properties:
- Config: case_insensitive
- Env Var: RCLONE_SMB_CASE_INSENSITIVE
- Type: bool
- Default: true
--smb-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_SMB_ENCODING
- Type: Encoding
- Default:
Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightP
eriod,InvalidUtf8,Dot
--smb-description
Properties:
- Config: description
- Env Var: RCLONE_SMB_DESCRIPTION
- Type: string
- Required: false
Storj
Backend options
Storj can be used both with this native backend and with the s3 backend
using the Storj S3 compatible gateway (shared or private).
- Characteristics:
- Storj backend: Uses native RPC protocol, connects directly to
the storage nodes which hosts the data. Requires more CPU
resource of encoding/decoding and has network amplification
(especially during the upload), uses lots of TCP connections
- S3 backend: Uses S3 compatible HTTP Rest API via the shared
gateways. There is no network amplification, but performance
depends on the shared gateways and the secret encryption key is
shared with the gateway.
- Typical usage:
- Storj backend: Server environments and desktops with enough
resources, internet speed and connectivity - and applications
where storjs client-side encryption is required.
- S3 backend: Desktops and similar with limited resources,
internet speed or connectivity.
- Security:
- Storj backend: strong. Private encryption key doesn't need to
leave the local computer.
- S3 backend: weaker. Private encryption key is shared with the
authentication service of the hosted gateway, where it's stored
encrypted. It can be stronger when combining with the rclone
crypt backend.
- Bandwidth usage (upload):
- Storj backend: higher. As data is erasure coded on the client
side both the original data and the parities should be uploaded.
About ~2.7 times more data is required to be uploaded. Client
may start to upload with even higher number of nodes (~3.7 times
more) and abandon/stop the slow uploads.
- S3 backend: normal. Only the raw data is uploaded, erasure
coding happens on the gateway.
- Bandwidth usage (download)
- Storj backend: almost normal. Only the minimal number of data is
required, but to avoid very slow data providers a few more
sources are used and the slowest are ignored (max 1.2x
overhead).
- S3 backend: normal. Only the raw data is downloaded, erasure
coding happens on the shared gateway.
- CPU usage:
- Storj backend: higher, but more predictable. Erasure code and
encryption/decryption happens locally which requires significant
CPU usage.
- S3 backend: less. Erasure code and encryption/decryption happens
on shared s3 gateways (and as is, it depends on the current load
on the gateways)
- TCP connection usage:
- Storj backend: high. A direct connection is required to each of
the Storj nodes resulting in 110 connections on upload and 35 on
download per 64 MB segment. Not all the connections are actively
used (slow ones are pruned), but they are all opened. Adjusting
the max open file limit may be required.
- S3 backend: normal. Only one connection per download/upload
thread is required to the shared gateway.
- Overall performance:
- Storj backend: with enough resources (CPU and bandwidth) storj
backend can provide even 2x better performance. Data is directly
downloaded to / uploaded from to the client instead of the
gateway.
- S3 backend: Can be faster on edge devices where CPU and network
bandwidth is limited as the shared S3 compatible gateways take
care about the encrypting/decryption and erasure coding and no
download/upload amplification.
- Decentralization:
- Storj backend: high. Data is downloaded directly from the
distributed cloud of storage providers.
- S3 backend: low. Requires a running S3 gateway (either
self-hosted or Storj-hosted).
- Limitations:
- Storj backend: rclone checksum is not possible without download,
as checksum metadata is not calculated during upload
- S3 backend: secret encryption key is shared with the gateway
Configuration
rclone config
Standard options
--storj-provider
Properties:
- Config: provider
- Env Var: RCLONE_STORJ_PROVIDER
- Type: string
- Default: "existing"
- Examples:
- "existing"
- Use an existing access grant.
- "new"
- Create a new access grant from satellite address, API key,
and passphrase.
--storj-access-grant
Access grant.
Properties:
- Config: access_grant
- Env Var: RCLONE_STORJ_ACCESS_GRANT
- Provider: existing
- Type: string
- Required: false
--storj-satellite-address
Satellite address.
Properties:
- Config: satellite_address
- Env Var: RCLONE_STORJ_SATELLITE_ADDRESS
- Provider: new
- Type: string
- Default: "us1.storj.io"
- Examples:
- "us1.storj.io"
- US1
- "eu1.storj.io"
- EU1
- "ap1.storj.io"
- AP1
--storj-api-key
API key.
Properties:
- Config: api_key
- Env Var: RCLONE_STORJ_API_KEY
- Provider: new
- Type: string
- Required: false
--storj-passphrase
Encryption passphrase.
Properties:
- Config: passphrase
- Env Var: RCLONE_STORJ_PASSPHRASE
- Provider: new
- Type: string
- Required: false
Advanced options
--storj-description
Properties:
- Config: description
- Env Var: RCLONE_STORJ_DESCRIPTION
- Type: string
- Required: false
Usage
Paths are specified as remote:bucket (or remote: for the lsf command.)
You may put subdirectories in too, e.g. remote:bucket/path/to/dir.
Note the colon (:) character at the end of the command line.
Delete a bucket
Use the purge command to delete a non-empty bucket with all its content.
Upload objects
List objects
rclone ls remote:bucket
Add the folder to the remote path to list recursively all objects in
this folder.
rclone ls remote:bucket/path/to/dir/
Download objects
Delete objects
Use the size command to print the total size of objects in a bucket or a
folder.
Use the sync command to sync the source to the destination, changing the
destination only, deleting any excess files.
Since this can cause data loss, test first with the --dry-run flag to
see exactly what would be copied and deleted.
The sync can be done also from Storj to the local file system.
Limitations
See List of backends that do not support rclone about and rclone about
Known issues
If you get errors like too many open files this usually happens when the
default ulimit for system max open files is exceeded. Native Storj
protocol opens a large number of TCP connections (each of which is
counted as an open file). For a single upload stream you can expect 110
TCP connections to be opened. For a single download stream you can
expect 35. This batch of connections will be opened for every 64 MiB
segment and you should also expect TCP connections to be reused. If you
do many transfers you eventually open a connection to most storage nodes
(thousands of nodes).
To fix these, please raise your system limits. You can do this issuing a
ulimit -n 65536 just before you run rclone. To change the limits more
permanently you can add this to your shell startup script, e.g.
$HOME/.bashrc, or change the system-wide configuration, usually
/etc/sysctl.conf and/or /etc/security/limits.conf, but please refer to
your operating system manual.
SugarSync
Configuration
The initial setup for SugarSync involves getting a token from SugarSync
which you can do with rclone. rclone config walks you through it.
rclone config
Note that the config asks for your email and password but doesn't store
them, it only uses them to get the initial token.
rclone ls remote:Test
NB you can't create files in the top level folder you have to create a
folder, which rclone will create as a "Sync Folder" with SugarSync.
SugarSync replaces the default restricted characters set except for DEL.
Invalid UTF-8 bytes will also be replaced, as they can't be used in XML
strings.
Deleting files
Standard options
--sugarsync-app-id
Properties:
- Config: app_id
- Env Var: RCLONE_SUGARSYNC_APP_ID
- Type: string
- Required: false
--sugarsync-access-key-id
Properties:
- Config: access_key_id
- Env Var: RCLONE_SUGARSYNC_ACCESS_KEY_ID
- Type: string
- Required: false
--sugarsync-private-access-key
Properties:
- Config: private_access_key
- Env Var: RCLONE_SUGARSYNC_PRIVATE_ACCESS_KEY
- Type: string
- Required: false
--sugarsync-hard-delete
- Config: hard_delete
- Env Var: RCLONE_SUGARSYNC_HARD_DELETE
- Type: bool
- Default: false
Advanced options
--sugarsync-refresh-token
Properties:
- Config: refresh_token
- Env Var: RCLONE_SUGARSYNC_REFRESH_TOKEN
- Type: string
- Required: false
--sugarsync-authorization
Sugarsync authorization.
Properties:
- Config: authorization
- Env Var: RCLONE_SUGARSYNC_AUTHORIZATION
- Type: string
- Required: false
--sugarsync-authorization-expiry
Properties:
- Config: authorization_expiry
- Env Var: RCLONE_SUGARSYNC_AUTHORIZATION_EXPIRY
- Type: string
- Required: false
--sugarsync-user
Sugarsync user.
Properties:
- Config: user
- Env Var: RCLONE_SUGARSYNC_USER
- Type: string
- Required: false
--sugarsync-root-id
Properties:
- Config: root_id
- Env Var: RCLONE_SUGARSYNC_ROOT_ID
- Type: string
- Required: false
--sugarsync-deleted-id
Properties:
- Config: deleted_id
- Env Var: RCLONE_SUGARSYNC_DELETED_ID
- Type: string
- Required: false
--sugarsync-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_SUGARSYNC_ENCODING
- Type: Encoding
- Default: Slash,Ctl,InvalidUtf8,Dot
--sugarsync-description
Properties:
- Config: description
- Env Var: RCLONE_SUGARSYNC_DESCRIPTION
- Type: string
- Required: false
Limitations
Uloz.to
The initial setup for Uloz.to involves filling in the user credentials.
rclone config walks you through it.
Configuration
rclone config
Option app_token.
The application token identifying the app. An app API key can be either found
in the API doc
https://uloz.to/upload-resumable-api-beta or obtained from customer service.
Enter a value. Press Enter to leave empty.
app_token> token_value
Option username.
The username of the principal to operate as.
Enter a value. Press Enter to leave empty.
username> user
Option password.
The password for the user.
Choose an alternative below. Press Enter for the default (n).
y) Yes, type in my own password
g) Generate random password
n) No, leave this optional password blank (default)
y/g/n> y
Enter the password:
password:
Confirm the password:
password:
rclone ls remote:
User credentials
The only reliable method is to authenticate the user using username and
password. Uloz.to offers an API key as well, but it's reserved for the
use of Uloz.to's in-house application and using it in different
circumstances is unreliable.
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Transfers
All files are currently uploaded using a single HTTP request, so for
uploading large files a stable connection is necessary. Rclone will
upload up to --transfers chunks at the same time (shared among all
uploads).
Deleting files
By default, files are moved to the recycle bin whereas folders are
deleted immediately. Trashed files are permanently deleted after 30 days
in the recycle bin.
Root folder ID
You can set the root_folder_slug for rclone. This is the folder
(identified by its Folder slug) that rclone considers to be the root of
your Uloz.to drive.
Normally you will leave this blank and rclone will determine the correct
root to use itself. However you can set this to restrict rclone to a
specific folder hierarchy.
In order to do this you will have to find the Folder slug of the folder
you wish to use as root. This will be the last segment of the URL when
you open the relevant folder in the Uloz.to web interface.
Standard options
--ulozto-app-token
The application token identifying the app. An app API key can be either
found in the API doc https://uloz.to/upload-resumable-api-beta or
obtained from customer service.
Properties:
- Config: app_token
- Env Var: RCLONE_ULOZTO_APP_TOKEN
- Type: string
- Required: false
--ulozto-username
Properties:
- Config: username
- Env Var: RCLONE_ULOZTO_USERNAME
- Type: string
- Required: false
--ulozto-password
Properties:
- Config: password
- Env Var: RCLONE_ULOZTO_PASSWORD
- Type: string
- Required: false
Advanced options
--ulozto-root-folder-slug
If set, rclone will use this folder as the root folder for all
operations. For example, if the slug identifies 'foo/bar/', 'ulozto:baz'
is equivalent to 'ulozto:foo/bar/baz' without any root slug set.
Properties:
- Config: root_folder_slug
- Env Var: RCLONE_ULOZTO_ROOT_FOLDER_SLUG
- Type: string
- Required: false
--ulozto-list-page-size
Properties:
- Config: list_page_size
- Env Var: RCLONE_ULOZTO_LIST_PAGE_SIZE
- Type: int
- Default: 500
--ulozto-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_ULOZTO_ENCODING
- Type: Encoding
- Default: Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot
--ulozto-description
Description of the remote.
Properties:
- Config: description
- Env Var: RCLONE_ULOZTO_DESCRIPTION
- Type: string
- Required: false
Limitations
Uloz.to file names can't have the \ character in. rclone maps this to
and from an identical looking unicode equivalent \ (U+FF3C Fullwidth
Reverse Solidus).
Uloz.to rate limits access to the API, but exact details are
undisclosed. Practical testing reveals that hitting the rate limit
during normal use is very rare, although not impossible with higher
number of concurrently uploaded files.
See List of backends that do not support rclone about and rclone about
Uptobox
Configuration
rclone config
Current remotes:
Name Type
==== ====
TestUptobox uptobox
rclone ls remote:
Invalid UTF-8 bytes will also be replaced, as they can't be used in XML
strings.
Standard options
--uptobox-access-token
Properties:
- Config: access_token
- Env Var: RCLONE_UPTOBOX_ACCESS_TOKEN
- Type: string
- Required: false
Advanced options
--uptobox-private
Properties:
- Config: private
- Env Var: RCLONE_UPTOBOX_PRIVATE
- Type: bool
- Default: false
--uptobox-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_UPTOBOX_ENCODING
- Type: Encoding
- Default:
Slash,LtGt,DoubleQuote,BackQuote,Del,Ctl,LeftSpace,InvalidUtf8,Dot
--uptobox-description
- Config: description
- Env Var: RCLONE_UPTOBOX_DESCRIPTION
- Type: string
- Required: false
Limitations
Uptobox will delete inactive files that have not been accessed in 60
days.
Union
During the initial setup with rclone config you will specify the
upstream remotes as a space separated list. The upstream remotes can
either be a local paths or other remotes.
The attributes :ro, :nc and :writeback can be attached to the end of the
remote to tag the remote as read only, no create or writeback, e.g.
remote:directory/subdirectory:ro or remote:directory/subdirectory:nc.
- :ro means files will only be read from here and never written
- :nc means new files or directories won't be created here
- :writeback means files found in different remotes will be written
back here. See the writeback section for more info.
Configuration
rclone config
Name Type
==== ====
remote union
rclone ls remote:
Copy another local directory to the union directory called source, which
will be placed into remote3:dir3
Behavior / Policies
----------------------------------------------------------------------------
Category Description Functions
---------- --------------- -------------------------------------------------
action Writing move, rmdir, rmdirs, delete, purge and copy, sync
Existing file (as destination when file exist)
create Create copy, sync (as destination when file not exist)
non-existing
file
search Reading and ls, lsd, lsl, cat, md5sum, sha1sum and copy, sync
listing file (as source)
Path Preservation
All policies which start with ep (epff, eplfs, eplus, epmfs, eprand) are
path preserving. ep stands for existing path.
A path preserving policy will only consider upstreams where the relative
path being accessed already exists.
Filters
Policy descriptions
-----------------------------------------------------------------------
Policy Description
---------------- ------------------------------------------------------
all Search category: same as epall. Action category: same
as epall. Create category: act on all upstreams.
epff (existing Act on the first one found, by the time upstreams
path, first reply, where the relative path exists.
found)
eplfs (existing Of all the upstreams on which the relative path exists
path, least free choose the one with the least free space.
space)
eplus (existing Of all the upstreams on which the relative path exists
path, least used choose the one with the least used space.
space)
eplno (existing Of all the upstreams on which the relative path exists
path, least choose the one with the least number of objects.
number of
objects)
epmfs (existing Of all the upstreams on which the relative path exists
path, most free choose the one with the most free space.
space)
eprand (existing Calls epall and then randomizes. Returns only one
path, random) upstream.
ff (first found) Search category: same as epff. Action category: same
as epff. Create category: Act on the first one found
by the time upstreams reply.
lfs (least free Search category: same as eplfs. Action category: same
space) as eplfs. Create category: Pick the upstream with the
least available free space.
lus (least used Search category: same as eplus. Action category: same
space) as eplus. Create category: Pick the upstream with the
least used space.
mfs (most free Search category: same as epmfs. Action category: same
space) as epmfs. Create category: Pick the upstream with the
most available free space.
rand (random) Calls all and then randomizes. Returns only one
upstream.
-----------------------------------------------------------------------
Writeback
[union]
type = union
action_policy = all
create_policy = all
search_policy = ff
upstreams = /local:writeback remote:dir
When files are opened for read, if the file is in remote:dir but not
/local then rclone will copy the file entirely into /local before
returning a reference to the file in /local. The copy will be done with
the equivalent of rclone copy so will use --multi-thread-streams if
configured. Any copies will be logged with an INFO log.
When files are written, they will be written to both remote:dir and
/local.
Rclone does not manage the :writeback remote in any way other than
writing files back to it. So if you need to expire old files or manage
the size then you will have to do this yourself.
Standard options
Here are the Standard options specific to union (Union merges the
contents of several upstream fs).
--union-upstreams
Properties:
- Config: upstreams
- Env Var: RCLONE_UNION_UPSTREAMS
- Type: string
- Required: true
--union-action-policy
Properties:
- Config: action_policy
- Env Var: RCLONE_UNION_ACTION_POLICY
- Type: string
- Default: "epall"
--union-create-policy
Properties:
- Config: create_policy
- Env Var: RCLONE_UNION_CREATE_POLICY
- Type: string
- Default: "epmfs"
--union-search-policy
Properties:
- Config: search_policy
- Env Var: RCLONE_UNION_SEARCH_POLICY
- Type: string
- Default: "ff"
--union-cache-time
Properties:
- Config: cache_time
- Env Var: RCLONE_UNION_CACHE_TIME
- Type: int
- Default: 120
Advanced options
Here are the Advanced options specific to union (Union merges the
contents of several upstream fs).
--union-min-free-space
If a remote has less than this much free space then it won't be
considered for use in lfs or eplfs policies.
Properties:
- Config: min_free_space
- Env Var: RCLONE_UNION_MIN_FREE_SPACE
- Type: SizeSuffix
- Default: 1Gi
--union-description
Properties:
- Config: description
- Env Var: RCLONE_UNION_DESCRIPTION
- Type: string
- Required: false
Metadata
WebDAV
Configuration
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.
rclone config
rclone ls remote:
Plain WebDAV does not support modified times. However when used with
Fastmail Files, Owncloud or Nextcloud rclone will support modified
times.
Likewise plain WebDAV does not support hashes, however when used with
Fastmail Files, Owncloud or Nextcloud 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.
Standard options
--webdav-url
E.g. https://example.com.
Properties:
- Config: url
- Env Var: RCLONE_WEBDAV_URL
- Type: string
- Required: true
--webdav-vendor
Properties:
- Config: vendor
- Env Var: RCLONE_WEBDAV_VENDOR
- Type: string
- Required: false
- Examples:
- "fastmail"
- Fastmail Files
- "nextcloud"
- Nextcloud
- "owncloud"
- Owncloud
- "sharepoint"
- Sharepoint Online, authenticated by Microsoft account
- "sharepoint-ntlm"
- Sharepoint with NTLM authentication, usually self-hosted or
on-premises
- "rclone"
- rclone WebDAV server to serve a remote over HTTP via the
WebDAV protocol
- "other"
- Other site/service or software
--webdav-user
User name.
Properties:
- Config: user
- Env Var: RCLONE_WEBDAV_USER
- Type: string
- Required: false
--webdav-pass
Password.
Properties:
- Config: pass
- Env Var: RCLONE_WEBDAV_PASS
- Type: string
- Required: false
--webdav-bearer-token
Properties:
- Config: bearer_token
- Env Var: RCLONE_WEBDAV_BEARER_TOKEN
- Type: string
- Required: false
Advanced options
--webdav-bearer-token-command
- Config: bearer_token_command
- Env Var: RCLONE_WEBDAV_BEARER_TOKEN_COMMAND
- Type: string
- Required: false
--webdav-encoding
Default encoding is
Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,Hash,Percent,BackSlash,Del,Ctl,
LeftSpace,LeftTilde,RightSpace,RightPeriod,InvalidUtf8
for sharepoint-ntlm or identity otherwise.
Properties:
- Config: encoding
- Env Var: RCLONE_WEBDAV_ENCODING
- Type: string
- Required: false
--webdav-headers
Properties:
- Config: headers
- Env Var: RCLONE_WEBDAV_HEADERS
- Type: CommaSepList
- Default:
--webdav-pacer-min-sleep
Properties:
- Config: pacer_min_sleep
- Env Var: RCLONE_WEBDAV_PACER_MIN_SLEEP
- Type: Duration
- Default: 10ms
--webdav-nextcloud-chunk-size
Nextcloud upload chunk size.
Properties:
- Config: nextcloud_chunk_size
- Env Var: RCLONE_WEBDAV_NEXTCLOUD_CHUNK_SIZE
- Type: SizeSuffix
- Default: 10Mi
--webdav-owncloud-exclude-shares
Properties:
- Config: owncloud_exclude_shares
- Env Var: RCLONE_WEBDAV_OWNCLOUD_EXCLUDE_SHARES
- Type: bool
- Default: false
--webdav-owncloud-exclude-mounts
Properties:
- Config: owncloud_exclude_mounts
- Env Var: RCLONE_WEBDAV_OWNCLOUD_EXCLUDE_MOUNTS
- Type: bool
- Default: false
--webdav-unix-socket
Properties:
- Config: unix_socket
- Env Var: RCLONE_WEBDAV_UNIX_SOCKET
- Type: string
- Required: false
--webdav-description
Properties:
- Config: description
- Env Var: RCLONE_WEBDAV_DESCRIPTION
- Type: string
- Required: false
Provider notes
Fastmail Files
Owncloud
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 https://example.com/remote.php/webdav/.
Nextcloud
Sharepoint Online
This means that these accounts can't be added using the official API
(other Accounts should work with the "onedrive" option). However, it is
possible to access them using webdav.
To use a sharepoint remote with rclone, add it like this: First, you
need to get your remote's URL:
You'll only need this URL up to the email address. After that, you'll
most likely want to add "/Documents". That subdirectory contains the
actual data stored on your OneDrive.
[sharepoint]
type = webdav
url = https://[YOUR-DOMAIN]-my.sharepoint.com/personal/[YOUR-EMAIL]/Documents
vendor = sharepoint
user = YourEmailAddress
pass = encryptedpassword
Use this option in case your (hosted) Sharepoint is not tied to OneDrive
accounts and uses NTLM authentication.
NTLM uses domain and user name combination for authentication, set user
to DOMAIN\username.
[sharepoint]
type = webdav
url = https://[YOUR-DOMAIN]/some-path-to/Documents
vendor = sharepoint-ntlm
user = DOMAIN\user
pass = encryptedpassword
For Rclone calls copying files (especially Office files such as .docx,
.xlsx, etc.) from/to SharePoint (like copy, sync, etc.), you should
append these flags to ensure Rclone uses the "Last Modified" datetime
property to compare your documents:
Rclone
Use this option if you are hosting remotes over WebDAV provided by
rclone. Read rclone serve webdav for more details.
[dcache]
type = webdav
url = https://dcache...
vendor = other
user =
pass =
bearer_token = your-macaroon
OpenID-Connect
Note Before the oidc-token command will work, the refresh token must be
loaded into the oidc agent. This is done with the oidc-add command
(e.g., oidc-add XDC). This is typically done once per login session.
Full details on this and how to register oidc-agent with your OIDC
Provider are provided in the oidc-agent documentation.
[dcache]
type = webdav
url = https://dcache.example.org/
vendor = other
bearer_token_command = oidc-token XDC
Yandex Disk
Configuration
rclone config
See the remote setup docs for how to set it up on a machine with no
Internet browser available.
Note that rclone runs a webserver on your local machine to collect the
token as returned from Yandex Disk. This only runs from the moment it
opens your browser to the moment you get back the verification code.
This is on http://127.0.0.1:53682/ and this it may require you to
unblock it temporarily if you are running a host firewall.
rclone ls remote:directory
Emptying Trash
If you wish to empty your trash you can use the rclone cleanup remote:
command which will permanently delete all your trashed files. This
command does not take any path arguments.
Quota information
To view your current quota you can use the rclone about remote: command
which will display your usage limit (quota) and the current usage.
Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
strings.
Standard options
--yandex-client-id
Properties:
- Config: client_id
- Env Var: RCLONE_YANDEX_CLIENT_ID
- Type: string
- Required: false
--yandex-client-secret
Properties:
- Config: client_secret
- Env Var: RCLONE_YANDEX_CLIENT_SECRET
- Type: string
- Required: false
Advanced options
--yandex-token
Properties:
- Config: token
- Env Var: RCLONE_YANDEX_TOKEN
- Type: string
- Required: false
--yandex-auth-url
Properties:
- Config: auth_url
- Env Var: RCLONE_YANDEX_AUTH_URL
- Type: string
- Required: false
--yandex-token-url
Properties:
- Config: token_url
- Env Var: RCLONE_YANDEX_TOKEN_URL
- Type: string
- Required: false
--yandex-hard-delete
Delete files permanently rather than putting them into the trash.
Properties:
- Config: hard_delete
- Env Var: RCLONE_YANDEX_HARD_DELETE
- Type: bool
- Default: false
--yandex-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_YANDEX_ENCODING
- Type: Encoding
- Default: Slash,Del,Ctl,InvalidUtf8,Dot
--yandex-spoof-ua
Set the user agent to match an official version of the yandex disk
client. May help with upload performance.
Properties:
- Config: spoof_ua
- Env Var: RCLONE_YANDEX_SPOOF_UA
- Type: bool
- Default: true
--yandex-description
Properties:
- Config: description
- Env Var: RCLONE_YANDEX_DESCRIPTION
- Type: string
- Required: false
Limitations
When uploading very large files (bigger than about 5 GiB) you will need
to increase the --timeout 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'll see net/http: timeout awaiting response headers
errors in the logs if this is happening. Setting the timeout to twice
the max size of file in GiB should be enough, so if you want to upload a
30 GiB file set a timeout of 2 * 30 = 60m, that is --timeout 60m.
Zoho Workdrive
Configuration
rclone config
OAuth Client Id
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_id>
OAuth Client Secret
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_secret>
Edit advanced config? (y/n)
y) Yes
n) No (default)
y/n> n
Remote config
Use web browser to automatically authenticate rclone with remote?
* Say Y if the machine running rclone has a web browser you can use
* Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.
y) Yes (default)
n) No
y/n>
If your browser doesn't open automatically go to the following link:
http://127.0.0.1:53682/auth?state=LVn0IHzxej1ZkmQw31d0wQ
Log in and authorize rclone for access
Waiting for code...
Got code
Choose a number from below, or type in your own value
1 / MyTeam
\ "4u28602177065ff22426787a6745dba8954eb"
Enter a Team ID> 1
Choose a number from below, or type in your own value
1 / General
\ "4u2869d2aa6fca04f4f2f896b6539243b85b1"
Enter a Workspace ID> 1
Configuration complete.
Options:
- type: zoho
- token:
{"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"Zoho-
oauthtoken","refresh_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","expiry":"2020-10-
12T00:54:52.370275223+02:00"}
- root_folder_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Keep this "remote" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d>
See the remote setup docs for how to set it up on a machine with no
Internet browser available.
rclone ls remote:directory
Usage information
To view your current quota you can use the rclone about remote: command
which will display your current usage.
Only control characters and invalid UTF-8 are replaced. In addition most
Unicode full-width characters are not supported at all and will be
removed from filenames during upload.
Standard options
--zoho-client-id
Properties:
- Config: client_id
- Env Var: RCLONE_ZOHO_CLIENT_ID
- Type: string
- Required: false
--zoho-client-secret
Properties:
- Config: client_secret
- Env Var: RCLONE_ZOHO_CLIENT_SECRET
- Type: string
- Required: false
--zoho-region
You'll have to use the region your organization is registered in. If not
sure use the same top level domain as you connect to in your browser.
Properties:
- Config: region
- Env Var: RCLONE_ZOHO_REGION
- Type: string
- Required: false
- Examples:
- "com"
- United states / Global
- "eu"
- Europe
- "in"
- India
- "jp"
- Japan
- "com.cn"
- China
- "com.au"
- Australia
Advanced options
--zoho-token
Properties:
- Config: token
- Env Var: RCLONE_ZOHO_TOKEN
- Type: string
- Required: false
--zoho-auth-url
Properties:
- Config: auth_url
- Env Var: RCLONE_ZOHO_AUTH_URL
- Type: string
- Required: false
--zoho-token-url
Properties:
- Config: token_url
- Env Var: RCLONE_ZOHO_TOKEN_URL
- Type: string
- Required: false
--zoho-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_ZOHO_ENCODING
- Type: Encoding
- Default: Del,Ctl,InvalidUtf8
--zoho-description
Properties:
- Config: description
- Env Var: RCLONE_ZOHO_DESCRIPTION
- Type: string
- Required: false
For Zoho we advise you to set up your own client_id. To do so you have
to complete the following steps.
3. Once the client is created, you can go to the settings tab and
enable it in other regions.
The client id and client secret can now be used with rclone.
Local Filesystem
Configuration
For consistencies sake one can also configure a remote of type local in
the config file, and access the local filesystem using rclone remote
paths, e.g. remote:path/to/wherever, but it is probably easier not to.
Modification times
Rclone reads and writes the modification times using an accuracy
determined by the OS. Typically this is 1ns on Linux, 10 ns on Windows
and 1 Second on OS X.
Filenames
Restricted characters
With the local backend, restrictions on the characters that are usable
in file or directory names depend on the operating system. To check what
rclone will replace by default on your system, run
rclone help flags local-encoding.
When running on Windows the following characters are replaced. This list
is based on the Windows file naming conventions.
File names on Windows can also not end with the following characters.
These only get replaced if they are the last character in the name:
Paths on Windows
Long paths
However, in rare cases this may cause problems with buggy file system
drivers like EncFS. To disable UNC conversion globally, add this to your
.rclone.conf file:
[local]
nounc = true
[nounc]
type = local
nounc = true
This will use UNC paths on c:\src but not on z:\dst. Of course this will
cause problems if the absolute path length of a file exceeds 259
characters on z, so only use this option if you have to.
If you supply --copy-links or -L then rclone will follow the symlink and
copy the pointed to file or directory. Note that this flag is
incompatible with --links / -l.
$ tree /tmp/a
/tmp/a
├── b -> ../b
├── expected -> ../expected
├── one
└── two
└── three
Then you can see the difference with and without the flag like this
$ rclone ls /tmp/a
6 one
6 two/three
and
$ rclone -L ls /tmp/a
4174 expected
6 one
6 two/three
6 b/two
6 b/one
--links, -l
If you supply this flag then rclone will copy symbolic links from the
local storage, and store them as text files, with a '.rclonelink' suffix
in the remote storage.
The text file will contain the target of the symbolic link (see
example).
$ tree /tmp/a
/tmp/a
├── file1 -> ./file4
└── file2 -> /home/user/file3
$ rclone ls remote:/tmp/a
5 file1.rclonelink
14 file2.rclonelink
The remote files will contain the target of the symbolic links
$ tree /tmp/b
/tmp/b
├── file1 -> ./file4
└── file2 -> /home/user/file3
$ tree /tmp/b
/tmp/b
├── file1.rclonelink
└── file2.rclonelink
If you want to copy a single file with -l then you must use the
.rclonelink suffix.
$ tree /tmp/c
/tmp/c
└── file1 -> ./file4
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
Using rclone --one-file-system copy root remote: will only copy file1
and file2. Eg
$ rclone -q ls root
0 disk1/file3
0 disk2/file4
0 file1
0 file2
NB Rclone (like most unix tools such as du, rsync and tar) treats a bind
mount to the same device as being on the same filesystem.
Advanced options
--local-nounc
- Config: nounc
- Env Var: RCLONE_LOCAL_NOUNC
- Type: bool
- Default: false
- Examples:
- "true"
- Disables long file names.
--copy-links / -L
Properties:
- Config: copy_links
- Env Var: RCLONE_LOCAL_COPY_LINKS
- Type: bool
- Default: false
--links / -l
Properties:
- Config: links
- Env Var: RCLONE_LOCAL_LINKS
- Type: bool
- Default: false
--skip-links
Properties:
- Config: skip_links
- Env Var: RCLONE_LOCAL_SKIP_LINKS
- Type: bool
- Default: false
--local-zero-size-links
Assume the Stat size of links is zero (and read them instead)
(deprecated).
Rclone used to use the Stat size of links as the link size, but this
fails in quite a few places:
- Windows
- On some virtual filesystems (such ash LucidLink)
- Android
- Config: zero_size_links
- Env Var: RCLONE_LOCAL_ZERO_SIZE_LINKS
- Type: bool
- Default: false
--local-unicode-normalization
This flag can be used to normalize file names into unicode NFC form that
are read from the local filesystem.
Rclone does not normally touch the encoding of file names it reads from
the file system.
Properties:
- Config: unicode_normalization
- Env Var: RCLONE_LOCAL_UNICODE_NORMALIZATION
- Type: bool
- Default: false
--local-no-check-updated
Normally rclone checks the size and modification time of files as they
are being uploaded and aborts with a message which starts "can't copy -
source file is being updated" if the file changes during upload.
However on some file systems this modification time check may fail (e.g.
Glusterfs #2206) so this check can be disabled with this flag.
If this flag is set, rclone will use its best efforts to transfer a file
which is being updated. If the file is only having things appended to it
(e.g. a log) then rclone will transfer the log file with the size it had
the first time rclone saw it.
If the file is being modified throughout (not just appended to) then the
transfer may fail with a hash check failure.
In detail, once the file has had stat() called on it for the first time
we:
NB do not use this flag on a Windows Volume Shadow (VSS). For some
unknown reason, files in a VSS sometimes show different sizes from the
directory listing (where the initial stat value comes from on Windows)
and when stat is called on them directly. Other copy tools always use
the direct stat value and setting this flag will disable that.
Properties:
- Config: no_check_updated
- Env Var: RCLONE_LOCAL_NO_CHECK_UPDATED
- Type: bool
- Default: false
--one-file-system / -x
Properties:
- Config: one_file_system
- Env Var: RCLONE_LOCAL_ONE_FILE_SYSTEM
- Type: bool
- Default: false
--local-case-sensitive
Properties:
- Config: case_sensitive
- Env Var: RCLONE_LOCAL_CASE_SENSITIVE
- Type: bool
- Default: false
--local-case-insensitive
Properties:
- Config: case_insensitive
- Env Var: RCLONE_LOCAL_CASE_INSENSITIVE
- Type: bool
- Default: false
--local-no-clone
Properties:
- Config: no_clone
- Env Var: RCLONE_LOCAL_NO_CLONE
- Type: bool
- Default: false
--local-no-preallocate
Properties:
- Config: no_preallocate
- Env Var: RCLONE_LOCAL_NO_PREALLOCATE
- Type: bool
- Default: false
--local-no-sparse
Properties:
- Config: no_sparse
- Env Var: RCLONE_LOCAL_NO_SPARSE
- Type: bool
- Default: false
--local-no-set-modtime
Properties:
- Config: no_set_modtime
- Env Var: RCLONE_LOCAL_NO_SET_MODTIME
- Type: bool
- Default: false
--local-time-type
If you set this flag then rclone will return the Modified time as
whatever you set here. So if you use "rclone lsl --local-time-type
ctime" then you will see ctimes in the listing.
Note that setting the time will still set the modified time so this is
only useful for reading.
Properties:
- Config: time_type
- Env Var: RCLONE_LOCAL_TIME_TYPE
- Type: mtime|atime|btime|ctime
- Default: mtime
- Examples:
- "mtime"
- The last modification time.
- "atime"
- The last access time.
- "btime"
- The creation time.
- "ctime"
- The last status change time.
--local-encoding
Properties:
- Config: encoding
- Env Var: RCLONE_LOCAL_ENCODING
- Type: Encoding
- Default: Slash,Dot
--local-description
Properties:
- Config: description
- Env Var: RCLONE_LOCAL_DESCRIPTION
- Type: string
- Required: false
Metadata
Depending on which OS is in use the local backend may return only some
of the system metadata. Setting system metadata is supported on all OSes
but setting user metadata is only supported on linux, freebsd, netbsd,
macOS and Solaris. It is not supported on Windows yet (see
pkg/attrs#47).
Here are the possible system metadata items for the local backend.
-----------------------------------------------------------------------------------
----------------
Name Help Type Example
Read Only
----------- -------------- ------------- -------------------------------------
--------------------
atime Time of last RFC 3339 2006-01-02T15:04:05.999999999Z07:00 N
access
Backend commands
The help below will explain what arguments each command takes.
See the backend command for more info on how to pass options and
arguments.
noop
This is a test command which has some options you can try to change the
output.
Options:
Changelog
v1.68.1 - 2024-09-24
See commits
- Bug Fixes
- build: Fix docker release build (ttionya)
- doc fixes (Nick Craig-Wood, Pawel Palucha)
- fs
- Fix --dump filters not always appearing (Nick Craig-Wood)
- Fix setting stringArray config values from environment
variables (Nick Craig-Wood)
- rc: Fix default value of --metrics-addr (Nick Craig-Wood)
- serve docker: Add missing vfs-read-chunk-streams option in
docker volume driver (Divyam)
- Onedrive
- Fix spurious "Couldn't decode error response: EOF" DEBUG (Nick
Craig-Wood)
- Pikpak
- Fix login issue where token retrieval fails (wiserain)
- S3
- Fix rclone ignoring static credentials when env_auth=true (Nick
Craig-Wood)
v1.68.0 - 2024-09-08
See commits
- New backends
- Files.com (Sam Harrison)
- Gofile (Nick Craig-Wood)
- Pixeldrain (Fornax)
- Changed backends
- S3 backend updated to use AWS SDKv2 as v1 is now unsupported.
- The matrix of providers and auth methods is huge and there
could be problems with obscure combinations.
- Please report problems in a new issue on Github.
- New commands
- config encryption: set, remove and check to manage config file
encryption (Nick Craig-Wood)
- New Features
- build
- Update to go1.23 and make go1.21 the minimum required
version (Nick Craig-Wood)
- Update all dependencies (Nick Craig-Wood)
- Disable wasm/js build due to go bug #64856 (Nick Craig-Wood)
- Enable custom linting rules with ruleguard via gocritic
(albertony)
- Update logging statements to make --use-json-log work always
(albertony)
- Adding new code quality tests and fixing the fallout
(albertony)
- config
- Internal config re-organised to be more consistent and make
it available from the rc (Nick Craig-Wood)
- Avoid remotes with empty names from the environment
(albertony)
- Make listing of remotes more consistent (albertony)
- Make getting config values more consistent (albertony)
- Use --password-command to set config file password if
supplied (Nick Craig-Wood)
- doc fixes (albertony, crystalstall, David Seifert, Eng Zer Jun,
Ernie Hershey, Florian Klink, John Oxley, kapitainsky, Mathieu
Moreau, Nick Craig-Wood, nipil, Pétr Bozsó, Russ Bubley, Sam
Harrison, Thearas, URenko, Will Miles, yuval-cloudinary)
- fs: Allow semicolons as well as spaces in --bwlimit timetable
parsing (Kyle Reynolds)
- help
- Global flags help command now takes glob filter (albertony)
- Make help command output less distracting (albertony)
- lib/encoder: Add Raw encoding for use where no encoding at all
is required, eg --local-encoding Raw (URenko)
- listremotes: Added options for filtering, ordering and json
output (albertony)
- nfsmount
- Make the --sudo flag work for umount as well as mount (Nick
Craig-Wood)
- Add -o tcp option to NFS mount options to fix mounting under
Linux (Nick Craig-Wood)
- operations: copy: generate stable partial suffix (Georg Welzel)
- rc
- Add options/info call to enumerate options (Nick Craig-Wood)
- Add option blocks parameter to options/get and options/info
(Nick Craig-Wood)
- Add vfs/queue to show the status of the upload queue (Nick
Craig-Wood)
- Add vfs/queue-set-expiry to adjust expiry of items in the
VFS queue (Nick Craig-Wood)
- Add --unix-socket option to rc command (Florian Klink)
- Prevent unmount rc command from sending a STOPPING=1
sd-notify message (AThePeanut4)
- rcserver: Implement prometheus metrics on a dedicated port (Oleg
Kunitsyn)
- serve dlna
- Also look at "Subs" subdirectory (Florian Klink)
- Don't swallow video.{idx,sub} (Florian Klink)
- Set more correct mime type (Florian Klink)
- serve nfs
- Implement on disk cache for file handles selected with
--nfs-cache-type (Nick Craig-Wood)
- Add tracing to filesystem calls (Nick Craig-Wood)
- Mask unimplemented error from chmod (Nick Craig-Wood)
- Unify the nfs library logging with rclone's logging better
(Nick Craig-Wood)
- Fix incorrect user id and group id exported to NFS (Nick
Craig-Wood)
- serve s3
- Implement --auth-proxy (Sawjan Gurung)
- Update to AWS SDKv2 by updating github.com/rclone/gofakes3
(Nick Craig-Wood)
- Bug Fixes
- bisync: Fix sync time problems with backends that round time (eg
Dropbox) (nielash)
- serve dlna: Fix panic: invalid argument to Int63n (Nick
Craig-Wood)
- VFS
- Add --vfs-read-chunk-streams to parallel read chunks from files
(Nick Craig-Wood)
- This can increase mount performance on high bandwidth or
large latency links
- Fix cache encoding with special characters (URenko)
- Local
- Fix encoding of root path fix (URenko)
- Add server-side copy (using clone) with xattrs on macOS
(nielash)
- --local-no-clone flag to disable cloning for server-side
copies (nielash)
- Support setting custom --metadata during server-side Copy
(nielash)
- Azure Blob
- Allow anonymous access for public resources (Nick Craig-Wood)
- B2
- Include custom upload headers in large file info (Pat Patterson)
- Drive
- Fix copying Google Docs to a backend which only supports SHA1
(Nick Craig-Wood)
- Fichier
- Fix detection of Flood Detected error (Nick Craig-Wood)
- Fix server side move (Nick Craig-Wood)
- HTTP
- Reload client certificates on expiry (Saleh Dindar)
- Support listening on passed FDs (Florian Klink)
- Jottacloud
- Fix setting of metadata on server side move (albertony)
- Onedrive
- Fix nil pointer error when uploading small files (Nick
Craig-Wood)
- Pcloud
- Implement SetModTime (Georg Welzel)
- Implement OpenWriterAt feature to enable multipart uploads
(Georg Welzel)
- Pikpak
- Improve data consistency by ensuring async tasks complete
(wiserain)
- Implement custom hash to replace wrong sha1 (wiserain)
- Fix error with copyto command (wiserain)
- Optimize file move by removing unnecessary readMetaData() call
(wiserain)
- Non-buffered hash calculation for local source files (wiserain)
- Optimize upload by pre-fetching gcid from API (wiserain)
- Correct file transfer progress for uploads by hash (wiserain)
- Update to using AWS SDK v2 (wiserain)
- S3
- Update to using AWS SDK v2 (Nick Craig-Wood)
- Add --s3-sdk-log-mode to control SDKv2 debugging (Nick
Craig-Wood)
- Fix incorrect region for Magalu provider (Filipe Herculano)
- Allow restoring from intelligent-tiering storage class (Pawel
Palucha)
- SFTP
- Use uint32 for mtime to save memory (Tomasz Melcer)
- Ignore useless errors when closing the connection pool (Nick
Craig-Wood)
- Support listening on passed FDs (Florian Klink)
- Swift
- Add workarounds for bad listings in Ceph RGW (Paul Collins)
- Add total/free space info in about command.
(fsantagostinobietti)
- Ulozto
- Fix upload of > 2GB files on 32 bit platforms (Tobias Markus)
- WebDAV
- Add --webdav-unix-socket-path to connect to a unix socket
(Florian Klink)
- Yandex
- Implement custom user agent to help with upload speeds
(Sebastian Bünger)
- Zoho
- Fix inefficiencies uploading with new API to avoid throttling
(Nick Craig-Wood)
v1.67.0 - 2024-06-14
See commits
- New backends
- uloz.to (iotmaestro)
- New S3 providers
- Magalu Object Storage (Bruno Fernandes)
- New commands
- gitannex: Enables git-annex to store and retrieve content from
an rclone remote (Dan McArdle)
- New Features
- accounting: Add deleted files total size to status summary line
(Kyle Reynolds)
- build
- Fix CVE-2023-45288 by upgrading golang.org/x/net (Nick
Craig-Wood)
- Fix CVE-2024-35255 by upgrading
github.com/Azure/azure-sdk-for-go/sdk/azidentity to 1.6.0
(dependabot)
- Convert source files with CRLF to LF (albertony)
- Update all dependencies (Nick Craig-Wood)
- doc updates (albertony, Alex Garel, Dave Nicolson, Dominik Joe
Pantůček, Eric Wolf, Erisa A, Evan Harris, Evan McBeth, Gachoud
Philippe, hidewrong, jakzoe, jumbi77, kapitainsky, Kyle
Reynolds, Lewis Hook, Nick Craig-Wood, overallteach,
pawsey-kbuckley, Pieter van Oostrum, psychopatt, racerole,
static-moonlight, Warrentheo, yudrywet, yumeiyin )
- ncdu: Do not quit on Esc to aid usability (Katia Esposito)
- rcserver: Set ModTime for dirs and files served by --rc-serve
(Nikita Shoshin)
- Bug Fixes
- bisync: Add integration tests against all backends and fix many
many problems (nielash)
- config: Fix default value for description (Nick Craig-Wood)
- copy: Fix nil pointer dereference when corrupted on transfer
with nil dst (nielash)
- fs
- Improve JSON Unmarshalling for Duration types (Kyle
Reynolds)
- Close the CPU profile on exit (guangwu)
- Replace /bin/bash with /usr/bin/env bash (Florian Klink)
- oauthutil: Clear client secret if client ID is set (Michael
Terry)
- operations
- Rework rcat so that it doesn't call the --metadata-mapper
twice (Nick Craig-Wood)
- Ensure SrcFsType is set correctly when using
--metadata-mapper (Nick Craig-Wood)
- Fix "optional feature not implemented" error with a crypted
sftp bug (Nick Craig-Wood)
- Fix very long file names when using copy with --partial
(Nick Craig-Wood)
- Fix retries downloading too much data with certain backends
(Nick Craig-Wood)
- Fix move when dst is nil and fdst is case-insensitive
(nielash)
- Fix lsjson --encrypted when using --crypt-XXX parameters
(Nick Craig-Wood)
- Fix missing metadata for multipart transfers to local disk
(Nick Craig-Wood)
- Fix incorrect modtime on some multipart transfers (Nick
Craig-Wood)
- Fix hashing problem in integration tests (Nick Craig-Wood)
- rc
- Fix stats groups being ignored in operations/check (Nick
Craig-Wood)
- Fix incorrect Content-Type in HTTP API (Kyle Reynolds)
- serve s3
- Fix Last-Modified header format (Butanediol)
- Fix in-memory metadata storing wrong modtime (nielash)
- Fix XML of error message (Nick Craig-Wood)
- serve webdav: Fix webdav with --baseurl under Windows (Nick
Craig-Wood)
- serve dlna: Make BrowseMetadata more compliant (albertony)
- serve http: Added Content-Length header when HTML directory is
served (Sunny)
- sync
- Don't sync directories if they haven't been modified (Nick
Craig-Wood)
- Don't test reading metadata if we can't write it (Nick
Craig-Wood)
- Fix case normalisation (problem on on s3) (Nick Craig-Wood)
- Fix management of empty directories to make it more accurate
(Nick Craig-Wood)
- Fix creation of empty directories when
--create-empty-src-dirs=false (Nick Craig-Wood)
- Fix directory modification times not being set (Nick
Craig-Wood)
- Fix "failed to update directory timestamp or metadata:
directory not found" (Nick Craig-Wood)
- Fix expecting SFTP to have MkdirMetadata method: optional
feature not implemented (Nick Craig-Wood)
- test info: Improve cleanup of temp files (Kyle Reynolds)
- touch: Fix using -R on certain backends (Nick Craig-Wood)
- Mount
- Add --direct-io flag to force uncached access (Nick Craig-Wood)
- VFS
- Fix download loop when file size shrunk (Nick Craig-Wood)
- Fix renaming a directory (nielash)
- Local
- Add --local-time-type to use mtime/atime/btime/ctime as the time
(Nick Craig-Wood)
- Allow SeBackupPrivilege and/or SeRestorePrivilege to work on
Windows (Charles Hamilton)
- Azure Blob
- Fix encoding issue with dir path comparison (nielash)
- B2
- Add new cleanup and cleanup-hidden backend commands. (Pat
Patterson)
- Update B2 URLs to new home (Nick Craig-Wood)
- Chunker
- Fix startup when root points to composite multi-chunk file
without metadata (nielash)
- Fix case-insensitive comparison on local without metadata
(nielash)
- Fix "finalizer already set" error (nielash)
- Drive
- Add backend query command for general purpose querying of files
(John-Paul Smith)
- Stop sending notification emails when setting permissions (Nick
Craig-Wood)
- Fix server side copy with metadata from my drive to shared drive
(Nick Craig-Wood)
- Set all metadata permissions and return error summary instead of
stopping on the first error (Nick Craig-Wood)
- Make errors setting permissions into no retry errors (Nick
Craig-Wood)
- Fix description being overwritten on server side moves (Nick
Craig-Wood)
- Allow setting metadata to fail if failok flag is set (Nick
Craig-Wood)
- Fix panic when using --metadata-mapper on large google doc files
(Nick Craig-Wood)
- Dropbox
- Add --dropbox-root-namespace to override the root namespace
(Bill Fraser)
- Google Cloud Storage
- Fix encoding issue with dir path comparison (nielash)
- Hdfs
- Fix f.String() not including subpath (nielash)
- Http
- Add --http-no-escape to not escape URL metacharacters in path
names (Kyle Reynolds)
- Jottacloud
- Set metadata on server side copy and move (albertony)
- Linkbox
- Fix working with names longer than 8-25 Unicode chars. (Vitaly)
- Fix list paging and optimized synchronization. (gvitali)
- Mailru
- Attempt to fix throttling by increasing min sleep to 100ms (Nick
Craig-Wood)
- Memory
- Fix dst mutating src after server-side copy (nielash)
- Fix deadlock in operations.Purge (nielash)
- Fix incorrect list entries when rooted at subdirectory (nielash)
- Onedrive
- Add --onedrive-hard-delete to permanently delete files (Nick
Craig-Wood)
- Make server-side copy work in more scenarios (YukiUnHappy)
- Fix "unauthenticated: Unauthenticated" errors when downloading
(Nick Craig-Wood)
- Fix --metadata-mapper being called twice if writing permissions
(nielash)
- Set all metadata permissions and return error summary instead of
stopping on the first error (nielash)
- Make errors setting permissions into no retry errors (Nick
Craig-Wood)
- Skip writing permissions with 'owner' role (nielash)
- Fix references to deprecated permissions properties (nielash)
- Add support for group permissions (nielash)
- Allow setting permissions to fail if failok flag is set (Nick
Craig-Wood)
- Pikpak
- Make getFile() usage more efficient to avoid the download limit
(wiserain)
- Improve upload reliability and resolve potential file conflicts
(wiserain)
- Implement configurable chunk size for multipart upload
(wiserain)
- Protondrive
- Don't auth with an empty access token (Michał Dzienisiewicz)
- Qingstor
- Disable integration tests as test account suspended (Nick
Craig-Wood)
- Quatrix
- Fix f.String() not including subpath (nielash)
- S3
- Add new AWS region il-central-1 Tel Aviv (yoelvini)
- Update Scaleway's configuration options (Alexandre Lavigne)
- Ceph: fix quirks when creating buckets to fix trying to create
an existing bucket (Thomas Schneider)
- Fix encoding issue with dir path comparison (nielash)
- Fix 405 error on HEAD for delete marker with versionId (nielash)
- Validate --s3-copy-cutoff size before copy (hoyho)
- SFTP
- Add --sftp-connections to limit the maximum number of
connections (Tomasz Melcer)
- Storj
- Update storj.io/uplink to latest release (JT Olio)
- Update bio on request (Nick Craig-Wood)
- Swift
- Implement --swift-use-segments-container to allow >5G files on
Blomp (Nick Craig-Wood)
- Union
- Fix deleting dirs when all remotes can't have empty dirs (Nick
Craig-Wood)
- WebDAV
- Fix setting modification times erasing checksums on owncloud and
nextcloud (nielash)
- owncloud: Add --webdav-owncloud-exclude-mounts which allows
excluding mounted folders when listing remote resources (Thomas
Müller)
- Zoho
- Fix throttling problem when uploading files (Nick Craig-Wood)
- Use cursor listing for improved performance (Nick Craig-Wood)
- Retry reading info after upload if size wasn't returned (Nick
Craig-Wood)
- Remove simple file names complication which is no longer needed
(Nick Craig-Wood)
- Sleep for 60 seconds if rate limit error received (Nick
Craig-Wood)
v1.66.0 - 2024-03-10
See commits
- Major features
- Rclone will now sync directory modification times if the backend
supports it.
- This can be disabled with --no-update-dir-modtime
- See the overview and look for the D flags in the ModTime
column to see which backends support it.
- Rclone will now sync directory metadata if the backend supports
it when -M/--metadata is in use.
- See the overview and look for the D flags in the Metadata
column to see which backends support it.
- Bisync has received many updates see below for more details or
bisync's changelog
- Removed backends
- amazonclouddrive: Remove Amazon Drive backend code and docs
(Nick Craig-Wood)
- New Features
- backend
- Add description field for all backends (Paul Stern)
- build
- Update to go1.22 and make go1.20 the minimum required
version (Nick Craig-Wood)
- Fix CVE-2024-24786 by upgrading google.golang.org/protobuf
(Nick Craig-Wood)
- check: Respect --no-unicode-normalization and --ignore-case-sync
for --checkfile (nielash)
- cmd: Much improved shell auto completion which reduces the size
of the completion file and works faster (Nick Craig-Wood)
- doc updates (albertony, ben-ba, Eli, emyarod, huajin tong, Jack
Provance, kapitainsky, keongalvin, Nick Craig-Wood, nielash,
rarspace01, rzitzer, Tera, Vincent Murphy)
- fs: Add more detailed logging for file includes/excludes (Kyle
Reynolds)
- lsf
- Add --time-format flag (nielash)
- Make metadata appear for directories (Nick Craig-Wood)
- lsjson: Make metadata appear for directories (Nick Craig-Wood)
- rc
- Add srcFs and dstFs to core/stats and core/transferred stats
(Nick Craig-Wood)
- Add operations/hashsum to the rc as rclone hashsum
equivalent (Nick Craig-Wood)
- Add config/paths to the rc as rclone config paths equivalent
(Nick Craig-Wood)
- sync
- Optionally report list of synced paths to file (nielash)
- Implement directory sync for mod times and metadata (Nick
Craig-Wood)
- Don't set directory modtimes if already set (nielash)
- Don't sync directory modtimes from backends which don't have
directories (Nick Craig-Wood)
- Bug Fixes
- backend
- Make backends which use oauth implement the Shutdown and
shutdown the oauth properly (rkonfj)
- bisync
- Handle unicode and case normalization consistently (nielash)
- Partial uploads known issue on local/ftp/sftp has been
resolved (unless using --inplace) (nielash)
- Fixed handling of unicode normalization and case
insensitivity, support for --fix-case, --ignore-case-sync,
--no-unicode-normalization (nielash)
- Bisync no longer fails to find the correct listing file when
configs are overridden with backend-specific flags.
(nielash)
- nfsmount
- Fix exit after external unmount (nielash)
- Fix --volname being ignored (nielash)
- operations
- Fix renaming a file on macOS (nielash)
- Fix case-insensitive moves in operations.Move (nielash)
- Fix TestCaseInsensitiveMoveFileDryRun on chunker integration
tests (nielash)
- Fix TestMkdirModTime test (Nick Craig-Wood)
- Fix TestSetDirModTime for backends with SetDirModTime but
not Metadata (Nick Craig-Wood)
- Fix typo in log messages (nielash)
- serve nfs: Fix writing files via Finder on macOS (nielash)
- serve restic: Fix error handling (Michael Eischer)
- serve webdav: Fix --baseurl without leading / (Nick Craig-Wood)
- stats: Fix race between ResetCounters and stopAverageLoop called
from time.AfterFunc (Nick Craig-Wood)
- sync
- --fix-case flag to rename case insensitive dest (nielash)
- Use operations.DirMove instead of sync.MoveDir for
--fix-case (nielash)
- systemd: Fix detection and switch to the coreos package
everywhere rather than having 2 separate libraries (Anagh Kumar
Baranwal)
- Mount
- Fix macOS not noticing errors with --daemon (Nick Craig-Wood)
- Notice daemon dying much quicker (Nick Craig-Wood)
- VFS
- Fix unicode normalization on macOS (nielash)
- Bisync
- Copies and deletes are now handled in one operation instead of
two (nielash)
- --track-renames and --backup-dir are now supported (nielash)
- Final listings are now generated from sync results, to avoid
needing to re-list (nielash)
- Bisync is now much more resilient to changes that happen during
a bisync run, and far less prone to critical errors / undetected
changes (nielash)
- Bisync is now capable of rolling a file listing back in cases of
uncertainty, essentially marking the file as needing to be
rechecked next time. (nielash)
- A few basic terminal colors are now supported, controllable with
--color (AUTO|NEVER|ALWAYS) (nielash)
- Initial listing snapshots of Path1 and Path2 are now generated
concurrently, using the same "march" infrastructure as check and
sync, for performance improvements and less risk of error.
(nielash)
- --resync is now much more efficient (especially for users of
--create-empty-src-dirs) (nielash)
- Google Docs (and other files of unknown size) are now supported
(with the same options as in sync) (nielash)
- Equality checks before a sync conflict rename now fall back to
cryptcheck (when possible) or --download, (nielash) instead of
of --size-only, when check is not available.
- Bisync now fully supports comparing based on any combination of
size, modtime, and checksum, lifting the prior restriction on
backends without modtime support. (nielash)
- Bisync now supports a "Graceful Shutdown" mode to cleanly cancel
a run early without requiring --resync. (nielash)
- New --recover flag allows robust recovery in the event of
interruptions, without requiring --resync. (nielash)
- A new --max-lock setting allows lock files to automatically
renew and expire, for better automatic recovery when a run is
interrupted. (nielash)
- Bisync now supports auto-resolving sync conflicts and
customizing rename behavior with new --conflict-resolve,
--conflict-loser, and --conflict-suffix flags. (nielash)
- A new --resync-mode flag allows more control over which version
of a file gets kept during a --resync. (nielash)
- Bisync now supports --retries and --retries-sleep (when
--resilient is set.) (nielash)
- Clarify file operation directions in dry-run logs (Kyle
Reynolds)
- Local
- Fix cleanRootPath on Windows after go1.21.4 stdlib update
(nielash)
- Implement setting modification time on directories (nielash)
- Implement modtime and metadata for directories (Nick Craig-Wood)
- Fix setting of btime on directories on Windows (Nick Craig-Wood)
- Delete backend implementation of Purge to speed up and make
stats (Nick Craig-Wood)
- Support metadata setting and mapping on server side Move (Nick
Craig-Wood)
- Cache
- Implement setting modification time on directories (if supported
by wrapped remote) (nielash)
- Implement setting metadata on directories (Nick Craig-Wood)
- Crypt
- Implement setting modification time on directories (if supported
by wrapped remote) (nielash)
- Implement setting metadata on directories (Nick Craig-Wood)
- Improve handling of undecryptable file names (nielash)
- Add missing error check spotted by linter (Nick Craig-Wood)
- Azure Blob
- Implement --azureblob-delete-snapshots (Nick Craig-Wood)
- B2
- Clarify exactly what --b2-download-auth-duration does in the
docs (Nick Craig-Wood)
- Chunker
- Implement setting modification time on directories (if supported
by wrapped remote) (nielash)
- Implement setting metadata on directories (Nick Craig-Wood)
- Combine
- Implement setting modification time on directories (if supported
by wrapped remote) (nielash)
- Implement setting metadata on directories (Nick Craig-Wood)
- Fix directory metadata error on upstream root (nielash)
- Fix directory move across upstreams (nielash)
- Compress
- Implement setting modification time on directories (if supported
by wrapped remote) (nielash)
- Implement setting metadata on directories (Nick Craig-Wood)
- Drive
- Implement setting modification time on directories (nielash)
- Implement modtime and metadata setting for directories (Nick
Craig-Wood)
- Support metadata setting and mapping on server side Move,Copy
(Nick Craig-Wood)
- FTP
- Fix mkdir with rsftp which is returning the wrong code (Nick
Craig-Wood)
- Hasher
- Implement setting modification time on directories (if supported
by wrapped remote) (nielash)
- Implement setting metadata on directories (Nick Craig-Wood)
- Fix error from trying to stop an already-stopped db (nielash)
- Look for cached hash if passed hash unexpectedly blank (nielash)
- Imagekit
- Updated docs and web content (Harshit Budhraja)
- Updated overview - supported operations (Harshit Budhraja)
- Mega
- Fix panic with go1.22 (Nick Craig-Wood)
- Netstorage
- Fix Root to return correct directory when pointing to a file
(Nick Craig-Wood)
- Onedrive
- Add metadata support (nielash)
- Opendrive
- Fix moving file/folder within the same parent dir (nielash)
- Oracle Object Storage
- Support backend restore command (Nikhil Ahuja)
- Support workload identity authentication for OKE (Anders
Swanson)
- Protondrive
- Fix encoding of Root method (Nick Craig-Wood)
- Quatrix
- Fix Content-Range header (Volodymyr)
- Add option to skip project folders (Oksana Zhykina)
- Fix Root to return correct directory when pointing to a file
(Nick Craig-Wood)
- S3
- Add --s3-version-deleted to show delete markers in listings when
using versions. (Nick Craig-Wood)
- Add IPv6 support with option --s3-use-dual-stack (Anthony
Metzidis)
- Copy parts in parallel when doing chunked server side copy (Nick
Craig-Wood)
- GCS provider: fix server side copy of files bigger than 5G (Nick
Craig-Wood)
- Support metadata setting and mapping on server side Copy (Nick
Craig-Wood)
- Seafile
- Fix download/upload error when FILE_SERVER_ROOT is relative
(DanielEgbers)
- Fix Root to return correct directory when pointing to a file
(Nick Craig-Wood)
- SFTP
- Implement setting modification time on directories (nielash)
- Set directory modtimes update on write flag (Nick Craig-Wood)
- Shorten wait delay for external ssh binaries now that we are
using go1.20 (Nick Craig-Wood)
- Swift
- Avoid unnecessary container versioning check (Joe Cai)
- Union
- Implement setting modification time on directories (if supported
by wrapped remote) (nielash)
- Implement setting metadata on directories (Nick Craig-Wood)
- WebDAV
- Reduce priority of chunks upload log (Gabriel Ramos)
- owncloud: Add config owncloud_exclude_shares which allows to
exclude shared files and folders when listing remote resources
(Thomas Müller)
v1.65.2 - 2024-01-24
See commits
- Bug Fixes
- build: bump github.com/cloudflare/circl from 1.3.6 to 1.3.7
(dependabot)
- docs updates (Nick Craig-Wood, kapitainsky, nielash, Tera,
Harshit Budhraja)
- VFS
- Fix stale data when using --vfs-cache-mode full (Nick
Craig-Wood)
- Azure Blob
- IMPORTANT Fix data corruption bug - see #7590 (Nick Craig-Wood)
v1.65.1 - 2024-01-08
See commits
- Bug Fixes
- build
- Bump golang.org/x/crypto to fix ssh terrapin CVE-2023-48795
(dependabot)
- Update to go1.21.5 to fix Windows path problems (Nick
Craig-Wood)
- Fix docker build on arm/v6 (Nick Craig-Wood)
- install.sh: fix harmless error message on install (Nick
Craig-Wood)
- accounting: fix stats to show server side transfers (Nick
Craig-Wood)
- doc fixes (albertony, ben-ba, Eli Orzitzer, emyarod, keongalvin,
rarspace01)
- nfsmount: Compile for all unix oses, add --sudo and fix
error/option handling (Nick Craig-Wood)
- operations: Fix files moved by rclone move not being counted as
transfers (Nick Craig-Wood)
- oauthutil: Avoid panic when *token and *ts.token are the same
(rkonfj)
- serve s3: Fix listing oddities (Nick Craig-Wood)
- VFS
- Note that --vfs-refresh runs in the background (Nick Craig-Wood)
- Azurefiles
- Fix storage base url (Oksana)
- Crypt
- Fix rclone move a file over itself deleting the file (Nick
Craig-Wood)
- Chunker
- Fix rclone move a file over itself deleting the file (Nick
Craig-Wood)
- Compress
- Fix rclone move a file over itself deleting the file (Nick
Craig-Wood)
- Dropbox
- Fix used space on dropbox team accounts (Nick Craig-Wood)
- FTP
- Fix multi-thread copy (WeidiDeng)
- Googlephotos
- Fix nil pointer exception when batch failed (Nick Craig-Wood)
- Hasher
- Fix rclone move a file over itself deleting the file (Nick
Craig-Wood)
- Fix invalid memory address error when MaxAge == 0 (nielash)
- Onedrive
- Fix error listing: unknown object type <nil> (Nick Craig-Wood)
- Fix "unauthenticated: Unauthenticated" errors when uploading
(Nick Craig-Wood)
- Oracleobjectstorage
- Fix object storage endpoint for custom endpoints (Manoj Ghosh)
- Multipart copy create bucket if it doesn't exist. (Manoj Ghosh)
- Protondrive
- Fix CVE-2023-45286 / GHSA-xwh9-gc39-5298 (Nick Craig-Wood)
- S3
- Fix crash if no UploadId in multipart upload (Nick Craig-Wood)
- Smb
- Fix shares not listed by updating go-smb2 (halms)
- Union
- Fix rclone move a file over itself deleting the file (Nick
Craig-Wood)
v1.65.0 - 2023-11-26
See commits
- New backends
- Azure Files (karan, moongdal, Nick Craig-Wood)
- ImageKit (Abhinav Dhiman)
- Linkbox (viktor, Nick Craig-Wood)
- New commands
- serve s3: Let rclone act as an S3 compatible server (Mikubill,
Artur Neumann, Saw-jan, Nick Craig-Wood)
- nfsmount: mount command to provide mount mechanism on macOS
without FUSE (Saleh Dindar)
- serve nfs: to serve a remote for use by nfsmount (Saleh Dindar)
- New Features
- install.sh: Clean up temp files in install script (Jacob Hands)
- build
- Update all dependencies (Nick Craig-Wood)
- Refactor version info and icon resource handling on windows
(albertony)
- doc updates (albertony, alfish2000, asdffdsazqqq, Dimitri
Papadopoulos, Herby Gillot, Joda Stößer, Manoj Ghosh, Nick
Craig-Wood)
- Implement --metadata-mapper to transform metatadata with a user
supplied program (Nick Craig-Wood)
- Add ChunkWriterDoesntSeek feature flag and set it for b2 (Nick
Craig-Wood)
- lib/http: Export basic go string functions for use in --template
(Gabriel Espinoza)
- makefile: Use POSIX compatible install arguments (Mina Galić)
- operations
- Use less memory when doing multithread uploads (Nick
Craig-Wood)
- Implement --partial-suffix to control extension of temporary
file names (Volodymyr)
- rc
- Add operations/check to the rc API (Nick Craig-Wood)
- Always report an error as JSON (Nick Craig-Wood)
- Set Last-Modified header for files served by --rc-serve
(Nikita Shoshin)
- size: Dont show duplicate object count when less than 1k
(albertony)
- Bug Fixes
- fshttp: Fix --contimeout being ignored (你知道未来吗)
- march: Fix excessive parallelism when using --no-traverse (Nick
Craig-Wood)
- ncdu: Fix crash when re-entering changed directory after rescan
(Nick Craig-Wood)
- operations
- Fix overwrite of destination when multi-thread transfer
fails (Nick Craig-Wood)
- Fix invalid UTF-8 when truncating file names when not using
--inplace (Nick Craig-Wood)
- serve dnla: Fix crash on graceful exit (wuxingzhong)
- Mount
- Disable mount for freebsd and alias cmount as mount on that
platform (Nick Craig-Wood)
- VFS
- Add --vfs-refresh flag to read all the directories on start
(Beyond Meat)
- Implement Name() method in WriteFileHandle and ReadFileHandle
(Saleh Dindar)
- Add go-billy dependency and make sure vfs.Handle implements
billy.File (Saleh Dindar)
- Error out early if can't upload 0 length file (Nick Craig-Wood)
- Local
- Fix copying from Windows Volume Shadows (Nick Craig-Wood)
- Azure Blob
- Add support for cold tier (Ivan Yanitra)
- B2
- Implement "rclone backend lifecycle" to read and set bucket
lifecycles (Nick Craig-Wood)
- Implement --b2-lifecycle to control lifecycle when creating
buckets (Nick Craig-Wood)
- Fix listing all buckets when not needed (Nick Craig-Wood)
- Fix multi-thread upload with copyto going to wrong name (Nick
Craig-Wood)
- Fix server side chunked copy when file size was exactly
--b2-copy-cutoff (Nick Craig-Wood)
- Fix streaming chunked files an exact multiple of chunk size
(Nick Craig-Wood)
- Box
- Filter more EventIDs when polling (David Sze)
- Add more logging for polling (David Sze)
- Fix performance problem reading metadata for single files (Nick
Craig-Wood)
- Drive
- Add read/write metadata support (Nick Craig-Wood)
- Add support for SHA-1 and SHA-256 checksums (rinsuki)
- Add --drive-show-all-gdocs to allow unexportable gdocs to be
server side copied (Nick Craig-Wood)
- Add a note that --drive-scope accepts comma-separated list of
scopes (Keigo Imai)
- Fix error updating created time metadata on existing object
(Nick Craig-Wood)
- Fix integration tests by enabling metadata support from the
context (Nick Craig-Wood)
- Dropbox
- Factor batcher into lib/batcher (Nick Craig-Wood)
- Fix missing encoding for rclone purge (Nick Craig-Wood)
- Google Cloud Storage
- Fix 400 Bad request errors when using multi-thread copy (Nick
Craig-Wood)
- Googlephotos
- Implement batcher for uploads (Nick Craig-Wood)
- Hdfs
- Added support for list of namenodes in hdfs remote config
(Tayo-pasedaRJ)
- HTTP
- Implement set backend command to update running backend (Nick
Craig-Wood)
- Enable methods used with WebDAV (Alen Šiljak)
- Jottacloud
- Add support for reading and writing metadata (albertony)
- Onedrive
- Implement ListR method which gives --fast-list support (Nick
Craig-Wood)
- This must be enabled with the --onedrive-delta flag
- Quatrix
- Add partial upload support (Oksana Zhykina)
- Overwrite files on conflict during server-side move (Oksana
Zhykina)
- S3
- Add Linode provider (Nick Craig-Wood)
- Add docs on how to add a new provider (Nick Craig-Wood)
- Fix no error being returned when creating a bucket we don't own
(Nick Craig-Wood)
- Emit a debug message if anonymous credentials are in use (Nick
Craig-Wood)
- Add --s3-disable-multipart-uploads flag (Nick Craig-Wood)
- Detect looping when using gcs and versions (Nick Craig-Wood)
- SFTP
- Implement --sftp-copy-is-hardlink to server side copy as
hardlink (Nick Craig-Wood)
- Smb
- Fix incorrect about size by switching to
github.com/cloudsoda/go-smb2 fork (Nick Craig-Wood)
- Fix modtime of multithread uploads by setting PartialUploads
(Nick Craig-Wood)
- WebDAV
- Added an rclone vendor to work with rclone serve webdav (Adithya
Kumar)
v1.64.2 - 2023-10-19
See commits
- Bug Fixes
- selfupdate: Fix "invalid hashsum signature" error (Nick
Craig-Wood)
- build: Fix docker build running out of space (Nick Craig-Wood)
v1.64.1 - 2023-10-17
See commits
- Bug Fixes
- cmd: Make --progress output logs in the same format as without
(Nick Craig-Wood)
- docs fixes (Dimitri Papadopoulos Orfanos, Herby Gillot, Manoj
Ghosh, Nick Craig-Wood)
- lsjson: Make sure we set the global metadata flag too (Nick
Craig-Wood)
- operations
- Ensure concurrency is no greater than the number of chunks
(Pat Patterson)
- Fix OpenOptions ignored in copy if operation was a
multiThreadCopy (Vitor Gomes)
- Fix error message on delete to have file name (Nick
Craig-Wood)
- serve sftp: Return not supported error for not supported
commands (Nick Craig-Wood)
- build: Upgrade golang.org/x/net to v0.17.0 to fix HTTP/2 rapid
reset (Nick Craig-Wood)
- pacer: Fix b2 deadlock by defaulting max connections to
unlimited (Nick Craig-Wood)
- Mount
- Fix automount not detecting drive is ready (Nick Craig-Wood)
- VFS
- Fix update dir modification time (Saleh Dindar)
- Azure Blob
- Fix "fatal error: concurrent map writes" (Nick Craig-Wood)
- B2
- Fix multipart upload: corrupted on transfer: sizes differ XXX vs
0 (Nick Craig-Wood)
- Fix locking window when getting mutipart upload URL (Nick
Craig-Wood)
- Fix server side copies greater than 4GB (Nick Craig-Wood)
- Fix chunked streaming uploads (Nick Craig-Wood)
- Reduce default --b2-upload-concurrency to 4 to reduce memory
usage (Nick Craig-Wood)
- Onedrive
- Fix the configurator to allow /teams/ID in the config (Nick
Craig-Wood)
- Oracleobjectstorage
- Fix OpenOptions being ignored in uploadMultipart with
chunkWriter (Nick Craig-Wood)
- S3
- Fix slice bounds out of range error when listing (Nick
Craig-Wood)
- Fix OpenOptions being ignored in uploadMultipart with
chunkWriter (Vitor Gomes)
- Storj
- Update storj.io/uplink to v1.12.0 (Kaloyan Raev)
v1.64.0 - 2023-09-11
See commits
- New backends
- Proton Drive (Chun-Hung Tseng)
- Quatrix (Oksana, Volodymyr Kit)
- New S3 providers
- Synology C2 (BakaWang)
- Leviia (Benjamin)
- New Jottacloud providers
- Onlime (Fjodor42)
- Telia Sky (NoLooseEnds)
- Major changes
- Multi-thread transfers (Vitor Gomes, Nick Craig-Wood, Manoj
Ghosh, Edwin Mackenzie-Owen)
- Multi-thread transfers are now available when transferring
to:
- local, s3, azureblob, b2, oracleobjectstorage and smb
- This greatly improves transfer speed between two network
sources.
- In memory buffering has been unified between all backends
and should share memory better.
- See --multi-thread docs for more info
- New commands
- rclone config redacted support mechanism for showing redacted
config (Nick Craig-Wood)
- New Features
- accounting
- Show server side stats in own lines and not as bytes
transferred (Nick Craig-Wood)
- bisync
- Add new --ignore-listing-checksum flag to distinguish from
--ignore-checksum (nielash)
- Add experimental --resilient mode to allow recovery from
self-correctable errors (nielash)
- Add support for --create-empty-src-dirs (nielash)
- Dry runs no longer commit filter changes (nielash)
- Enforce --check-access during --resync (nielash)
- Apply filters correctly during deletes (nielash)
- Equality check before renaming (leave identical files alone)
(nielash)
- Fix dryRun rc parameter being ignored (nielash)
- build
- Update to go1.21 and make go1.19 the minimum required
version (Anagh Kumar Baranwal, Nick Craig-Wood)
- Update dependencies (Nick Craig-Wood)
- Add snap installation (hideo aoyama)
- Change Winget Releaser job to ubuntu-latest (sitiom)
- cmd: Refactor and use sysdnotify in more commands (eNV25)
- config: Add --multi-thread-chunk-size flag (Vitor Gomes)
- doc updates (antoinetran, Benjamin, Bjørn Smith, Dean Attali,
gabriel-suela, James Braza, Justin Hellings, kapitainsky, Mahad,
Masamune3210, Nick Craig-Wood, Nihaal Sangha, Niklas Hambüchen,
Raymond Berger, r-ricci, Sawada Tsunayoshi, Tiago Boeing,
Vladislav Vorobev)
- fs
- Use atomic types everywhere (Roberto Ricci)
- When --max-transfer limit is reached exit with code (10)
(kapitainsky)
- Add rclone completion powershell - basic implementation only
(Nick Craig-Wood)
- http servers: Allow CORS to be set with --allow-origin flag
(yuudi)
- lib/rest: Remove unnecessary nil check (Eng Zer Jun)
- ncdu: Add keybinding to rescan filesystem (eNV25)
- rc
- Add executeId to job listings (yuudi)
- Add core/du to measure local disk usage (Nick Craig-Wood)
- Add operations/settier to API (Drew Stinnett)
- rclone test info: Add --check-base32768 flag to check can store
all base32768 characters (Nick Craig-Wood)
- rmdirs: Remove directories concurrently controlled by --checkers
(Nick Craig-Wood)
- Bug Fixes
- accounting: Don't stop calculating average transfer speed until
the operation is complete (Jacob Hands)
- fs: Fix transferTime not being set in JSON logs (Jacob Hands)
- fshttp: Fix --bind 0.0.0.0 allowing IPv6 and --bind ::0 allowing
IPv4 (Nick Craig-Wood)
- operations: Fix overlapping check on case insensitive file
systems (Nick Craig-Wood)
- serve dlna: Fix MIME type if backend can't identify it (Nick
Craig-Wood)
- serve ftp: Fix race condition when using the auth proxy (Nick
Craig-Wood)
- serve sftp: Fix hash calculations with --vfs-cache-mode full
(Nick Craig-Wood)
- serve webdav: Fix error: Expecting fs.Object or fs.Directory,
got nil (Nick Craig-Wood)
- sync: Fix lockup with --cutoff-mode=soft and --max-duration
(Nick Craig-Wood)
- Mount
- fix: Mount parsing for linux (Anagh Kumar Baranwal)
- VFS
- Add --vfs-cache-min-free-space to control minimum free space on
the disk containing the cache (Nick Craig-Wood)
- Added cache cleaner for directories to reduce memory usage
(Anagh Kumar Baranwal)
- Update parent directory modtimes on vfs actions (David Pedersen)
- Keep virtual directory status accurate and reduce deadlock
potential (Anagh Kumar Baranwal)
- Make sure struct field is aligned for atomic access (Roberto
Ricci)
- Local
- Rmdir return an error if the path is not a dir (zjx20)
- Azure Blob
- Implement OpenChunkWriter and multi-thread uploads (Nick
Craig-Wood)
- Fix creation of directory markers (Nick Craig-Wood)
- Fix purging with directory markers (Nick Craig-Wood)
- B2
- Implement OpenChunkWriter and multi-thread uploads (Nick
Craig-Wood)
- Fix rclone link when object path contains special characters
(Alishan Ladhani)
- Box
- Add polling support (David Sze)
- Add --box-impersonate to impersonate a user ID (Nick Craig-Wood)
- Fix unhelpful decoding of error messages into decimal numbers
(Nick Craig-Wood)
- Chunker
- Update documentation to mention issue with small files (Ricardo
D'O. Albanus)
- Compress
- Fix ChangeNotify (Nick Craig-Wood)
- Drive
- Add --drive-fast-list-bug-fix to control ListR bug workaround
(Nick Craig-Wood)
- Fichier
- Implement DirMove (Nick Craig-Wood)
- Fix error code parsing (alexia)
- FTP
- Add socks_proxy support for SOCKS5 proxies (Zach)
- Fix 425 "TLS session of data connection not resumed" errors
(Nick Craig-Wood)
- Hdfs
- Retry "replication in progress" errors when uploading (Nick
Craig-Wood)
- Fix uploading to the wrong object on Update with overridden
remote name (Nick Craig-Wood)
- HTTP
- CORS should not be sent if not set (yuudi)
- Fix webdav OPTIONS response (yuudi)
- Opendrive
- Fix List on a just deleted and remade directory (Nick
Craig-Wood)
- Oracleobjectstorage
- Use rclone's rate limiter in multipart transfers (Manoj Ghosh)
- Implement OpenChunkWriter and multi-thread uploads (Manoj Ghosh)
- S3
- Refactor multipart upload to use OpenChunkWriter and ChunkWriter
(Vitor Gomes)
- Factor generic multipart upload into lib/multipart (Nick
Craig-Wood)
- Fix purging of root directory with --s3-directory-markers (Nick
Craig-Wood)
- Add rclone backend set command to update the running config
(Nick Craig-Wood)
- Add rclone backend restore-status command (Nick Craig-Wood)
- SFTP
- Stop uploads re-using the same ssh connection to improve
performance (Nick Craig-Wood)
- Add --sftp-ssh to specify an external ssh binary to use (Nick
Craig-Wood)
- Add socks_proxy support for SOCKS5 proxies (Zach)
- Support dynamic --sftp-path-override (nielash)
- Fix spurious warning when using --sftp-ssh (Nick Craig-Wood)
- Smb
- Implement multi-threaded writes for copies to smb (Edwin
Mackenzie-Owen)
- Storj
- Performance improvement for large file uploads (Kaloyan Raev)
- Swift
- Fix HEADing 0-length objects when --swift-no-large-objects set
(Julian Lepinski)
- Union
- Add :writback to act as a simple cache (Nick Craig-Wood)
- WebDAV
- Nextcloud: fix segment violation in low-level retry (Paul)
- Zoho
- Remove Range requests workarounds to fix integration tests (Nick
Craig-Wood)
v1.63.1 - 2023-07-17
See commits
- Bug Fixes
- build: Fix macos builds for versions < 12 (Anagh Kumar Baranwal)
- dirtree: Fix performance with large directories of directories
and --fast-list (Nick Craig-Wood)
- operations
- Fix deadlock when using lsd/ls with --progress (Nick
Craig-Wood)
- Fix .rclonelink files not being converted back to symlinks
(Nick Craig-Wood)
- doc fixes (Dean Attali, Mahad, Nick Craig-Wood, Sawada
Tsunayoshi, Vladislav Vorobev)
- Local
- Fix partial directory read for corrupted filesystem (Nick
Craig-Wood)
- Box
- Fix reconnect failing with HTTP 400 Bad Request (albertony)
- Smb
- Fix "Statfs failed: bucket or container name is needed" when
mounting (Nick Craig-Wood)
- WebDAV
- Nextcloud: fix must use /dav/files/USER endpoint not /webdav
error (Paul)
- Nextcloud chunking: add more guidance for the user to check the
config (darix)
v1.63.0 - 2023-06-30
See commits
- New backends
- Pikpak (wiserain)
- New S3 providers
- petabox.io (Andrei Smirnov)
- Google Cloud Storage (Anthony Pessy)
- New WebDAV providers
- Fastmail (Arnavion)
- Major changes
- Files will be copied to a temporary name ending in .partial when
copying to local,ftp,sftp then renamed at the end of the
transfer. (Janne Hellsten, Nick Craig-Wood)
- This helps with data integrity as we don't delete the
existing file until the new one is complete.
- It can be disabled with the --inplace flag.
- This behaviour will also happen if the backend is wrapped,
for example sftp wrapped with crypt.
- The s3, azureblob and gcs backends now support directory markers
so empty directories are supported (Jānis Bebrītis, Nick
Craig-Wood)
- The --default-time flag now controls the unknown modification
time of files/dirs (Nick Craig-Wood)
- If a file or directory does not have a modification time
rclone can read then rclone will display this fixed time
instead.
- For the old behaviour use --default-time 0s which will set
this time to the time rclone started up.
- New Features
- build
- Modernise linters in use and fixup all affected code
(albertony)
- Push docker beta to GHCR (GitHub container registry)
(Richard Tweed)
- cat: Add --separator option to cat command (Loren Gordon)
- config
- Do not remove/overwrite other files during config file save
(albertony)
- Do not overwrite config file symbolic link (albertony)
- Stop config create making invalid config files (Nick
Craig-Wood)
- doc updates (Adam K, Aditya Basu, albertony, asdffdsazqqq, Damo,
danielkrajnik, Dimitri Papadopoulos, dlitster, Drew Parsons,
jumbi77, kapitainsky, mac-15, Mariusz Suchodolski, Nick
Craig-Wood, NickIAm, Rintze Zelle, Stanislav Gromov, Tareq
Sharafy, URenko, yuudi, Zach Kipp)
- fs
- Add size to JSON logs when moving or copying an object (Nick
Craig-Wood)
- Allow boolean features to be enabled with --disable !Feature
(Nick Craig-Wood)
- genautocomplete: Rename to completion with alias to the old name
(Nick Craig-Wood)
- librclone: Added example on using librclone with Go (alankrit)
- lsjson: Make --stat more efficient (Nick Craig-Wood)
- operations
- Implement --multi-thread-write-buffer-size for speed
improvements on downloads (Paulo Schreiner)
- Reopen downloads on error when using check --download and
cat (Nick Craig-Wood)
- rc: config/listremotes includes remotes defined with environment
variables (kapitainsky)
- selfupdate: Obey --no-check-certificate flag (Nick Craig-Wood)
- serve restic: Trigger systemd notify (Shyim)
- serve webdav: Implement owncloud checksum and modtime extensions
(WeidiDeng)
- sync: --suffix-keep-extension preserve 2 part extensions like
.tar.gz (Nick Craig-Wood)
- Bug Fixes
- accounting
- Fix Prometheus metrics to be the same as core/stats (Nick
Craig-Wood)
- Bwlimit signal handler should always start (Sam Lai)
- bisync: Fix maxDelete parameter being ignored via the rc (Nick
Craig-Wood)
- cmd/ncdu: Fix screen corruption when logging (eNV25)
- filter: Fix deadlock with errors on --files-from (douchen)
- fs
- Fix interaction between --progress and --interactive (Nick
Craig-Wood)
- Fix infinite recursive call in pacer ModifyCalculator (fixes
issue reported by the staticcheck linter) (albertony)
- lib/atexit: Ensure OnError only calls cancel function once (Nick
Craig-Wood)
- lib/rest: Fix problems re-using HTTP connections (Nick
Craig-Wood)
- rc
- Fix operations/stat with trailing / (Nick Craig-Wood)
- Fix missing --rc flags (Nick Craig-Wood)
- Fix output of Time values in options/get (Nick Craig-Wood)
- serve dlna: Fix potential data race (Nick Craig-Wood)
- version: Fix reported os/kernel version for windows (albertony)
- Mount
- Add --mount-case-insensitive to force the mount to be case
insensitive (Nick Craig-Wood)
- Removed unnecessary byte slice allocation for reads (Anagh Kumar
Baranwal)
- Clarify rclone mount error when installed via homebrew (Nick
Craig-Wood)
- Added _netdev to the example mount so it gets treated as a
remote-fs rather than local-fs (Anagh Kumar Baranwal)
- Mount2
- Updated go-fuse version (Anagh Kumar Baranwal)
- Fixed statfs (Anagh Kumar Baranwal)
- Disable xattrs (Anagh Kumar Baranwal)
- VFS
- Add MkdirAll function to make a directory and all beneath (Nick
Craig-Wood)
- Fix reload: failed to add virtual dir entry: file does not exist
(Nick Craig-Wood)
- Fix writing to a read only directory creating spurious directory
entries (WeidiDeng)
- Fix potential data race (Nick Craig-Wood)
- Fix backends being Shutdown too early when startup takes a long
time (Nick Craig-Wood)
- Local
- Fix filtering of symlinks with -l/--links flag (Nick Craig-Wood)
- Fix /path/to/file.rclonelink when -l/--links is in use (Nick
Craig-Wood)
- Fix crash with --metadata on Android (Nick Craig-Wood)
- Cache
- Fix backends shutting down when in use when used via the rc
(Nick Craig-Wood)
- Crypt
- Add --crypt-suffix option to set a custom suffix for encrypted
files (jladbrook)
- Add --crypt-pass-bad-blocks to allow corrupted file output (Nick
Craig-Wood)
- Fix reading 0 length files (Nick Craig-Wood)
- Try not to return "unexpected EOF" error (Nick Craig-Wood)
- Reduce allocations (albertony)
- Recommend Dropbox for base32768 encoding (Nick Craig-Wood)
- Azure Blob
- Empty directory markers (Nick Craig-Wood)
- Support azure workload identities (Tareq Sharafy)
- Fix azure blob uploads with multiple bits of metadata (Nick
Craig-Wood)
- Fix azurite compatibility by sending nil tier if set to empty
string (Roel Arents)
- Combine
- Implement missing methods (Nick Craig-Wood)
- Fix goroutine stack overflow on bad object (Nick Craig-Wood)
- Drive
- Add --drive-env-auth to get IAM credentials from runtime (Peter
Brunner)
- Update drive service account guide (Juang, Yi-Lin)
- Fix change notify picking up files outside the root (Nick
Craig-Wood)
- Fix trailing slash mis-identificaton of folder as file (Nick
Craig-Wood)
- Fix incorrect remote after Update on object (Nick Craig-Wood)
- Dropbox
- Implement --dropbox-pacer-min-sleep flag (Nick Craig-Wood)
- Fix the dropbox batcher stalling (Misty)
- Fichier
- Add --ficicher-cdn option to use the CDN for download (Nick
Craig-Wood)
- FTP
- Lower log message priority when SetModTime is not supported to
debug (Tobias Gion)
- Fix "unsupported LIST line" errors on startup (Nick Craig-Wood)
- Fix "501 Not a valid pathname." errors when creating directories
(Nick Craig-Wood)
- Google Cloud Storage
- Empty directory markers (Jānis Bebrītis, Nick Craig-Wood)
- Added --gcs-user-project needed for requester pays (Christopher
Merry)
- HTTP
- Add client certificate user auth middleware. This can auth
serve restic from the username in the client cert. (Peter Fern)
- Jottacloud
- Fix vfs writeback stuck in a failed upload loop with file
versioning disabled (albertony)
- Onedrive
- Add --onedrive-av-override flag to download files flagged as
virus (Nick Craig-Wood)
- Fix quickxorhash on 32 bit architectures (Nick Craig-Wood)
- Report any list errors during rclone cleanup (albertony)
- Putio
- Fix uploading to the wrong object on Update with overridden
remote name (Nick Craig-Wood)
- Fix modification times not being preserved for server side copy
and move (Nick Craig-Wood)
- Fix server side copy failures (400 errors) (Nick Craig-Wood)
- S3
- Empty directory markers (Jānis Bebrītis, Nick Craig-Wood)
- Update Scaleway storage classes (Brian Starkey)
- Fix --s3-versions on individual objects (Nick Craig-Wood)
- Fix hang on aborting multipart upload with iDrive e2 (Nick
Craig-Wood)
- Fix missing "tier" metadata (Nick Craig-Wood)
- Fix V3sign: add missing subresource delete (cc)
- Fix Arvancloud Domain and region changes and alphabetise the
provider (Ehsan Tadayon)
- Fix Qiniu KODO quirks virtualHostStyle is false (zzq)
- SFTP
- Add --sftp-host-key-algorithms to allow specifying SSH host key
algorithms (Joel)
- Fix using --sftp-key-use-agent and --sftp-key-file together
needing private key file (Arnav Singh)
- Fix move to allow overwriting existing files (Nick Craig-Wood)
- Don't stat directories before listing them (Nick Craig-Wood)
- Don't check remote points to a file if it ends with / (Nick
Craig-Wood)
- Sharefile
- Disable streamed transfers as they no longer work (Nick
Craig-Wood)
- Smb
- Code cleanup to avoid overwriting ctx before first use (fixes
issue reported by the staticcheck linter) (albertony)
- Storj
- Fix "uplink: too many requests" errors when uploading to the
same file (Nick Craig-Wood)
- Fix uploading to the wrong object on Update with overridden
remote name (Nick Craig-Wood)
- Swift
- Ignore 404 error when deleting an object (Nick Craig-Wood)
- Union
- Implement missing methods (Nick Craig-Wood)
- Allow errors to be unwrapped for inspection (Nick Craig-Wood)
- Uptobox
- Add --uptobox-private flag to make all uploaded files private
(Nick Craig-Wood)
- Fix improper regex (Aaron Gokaslan)
- Fix Update returning the wrong object (Nick Craig-Wood)
- Fix rmdir declaring that directories weren't empty (Nick
Craig-Wood)
- WebDAV
- nextcloud: Add support for chunked uploads (Paul)
- Set modtime using propset for owncloud and nextcloud (WeidiDeng)
- Make pacer minSleep configurable with --webdav-pacer-min-sleep
(ed)
- Fix server side copy/move not overwriting (WeidiDeng)
- Fix modtime on server side copy for owncloud and nextcloud (Nick
Craig-Wood)
- Yandex
- Fix 400 Bad Request on transfer failure (Nick Craig-Wood)
- Zoho
- Fix downloads with Range: header returning the wrong data (Nick
Craig-Wood)
v1.62.2 - 2023-03-16
See commits
- Bug Fixes
- docker volume plugin: Add missing fuse3 dependency (Nick
Craig-Wood)
- docs: Fix size documentation (asdffdsazqqq)
- FTP
- Fix 426 errors on downloads with vsftpd (Lesmiscore)
v1.62.1 - 2023-03-15
See commits
- Bug Fixes
- docker: Add missing fuse3 dependency (cycneuramus)
- build: Update release docs to be more careful with the tag (Nick
Craig-Wood)
- build: Set Github release to draft while uploading binaries
(Nick Craig-Wood)
v1.62.0 - 2023-03-14
See commits
- New Features
- accounting: Make checkers show what they are doing (Nick
Craig-Wood)
- authorize: Add support for custom templates (Hunter Wittenborn)
- build
- Update to go1.20 (Nick Craig-Wood, Anagh Kumar Baranwal)
- Add winget releaser workflow (Ryan Caezar Itang)
- Add dependabot (Ryan Caezar Itang)
- doc updates (albertony, Bryan Kaplan, Gerard Bosch,
IMTheNachoMan, Justin Winokur, Manoj Ghosh, Nick Craig-Wood, Ole
Frost, Peter Brunner, piyushgarg, Ryan Caezar Itang, Simmon Li,
ToBeFree)
- filter: Emit INFO message when can't work out directory filters
(Nick Craig-Wood)
- fs
- Added multiple ca certificate support. (alankrit)
- Add --max-delete-size a delete size threshold (Leandro
Sacchet)
- fspath: Allow the symbols @ and + in remote names (albertony)
- lib/terminal: Enable windows console virtual terminal sequences
processing (ANSI/VT100 colors) (albertony)
- move: If --check-first and --order-by are set then delete with
perfect ordering (Nick Craig-Wood)
- serve http: Support --auth-proxy (Matthias Baur)
- Bug Fixes
- accounting
- Avoid negative ETA values for very slow speeds (albertony)
- Limit length of ETA string (albertony)
- Show human readable elapsed time when longer than a day
(albertony)
- all: Apply codeql fixes (Aaron Gokaslan)
- build
- Fix condition for manual workflow run (albertony)
- Fix building for ARMv5 and ARMv6 (albertony)
- selfupdate: Consider ARM version
- install.sh: fix ARMv6 download
- version: Report ARM version
- deletefile: Return error code 4 if file does not exist (Nick
Craig-Wood)
- docker: Fix volume plugin does not remount volume on docker
restart (logopk)
- fs: Fix race conditions in --max-delete and --max-delete-size
(Nick Craig-Wood)
- lib/oauthutil: Handle fatal errors better (Alex Chen)
- mount2: Fix --allow-non-empty (Nick Craig-Wood)
- operations: Fix concurrency: use --checkers unless transferring
files (Nick Craig-Wood)
- serve ftp: Fix timestamps older than 1 year in listings (Nick
Craig-Wood)
- sync: Fix concurrency: use --checkers unless transferring files
(Nick Craig-Wood)
- tree
- Fix nil pointer exception on stat failure (Nick Craig-Wood)
- Fix colored output on windows (albertony)
- Fix display of files with illegal Windows file system names
(Nick Craig-Wood)
- Mount
- Fix creating and renaming files on case insensitive backends
(Nick Craig-Wood)
- Do not treat \\?\ prefixed paths as network share paths on
windows (albertony)
- Fix check for empty mount point on Linux (Nick Craig-Wood)
- Fix --allow-non-empty (Nick Craig-Wood)
- Avoid incorrect or premature overlap check on windows
(albertony)
- Update to fuse3 after bazil.org/fuse update (Nick Craig-Wood)
- VFS
- Make uploaded files retain modtime with non-modtime backends
(Nick Craig-Wood)
- Fix incorrect modtime on fs which don't support setting modtime
(Nick Craig-Wood)
- Fix rename of directory containing files to be uploaded (Nick
Craig-Wood)
- Local
- Fix %!w(<nil>) in "failed to read directory" error (Marks
Polakovs)
- Fix exclusion of dangling symlinks with -L/--copy-links (Nick
Craig-Wood)
- Crypt
- Obey --ignore-checksum (Nick Craig-Wood)
- Fix for unencrypted directory names on case insensitive remotes
(Ole Frost)
- Azure Blob
- Remove workarounds for SDK bugs after v0.6.1 update (Nick
Craig-Wood)
- B2
- Fix uploading files bigger than 1TiB (Nick Craig-Wood)
- Drive
- Note that --drive-acknowledge-abuse needs SA Manager permission
(Nick Craig-Wood)
- Make --drive-stop-on-upload-limit to respond to
storageQuotaExceeded (Ninh Pham)
- FTP
- Retry 426 errors (Nick Craig-Wood)
- Retry errors when initiating downloads (Nick Craig-Wood)
- Revert to upstream github.com/jlaffaye/ftp now fix is merged
(Nick Craig-Wood)
- Google Cloud Storage
- Add --gcs-env-auth to pick up IAM credentials from env/instance
(Peter Brunner)
- Mega
- Add --mega-use-https flag (NodudeWasTaken)
- Onedrive
- Default onedrive personal to QuickXorHash as Microsoft is
removing SHA1 (Nick Craig-Wood)
- Add --onedrive-hash-type to change the hash in use (Nick
Craig-Wood)
- Improve speed of QuickXorHash (LXY)
- Oracle Object Storage
- Speed up operations by using S3 pacer and setting minsleep to
10ms (Manoj Ghosh)
- Expose the storage_tier option in config (Manoj Ghosh)
- Bring your own encryption keys (Manoj Ghosh)
- S3
- Check multipart upload ETag when --s3-no-head is in use (Nick
Craig-Wood)
- Add --s3-sts-endpoint to specify STS endpoint (Nick Craig-Wood)
- Fix incorrect tier support for StorJ and IDrive when pointing at
a file (Ole Frost)
- Fix AWS STS failing if --s3-endpoint is set (Nick Craig-Wood)
- Make purge remove directory markers too (Nick Craig-Wood)
- Seafile
- Renew library password (Fred)
- SFTP
- Fix uploads being 65% slower than they should be with crypt
(Nick Craig-Wood)
- Smb
- Allow SPN (service principal name) to be configured (Nick
Craig-Wood)
- Check smb connection is closed (happyxhw)
- Storj
- Implement rclone link (Kaloyan Raev)
- Implement rclone purge (Kaloyan Raev)
- Update satellite urls and labels (Kaloyan Raev)
- WebDAV
- Fix interop with davrods server (Nick Craig-Wood)
v1.61.1 - 2022-12-23
See commits
- Bug Fixes
- docs:
- Show only significant parts of version number in version
introduced label (albertony)
- Fix unescaped HTML (Nick Craig-Wood)
- lib/http: Shutdown all servers on exit to remove unix socket
(Nick Craig-Wood)
- rc: Fix --rc-addr flag (which is an alternate for --url) (Anagh
Kumar Baranwal)
- serve restic
- Don't serve via http if serving via --stdio (Nick
Craig-Wood)
- Fix immediate exit when not using stdio (Nick Craig-Wood)
- serve webdav
- Fix --baseurl handling after lib/http refactor (Nick
Craig-Wood)
- Fix running duplicate Serve call (Nick Craig-Wood)
- Azure Blob
- Fix "409 Public access is not permitted on this storage account"
(Nick Craig-Wood)
- S3
- storj: Update endpoints (Kaloyan Raev)
v1.61.0 - 2022-12-20
See commits
- New backends
- New S3 providers
- Liara LOS (MohammadReza)
- New Features
- build: Add vulnerability testing using govulncheck (albertony)
- cmd: Enable SIGINFO (Ctrl-T) handler on FreeBSD, NetBSD, OpenBSD
and Dragonfly BSD (x3-apptech)
- config: Add config/setpath for setting config path via
rc/librclone (Nick Craig-Wood)
- dedupe
- Count Checks in the stats while scanning for duplicates
(Nick Craig-Wood)
- Make dedupe obey the filters (Nick Craig-Wood)
- dlna: Properly attribute code used from
https://github.com/anacrolix/dms (Nick Craig-Wood)
- docs
- Add minimum versions and status badges to backend and
command docs (Nick Craig-Wood, albertony)
- Remote names may not start or end with space (albertony)
- filter: Add metadata filters --metadata-include/exclude/filter
and friends (Nick Craig-Wood)
- fs
- Make all duration flags take y, M, w, d etc suffixes (Nick
Craig-Wood)
- Add global flag --color to control terminal colors (Kevin
Verstaen)
- fspath: Allow unicode numbers and letters in remote names
(albertony)
- lib/file: Improve error message for creating dir on non-existent
network host on windows (albertony)
- lib/http: Finish port of rclone servers to lib/http (Tom
Mombourquette, Nick Craig-Wood)
- lib/oauthutil: Improved usability of config flows needing web
browser (Ole Frost)
- ncdu
- Add support for modification time (albertony)
- Fallback to sort by name also for sort by average size
(albertony)
- Rework to use tcell directly instead of the termbox wrapper
(eNV25)
- rc: Add commands to set GC Percent & Memory Limit (go 1.19+)
(Anagh Kumar Baranwal)
- rcat: Preserve metadata when Copy falls back to Rcat (Nick
Craig-Wood)
- rcd: Refactor rclone rc server to use lib/http (Nick Craig-Wood)
- rcserver: Avoid generating default credentials with htpasswd
(Kamui)
- restic: Refactor to use lib/http (Nolan Woods)
- serve http: Support unix sockets and multiple listeners (Tom
Mombourquette)
- serve webdav: Refactor to use lib/http (Nick Craig-Wood)
- test: Replace defer cleanup with t.Cleanup (Eng Zer Jun)
- test memory: Read metadata if -M flag is specified (Nick
Craig-Wood)
- wasm: Comply with wasm_exec.js licence terms (Matthew Vernon)
- Bug Fixes
- build: Update golang.org/x/net/http2 to fix GO-2022-1144 (Nick
Craig-Wood)
- restic: Fix typo in docs 'remove' should be 'remote'
(asdffdsazqqq)
- serve dlna: Fix panic: Logger uninitialized. (Nick Craig-Wood)
- Mount
- Update cgofuse for FUSE-T support for mounting volumes on Mac
(Nick Craig-Wood)
- VFS
- Windows: fix slow opening of exe files by not truncating files
when not necessary (Nick Craig-Wood)
- Fix IO Error opening a file with O_CREATE|O_RDONLY in
--vfs-cache-mode not full (Nick Craig-Wood)
- Crypt
- Fix compress wrapping crypt giving upload errors (Nick
Craig-Wood)
- Azure Blob
- Port to new SDK (Nick Craig-Wood)
- Revamp authentication to include all methods and docs (Nick
Craig-Wood)
- Port old authentication methods to new SDK (Nick Craig-Wood,
Brad Ackerman)
- Thanks to Stonebranch for sponsoring this work.
- Add --azureblob-no-check-container to assume container exists
(Nick Craig-Wood)
- Add --use-server-modtime support (Abdullah Saglam)
- Add support for custom upload headers (rkettelerij)
- Allow emulator account/key override (Roel Arents)
- Support simple "environment credentials" (Nathaniel Wesley
Filardo)
- Ignore AuthorizationFailure when trying to create a create a
container (Nick Craig-Wood)
- Box
- Added note on Box API rate limits (Ole Frost)
- Drive
- Handle shared drives with leading/trailing space in name
(related to) (albertony)
- FTP
- Update help text of implicit/explicit TLS options to refer to
FTPS instead of FTP (ycdtosa)
- Improve performance to speed up --files-from and NewObject
(Anthony Pessy)
- HTTP
- Parse GET responses when no_head is set (Arnie97)
- Do not update object size based on Range requests (Arnie97)
- Support Content-Range response header (Arnie97)
- Onedrive
- Document workaround for shared with me files (vanplus)
- S3
- Add Liara LOS to provider list (MohammadReza)
- Add DigitalOcean Spaces regions sfo3, fra1, syd1 (Jack)
- Avoid privileged GetBucketLocation to resolve s3 region (Anthony
Pessy)
- Stop setting object and bucket ACL to private if it is an empty
string (Philip Harvey)
- If bucket or object ACL is empty string then don't add
X-Amz-Acl: header (Nick Craig-Wood)
- Reduce memory consumption for s3 objects (Erik Agterdenbos)
- Fix listing loop when using v2 listing on v1 server (Nick
Craig-Wood)
- Fix nil pointer exception when using Versions (Nick Craig-Wood)
- Fix excess memory usage when using versions (Nick Craig-Wood)
- Ignore versionIDs from uploads unless using --s3-versions or
--s3-versions-at (Nick Craig-Wood)
- SFTP
- Add configuration options to set ssh Ciphers / MACs /
KeyExchange (dgouju)
- Auto-detect shell type for fish (albertony)
- Fix NewObject with leading / (Nick Craig-Wood)
- Smb
- Fix issue where spurious dot directory is created (albertony)
- Storj
- Implement server side Copy (Kaloyan Raev)
v1.60.1 - 2022-11-17
See commits
- Bug Fixes
- lib/cache: Fix alias backend shutting down too soon (Nick
Craig-Wood)
- wasm: Fix walltime link error by adding up-to-date wasm_exec.js
(João Henrique Franco)
- docs
- Update faq.md with bisync (Samuel Johnson)
- Corrected download links in windows install docs
(coultonluke)
- Add direct download link for windows arm64 (albertony)
- Remove link to rclone slack as it is no longer supported
(Nick Craig-Wood)
- Faq: how to use a proxy server that requires a username and
password (asdffdsazqqq)
- Oracle-object-storage: doc fix (Manoj Ghosh)
- Fix typo remove in rclone_serve_restic command (Joda Stößer)
- Fix character that was incorrectly interpreted as markdown
(Clément Notin)
- VFS
- Fix deadlock caused by cache cleaner and upload finishing (Nick
Craig-Wood)
- Local
- Clean absolute paths (albertony)
- Fix -L/--copy-links with filters missing directories (Nick
Craig-Wood)
- Mailru
- Note that an app password is now needed (Nick Craig-Wood)
- Allow timestamps to be before the epoch 1970-01-01 (Nick
Craig-Wood)
- S3
- Add provider quirk --s3-might-gzip to fix corrupted on transfer:
sizes differ (Nick Craig-Wood)
- Allow Storj to server side copy since it seems to work now (Nick
Craig-Wood)
- Fix for unchecked err value in s3 listv2 (Aaron Gokaslan)
- Add additional Wasabi locations (techknowlogick)
- Smb
- Fix Failed to sync: context canceled at the end of syncs (Nick
Craig-Wood)
- WebDAV
- Fix Move/Copy/DirMove when using -server-side-across-configs
(Nick Craig-Wood)
v1.60.0 - 2022-10-21
See commits
- New backends
- Oracle object storage (Manoj Ghosh)
- SMB / CIFS (Windows file sharing) (Lesmiscore)
- New S3 providers
- IONOS Cloud Storage (Dmitry Deniskin)
- Qiniu KODO (Bachue Zhou)
- New Features
- build
- Update to go1.19 and make go1.17 the minimum required
version (Nick Craig-Wood)
- Install.sh: fix arm-v7 download (Ole Frost)
- fs: Warn the user when using an existing remote name without a
colon (Nick Craig-Wood)
- httplib: Add --xxx-min-tls-version option to select minimum TLS
version for HTTP servers (Robert Newson)
- librclone: Add PHP bindings and test program (Jordi Gonzalez
Muñoz)
- operations
- Add --server-side-across-configs global flag for any backend
(Nick Craig-Wood)
- Optimise --copy-dest and --compare-dest (Nick Craig-Wood)
- rc: add job/stopgroup to stop group (Evan Spensley)
- serve dlna
- Add --announce-interval to control SSDP Announce Interval
(YanceyChiew)
- Add --interface to Specify SSDP interface names line (Simon
Bos)
- Add support for more external subtitles (YanceyChiew)
- Add verification of addresses (YanceyChiew)
- sync: Optimise --copy-dest and --compare-dest (Nick Craig-Wood)
- doc updates (albertony, Alexander Knorr, anonion, João Henrique
Franco, Josh Soref, Lorenzo Milesi, Marco Molteni, Mark Trolley,
Ole Frost, partev, Ryan Morey, Tom Mombourquette, YFdyh000)
- Bug Fixes
- filter
- Fix incorrect filtering with UseFilter context flag and
wrapping backends (Nick Craig-Wood)
- Make sure we check --files-from when looking for a single
file (Nick Craig-Wood)
- rc
- Fix mount/listmounts not returning the full Fs entered in
mount/mount (Tom Mombourquette)
- Handle external unmount when mounting (Isaac Aymerich)
- Validate Daemon option is not set when mounting a volume via
RC (Isaac Aymerich)
- sync: Update docs and error messages to reflect fixes to overlap
checks (Nick Naumann)
- VFS
- Reduce memory use by embedding sync.Cond (Nick Craig-Wood)
- Reduce memory usage by re-ordering commonly used structures
(Nick Craig-Wood)
- Fix excess CPU used by VFS cache cleaner looping (Nick
Craig-Wood)
- Local
- Obey file filters in listing to fix errors on excluded files
(Nick Craig-Wood)
- Fix "Failed to read metadata: function not implemented" on old
Linux kernels (Nick Craig-Wood)
- Compress
- Fix crash due to nil metadata (Nick Craig-Wood)
- Fix error handling to not use or return nil objects (Nick
Craig-Wood)
- Drive
- Make --drive-stop-on-upload-limit obey quota exceeded error
(Steve Kowalik)
- FTP
- Add --ftp-force-list-hidden option to show hidden items (Øyvind
Heddeland Instefjord)
- Fix hang when using ExplicitTLS to certain servers. (Nick
Craig-Wood)
- Google Cloud Storage
- Add --gcs-endpoint flag and config parameter (Nick Craig-Wood)
- Hubic
- Remove backend as service has now shut down (Nick Craig-Wood)
- Onedrive
- Rename Onedrive(cn) 21Vianet to Vnet Group (Yen Hu)
- Disable change notify in China region since it is not supported
(Nick Craig-Wood)
- S3
- Implement --s3-versions flag to show old versions of objects if
enabled (Nick Craig-Wood)
- Implement --s3-version-at flag to show versions of objects at a
particular time (Nick Craig-Wood)
- Implement backend versioning command to get/set bucket
versioning (Nick Craig-Wood)
- Implement Purge to purge versions and backend cleanup-hidden
(Nick Craig-Wood)
- Add --s3-decompress flag to decompress gzip-encoded files (Nick
Craig-Wood)
- Add --s3-sse-customer-key-base64 to supply keys with binary data
(Richard Bateman)
- Try to keep the maximum precision in ModTime with
--user-server-modtime (Nick Craig-Wood)
- Drop binary metadata with an ERROR message as it can't be stored
(Nick Craig-Wood)
- Add --s3-no-system-metadata to suppress read and write of system
metadata (Nick Craig-Wood)
- SFTP
- Fix directory creation races (Lesmiscore)
- Swift
- Add --swift-no-large-objects to reduce HEAD requests (Nick
Craig-Wood)
- Union
- Propagate SlowHash feature to fix hasher interaction
(Lesmiscore)
v1.59.2 - 2022-09-15
See commits
- Bug Fixes
- config: Move locking to fix fatal error: concurrent map read and
map write (Nick Craig-Wood)
- Local
- Disable xattr support if the filesystems indicates it is not
supported (Nick Craig-Wood)
- Azure Blob
- Fix chunksize calculations producing too many parts (Nick
Craig-Wood)
- B2
- Fix chunksize calculations producing too many parts (Nick
Craig-Wood)
- S3
- Fix chunksize calculations producing too many parts (Nick
Craig-Wood)
v1.59.1 - 2022-08-08
See commits
- Bug Fixes
- accounting: Fix panic in core/stats-reset with unknown group
(Nick Craig-Wood)
- build: Fix android build after GitHub actions change (Nick
Craig-Wood)
- dlna: Fix SOAP action header parsing (Joram Schrijver)
- docs: Fix links to mount command from install docs (albertony)
- dropbox: Fix ChangeNotify was unable to decrypt errors (Nick
Craig-Wood)
- fs: Fix parsing of times and durations of the form "YYYY-MM-DD
HH:MM:SS" (Nick Craig-Wood)
- serve sftp: Fix checksum detection (Nick Craig-Wood)
- sync: Add accidentally missed filter-sensitivity to --backup-dir
option (Nick Naumann)
- Combine
- Fix docs showing remote= instead of upstreams= (Nick Craig-Wood)
- Throw error if duplicate directory name is specified (Nick
Craig-Wood)
- Fix errors with backends shutting down while in use (Nick
Craig-Wood)
- Dropbox
- Fix hang on quit with --dropbox-batch-mode off (Nick Craig-Wood)
- Fix infinite loop on uploading a corrupted file (Nick
Craig-Wood)
- Internetarchive
- Ignore checksums for files using the different method
(Lesmiscore)
- Handle hash symbol in the middle of filename (Lesmiscore)
- Jottacloud
- Fix working with whitelabel Elgiganten Cloud
- Do not store username in config when using standard auth
(albertony)
- Mega
- Fix nil pointer exception when bad node received (Nick
Craig-Wood)
- S3
- Fix --s3-no-head panic: reflect: Elem of invalid type
s3.PutObjectInput (Nick Craig-Wood)
- SFTP
- Fix issue with WS_FTP by working around failing RealPath
(albertony)
- Union
- Fix duplicated files when using directories with leading / (Nick
Craig-Wood)
- Fix multiple files being uploaded when roots don't exist (Nick
Craig-Wood)
- Fix panic due to misalignment of struct field in 32 bit
architectures (r-ricci)
v1.59.0 - 2022-07-09
See commits
- New backends
- Combine multiple remotes in one directory tree (Nick Craig-Wood)
- Hidrive (Ovidiu Victor Tatar)
- Internet Archive (Lesmiscore (Naoya Ozaki))
- New S3 providers
- ArvanCloud AOS (ehsantdy)
- Cloudflare R2 (Nick Craig-Wood)
- Huawei OBS (m00594701)
- IDrive e2 (vyloy)
- New commands
- test makefile: Create a single file for testing (Nick
Craig-Wood)
- New Features
- Metadata framework to read and write system and user metadata on
backends (Nick Craig-Wood)
- Implemented initially for local, s3 and internetarchive
backends
- --metadata/-M flag to control whether metadata is copied
- --metadata-set flag to specify metadata for uploads
- Thanks to Manz Solutions for sponsoring this work.
- build
- Update to go1.18 and make go1.16 the minimum required
version (Nick Craig-Wood)
- Update android go build to 1.18.x and NDK to 23.1.7779620
(Nick Craig-Wood)
- All windows binaries now no longer CGO (Nick Craig-Wood)
- Add linux/arm/v6 to docker images (Nick Craig-Wood)
- A huge number of fixes found with staticcheck (albertony)
- Configurable version suffix independent of version number
(albertony)
- check: Implement --no-traverse and --no-unicode-normalization
(Nick Craig-Wood)
- config: Readability improvements (albertony)
- copyurl: Add --header-filename to honor the HTTP header filename
directive (J-P Treen)
- filter: Allow multiple --exclude-if-present flags (albertony)
- fshttp: Add --disable-http-keep-alives to disable HTTP Keep
Alives (Nick Craig-Wood)
- install.sh
- Set the modes on the files and/or directories on macOS
(Michael C Tiernan - MIT-Research Computing Project)
- Pre verify sudo authorization -v before calling curl.
(Michael C Tiernan - MIT-Research Computing Project)
- lib/encoder: Add Semicolon encoding (Nick Craig-Wood)
- lsf: Add metadata support with M flag (Nick Craig-Wood)
- lsjson: Add --metadata/-M flag (Nick Craig-Wood)
- ncdu
- Implement multi selection (CrossR)
- Replace termbox with tcell's termbox wrapper (eNV25)
- Display correct path in delete confirmation dialog (Roberto
Ricci)
- operations
- Speed up hash checking by aborting the other hash if first
returns nothing (Nick Craig-Wood)
- Use correct src/dst in some log messages (zzr93)
- rcat: Check checksums by default like copy does (Nick
Craig-Wood)
- selfupdate: Replace deprecated x/crypto/openpgp package with
ProtonMail/go-crypto (albertony)
- serve ftp: Check --passive-port arguments are correct (Nick
Craig-Wood)
- size: Warn about inaccurate results when objects with unknown
size (albertony)
- sync: Overlap check is now filter-sensitive so --backup-dir can
be in the root provided it is filtered (Nick)
- test info: Check file name lengths using 1,2,3,4 byte unicode
characters (Nick Craig-Wood)
- test makefile(s): --sparse, --zero, --pattern, --ascii,
--chargen flags to control file contents (Nick Craig-Wood)
- Make sure we call the Shutdown method on backends (Martin
Czygan)
- Bug Fixes
- accounting: Fix unknown length file transfers counting 3
transfers each (buda)
- ncdu: Fix issue where dir size is summed when file sizes are -1
(albertony)
- sync/copy/move
- Fix --fast-list --create-empty-src-dirs and --exclude (Nick
Craig-Wood)
- Fix --max-duration and --cutoff-mode soft (Nick Craig-Wood)
- Fix fs cache unpin (Martin Czygan)
- Set proper exit code for errors that are not low-level retried
(e.g. size/timestamp changing) (albertony)
- Mount
- Support windows/arm64 (may still be problems - see #5828) (Nick
Craig-Wood)
- Log IO errors at ERROR level (Nick Craig-Wood)
- Ignore _netdev mount argument (Hugal31)
- VFS
- Add --vfs-fast-fingerprint for less accurate but faster
fingerprints (Nick Craig-Wood)
- Add --vfs-disk-space-total-size option to manually set the total
disk space (Claudio Maradonna)
- vfscache: Fix fatal error: sync: unlock of unlocked mutex error
(Nick Craig-Wood)
- Local
- Fix parsing of --local-nounc flag (Nick Craig-Wood)
- Add Metadata support (Nick Craig-Wood)
- Crypt
- Support metadata (Nick Craig-Wood)
- Azure Blob
- Calculate Chunksize/blocksize to stay below maxUploadParts
(Leroy van Logchem)
- Use chunksize lib to determine chunksize dynamically (Derek
Battams)
- Case insensitive access tier (Rob Pickerill)
- Allow remote emulator (azurite) (Lorenzo Maiorfi)
- B2
- Add --b2-version-at flag to show file versions at time specified
(SwazRGB)
- Use chunksize lib to determine chunksize dynamically (Derek
Battams)
- Chunker
- Mark as not supporting metadata (Nick Craig-Wood)
- Compress
- Support metadata (Nick Craig-Wood)
- Drive
- Make backend config -o config add a combined AllDrives: remote
(Nick Craig-Wood)
- Make --drive-shared-with-me work with shared drives (Nick
Craig-Wood)
- Add --drive-resource-key for accessing link-shared files (Nick
Craig-Wood)
- Add backend commands exportformats and importformats for
debugging (Nick Craig-Wood)
- Fix 404 errors on copy/server side copy objects from public
folder (Nick Craig-Wood)
- Update Internal OAuth consent screen docs (Phil Shackleton)
- Moved root_folder_id to advanced section (Abhiraj)
- Dropbox
- Migrate from deprecated api (m8rge)
- Add logs to show when poll interval limits are exceeded (Nick
Craig-Wood)
- Fix nil pointer exception on dropbox impersonate user not found
(Nick Craig-Wood)
- Fichier
- Parse api error codes and them accordingly (buengese)
- FTP
- Add support for disable_utf8 option (Jason Zheng)
- Revert to upstream github.com/jlaffaye/ftp from our fork (Nick
Craig-Wood)
- Google Cloud Storage
- Add --gcs-no-check-bucket to minimise transactions and perms
(Nick Gooding)
- Add --gcs-decompress flag to decompress gzip-encoded files (Nick
Craig-Wood)
- by default these will be downloaded compressed (which
previously failed)
- Hasher
- Support metadata (Nick Craig-Wood)
- HTTP
- Fix missing response when using custom auth handler (albertony)
- Jottacloud
- Add support for upload to custom device and mountpoint
(albertony)
- Always store username in config and use it to avoid initial API
request (albertony)
- Fix issue with server-side copy when destination is in trash
(albertony)
- Fix listing output of remote with special characters (albertony)
- Mailru
- Fix timeout by using int instead of time.Duration for keeping
number of seconds (albertony)
- Mega
- Document using MEGAcmd to help with login failures (Art M.
Gallagher)
- Onedrive
- Implement --poll-interval for onedrive (Hugo Laloge)
- Add access scopes option (Sven Gerber)
- Opendrive
- Resolve lag and truncate bugs (Scott Grimes)
- Pcloud
- Fix about with no free space left (buengese)
- Fix cleanup (buengese)
- S3
- Use PUT Object instead of presigned URLs to upload single part
objects (Nick Craig-Wood)
- Backend restore command to skip non-GLACIER objects (Vincent
Murphy)
- Use chunksize lib to determine chunksize dynamically (Derek
Battams)
- Retry RequestTimeout errors (Nick Craig-Wood)
- Implement reading and writing of metadata (Nick Craig-Wood)
- SFTP
- Add support for about and hashsum on windows server (albertony)
- Use vendor-specific VFS statistics extension for about if
available (albertony)
- Add --sftp-chunk-size to control packets sizes for high latency
links (Nick Craig-Wood)
- Add --sftp-concurrency to improve high latency transfers (Nick
Craig-Wood)
- Add --sftp-set-env option to set environment variables (Nick
Craig-Wood)
- Add Hetzner Storage Boxes to supported sftp backends (Anthrazz)
- Storj
- Fix put which lead to the file being unreadable when using mount
(Erik van Velzen)
- Union
- Add min_free_space option for lfs/eplfs policies (Nick
Craig-Wood)
- Fix uploading files to union of all bucket based remotes (Nick
Craig-Wood)
- Fix get free space for remotes which don't support it (Nick
Craig-Wood)
- Fix eplus policy to select correct entry for existing files
(Nick Craig-Wood)
- Support metadata (Nick Craig-Wood)
- Uptobox
- Fix root path handling (buengese)
- WebDAV
- Add SharePoint in other specific regions support (Noah Hsu)
- Yandex
- Handle api error on server-side move (albertony)
- Zoho
- Add Japan and China regions (buengese)
v1.58.1 - 2022-04-29
See commits
- Bug Fixes
- build: Update github.com/billziss-gh to github.com/winfsp (Nick
Craig-Wood)
- filter: Fix timezone of --min-age/-max-age from UTC to local as
documented (Nick Craig-Wood)
- rc/js: Correct RC method names (Sơn Trần-Nguyễn)
- docs
- Fix some links to command pages (albertony)
- Add --multi-thread-streams note to --transfers. (Zsolt Ero)
- Mount
- Fix --devname and fusermount: unknown option 'fsname' when
mounting via rc (Nick Craig-Wood)
- VFS
- Remove wording which suggests VFS is only for mounting (Nick
Craig-Wood)
- Dropbox
- Fix retries of multipart uploads with incorrect_offset error
(Nick Craig-Wood)
- Google Cloud Storage
- Use the s3 pacer to speed up transactions (Nick Craig-Wood)
- pacer: Default the Google pacer to a burst of 100 to fix gcs
pacing (Nick Craig-Wood)
- Jottacloud
- Fix scope in token request (albertony)
- Netstorage
- Fix unescaped HTML in documentation (Nick Craig-Wood)
- Make levels of headings consistent (Nick Craig-Wood)
- Add support contacts to netstorage doc (Nil Alexandrov)
- Onedrive
- Note that sharepoint also changes web files (.html, .aspx) (GH)
- Putio
- Handle rate limit errors (Berkan Teber)
- Fix multithread download and other ranged requests (rafma0)
- S3
- Add ChinaMobile EOS to provider list (GuoXingbin)
- Sync providers in config description with providers (Nick
Craig-Wood)
- SFTP
- Fix OpenSSH 8.8+ RSA keys incompatibility (KARBOWSKI Piotr)
- Note that Scaleway C14 is deprecating SFTP in favor of S3
(Adrien Rey-Jarthon)
- Storj
- Fix bucket creation on Move (Nick Craig-Wood)
- WebDAV
- Don't override Referer if user sets it (Nick Craig-Wood)
v1.58.0 - 2022-03-18
See commits
- New backends
- Akamai Netstorage (Nil Alexandrov)
- Seagate Lyve, SeaweedFS, Storj, RackCorp via s3 backend
- Storj (renamed from Tardigrade - your old config files will
continue working)
- New commands
- bisync - experimental bidirectional cloud sync (Ivan Andreev,
Chris Nelson)
- New Features
- build
- Add windows/arm64 build (rclone mount not supported yet)
(Nick Craig-Wood)
- Raise minimum go version to go1.15 (Nick Craig-Wood)
- config: Allow dot in remote names and improve config editing
(albertony)
- dedupe: Add quit as a choice in interactive mode (albertony)
- dlna: Change icons to the newest ones. (Alain Nussbaumer)
- filter: Add {{ regexp }} syntax to pattern matches (Nick
Craig-Wood)
- fshttp: Add prometheus metrics for HTTP status code (Michał
Matczuk)
- hashsum: Support creating hash from data received on stdin
(albertony)
- librclone
- Allow empty string or null input instead of empty json
object (albertony)
- Add support for mount commands (albertony)
- operations: Add server-side moves to stats (Ole Frost)
- rc: Allow user to disable authentication for web gui (negative0)
- tree: Remove obsolete --human replaced by global
--human-readable (albertony)
- version: Report correct friendly-name for newer Windows 10/11
versions (albertony)
- Bug Fixes
- build
- Fix ARM architecture version in .deb packages after nfpm
change (Nick Craig-Wood)
- Hard fork github.com/jlaffaye/ftp to fix
go get github.com/rclone/rclone (Nick Craig-Wood)
- oauthutil: Fix crash when webbrowser requests /robots.txt (Nick
Craig-Wood)
- operations: Fix goroutine leak in case of copy retry (Ankur
Gupta)
- rc:
- Fix operations/publiclink default for expires parameter
(Nick Craig-Wood)
- Fix missing computation of transferQueueSize when summing up
statistics group (Carlo Mion)
- Fix missing StatsInfo fields in the computation of the group
sum (Carlo Mion)
- sync: Fix --max-duration so it doesn't retry when the duration
is exceeded (Nick Craig-Wood)
- touch: Fix issue where a directory is created instead of a file
(albertony)
- Mount
- Add --devname to set the device name sent to FUSE for mount
display (Nick Craig-Wood)
- VFS
- Add vfs/stats remote control to show statistics (Nick
Craig-Wood)
- Fix
failed to _ensure cache internal error: downloaders is nil error
(Nick Craig-Wood)
- Fix handling of special characters in file names (Bumsu Hyeon)
- Local
- Fix hash invalidation which caused errors with local crypt mount
(Nick Craig-Wood)
- Crypt
- Add base64 and base32768 filename encoding options (Max Sum,
Sinan Tan)
- Azure Blob
- Implement --azureblob-upload-concurrency parameter to speed
uploads (Nick Craig-Wood)
- Remove 100MB upper limit on chunk_size as it is no longer needed
(Nick Craig-Wood)
- Raise --azureblob-upload-concurrency to 16 by default (Nick
Craig-Wood)
- Fix crash with SAS URL and no container (Nick Craig-Wood)
- Compress
- Fix crash if metadata upload failed (Nick Craig-Wood)
- Fix memory leak (Nick Craig-Wood)
- Drive
- Added --drive-copy-shortcut-content (Abhiraj)
- Disable OAuth OOB flow (copy a token) due to Google deprecation
(Nick Craig-Wood)
- See the deprecation note.
- Add --drive-skip-dangling-shortcuts flag (Nick Craig-Wood)
- When using a link type --drive-export-formats shows all doc
types (Nick Craig-Wood)
- Dropbox
- Speed up directory listings by specifying 1000 items in a chunk
(Nick Craig-Wood)
- Save an API request when at the root (Nick Craig-Wood)
- Fichier
- Implemented About functionality (Gourav T)
- FTP
- Add --ftp-ask-password to prompt for password when needed (Borna
Butkovic)
- Google Cloud Storage
- Add missing regions (Nick Craig-Wood)
- Disable OAuth OOB flow (copy a token) due to Google deprecation
(Nick Craig-Wood)
- See the deprecation note.
- Googlephotos
- Disable OAuth OOB flow (copy a token) due to Google deprecation
(Nick Craig-Wood)
- See the deprecation note.
- Hasher
- Fix crash on object not found (Nick Craig-Wood)
- Hdfs
- Add file (Move) and directory move (DirMove) support (Andy
Jackson)
- HTTP
- Improved recognition of URL pointing to a single file
(albertony)
- Jottacloud
- Change API used by recursive list (ListR) (Kim)
- Add support for Tele2 Cloud (Fredric Arklid)
- Koofr
- Add Digistorage service as a Koofr provider. (jaKa)
- Mailru
- Fix int32 overflow on arm32 (Ivan Andreev)
- Onedrive
- Add config option for oauth scope Sites.Read.All (Charlie Jiang)
- Minor optimization of quickxorhash (Isaac Levy)
- Add --onedrive-root-folder-id flag (Nick Craig-Wood)
- Do not retry on 400 pathIsTooLong error (ctrl-q)
- Pcloud
- Add support for recursive list (ListR) (Niels van de Weem)
- Fix pre-1970 time stamps (Nick Craig-Wood)
- S3
- Use ListObjectsV2 for faster listings (Felix Bünemann)
- Fallback to ListObject v1 on unsupported providers (Nick
Craig-Wood)
- Use the ETag on multipart transfers to verify the transfer was
OK (Nick Craig-Wood)
- Add --s3-use-multipart-etag provider quirk to disable this
on unsupported providers (Nick Craig-Wood)
- New Providers
- RackCorp object storage (bbabich)
- Seagate Lyve Cloud storage (Nick Craig-Wood)
- SeaweedFS (Chris Lu)
- Storj Shared gateways (Márton Elek, Nick Craig-Wood)
- Add Wasabi AP Northeast 2 endpoint info (lindwurm)
- Add GLACIER_IR storage class (Yunhai Luo)
- Document Content-MD5 workaround for object-lock enabled buckets
(Paulo Martins)
- Fix multipart upload with --no-head flag (Nick Craig-Wood)
- Simplify content length processing in s3 with download url
(Logeshwaran Murugesan)
- SFTP
- Add rclone to list of supported md5sum/sha1sum commands to look
for (albertony)
- Refactor so we only have one way of running remote commands
(Nick Craig-Wood)
- Fix timeout on hashing large files by sending keepalives (Nick
Craig-Wood)
- Fix unnecessary seeking when uploading and downloading files
(Nick Craig-Wood)
- Update docs on how to create known_hosts file (Nick Craig-Wood)
- Storj
- Rename tardigrade backend to storj backend (Nick Craig-Wood)
- Implement server side Move for files (Nick Craig-Wood)
- Update docs to explain differences between s3 and this backend
(Elek, Márton)
- Swift
- Fix About so it shows info about the current container only
(Nick Craig-Wood)
- Union
- Fix treatment of remotes with // in (Nick Craig-Wood)
- Fix deadlock when one part of a multi-upload fails (Nick
Craig-Wood)
- Fix eplus policy returned nil (Vitor Arruda)
- Yandex
- Add permanent deletion support (deinferno)
v1.57.0 - 2021-11-01
See commits
- New backends
- Sia: for Sia decentralized cloud (Ian Levesque, Matthew Sevey,
Ivan Andreev)
- Hasher: caches hashes and enable hashes for backends that don't
support them (Ivan Andreev)
- New commands
- lsjson --stat: to get info about a single file/dir and
operations/stat api (Nick Craig-Wood)
- config paths: show configured paths (albertony)
- New Features
- about: Make human-readable output more consistent with other
commands (albertony)
- build
- Use go1.17 for building and make go1.14 the minimum
supported (Nick Craig-Wood)
- Update Go to 1.16 and NDK to 22b for Android builds (x0b)
- config
- Support hyphen in remote name from environment variable
(albertony)
- Make temporary directory user-configurable (albertony)
- Convert --cache-dir value to an absolute path (albertony)
- Do not override MIME types from OS defaults (albertony)
- docs
- Toc styling and header levels cleanup (albertony)
- Extend documentation on valid remote names (albertony)
- Mention make for building and cmount tag for macos (Alex
Chen)
- ...and many more contributions to numerous to mention!
- fs: Move with --ignore-existing will not delete skipped files
(Nathan Collins)
- hashsum
- Treat hash values in sum file as case insensitive (Ivan
Andreev)
- Don't put ERROR or UNSUPPORTED in output (Ivan Andreev)
- lib/encoder: Add encoding of square brackets (Ivan Andreev)
- lib/file: Improve error message when attempting to create dir on
nonexistent drive on windows (albertony)
- lib/http: Factor password hash salt into options with default
(Nolan Woods)
- lib/kv: Add key-value database api (Ivan Andreev)
- librclone
- Add RcloneFreeString function (albertony)
- Free strings in python example (albertony)
- log: Optionally print pid in logs (Ivan Andreev)
- ls: Introduce --human-readable global option to print
human-readable sizes (albertony)
- ncdu: Introduce key u to toggle human-readable (albertony)
- operations: Add rmdirs -v output (Justin Winokur)
- serve sftp
- Generate an ECDSA server key as well as RSA (Nick
Craig-Wood)
- Generate an Ed25519 server key as well as ECDSA and RSA
(albertony)
- serve docker
- Allow to customize proxy settings of docker plugin (Ivan
Andreev)
- Build docker plugin for multiple platforms (Thomas Stachl)
- size: Include human-readable count (albertony)
- touch: Add support for touching files in directory, with
recursive option, filtering and --dry-run/-i (albertony)
- tree: Option to print human-readable sizes removed in favor of
global option (albertony)
- Bug Fixes
- lib/http
- Fix bad username check in single auth secret provider (Nolan
Woods)
- Fix handling of SSL credentials (Nolan Woods)
- serve ftp: Ensure modtime is passed as UTC always to fix
timezone oddities (Nick Craig-Wood)
- serve sftp: Fix generation of server keys on windows (albertony)
- serve docker: Fix octal umask (Ivan Andreev)
- Mount
- Enable rclone to be run as mount helper direct from the fstab
(Ivan Andreev)
- Use procfs to validate mount on linux (Ivan Andreev)
- Correctly daemonize for compatibility with automount (Ivan
Andreev)
- VFS
- Ensure names used in cache path are legal on current OS
(albertony)
- Ignore ECLOSED when truncating file handles to fix intermittent
bad file descriptor error (Nick Craig-Wood)
- Local
- Refactor default OS encoding out from local backend into shared
encoder lib (albertony)
- Crypt
- Return wrapped object even with --crypt-no-data-encryption (Ivan
Andreev)
- Fix uploads with --crypt-no-data-encryption (Nick Craig-Wood)
- Azure Blob
- Add --azureblob-no-head-object (Tatsuya Noyori)
- Box
- Make listings of heavily used directories more reliable (Nick
Craig-Wood)
- When doing cleanup delete as much as possible (Nick Craig-Wood)
- Add --box-list-chunk to control listing chunk size (Nick
Craig-Wood)
- Delete items in parallel in cleanup using --checkers threads
(Nick Craig-Wood)
- Add --box-owned-by to only show items owned by the login passed
(Nick Craig-Wood)
- Retry operation_blocked_temporary errors (Nick Craig-Wood)
- Chunker
- Md5all must create metadata if base hash is slow (Ivan Andreev)
- Drive
- Speed up directory listings by constraining the API listing
using the current filters (fotile96, Ivan Andreev)
- Fix buffering for single request upload for files smaller than
--drive-upload-cutoff (YenForYang)
- Add -o config option to backend drives to make config for all
shared drives (Nick Craig-Wood)
- Dropbox
- Add --dropbox-batch-commit-timeout to control batch timeout
(Nick Craig-Wood)
- Filefabric
- Make backoff exponential for error_background to fix errors
(Nick Craig-Wood)
- Fix directory move after API change (Nick Craig-Wood)
- FTP
- Enable tls session cache by default (Ivan Andreev)
- Add option to disable tls13 (Ivan Andreev)
- Fix timeout after long uploads (Ivan Andreev)
- Add support for precise time (Ivan Andreev)
- Enable CI for ProFtpd, PureFtpd, VsFtpd (Ivan Andreev)
- Googlephotos
- Use encoder for album names to fix albums with control
characters (Parth Shukla)
- Jottacloud
- Implement SetModTime to support modtime-only changes (albertony)
- Improved error handling with SetModTime and corrupt files in
general (albertony)
- Add support for UserInfo (rclone config userinfo) feature
(albertony)
- Return direct download link from rclone link command (albertony)
- Koofr
- Create direct share link (Dmitry Bogatov)
- Pcloud
- Add sha256 support (Ken Enrique Morel)
- Premiumizeme
- Fix directory listing after API changes (Nick Craig-Wood)
- Fix server side move after API change (Nick Craig-Wood)
- Fix server side directory move after API changes (Nick
Craig-Wood)
- S3
- Add support to use CDN URL to download the file (Logeshwaran)
- Add AWS Snowball Edge to providers examples (r0kk3rz)
- Use a combination of SDK retries and rclone retries (Nick
Craig-Wood)
- Fix IAM Role for Service Account not working and other auth
problems (Nick Craig-Wood)
- Fix shared_credentials_file auth after reverting incorrect fix
(Nick Craig-Wood)
- Fix corrupted on transfer: sizes differ 0 vs xxxx with Ceph
(Nick Craig-Wood)
- Seafile
- Fix error when not configured for 2fa (Fred)
- SFTP
- Fix timeout when doing MD5SUM of large file (Nick Craig-Wood)
- Swift
- Update OCI URL (David Liu)
- Document OVH Cloud Archive (HNGamingUK)
- Union
- Fix rename not working with union of local disk and bucket based
remote (Nick Craig-Wood)
v1.56.2 - 2021-10-01
See commits
- Bug Fixes
- serve http: Re-add missing auth to http service (Nolan Woods)
- build: Update golang.org/x/sys to fix crash on macOS when
compiled with go1.17 (Herby Gillot)
- FTP
- Fix deadlock after failed update when concurrency=1 (Ivan
Andreev)
v1.56.1 - 2021-09-19
See commits
- Bug Fixes
- accounting: Fix maximum bwlimit by scaling scale max token
bucket size (Nick Craig-Wood)
- rc: Fix speed does not update in core/stats (negative0)
- selfupdate: Fix --quiet option, not quite quiet (yedamo)
- serve http: Fix serve http exiting directly after starting
(Cnly)
- build
- Apply gofmt from golang 1.17 (Ivan Andreev)
- Update Go to 1.16 and NDK to 22b for android/any (x0b)
- Mount
- Fix --daemon mode (Ivan Andreev)
- VFS
- Fix duplicates on rename (Nick Craig-Wood)
- Fix crash when truncating a just uploaded object (Nick
Craig-Wood)
- Fix issue where empty dirs would build up in cache meta dir
(albertony)
- Drive
- Fix instructions for auto config (Greg Sadetsky)
- Fix lsf example without drive-impersonate (Greg Sadetsky)
- Onedrive
- Handle HTTP 400 better in PublicLink (Alex Chen)
- Clarification of the process for creating custom client_id
(Mariano Absatz)
- Pcloud
- Return an early error when Put is called with an unknown size
(Nick Craig-Wood)
- Try harder to delete a failed upload (Nick Craig-Wood)
- S3
- Add Wasabi's AP-Northeast endpoint info (hota)
- Fix typo in s3 documentation (Greg Sadetsky)
- Seafile
- Fix 2fa config state machine (Fred)
- SFTP
- Remove spurious error message on --sftp-disable-concurrent-reads
(Nick Craig-Wood)
- Sugarsync
- Fix initial connection after config re-arrangement (Nick
Craig-Wood)
v1.56.0 - 2021-07-20
See commits
- New backends
- Uptobox (buengese)
- New commands
- serve docker (Antoine GIRARD) (Ivan Andreev)
- and accompanying docker volume plugin
- checksum to check files against a file of checksums (Ivan
Andreev)
- this is also available as rclone md5sum -C etc
- config touch: ensure config exists at configured location
(albertony)
- test changenotify: command to help debugging changenotify (Nick
Craig-Wood)
- Deprecations
- dbhashsum: Remove command deprecated a year ago (Ivan Andreev)
- cache: Deprecate cache backend (Ivan Andreev)
- New Features
- rework config system so it can be used non-interactively via cli
and rc API.
- See docs in config create
- This is a very big change to all the backends so may cause
breakages - please file bugs!
- librclone - export the rclone RC as a C library (lewisxy) (Nick
Craig-Wood)
- Link a C-API rclone shared object into your project
- Use the RC as an in memory interface
- Python example supplied
- Also supports Android and gomobile
- fs
- Add --disable-http2 for global http2 disable (Nick
Craig-Wood)
- Make --dump imply -vv (Alex Chen)
- Use binary prefixes for size and rate units (albertony)
- Use decimal prefixes for counts (albertony)
- Add google search widget to rclone.org (Ivan Andreev)
- accounting: Calculate rolling average speed (Haochen Tong)
- atexit: Terminate with non-zero status after receiving signal
(Michael Hanselmann)
- build
- Only run event-based workflow scripts under rclone repo with
manual override (Mathieu Carbou)
- Add Android build with gomobile (x0b)
- check: Log the hash in use like cryptcheck does (Nick
Craig-Wood)
- version: Print os/version, kernel and bitness (Ivan Andreev)
- config
- Prevent use of Windows reserved names in config file name
(albertony)
- Create config file in windows appdata directory by default
(albertony)
- Treat any config file paths with filename notfound as
memory-only config (albertony)
- Delay load config file (albertony)
- Replace defaultConfig with a thread-safe in-memory
implementation (Chris Macklin)
- Allow config create and friends to take key=value parameters
(Nick Craig-Wood)
- Fixed issues with flags/options set by environment vars.
(Ole Frost)
- fshttp: Implement graceful DSCP error handling (Tyson Moore)
- lib/http - provides an abstraction for a central http server
that services can bind routes to (Nolan Woods)
- Add --template config and flags to serve/data (Nolan Woods)
- Add default 404 handler (Nolan Woods)
- link: Use "off" value for unset expiry (Nick Craig-Wood)
- oauthutil: Raise fatal error if token expired without refresh
token (Alex Chen)
- rcat: Add --size flag for more efficient uploads of known size
(Nazar Mishturak)
- serve sftp: Add --stdio flag to serve via stdio (Tom)
- sync: Don't warn about --no-traverse when --files-from is set
(Nick Gaya)
- test makefiles
- Add --seed flag and make data generated repeatable (Nick
Craig-Wood)
- Add log levels and speed summary (Nick Craig-Wood)
- Bug Fixes
- accounting: Fix startTime of statsGroups.sum (Haochen Tong)
- cmd/ncdu: Fix out of range panic in delete (buengese)
- config
- Fix issues with memory-only config file paths (albertony)
- Fix in memory config not saving on the fly backend config
(Nick Craig-Wood)
- fshttp: Fix address parsing for DSCP (Tyson Moore)
- ncdu: Update termbox-go library to fix crash (Nick Craig-Wood)
- oauthutil: Fix old authorize result not recognised (Cnly)
- operations: Don't update timestamps of files in --compare-dest
(Nick Gaya)
- selfupdate: fix archive name on macos (Ivan Andreev)
- Mount
- Refactor before adding serve docker (Antoine GIRARD)
- VFS
- Add cache reset for --vfs-cache-max-size handling at cache poll
interval (Leo Luan)
- Fix modtime changing when reading file into cache (Nick
Craig-Wood)
- Avoid unnecessary subdir in cache path (albertony)
- Fix that umask option cannot be set as environment variable
(albertony)
- Do not print notice about missing poll-interval support when set
to 0 (albertony)
- Local
- Always use readlink to read symlink size for better
compatibility (Nick Craig-Wood)
- Add --local-unicode-normalization (and remove
--local-no-unicode-normalization) (Nick Craig-Wood)
- Skip entries removed concurrently with List() (Ivan Andreev)
- Crypt
- Support timestamped filenames from --b2-versions (Dominik
Mydlil)
- B2
- Don't include the bucket name in public link file prefixes
(Jeffrey Tolar)
- Fix versions and .files with no extension (Nick Craig-Wood)
- Factor version handling into lib/version (Dominik Mydlil)
- Box
- Use upload preflight check to avoid listings in file uploads
(Nick Craig-Wood)
- Return errors instead of calling log.Fatal with them (Nick
Craig-Wood)
- Drive
- Switch to the Drives API for looking up shared drives (Nick
Craig-Wood)
- Fix some google docs being treated as files (Nick Craig-Wood)
- Dropbox
- Add --dropbox-batch-mode flag to speed up uploading (Nick
Craig-Wood)
- Read the batch mode docs for more info
- Set visibility in link sharing when --expire is set (Nick
Craig-Wood)
- Simplify chunked uploads (Alexey Ivanov)
- Improve "own App IP" instructions (Ivan Andreev)
- Fichier
- Check if more than one upload link is returned (Nick Craig-Wood)
- Support downloading password protected files and folders
(Florian Penzkofer)
- Make error messages report text from the API (Nick Craig-Wood)
- Fix move of files in the same directory (Nick Craig-Wood)
- Check that we actually got a download token and retry if we
didn't (buengese)
- Filefabric
- Fix listing after change of from field from "int" to int. (Nick
Craig-Wood)
- FTP
- Make upload error 250 indicate success (Nick Craig-Wood)
- GCS
- Make compatible with gsutil's mtime metadata (database64128)
- Clean up time format constants (database64128)
- Google Photos
- Fix read only scope not being used properly (Nick Craig-Wood)
- HTTP
- Replace httplib with lib/http (Nolan Woods)
- Clean up Bind to better use middleware (Nolan Woods)
- Jottacloud
- Fix legacy auth with state based config system (buengese)
- Fix invalid url in output from link command (albertony)
- Add no versions option (buengese)
- Onedrive
- Add list_chunk option (Nick Gaya)
- Also report root error if unable to cancel multipart upload
(Cnly)
- Fix failed to configure: empty token found error (Nick
Craig-Wood)
- Make link return direct download link (Xuanchen Wu)
- S3
- Add --s3-no-head-object (Tatsuya Noyori)
- Remove WebIdentityRoleProvider to fix crash on auth (Nick
Craig-Wood)
- Don't check to see if remote is object if it ends with / (Nick
Craig-Wood)
- Add SeaweedFS (Chris Lu)
- Update Alibaba OSS endpoints (Chuan Zh)
- SFTP
- Fix performance regression by re-enabling concurrent writes
(Nick Craig-Wood)
- Expand tilde and environment variables in configured
known_hosts_file (albertony)
- Tardigrade
- Upgrade to uplink v1.4.6 (Caleb Case)
- Use negative offset (Caleb Case)
- Add warning about too many open files (acsfer)
- WebDAV
- Fix sharepoint auth over http (Nick Craig-Wood)
- Add headers option (Antoon Prins)
v1.55.1 - 2021-04-26
See commits
- Bug Fixes
- selfupdate
- Dont detect FUSE if build is static (Ivan Andreev)
- Add build tag noselfupdate (Ivan Andreev)
- sync: Fix incorrect error reported by graceful cutoff (Nick
Craig-Wood)
- install.sh: fix macOS arm64 download (Nick Craig-Wood)
- build: Fix version numbers in android branch builds (Nick
Craig-Wood)
- docs
- Contributing.md: update setup instructions for go1.16 (Nick
Gaya)
- WinFsp 2021 is out of beta (albertony)
- Minor cleanup of space around code section (albertony)
- Fixed some typos (albertony)
- VFS
- Fix a code path which allows dirty data to be removed causing
data loss (Nick Craig-Wood)
- Compress
- Fix compressed name regexp (buengese)
- Drive
- Fix backend copyid of google doc to directory (Nick Craig-Wood)
- Don't open browser when service account... (Ansh Mittal)
- Dropbox
- Add missing team_data.member scope for use with --impersonate
(Nick Craig-Wood)
- Fix About after scopes changes - rclone config reconnect needed
(Nick Craig-Wood)
- Fix Unable to decrypt returned paths from changeNotify (Nick
Craig-Wood)
- FTP
- Fix implicit TLS (Ivan Andreev)
- Onedrive
- Work around for random "Unable to initialize RPS" errors
(OleFrost)
- SFTP
- Revert sftp library to v1.12.0 from v1.13.0 to fix performance
regression (Nick Craig-Wood)
- Fix Update ReadFrom failed: failed to send packet: EOF errors
(Nick Craig-Wood)
- Zoho
- Fix error when region isn't set (buengese)
- Do not ask for mountpoint twice when using headless setup
(buengese)
v1.55.0 - 2021-03-31
See commits
- New commands
- selfupdate (Ivan Andreev)
- Allows rclone to update itself in-place or via a package
(using --package flag)
- Reads cryptographically signed signatures for non beta
releases
- Works on all OSes.
- test - these are test commands - use with care!
- histogram - Makes a histogram of file name characters.
- info - Discovers file name or other limitations for paths.
- makefiles - Make a random file hierarchy for testing.
- memory - Load all the objects at remote:path into memory and
report memory stats.
- New Features
- Connection strings
- Config parameters can now be passed as part of the remote
name as a connection string.
- For example, to do the equivalent of --drive-shared-with-me
use drive,shared_with_me:
- Make sure we don't save on the fly remote config to the
config file (Nick Craig-Wood)
- Make sure backends with additional config have a different
name for caching (Nick Craig-Wood)
- This work was sponsored by CERN, through the CS3MESH4EOSC
Project.
- CS3MESH4EOSC has received funding from the European
Union’s Horizon 2020
- research and innovation programme under Grant Agreement
no. 863353.
- build
- Update go build version to go1.16 and raise minimum go
version to go1.13 (Nick Craig-Wood)
- Make a macOS ARM64 build to support Apple Silicon (Nick
Craig-Wood)
- Install macfuse 4.x instead of osxfuse 3.x (Nick Craig-Wood)
- Use GO386=softfloat instead of deprecated GO386=387 for 386
builds (Nick Craig-Wood)
- Disable IOS builds for the time being (Nick Craig-Wood)
- Androids builds made with up to date NDK (x0b)
- Add an rclone user to the Docker image but don't use it by
default (cynthia kwok)
- dedupe: Make largest directory primary to minimize data moved
(Saksham Khanna)
- config
- Wrap config library in an interface (Fionera)
- Make config file system pluggable (Nick Craig-Wood)
- --config "" or "/notfound" for in memory config only (Nick
Craig-Wood)
- Clear fs cache of stale entries when altering config (Nick
Craig-Wood)
- copyurl: Add option to print resulting auto-filename (albertony)
- delete: Make --rmdirs obey the filters (Nick Craig-Wood)
- docs - many fixes and reworks from edwardxml, albertony, pvalls,
Ivan Andreev, Evan Harris, buengese, Alexey Tabakman
- encoder/filename - add SCSU as tables (Klaus Post)
- Add multiple paths support to --compare-dest and --copy-dest
flag (K265)
- filter: Make --exclude "dir/" equivalent to --exclude "dir/**"
(Nick Craig-Wood)
- fshttp: Add DSCP support with --dscp for QoS with differentiated
services (Max Sum)
- lib/cache: Add Delete and DeletePrefix methods (Nick Craig-Wood)
- lib/file
- Make pre-allocate detect disk full errors and return them
(Nick Craig-Wood)
- Don't run preallocate concurrently (Nick Craig-Wood)
- Retry preallocate on EINTR (Nick Craig-Wood)
- operations: Made copy and sync operations obey a RetryAfterError
(Ankur Gupta)
- rc
- Add string alternatives for setting options over the rc
(Nick Craig-Wood)
- Add options/local to see the options configured in the
context (Nick Craig-Wood)
- Add _config parameter to set global config for just this rc
call (Nick Craig-Wood)
- Implement passing filter config with _filter parameter (Nick
Craig-Wood)
- Add fscache/clear and fscache/entries to control the fs
cache (Nick Craig-Wood)
- Avoid +Inf value for speed in core/stats (albertony)
- Add a full set of stats to core/stats (Nick Craig-Wood)
- Allow fs= params to be a JSON blob (Nick Craig-Wood)
- rcd: Added systemd notification during the rclone rcd command.
(Naveen Honest Raj)
- rmdirs: Make --rmdirs obey the filters (Nick Craig-Wood)
- version: Show build tags and type of executable (Ivan Andreev)
- Bug Fixes
- install.sh: make it fail on download errors (Ivan Andreev)
- Fix excessive retries missing --max-duration timeout (Nick
Craig-Wood)
- Fix crash when --low-level-retries=0 (Nick Craig-Wood)
- Fix failed token refresh on mounts created via the rc (Nick
Craig-Wood)
- fshttp: Fix bandwidth limiting after bad merge (Nick Craig-Wood)
- lib/atexit
- Unregister interrupt handler once it has fired so users can
interrupt again (Nick Craig-Wood)
- Fix occasional failure to unmount with CTRL-C (Nick
Craig-Wood)
- Fix deadlock calling Finalise while Run is running (Nick
Craig-Wood)
- lib/rest: Fix multipart uploads not stopping on context cancel
(Nick Craig-Wood)
- Mount
- Allow mounting to root directory on windows (albertony)
- Improved handling of relative paths on windows (albertony)
- Fix unicode issues with accented characters on macOS (Nick
Craig-Wood)
- Docs: document the new FileSecurity option in WinFsp 2021
(albertony)
- Docs: add note about volume path syntax on windows (albertony)
- Fix caching of old directories after renaming them (Nick
Craig-Wood)
- Update cgofuse to the latest version to bring in macfuse 4 fix
(Nick Craig-Wood)
- VFS
- --vfs-used-is-size to report used space using recursive scan
(tYYGH)
- Don't set modification time if it was already correct (Nick
Craig-Wood)
- Fix Create causing windows explorer to truncate files on CTRL-C
CTRL-V (Nick Craig-Wood)
- Fix modtimes not updating when writing via cache (Nick
Craig-Wood)
- Fix modtimes changing by fractional seconds after upload (Nick
Craig-Wood)
- Fix modtime set if --vfs-cache-mode writes/full and no write
(Nick Craig-Wood)
- Rename files in cache and cancel uploads on directory rename
(Nick Craig-Wood)
- Fix directory renaming by renaming dirs cached in memory (Nick
Craig-Wood)
- Local
- Add flag --local-no-preallocate (David Sze)
- Make nounc an advanced option except on Windows (albertony)
- Don't ignore preallocate disk full errors (Nick Craig-Wood)
- Cache
- Add --fs-cache-expire-duration to control the fs cache (Nick
Craig-Wood)
- Crypt
- Add option to not encrypt data (Vesnyx)
- Log hash ok on upload (albertony)
- Azure Blob
- Add container public access level support. (Manish Kumar)
- B2
- Fix HTML files downloaded via cloudflare (Nick Craig-Wood)
- Box
- Fix transfers getting stuck on token expiry after API change
(Nick Craig-Wood)
- Chunker
- Partially implement no-rename transactions (Maxwell Calman)
- Drive
- Don't stop server side copy if couldn't read description (Nick
Craig-Wood)
- Pass context on to drive SDK - to help with cancellation (Nick
Craig-Wood)
- Dropbox
- Add polling for changes support (Robert Thomas)
- Make --timeout 0 work properly (Nick Craig-Wood)
- Raise priority of rate limited message to INFO to make it more
noticeable (Nick Craig-Wood)
- Fichier
- Implement copy & move (buengese)
- Implement public link (buengese)
- FTP
- Implement Shutdown method (Nick Craig-Wood)
- Close idle connections after --ftp-idle-timeout (1m by default)
(Nick Craig-Wood)
- Make --timeout 0 work properly (Nick Craig-Wood)
- Add --ftp-close-timeout flag for use with awkward ftp servers
(Nick Craig-Wood)
- Retry connections and logins on 421 errors (Nick Craig-Wood)
- Hdfs
- Fix permissions for when directory is created (Lucas Messenger)
- Onedrive
- Make --timeout 0 work properly (Nick Craig-Wood)
- S3
- Fix --s3-profile which wasn't working (Nick Craig-Wood)
- SFTP
- Close idle connections after --sftp-idle-timeout (1m by default)
(Nick Craig-Wood)
- Fix "file not found" errors for read once servers (Nick
Craig-Wood)
- Fix SetModTime stat failed: object not found with
--sftp-set-modtime=false (Nick Craig-Wood)
- Swift
- Update github.com/ncw/swift to v2.0.0 (Nick Craig-Wood)
- Implement copying large objects (nguyenhuuluan434)
- Union
- Fix crash when using epff policy (Nick Craig-Wood)
- Fix union attempting to update files on a read only file system
(Nick Craig-Wood)
- Refactor to use fspath.SplitFs instead of fs.ParseRemote (Nick
Craig-Wood)
- Fix initialisation broken in refactor (Nick Craig-Wood)
- WebDAV
- Add support for sharepoint with NTLM authentication (Rauno Ots)
- Make sharepoint-ntlm docs more consistent (Alex Chen)
- Improve terminology in sharepoint-ntlm docs (Ivan Andreev)
- Disable HTTP/2 for NTLM authentication (georne)
- Fix sharepoint-ntlm error 401 for parallel actions (Ivan
Andreev)
- Check that purged directory really exists (Ivan Andreev)
- Yandex
- Make --timeout 0 work properly (Nick Craig-Wood)
- Zoho
- Replace client id - you will need to rclone config reconnect
after this (buengese)
- Add forgotten setupRegion() to NewFs - this finally fixes
regions other than EU (buengese)
v1.54.1 - 2021-03-08
See commits
- Bug Fixes
- accounting: Fix --bwlimit when up or down is off (Nick
Craig-Wood)
- docs
- Fix nesting of brackets and backticks in ftp docs
(edwardxml)
- Fix broken link in sftp page (edwardxml)
- Fix typo in crypt.md (Romeo Kienzler)
- Changelog: Correct link to digitalis.io (Alex JOST)
- Replace #file-caching with #vfs-file-caching (Miron
Veryanskiy)
- Convert bogus example link to code (edwardxml)
- Remove dead link from rc.md (edwardxml)
- rc: Sync,copy,move: document createEmptySrcDirs parameter (Nick
Craig-Wood)
- lsjson: Fix unterminated JSON in the presence of errors (Nick
Craig-Wood)
- Mount
- Fix mount dropping on macOS by setting --daemon-timeout 10m
(Nick Craig-Wood)
- VFS
- Document simultaneous usage with the same cache shouldn't be
used (Nick Craig-Wood)
- B2
- Automatically raise upload cutoff to avoid spurious error (Nick
Craig-Wood)
- Fix failed to create file system with application key limited to
a prefix (Nick Craig-Wood)
- Drive
- Refer to Shared Drives instead of Team Drives (Nick Craig-Wood)
- Dropbox
- Add scopes to oauth request and optionally "members.read" (Nick
Craig-Wood)
- S3
- Fix failed to create file system with folder level permissions
policy (Nick Craig-Wood)
- Fix Wasabi HEAD requests returning stale data by using only 1
transport (Nick Craig-Wood)
- Fix shared_credentials_file auth (Dmitry Chepurovskiy)
- Add --s3-no-head to reducing costs docs (Nick Craig-Wood)
- Union
- Fix mkdir at root with remote:/ (Nick Craig-Wood)
- Zoho
- Fix custom client id's (buengese)
v1.54.0 - 2021-02-02
See commits
- New backends
- Compression remote (experimental) (buengese)
- Enterprise File Fabric (Nick Craig-Wood)
- This work was sponsored by Storage Made Easy
- HDFS (Hadoop Distributed File System) (Yury Stankevich)
- Zoho workdrive (buengese)
- New Features
- Deglobalise the config (Nick Craig-Wood)
- Global config now read from the context
- This will enable passing of global config via the rc
- This work was sponsored by Digitalis
- Add --bwlimit for upload and download (Nick Craig-Wood)
- Obey bwlimit in http Transport for better limiting
- Enhance systemd integration (Hekmon)
- log level identification, manual activation with flag,
automatic systemd launch detection
- Don't compile systemd log integration for non unix systems
(Benjamin Gustin)
- Add a --download flag to md5sum/sha1sum/hashsum to force rclone
to download and hash files locally (lostheli)
- Add --progress-terminal-title to print ETA to terminal title
(LaSombra)
- Make backend env vars show in help as the defaults for backend
flags (Nick Craig-Wood)
- build
- Raise minimum go version to go1.12 (Nick Craig-Wood)
- dedupe
- Add --by-hash to dedupe on content hash not file name (Nick
Craig-Wood)
- Add --dedupe-mode list to just list dupes, changing nothing
(Nick Craig-Wood)
- Add warning if used on a remote which can't have duplicate
names (Nick Craig-Wood)
- fs
- Add Shutdown optional method for backends (Nick Craig-Wood)
- When using --files-from check files concurrently (zhucan)
- Accumulate stats when using --dry-run (Ingo Weiss)
- Always show stats when using --dry-run or --interactive
(Nick Craig-Wood)
- Add support for flag --no-console on windows to hide the
console window (albertony)
- genautocomplete: Add support to output to stdout (Ingo)
- ncdu
- Highlight read errors instead of aborting (Claudio
Bantaloukas)
- Add sort by average size in directory (Adam Plánský)
- Add toggle option for average s3ize in directory - key 'a'
(Adam Plánský)
- Add empty folder flag into ncdu browser (Adam Plánský)
- Add ! (error) and . (unreadable) file flags to go with e
(empty) (Nick Craig-Wood)
- obscure: Make rclone obscure - ignore newline at end of line
(Nick Craig-Wood)
- operations
- Add logs when need to upload files to set mod times (Nick
Craig-Wood)
- Move and copy log name of the destination object in verbose
(Adam Plánský)
- Add size if known to skipped items and JSON log (Nick
Craig-Wood)
- rc
- Prefer actual listener address if using ":port" or "addr:0"
only (Nick Craig-Wood)
- Add listener for finished jobs (Aleksandar Jankovic)
- serve ftp: Add options to enable TLS (Deepak Sah)
- serve http/webdav: Redirect requests to the base url without the
/ (Nick Craig-Wood)
- serve restic: Implement object cache (Nick Craig-Wood)
- stats: Add counter for deleted directories (Nick Craig-Wood)
- sync: Only print "There was nothing to transfer" if no errors
(Nick Craig-Wood)
- webui
- Prompt user for updating webui if an update is available
(Chaitanya Bankanhal)
- Fix plugins initialization (negative0)
- Bug Fixes
- fs
- Fix nil pointer on copy & move operations directly to remote
(Anagh Kumar Baranwal)
- Fix parsing of .. when joining remotes (Nick Craig-Wood)
- log: Fix enabling systemd logging when using --log-file (Nick
Craig-Wood)
- check
- Make the error count match up in the log message (Nick
Craig-Wood)
- move: Fix data loss when source and destination are the same
object (Nick Craig-Wood)
- operations
- Fix --cutoff-mode hard not cutting off immediately (Nick
Craig-Wood)
- Fix --immutable error message (Nick Craig-Wood)
- sync
- Fix --cutoff-mode soft & cautious so it doesn't end the
transfer early (Nick Craig-Wood)
- Fix --immutable errors retrying many times (Nick Craig-Wood)
- Docs
- Many fixes and a rewrite of the filtering docs (edwardxml)
- Many spelling and grammar fixes (Josh Soref)
- Doc fixes for commands delete, purge, rmdir, rmdirs and mount
(albertony)
- And thanks to these people for many doc fixes too numerous to
list
- Ameer Dawood, Antoine GIRARD, Bob Bagwill, Christopher
Stewart
- CokeMine, David, Dov Murik, Durval Menezes, Evan Harris,
gtorelly
- Ilyess Bachiri, Janne Johansson, Kerry Su, Marcin Zelent,
- Martin Michlmayr, Milly, Sơn Trần-Nguyễn
- Mount
- Update systemd status with cache stats (Hekmon)
- Disable bazil/fuse based mount on macOS (Nick Craig-Wood)
- Make rclone mount actually run rclone cmount under macOS
(Nick Craig-Wood)
- Implement mknod to make NFS file creation work (Nick Craig-Wood)
- Make sure we don't call umount more than once (Nick Craig-Wood)
- More user friendly mounting as network drive on windows
(albertony)
- Detect if uid or gid are set in same option string: -o
uid=123,gid=456 (albertony)
- Don't attempt to unmount if fs has been destroyed already (Nick
Craig-Wood)
- VFS
- Fix virtual entries causing deleted files to still appear (Nick
Craig-Wood)
- Fix "file already exists" error for stale cache files (Nick
Craig-Wood)
- Fix file leaks with --vfs-cache-mode full and --buffer-size 0
(Nick Craig-Wood)
- Fix invalid cache path on windows when using :backend: as remote
(albertony)
- Local
- Continue listing files/folders when a circular symlink is
detected (Manish Gupta)
- New flag --local-zero-size-links to fix sync on some virtual
filesystems (Riccardo Iaconelli)
- Azure Blob
- Add support for service principals (James Lim)
- Add support for managed identities (Brad Ackerman)
- Add examples for access tier (Bob Pusateri)
- Utilize the streaming capabilities from the SDK for multipart
uploads (Denis Neuling)
- Fix setting of mime types (Nick Craig-Wood)
- Fix crash when listing outside a SAS URL's root (Nick
Craig-Wood)
- Delete archive tier blobs before update if
--azureblob-archive-tier-delete (Nick Craig-Wood)
- Fix crash on startup (Nick Craig-Wood)
- Fix memory usage by upgrading the SDK to v0.13.0 and
implementing a TransferManager (Nick Craig-Wood)
- Require go1.14+ to compile due to SDK changes (Nick Craig-Wood)
- B2
- Make NewObject use less expensive API calls (Nick Craig-Wood)
- This will improve --files-from and restic serve in
particular
- Fixed crash on an empty file name (lluuaapp)
- Box
- Fix NewObject for files that differ in case (Nick Craig-Wood)
- Fix finding directories in a case insensitive way (Nick
Craig-Wood)
- Chunker
- Skip long local hashing, hash in-transit (fixes) (Ivan Andreev)
- Set Features ReadMimeType to false as Object.MimeType not
supported (Nick Craig-Wood)
- Fix case-insensitive NewObject, test metadata detection (Ivan
Andreev)
- Drive
- Implement rclone backend copyid command for copying files by ID
(Nick Craig-Wood)
- Added flag --drive-stop-on-download-limit to stop transfers when
the download limit is exceeded (Anagh Kumar Baranwal)
- Implement CleanUp workaround for team drives (buengese)
- Allow shortcut resolution and creation to be retried (Nick
Craig-Wood)
- Log that emptying the trash can take some time (Nick Craig-Wood)
- Add xdg office icons to xdg desktop files (Pau
Rodriguez-Estivill)
- Dropbox
- Add support for viewing shared files and folders (buengese)
- Enable short lived access tokens (Nick Craig-Wood)
- Implement IDer on Objects so rclone lsf etc can read the IDs
(buengese)
- Set Features ReadMimeType to false as Object.MimeType not
supported (Nick Craig-Wood)
- Make malformed_path errors from too long files not retriable
(Nick Craig-Wood)
- Test file name length before upload to fix upload loop (Nick
Craig-Wood)
- Fichier
- Set Features ReadMimeType to true as Object.MimeType is
supported (Nick Craig-Wood)
- FTP
- Add --ftp-disable-msld option to ignore MLSD for really old
servers (Nick Craig-Wood)
- Make --tpslimit apply (Nick Craig-Wood)
- Google Cloud Storage
- Storage class object header support (Laurens Janssen)
- Fix anonymous client to use rclone's HTTP client (Nick
Craig-Wood)
- Fix
Entry doesn't belong in directory "" (same as directory) - ignoring
(Nick Craig-Wood)
- Googlephotos
- New flag --gphotos-include-archived to show archived photos as
well (Nicolas Rueff)
- Jottacloud
- Don't erroneously report support for writing mime types
(buengese)
- Add support for Telia Cloud (Patrik Nordlén)
- Mailru
- Accept special folders eg camera-upload (Ivan Andreev)
- Avoid prehashing of large local files (Ivan Andreev)
- Fix uploads after recent changes on server (Ivan Andreev)
- Fix range requests after June 2020 changes on server (Ivan
Andreev)
- Fix invalid timestamp on corrupted files (fixes) (Ivan Andreev)
- Remove deprecated protocol quirks (Ivan Andreev)
- Memory
- Fix setting of mime types (Nick Craig-Wood)
- Onedrive
- Add support for China region operated by 21vianet and other
regional suppliers (NyaMisty)
- Warn on gateway timeout errors (Nick Craig-Wood)
- Fall back to normal copy if server-side copy unavailable (Alex
Chen)
- Fix server-side copy completely disabled on OneDrive for
Business (Cnly)
- (business only) workaround to replace existing file on
server-side copy (Alex Chen)
- Enhance link creation with expiry, scope, type and password
(Nick Craig-Wood)
- Remove % and # from the set of encoded characters (Alex Chen)
- Support addressing site by server-relative URL (kice)
- Opendrive
- Fix finding directories in a case insensitive way (Nick
Craig-Wood)
- Pcloud
- Fix setting of mime types (Nick Craig-Wood)
- Premiumizeme
- Fix finding directories in a case insensitive way (Nick
Craig-Wood)
- Qingstor
- Fix error propagation in CleanUp (Nick Craig-Wood)
- Fix rclone cleanup (Nick Craig-Wood)
- S3
- Added --s3-disable-http2 to disable http/2 (Anagh Kumar
Baranwal)
- Complete SSE-C implementation (Nick Craig-Wood)
- Fix hashes on small files with AWS:KMS and SSE-C (Nick
Craig-Wood)
- Add MD5 metadata to objects uploaded with SSE-AWS/SSE-C
(Nick Craig-Wood)
- Add --s3-no-head parameter to minimise transactions on upload
(Nick Craig-Wood)
- Update docs with a Reducing Costs section (Nick Craig-Wood)
- Added error handling for error code 429 indicating too many
requests (Anagh Kumar Baranwal)
- Add requester pays option (kelv)
- Fix copy multipart with v2 auth failing with
'SignatureDoesNotMatch' (Louis Koo)
- SFTP
- Allow cert based auth via optional pubkey (Stephen Harris)
- Allow user to optionally check server hosts key to add security
(Stephen Harris)
- Defer asking for user passwords until the SSH connection
succeeds (Stephen Harris)
- Remember entered password in AskPass mode (Stephen Harris)
- Implement Shutdown method (Nick Craig-Wood)
- Implement keyboard interactive authentication (Nick Craig-Wood)
- Make --tpslimit apply (Nick Craig-Wood)
- Implement --sftp-use-fstat for unusual SFTP servers (Nick
Craig-Wood)
- Sugarsync
- Fix NewObject for files that differ in case (Nick Craig-Wood)
- Fix finding directories in a case insensitive way (Nick
Craig-Wood)
- Swift
- Fix deletion of parts of Static Large Object (SLO) (Nguyễn Hữu
Luân)
- Ensure partially uploaded large files are uploaded unless
--swift-leave-parts-on-error (Nguyễn Hữu Luân)
- Tardigrade
- Upgrade to uplink v1.4.1 (Caleb Case)
- WebDAV
- Updated docs to show streaming to nextcloud is working (Durval
Menezes)
- Yandex
- Set Features WriteMimeType to false as Yandex ignores mime types
(Nick Craig-Wood)
v1.53.4 - 2021-01-20
See commits
- Bug Fixes
- accounting: Fix data race in Transferred() (Maciej Zimnoch)
- build
- Stop tagged releases making a current beta (Nick Craig-Wood)
- Upgrade docker buildx action (Matteo Pietro Dazzi)
- Add -buildmode to cross-compile.go (Nick Craig-Wood)
- Fix docker build by upgrading ilteoood/docker_buildx (Nick
Craig-Wood)
- Revert GitHub actions brew fix since this is now fixed (Nick
Craig-Wood)
- Fix brew install --cask syntax for macOS build (Nick
Craig-Wood)
- Update nfpm syntax to fix build of .deb/.rpm packages (Nick
Craig-Wood)
- Fix for Windows build errors (Ivan Andreev)
- fs: Parseduration: fixed tests to use UTC time (Ankur Gupta)
- fshttp: Prevent overlap of HTTP headers in logs (Nathan Collins)
- rc
- Fix core/command giving 500 internal error (Nick Craig-Wood)
- Add Copy method to rc.Params (Nick Craig-Wood)
- Fix 500 error when marshalling errors from core/command
(Nick Craig-Wood)
- plugins: Create plugins files only if webui is enabled.
(negative0)
- serve http: Fix serving files of unknown length (Nick
Craig-Wood)
- serve sftp: Fix authentication on one connection blocking others
(Nick Craig-Wood)
- Mount
- Add optional brew tag to throw an error when using mount in the
binaries installed via Homebrew (Anagh Kumar Baranwal)
- Add "." and ".." to directories to match cmount and expectations
(Nick Craig-Wood)
- VFS
- Make cache dir absolute before using it to fix path too long
errors (Nick Craig-Wood)
- Chunker
- Improve detection of incompatible metadata (Ivan Andreev)
- Google Cloud Storage
- Fix server side copy of large objects (Nick Craig-Wood)
- Jottacloud
- Fix token renewer to fix long uploads (Nick Craig-Wood)
- Fix token refresh failed: is not a regular file error (Nick
Craig-Wood)
- Pcloud
- Only use SHA1 hashes in EU region (Nick Craig-Wood)
- Sharefile
- Undo Fix backend due to API swapping integers for strings (Nick
Craig-Wood)
- WebDAV
- Fix Open Range requests to fix 4shared mount (Nick Craig-Wood)
- Add "Depth: 0" to GET requests to fix bitrix (Nick Craig-Wood)
v1.53.3 - 2020-11-19
See commits
- Bug Fixes
- random: Fix incorrect use of math/rand instead of crypto/rand
CVE-2020-28924 (Nick Craig-Wood)
- Passwords you have generated with rclone config may be
insecure
- See issue #4783 for more details and a checking tool
- random: Seed math/rand in one place with crypto strong seed
(Nick Craig-Wood)
- VFS
- Fix vfs/refresh calls with fs= parameter (Nick Craig-Wood)
- Sharefile
- Fix backend due to API swapping integers for strings (Nick
Craig-Wood)
v1.53.2 - 2020-10-26
See commits
- Bug Fixes
- accounting
- Fix incorrect speed and transferTime in core/stats (Nick
Craig-Wood)
- Stabilize display order of transfers on Windows (Nick
Craig-Wood)
- operations
- Fix use of --suffix without --backup-dir (Nick Craig-Wood)
- Fix spurious "--checksum is in use but the source and
destination have no hashes in common" (Nick Craig-Wood)
- build
- Work around GitHub actions brew problem (Nick Craig-Wood)
- Stop using set-env and set-path in the GitHub actions (Nick
Craig-Wood)
- Mount
- mount2: Fix the swapped UID / GID values (Russell Cattelan)
- VFS
- Detect and recover from a file being removed externally from the
cache (Nick Craig-Wood)
- Fix a deadlock vulnerability in downloaders.Close (Leo Luan)
- Fix a race condition in retryFailedResets (Leo Luan)
- Fix missed concurrency control between some item operations and
reset (Leo Luan)
- Add exponential backoff during ENOSPC retries (Leo Luan)
- Add a missed update of used cache space (Leo Luan)
- Fix --no-modtime to not attempt to set modtimes (as documented)
(Nick Craig-Wood)
- Local
- Fix sizes and syncing with --links option on Windows (Nick
Craig-Wood)
- Chunker
- Disable ListR to fix missing files on GDrive (workaround) (Ivan
Andreev)
- Fix upload over crypt (Ivan Andreev)
- Fichier
- Increase maximum file size from 100GB to 300GB (gyutw)
- Jottacloud
- Remove clientSecret from config when upgrading to token based
authentication (buengese)
- Avoid double url escaping of device/mountpoint (albertony)
- Remove DirMove workaround as it's not required anymore - also
(buengese)
- Mailru
- Fix uploads after recent changes on server (Ivan Andreev)
- Fix range requests after june changes on server (Ivan Andreev)
- Fix invalid timestamp on corrupted files (fixes) (Ivan Andreev)
- Onedrive
- Fix disk usage for sharepoint (Nick Craig-Wood)
- S3
- Add missing regions for AWS (Anagh Kumar Baranwal)
- Seafile
- Fix accessing libraries > 2GB on 32 bit systems (Muffin King)
- SFTP
- Always convert the checksum to lower case (buengese)
- Union
- Create root directories if none exist (Nick Craig-Wood)
v1.53.1 - 2020-09-13
See commits
- Bug Fixes
- accounting: Remove new line from end of --stats-one-line display
(Nick Craig-Wood)
- check
- Add back missing --download flag (Nick Craig-Wood)
- Fix docs (Nick Craig-Wood)
- docs
- Note --log-file does append (Nick Craig-Wood)
- Add full stops for consistency in rclone --help (edwardxml)
- Add Tencent COS to s3 provider list (wjielai)
- Updated mount command to reflect that it requires Go 1.13 or
newer (Evan Harris)
- jottacloud: Mention that uploads from local disk will not
need to cache files to disk for md5 calculation (albertony)
- Fix formatting of rc docs page (Nick Craig-Wood)
- build
- Include vendor tar ball in release and fix startdev (Nick
Craig-Wood)
- Fix "Illegal instruction" error for ARMv6 builds (Nick
Craig-Wood)
- Fix architecture name in ARMv7 build (Nick Craig-Wood)
- VFS
- Fix spurious error "vfs cache: failed to _ensure cache EOF"
(Nick Craig-Wood)
- Log an ERROR if we fail to set the file to be sparse (Nick
Craig-Wood)
- Local
- Log an ERROR if we fail to set the file to be sparse (Nick
Craig-Wood)
- Drive
- Re-adds special oauth help text (Tim Gallant)
- Opendrive
- Do not retry 400 errors (Evan Harris)
v1.53.0 - 2020-09-02
See commits
- New Features
- The VFS layer was heavily reworked for this release - see below
for more details
- Interactive mode -i/--interactive for destructive operations
(fishbullet)
- Add --bwlimit-file flag to limit speeds of individual file
transfers (Nick Craig-Wood)
- Transfers are sorted by start time in the stats and progress
output (Max Sum)
- Make sure backends expand ~ and environment vars in file names
they use (Nick Craig-Wood)
- Add --refresh-times flag to set modtimes on hashless backends
(Nick Craig-Wood)
- build
- Remove vendor directory in favour of Go modules (Nick
Craig-Wood)
- Build with go1.15.x by default (Nick Craig-Wood)
- Drop macOS 386 build as it is no longer supported by go1.15
(Nick Craig-Wood)
- Add ARMv7 to the supported builds (Nick Craig-Wood)
- Enable rclone cmount on macOS (Nick Craig-Wood)
- Make rclone build with gccgo (Nick Craig-Wood)
- Make rclone build with wasm (Nick Craig-Wood)
- Change beta numbering to be semver compatible (Nick
Craig-Wood)
- Add file properties and icon to Windows executable
(albertony)
- Add experimental interface for integrating rclone into
browsers (Nick Craig-Wood)
- lib: Add file name compression (Klaus Post)
- rc
- Allow installation and use of plugins and test plugins with
rclone-webui (Chaitanya Bankanhal)
- Add reverse proxy pluginsHandler for serving plugins
(Chaitanya Bankanhal)
- Add mount/listmounts option for listing current mounts
(Chaitanya Bankanhal)
- Add operations/uploadfile to upload a file through rc using
encoding multipart/form-data (Chaitanya Bankanhal)
- Add core/command to execute rclone terminal commands.
(Chaitanya Bankanhal)
- rclone check
- Add reporting of filenames for same/missing/changed (Nick
Craig-Wood)
- Make check command obey --dry-run/-i/--interactive (Nick
Craig-Wood)
- Make check do --checkers files concurrently (Nick
Craig-Wood)
- Retry downloads if they fail when using the --download flag
(Nick Craig-Wood)
- Make it show stats by default (Nick Craig-Wood)
- rclone obscure: Allow obscure command to accept password on
STDIN (David Ibarra)
- rclone config
- Set RCLONE_CONFIG_DIR for use in config files and
subprocesses (Nick Craig-Wood)
- Reject remote names starting with a dash. (jtagcat)
- rclone cryptcheck: Add reporting of filenames for
same/missing/changed (Nick Craig-Wood)
- rclone dedupe: Make it obey the --size-only flag for duplicate
detection (Nick Craig-Wood)
- rclone link: Add --expire and --unlink flags (Roman Kredentser)
- rclone mkdir: Warn when using mkdir on remotes which can't have
empty directories (Nick Craig-Wood)
- rclone rc: Allow JSON parameters to simplify command line usage
(Nick Craig-Wood)
- rclone serve ftp
- Don't compile on < go1.13 after dependency update (Nick
Craig-Wood)
- Add error message if auth proxy fails (Nick Craig-Wood)
- Use refactored goftp.io/server library for binary shrink
(Nick Craig-Wood)
- rclone serve restic: Expose interfaces so that rclone can be
used as a library from within restic (Jack)
- rclone sync: Add --track-renames-strategy leaf (Nick Craig-Wood)
- rclone touch: Add ability to set nanosecond resolution times
(Nick Craig-Wood)
- rclone tree: Remove -i shorthand for --noindent as it conflicts
with -i/--interactive (Nick Craig-Wood)
- Bug Fixes
- accounting
- Fix documentation for speed/speedAvg (Nick Craig-Wood)
- Fix elapsed time not show actual time since beginning
(Chaitanya Bankanhal)
- Fix deadlock in stats printing (Nick Craig-Wood)
- build
- Fix file handle leak in GitHub release tool (Garrett Squire)
- rclone check: Fix successful retries with --download counting
errors (Nick Craig-Wood)
- rclone dedupe: Fix logging to be easier to understand (Nick
Craig-Wood)
- Mount
- Warn macOS users that mount implementation is changing (Nick
Craig-Wood)
- to test the new implementation use rclone cmount instead of
rclone mount
- this is because the library rclone uses has dropped macOS
support
- rc interface
- Add call for unmount all (Chaitanya Bankanhal)
- Make mount/mount remote control take vfsOpt option (Nick
Craig-Wood)
- Add mountOpt to mount/mount (Nick Craig-Wood)
- Add VFS and Mount options to mount/listmounts (Nick
Craig-Wood)
- Catch panics in cgofuse initialization and turn into error
messages (Nick Craig-Wood)
- Always supply stat information in Readdir (Nick Craig-Wood)
- Add support for reading unknown length files using direct IO
(Windows) (Nick Craig-Wood)
- Fix On Windows don't add -o uid/gid=-1 if user supplies
-o uid/gid. (Nick Craig-Wood)
- Fix macOS losing directory contents in cmount (Nick Craig-Wood)
- Fix volume name broken in recent refactor (Nick Craig-Wood)
- VFS
- Implement partial reads for --vfs-cache-mode full (Nick
Craig-Wood)
- Add --vfs-writeback option to delay writes back to cloud storage
(Nick Craig-Wood)
- Add --vfs-read-ahead parameter for use with
--vfs-cache-mode full (Nick Craig-Wood)
- Restart pending uploads on restart of the cache (Nick
Craig-Wood)
- Support synchronous cache space recovery upon ENOSPC (Leo Luan)
- Allow ReadAt and WriteAt to run concurrently with themselves
(Nick Craig-Wood)
- Change modtime of file before upload to current (Rob Calistri)
- Recommend --vfs-cache-modes writes on backends which can't
stream (Nick Craig-Wood)
- Add an optional fs parameter to vfs rc methods (Nick Craig-Wood)
- Fix errors when using > 260 char files in the cache in Windows
(Nick Craig-Wood)
- Fix renaming of items while they are being uploaded (Nick
Craig-Wood)
- Fix very high load caused by slow directory listings (Nick
Craig-Wood)
- Fix renamed files not being uploaded with
--vfs-cache-mode minimal (Nick Craig-Wood)
- Fix directory locking caused by slow directory listings (Nick
Craig-Wood)
- Fix saving from chrome without --vfs-cache-mode writes (Nick
Craig-Wood)
- Local
- Add --local-no-updated to provide a consistent view of changing
objects (Nick Craig-Wood)
- Add --local-no-set-modtime option to prevent modtime changes
(tyhuber1)
- Fix race conditions updating and reading Object metadata (Nick
Craig-Wood)
- Cache
- Make any created backends be cached to fix rc problems (Nick
Craig-Wood)
- Fix dedupe on caches wrapping drives (Nick Craig-Wood)
- Crypt
- Add --crypt-server-side-across-configs flag (Nick Craig-Wood)
- Make any created backends be cached to fix rc problems (Nick
Craig-Wood)
- Alias
- Make any created backends be cached to fix rc problems (Nick
Craig-Wood)
- Azure Blob
- Don't compile on < go1.13 after dependency update (Nick
Craig-Wood)
- B2
- Implement server-side copy for files > 5GB (Nick Craig-Wood)
- Cancel in progress multipart uploads and copies on rclone exit
(Nick Craig-Wood)
- Note that b2's encoding now allows but rclone's hasn't changed
(Nick Craig-Wood)
- Fix transfers when using download_url (Nick Craig-Wood)
- Box
- Implement rclone cleanup (buengese)
- Cancel in progress multipart uploads and copies on rclone exit
(Nick Craig-Wood)
- Allow authentication with access token (David)
- Chunker
- Make any created backends be cached to fix rc problems (Nick
Craig-Wood)
- Drive
- Add rclone backend drives to list shared drives (teamdrives)
(Nick Craig-Wood)
- Implement rclone backend untrash (Nick Craig-Wood)
- Work around drive bug which didn't set modtime of copied docs
(Nick Craig-Wood)
- Added --drive-starred-only to only show starred files (Jay
McEntire)
- Deprecate --drive-alternate-export as it is no longer needed
(themylogin)
- Fix duplication of Google docs on server-side copy (Nick
Craig-Wood)
- Fix "panic: send on closed channel" when recycling dir entries
(Nick Craig-Wood)
- Dropbox
- Add copyright detector info in limitations section in the docs
(Alex Guerrero)
- Fix rclone link by removing expires parameter (Nick Craig-Wood)
- Fichier
- Detect Flood detected: IP Locked error and sleep for 30s (Nick
Craig-Wood)
- FTP
- Add explicit TLS support (Heiko Bornholdt)
- Add support for --dump bodies and --dump auth for debugging
(Nick Craig-Wood)
- Fix interoperation with pure-ftpd (Nick Craig-Wood)
- Google Cloud Storage
- Add support for anonymous access (Kai Lüke)
- Jottacloud
- Bring back legacy authentication for use with whitelabel
versions (buengese)
- Switch to new api root - also implement a very ugly workaround
for the DirMove failures (buengese)
- Onedrive
- Rework cancel of multipart uploads on rclone exit (Nick
Craig-Wood)
- Implement rclone cleanup (Nick Craig-Wood)
- Add --onedrive-no-versions flag to remove old versions (Nick
Craig-Wood)
- Pcloud
- Implement rclone link for public link creation (buengese)
- Qingstor
- Cancel in progress multipart uploads on rclone exit (Nick
Craig-Wood)
- S3
- Preserve metadata when doing multipart copy (Nick Craig-Wood)
- Cancel in progress multipart uploads and copies on rclone exit
(Nick Craig-Wood)
- Add rclone link for public link sharing (Roman Kredentser)
- Add rclone backend restore command to restore objects from
GLACIER (Nick Craig-Wood)
- Add rclone cleanup and rclone backend cleanup to clean
unfinished multipart uploads (Nick Craig-Wood)
- Add rclone backend list-multipart-uploads to list unfinished
multipart uploads (Nick Craig-Wood)
- Add --s3-max-upload-parts support (Kamil Trzciński)
- Add --s3-no-check-bucket for minimising rclone transactions and
perms (Nick Craig-Wood)
- Add --s3-profile and --s3-shared-credentials-file options (Nick
Craig-Wood)
- Use regional s3 us-east-1 endpoint (David)
- Add Scaleway provider (Vincent Feltz)
- Update IBM COS endpoints (Egor Margineanu)
- Reduce the default --s3-copy-cutoff to < 5GB for Backblaze S3
compatibility (Nick Craig-Wood)
- Fix detection of bucket existing (Nick Craig-Wood)
- SFTP
- Use the absolute path instead of the relative path for listing
for improved compatibility (Nick Craig-Wood)
- Add --sftp-subsystem and --sftp-server-command options (aus)
- Swift
- Fix dangling large objects breaking the listing (Nick
Craig-Wood)
- Fix purge not deleting directory markers (Nick Craig-Wood)
- Fix update multipart object removing all of its own parts (Nick
Craig-Wood)
- Fix missing hash from object returned from upload (Nick
Craig-Wood)
- Tardigrade
- Upgrade to uplink v1.2.0 (Kaloyan Raev)
- Union
- Fix writing with the all policy (Nick Craig-Wood)
- WebDAV
- Fix directory creation with 4shared (Nick Craig-Wood)
v1.52.3 - 2020-08-07
See commits
- Bug Fixes
- docs
- Disable smart typography (e.g. en-dash) in MANUAL.* and man
page (Nick Craig-Wood)
- Update install.md to reflect minimum Go version (Evan
Harris)
- Update install from source instructions (Nick Craig-Wood)
- make_manual: Support SOURCE_DATE_EPOCH (Morten Linderud)
- log: Fix --use-json-log going to stderr not --log-file on
Windows (Nick Craig-Wood)
- serve dlna: Fix file list on Samsung Series 6+ TVs (Matteo
Pietro Dazzi)
- sync: Fix deadlock with --track-renames-strategy modtime (Nick
Craig-Wood)
- Cache
- Fix moveto/copyto remote:file remote:file2 (Nick Craig-Wood)
- Drive
- Stop using root_folder_id as a cache (Nick Craig-Wood)
- Make dangling shortcuts appear in listings (Nick Craig-Wood)
- Drop "Disabling ListR" messages down to debug (Nick Craig-Wood)
- Workaround and policy for Google Drive API (Dmitry Ustalov)
- FTP
- Add note to docs about home vs root directory selection (Nick
Craig-Wood)
- Onedrive
- Fix reverting to Copy when Move would have worked (Nick
Craig-Wood)
- Avoid comma rendered in URL in onedrive.md (Kevin)
- Pcloud
- Fix oauth on European region "eapi.pcloud.com" (Nick Craig-Wood)
- S3
- Fix bucket Region auto detection when Region unset in config
(Nick Craig-Wood)
v1.52.2 - 2020-06-24
See commits
- Bug Fixes
- build
- Fix docker release build action (Nick Craig-Wood)
- Fix custom timezone in Docker image (NoLooseEnds)
- check: Fix misleading message which printed errors instead of
differences (Nick Craig-Wood)
- errors: Add WSAECONNREFUSED and more to the list of retriable
Windows errors (Nick Craig-Wood)
- rcd: Fix incorrect prometheus metrics (Gary Kim)
- serve restic: Fix flags so they use environment variables (Nick
Craig-Wood)
- serve webdav: Fix flags so they use environment variables (Nick
Craig-Wood)
- sync: Fix --track-renames-strategy modtime (Nick Craig-Wood)
- Drive
- Fix not being able to delete a directory with a trashed shortcut
(Nick Craig-Wood)
- Fix creating a directory inside a shortcut (Nick Craig-Wood)
- Fix --drive-impersonate with cached root_folder_id (Nick
Craig-Wood)
- SFTP
- Fix SSH key PEM loading (Zac Rubin)
- Swift
- Speed up deletes by not retrying segment container deletes (Nick
Craig-Wood)
- Tardigrade
- Upgrade to uplink v1.1.1 (Caleb Case)
- WebDAV
- Fix free/used display for rclone about/df for certain backends
(Nick Craig-Wood)
v1.52.1 - 2020-06-10
See commits
- Bug Fixes
- lib/file: Fix SetSparse on Windows 7 which fixes downloads of
files > 250MB (Nick Craig-Wood)
- build
- Update go.mod to go1.14 to enable -mod=vendor build (Nick
Craig-Wood)
- Remove quicktest from Dockerfile (Nick Craig-Wood)
- Build Docker images with GitHub actions (Matteo Pietro
Dazzi)
- Update Docker build workflows (Nick Craig-Wood)
- Set user_allow_other in /etc/fuse.conf in the Docker image
(Nick Craig-Wood)
- Fix xgo build after go1.14 go.mod update (Nick Craig-Wood)
- docs
- Add link to source and modified time to footer of every page
(Nick Craig-Wood)
- Remove manually set dates and use git dates instead (Nick
Craig-Wood)
- Minor tense, punctuation, brevity and positivity changes for
the home page (edwardxml)
- Remove leading slash in page reference in footer when
present (Nick Craig-Wood)
- Note commands which need obscured input in the docs (Nick
Craig-Wood)
- obscure: Write more help as we are referencing it elsewhere
(Nick Craig-Wood)
- VFS
- Fix OS vs Unix path confusion - fixes ChangeNotify on Windows
(Nick Craig-Wood)
- Drive
- Fix missing items when listing using --fast-list / ListR (Nick
Craig-Wood)
- Putio
- Fix panic on Object.Open (Cenk Alti)
- S3
- Fix upload of single files into buckets without create
permission (Nick Craig-Wood)
- Fix --header-upload (Nick Craig-Wood)
- Tardigrade
- Fix listing bug by upgrading to v1.0.7
- Set UserAgent to rclone (Caleb Case)
v1.52.0 - 2020-05-27
Special thanks to Martin Michlmayr for proof reading and correcting all
the docs and Edward Barker for helping re-write the front page.
See commits
- New backends
- Tardigrade backend for use with storj.io (Caleb Case)
- Union re-write to have multiple writable remotes (Max Sum)
- Seafile for Seafile server (Fred @creativeprojects)
- New commands
- backend: command for backend-specific commands (see backends)
(Nick Craig-Wood)
- cachestats: Deprecate in favour of rclone backend stats cache:
(Nick Craig-Wood)
- dbhashsum: Deprecate in favour of rclone hashsum DropboxHash
(Nick Craig-Wood)
- New Features
- Add --header-download and --header-upload flags for setting HTTP
headers when uploading/downloading (Tim Gallant)
- Add --header flag to add HTTP headers to every HTTP transaction
(Nick Craig-Wood)
- Add --check-first to do all checking before starting transfers
(Nick Craig-Wood)
- Add --track-renames-strategy for configurable matching criteria
for --track-renames (Bernd Schoolmann)
- Add --cutoff-mode hard,soft,cautious (Shing Kit Chan & Franklyn
Tackitt)
- Filter flags (e.g. --files-from -) can read from stdin
(fishbullet)
- Add --error-on-no-transfer option (Jon Fautley)
- Implement --order-by xxx,mixed for copying some small and some
big files (Nick Craig-Wood)
- Allow --max-backlog to be negative meaning as large as possible
(Nick Craig-Wood)
- Added --no-unicode-normalization flag to allow Unicode filenames
to remain unique (Ben Zenker)
- Allow --min-age/--max-age to take a date as well as a duration
(Nick Craig-Wood)
- Add rename statistics for file and directory renames (Nick
Craig-Wood)
- Add statistics output to JSON log (reddi)
- Make stats be printed on non-zero exit code (Nick Craig-Wood)
- When running --password-command allow use of stdin (Sébastien
Gross)
- Stop empty strings being a valid remote path (Nick Craig-Wood)
- accounting: support WriterTo for less memory copying (Nick
Craig-Wood)
- build
- Update to use go1.14 for the build (Nick Craig-Wood)
- Add -trimpath to release build for reproduceable builds
(Nick Craig-Wood)
- Remove GOOS and GOARCH from Dockerfile (Brandon Philips)
- config
- Fsync the config file after writing to save more reliably
(Nick Craig-Wood)
- Add --obscure and --no-obscure flags to config create/update
(Nick Craig-Wood)
- Make config show take remote: as well as remote (Nick
Craig-Wood)
- copyurl: Add --no-clobber flag (Denis)
- delete: Added --rmdirs flag to delete directories as well (Kush)
- filter: Added --files-from-raw flag (Ankur Gupta)
- genautocomplete: Add support for fish shell (Matan Rosenberg)
- log: Add support for syslog LOCAL facilities (Patryk Jakuszew)
- lsjson: Add --hash-type parameter and use it in lsf to speed up
hashing (Nick Craig-Wood)
- rc
- Add -o/--opt and -a/--arg for more structured input (Nick
Craig-Wood)
- Implement backend/command for running backend-specific
commands remotely (Nick Craig-Wood)
- Add mount/mount command for starting rclone mount via the
API (Chaitanya)
- rcd: Add Prometheus metrics support (Gary Kim)
- serve http
- Added a --template flag for user defined markup (calistri)
- Add Last-Modified headers to files and directories (Nick
Craig-Wood)
- serve sftp: Add support for multiple host keys by repeating
--key flag (Maxime Suret)
- touch: Add --localtime flag to make --timestamp localtime not
UTC (Nick Craig-Wood)
- Bug Fixes
- accounting
- Restore "Max number of stats groups reached" log line
(Michał Matczuk)
- Correct exitcode on Transfer Limit Exceeded flag. (Anuar
Serdaliyev)
- Reset bytes read during copy retry (Ankur Gupta)
- Fix race clearing stats (Nick Craig-Wood)
- copy: Only create empty directories when they don't exist on the
remote (Ishuah Kariuki)
- dedupe: Stop dedupe deleting files with identical IDs (Nick
Craig-Wood)
- oauth
- Use custom http client so that --no-check-certificate is
honored by oauth token fetch (Mark Spieth)
- Replace deprecated oauth2.NoContext (Lars Lehtonen)
- operations
- Fix setting the timestamp on Windows for multithread copy
(Nick Craig-Wood)
- Make rcat obey --ignore-checksum (Nick Craig-Wood)
- Make --max-transfer more accurate (Nick Craig-Wood)
- rc
- Fix dropped error (Lars Lehtonen)
- Fix misplaced http server config (Xiaoxing Ye)
- Disable duplicate log (ElonH)
- serve dlna
- Cds: don't specify childCount at all when unknown (Dan
Walters)
- Cds: use modification time as date in dlna metadata (Dan
Walters)
- serve restic: Fix tests after restic project removed vendoring
(Nick Craig-Wood)
- sync
- Fix incorrect "nothing to transfer" message using
--delete-before (Nick Craig-Wood)
- Only create empty directories when they don't exist on the
remote (Ishuah Kariuki)
- Mount
- Add --async-read flag to disable asynchronous reads (Nick
Craig-Wood)
- Ignore --allow-root flag with a warning as it has been removed
upstream (Nick Craig-Wood)
- Warn if --allow-non-empty used on Windows and clarify docs (Nick
Craig-Wood)
- Constrain to go1.13 or above otherwise bazil.org/fuse fails to
compile (Nick Craig-Wood)
- Fix fail because of too long volume name (evileye)
- Report 1PB free for unknown disk sizes (Nick Craig-Wood)
- Map more rclone errors into file systems errors (Nick
Craig-Wood)
- Fix disappearing cwd problem (Nick Craig-Wood)
- Use ReaddirPlus on Windows to improve directory listing
performance (Nick Craig-Wood)
- Send a hint as to whether the filesystem is case insensitive or
not (Nick Craig-Wood)
- Add rc command mount/types (Nick Craig-Wood)
- Change maximum leaf name length to 1024 bytes (Nick Craig-Wood)
- VFS
- Add --vfs-read-wait and --vfs-write-wait flags to control time
waiting for a sequential read/write (Nick Craig-Wood)
- Change default --vfs-read-wait to 20ms (it was 5ms and not
configurable) (Nick Craig-Wood)
- Make df output more consistent on a rclone mount. (Yves G)
- Report 1PB free for unknown disk sizes (Nick Craig-Wood)
- Fix race condition caused by unlocked reading of Dir.path (Nick
Craig-Wood)
- Make File lock and Dir lock not overlap to avoid deadlock (Nick
Craig-Wood)
- Implement lock ordering between File and Dir to eliminate
deadlocks (Nick Craig-Wood)
- Factor the vfs cache into its own package (Nick Craig-Wood)
- Pin the Fs in use in the Fs cache (Nick Craig-Wood)
- Add SetSys() methods to Node to allow caching stuff on a node
(Nick Craig-Wood)
- Ignore file not found errors from Hash in Read.Release (Nick
Craig-Wood)
- Fix hang in read wait code (Nick Craig-Wood)
- Local
- Speed up multi thread downloads by using sparse files on Windows
(Nick Craig-Wood)
- Implement --local-no-sparse flag for disabling sparse files
(Nick Craig-Wood)
- Implement rclone backend noop for testing purposes (Nick
Craig-Wood)
- Fix "file not found" errors on post transfer Hash calculation
(Nick Craig-Wood)
- Cache
- Implement rclone backend stats command (Nick Craig-Wood)
- Fix Server Side Copy with Temp Upload (Brandon McNama)
- Remove Unused Functions (Lars Lehtonen)
- Disable race tests until bbolt is fixed (Nick Craig-Wood)
- Move methods used for testing into test file (greatroar)
- Add Pin and Unpin and canonicalised lookup (Nick Craig-Wood)
- Use proper import path go.etcd.io/bbolt (Robert-André Mauchin)
- Crypt
- Calculate hashes for uploads from local disk (Nick Craig-Wood)
- This allows encrypted Jottacloud uploads without using local
disk
- This means encrypted s3/b2 uploads will now have hashes
- Added rclone backend decode/encode commands to replicate
functionality of cryptdecode (Anagh Kumar Baranwal)
- Get rid of the unused Cipher interface as it obfuscated the code
(Nick Craig-Wood)
- Azure Blob
- Implement streaming of unknown sized files so rcat is now
supported (Nick Craig-Wood)
- Implement memory pooling to control memory use (Nick Craig-Wood)
- Add --azureblob-disable-checksum flag (Nick Craig-Wood)
- Retry InvalidBlobOrBlock error as it may indicate block
concurrency problems (Nick Craig-Wood)
- Remove unused Object.parseTimeString() (Lars Lehtonen)
- Fix permission error on SAS URL limited to container (Nick
Craig-Wood)
- B2
- Add support for --header-upload and --header-download (Tim
Gallant)
- Ignore directory markers at the root also (Nick Craig-Wood)
- Force the case of the SHA1 to lowercase (Nick Craig-Wood)
- Remove unused largeUpload.clearUploadURL() (Lars Lehtonen)
- Box
- Add support for --header-upload and --header-download (Tim
Gallant)
- Implement About to read size used (Nick Craig-Wood)
- Add token renew function for jwt auth (David Bramwell)
- Added support for interchangeable root folder for Box backend
(Sunil Patra)
- Remove unnecessary iat from jws claims (David)
- Drive
- Follow shortcuts by default, skip with --drive-skip-shortcuts
(Nick Craig-Wood)
- Implement rclone backend shortcut command for creating shortcuts
(Nick Craig-Wood)
- Added rclone backend command to change service_account_file and
chunk_size (Anagh Kumar Baranwal)
- Fix missing files when using --fast-list and
--drive-shared-with-me (Nick Craig-Wood)
- Fix duplicate items when using --drive-shared-with-me (Nick
Craig-Wood)
- Extend --drive-stop-on-upload-limit to respond to
teamDriveFileLimitExceeded. (harry)
- Don't delete files with multiple parents to avoid data loss
(Nick Craig-Wood)
- Server side copy docs use default description if empty (Nick
Craig-Wood)
- Dropbox
- Make error insufficient space to be fatal (harry)
- Add info about required redirect url (Elan Ruusamäe)
- Fichier
- Add support for --header-upload and --header-download (Tim
Gallant)
- Implement custom pacer to deal with the new rate limiting
(buengese)
- FTP
- Fix lockup when using concurrency limit on failed connections
(Nick Craig-Wood)
- Fix lockup on failed upload when using concurrency limit (Nick
Craig-Wood)
- Fix lockup on Close failures when using concurrency limit (Nick
Craig-Wood)
- Work around pureftp sending spurious 150 messages (Nick
Craig-Wood)
- Google Cloud Storage
- Add support for --header-upload and --header-download (Nick
Craig-Wood)
- Add ARCHIVE storage class to help (Adam Stroud)
- Ignore directory markers at the root (Nick Craig-Wood)
- Googlephotos
- Make the start year configurable (Daven)
- Add support for --header-upload and --header-download (Tim
Gallant)
- Create feature/favorites directory (Brandon Philips)
- Fix "concurrent map write" error (Nick Craig-Wood)
- Don't put an image in error message (Nick Craig-Wood)
- HTTP
- Improved directory listing with new template from Caddy project
(calisro)
- Jottacloud
- Implement --jottacloud-trashed-only (buengese)
- Add support for --header-upload and --header-download (Tim
Gallant)
- Use RawURLEncoding when decoding base64 encoded login token
(buengese)
- Implement cleanup (buengese)
- Update docs regarding cleanup, removed remains from old auth,
and added warning about special mountpoints. (albertony)
- Mailru
- Describe 2FA requirements (valery1707)
- Onedrive
- Implement --onedrive-server-side-across-configs (Nick
Craig-Wood)
- Add support for --header-upload and --header-download (Tim
Gallant)
- Fix occasional 416 errors on multipart uploads (Nick Craig-Wood)
- Added maximum chunk size limit warning in the docs (Harry)
- Fix missing drive on config (Nick Craig-Wood)
- Make error quotaLimitReached to be fatal (harry)
- Opendrive
- Add support for --header-upload and --header-download (Tim
Gallant)
- Pcloud
- Added support for interchangeable root folder for pCloud backend
(Sunil Patra)
- Add support for --header-upload and --header-download (Tim
Gallant)
- Fix initial config "Auth state doesn't match" message (Nick
Craig-Wood)
- Premiumizeme
- Add support for --header-upload and --header-download (Tim
Gallant)
- Prune unused functions (Lars Lehtonen)
- Putio
- Add support for --header-upload and --header-download (Nick
Craig-Wood)
- Make downloading files use the rclone http Client (Nick
Craig-Wood)
- Fix parsing of remotes with leading and trailing / (Nick
Craig-Wood)
- Qingstor
- Make rclone cleanup remove pending multipart uploads older than
24h (Nick Craig-Wood)
- Try harder to cancel failed multipart uploads (Nick Craig-Wood)
- Prune multiUploader.list() (Lars Lehtonen)
- Lint fix (Lars Lehtonen)
- S3
- Add support for --header-upload and --header-download (Tim
Gallant)
- Use memory pool for buffer allocations (Maciej Zimnoch)
- Add SSE-C support for AWS, Ceph, and MinIO (Jack Anderson)
- Fail fast multipart upload (Michał Matczuk)
- Report errors on bucket creation (mkdir) correctly (Nick
Craig-Wood)
- Specify that Minio supports URL encoding in listings (Nick
Craig-Wood)
- Added 500 as retryErrorCode (Michał Matczuk)
- Use --low-level-retries as the number of SDK retries (Aleksandar
Janković)
- Fix multipart abort context (Aleksandar Jankovic)
- Replace deprecated session.New() with session.NewSession() (Lars
Lehtonen)
- Use the provided size parameter when allocating a new memory
pool (Joachim Brandon LeBlanc)
- Use rclone's low level retries instead of AWS SDK to fix listing
retries (Nick Craig-Wood)
- Ignore directory markers at the root also (Nick Craig-Wood)
- Use single memory pool (Michał Matczuk)
- Do not resize buf on put to memBuf (Michał Matczuk)
- Improve docs for --s3-disable-checksum (Nick Craig-Wood)
- Don't leak memory or tokens in edge cases for multipart upload
(Nick Craig-Wood)
- Seafile
- Implement 2FA (Fred)
- SFTP
- Added --sftp-pem-key to support inline key files (calisro)
- Fix post transfer copies failing with 0 size when using
set_modtime=false (Nick Craig-Wood)
- Sharefile
- Add support for --header-upload and --header-download (Tim
Gallant)
- Sugarsync
- Add support for --header-upload and --header-download (Tim
Gallant)
- Swift
- Add support for --header-upload and --header-download (Nick
Craig-Wood)
- Fix cosmetic issue in error message (Martin Michlmayr)
- Union
- Implement multiple writable remotes (Max Sum)
- Fix server-side copy (Max Sum)
- Implement ListR (Max Sum)
- Enable ListR when upstreams contain local (Max Sum)
- WebDAV
- Add support for --header-upload and --header-download (Tim
Gallant)
- Fix X-OC-Mtime header for Transip compatibility (Nick
Craig-Wood)
- Report full and consistent usage with about (Yves G)
- Yandex
- Add support for --header-upload and --header-download (Tim
Gallant)
v1.51.0 - 2020-02-01
- New backends
- Memory (Nick Craig-Wood)
- Sugarsync (Nick Craig-Wood)
- New Features
- Adjust all backends to have --backend-encoding parameter (Nick
Craig-Wood)
- this enables the encoding for special characters to be
adjusted or disabled
- Add --max-duration flag to control the maximum duration of a
transfer session (boosh)
- Add --expect-continue-timeout flag, default 1s (Nick Craig-Wood)
- Add --no-check-dest flag for copying without testing the
destination (Nick Craig-Wood)
- Implement --order-by flag to order transfers (Nick Craig-Wood)
- accounting
- Don't show entries in both transferring and checking (Nick
Craig-Wood)
- Add option to delete stats (Aleksandar Jankovic)
- build
- Compress the test builds with gzip (Nick Craig-Wood)
- Implement a framework for starting test servers during tests
(Nick Craig-Wood)
- cmd: Always print elapsed time to tenth place seconds in
progress (Gary Kim)
- config
- Add --password-command to allow dynamic config password
(Damon Permezel)
- Give config questions default values (Nick Craig-Wood)
- Check a remote exists when creating a new one (Nick
Craig-Wood)
- copyurl: Add --stdout flag to write to stdout (Nick Craig-Wood)
- dedupe: Implement keep smallest too (Nick Craig-Wood)
- hashsum: Add flag --base64 flag (landall)
- lsf: Speed up on s3/swift/etc by not reading mimetype by default
(Nick Craig-Wood)
- lsjson: Add --no-mimetype flag (Nick Craig-Wood)
- rc: Add methods to turn on blocking and mutex profiling (Nick
Craig-Wood)
- rcd
- Adding group parameter to stats (Chaitanya)
- Move webgui apart; option to disable browser (Xiaoxing Ye)
- serve sftp: Add support for public key with auth proxy (Paul
Tinsley)
- stats: Show deletes in stats and hide zero stats (anuar45)
- Bug Fixes
- accounting
- Fix error counter counting multiple times (Ankur Gupta)
- Fix error count shown as checks (Cnly)
- Clear finished transfer in stats-reset (Maciej Zimnoch)
- Added StatsInfo locking in statsGroups sum function (Michał
Matczuk)
- asyncreader: Fix EOF error (buengese)
- check: Fix --one-way recursing more directories than it needs to
(Nick Craig-Wood)
- chunkedreader: Disable hash calculation for first segment (Nick
Craig-Wood)
- config
- Do not open browser on headless on drive/gcs/google photos
(Xiaoxing Ye)
- SetValueAndSave ignore error if config section does not
exist yet (buengese)
- cmd: Fix completion with an encrypted config (Danil Semelenov)
- dbhashsum: Stop it returning UNSUPPORTED on dropbox (Nick
Craig-Wood)
- dedupe: Add missing modes to help string (Nick Craig-Wood)
- operations
- Fix dedupe continuing on errors like
insufficientFilePersimmon (SezalAgrawal)
- Clear accounting before low level retry (Maciej Zimnoch)
- Write debug message when hashes could not be checked (Ole
Schütt)
- Move interface assertion to tests to remove pflag dependency
(Nick Craig-Wood)
- Make NewOverrideObjectInfo public and factor uses (Nick
Craig-Wood)
- proxy: Replace use of bcrypt with sha256 (Nick Craig-Wood)
- vendor
- Update bazil.org/fuse to fix FreeBSD 12.1 (Nick Craig-Wood)
- Update github.com/t3rm1n4l/go-mega to fix mega "illegal
base64 data at input byte 22" (Nick Craig-Wood)
- Update termbox-go to fix ncdu command on FreeBSD (Kuang-che
Wu)
- Update t3rm1n4l/go-mega - fixes mega: couldn't login:
crypto/aes: invalid key size 0 (Nick Craig-Wood)
- Mount
- Enable async reads for a 20% speedup (Nick Craig-Wood)
- Replace use of WriteAt with Write for cache mode >= writes and
O_APPEND (Brett Dutro)
- Make sure we call unmount when exiting (Nick Craig-Wood)
- Don't build on go1.10 as bazil/fuse no longer supports it (Nick
Craig-Wood)
- When setting dates discard out of range dates (Nick Craig-Wood)
- VFS
- Add a newly created file straight into the directory (Nick
Craig-Wood)
- Only calculate one hash for reads for a speedup (Nick
Craig-Wood)
- Make ReadAt for non cached files work better with non-sequential
reads (Nick Craig-Wood)
- Fix edge cases when reading ModTime from file (Nick Craig-Wood)
- Make sure existing files opened for write show correct size
(Nick Craig-Wood)
- Don't cache the path in RW file objects to fix renaming (Nick
Craig-Wood)
- Fix rename of open files when using the VFS cache (Nick
Craig-Wood)
- When renaming files in the cache, rename the cache item in
memory too (Nick Craig-Wood)
- Fix open file renaming on drive when using
--vfs-cache-mode writes (Nick Craig-Wood)
- Fix incorrect modtime for mv into mount with
--vfs-cache-modes writes (Nick Craig-Wood)
- On rename, rename in cache too if the file exists (Anagh Kumar
Baranwal)
- Local
- Make source file being updated errors be NoLowLevelRetry errors
(Nick Craig-Wood)
- Fix update of hidden files on Windows (Nick Craig-Wood)
- Cache
- Follow move of upstream library github.com/coreos/bbolt
github.com/etcd-io/bbolt (Nick Craig-Wood)
- Fix fatal error: concurrent map writes (Nick Craig-Wood)
- Crypt
- Reorder the filename encryption options (Thomas Eales)
- Correctly handle trailing dot (buengese)
- Chunker
- Reduce length of temporary suffix (Ivan Andreev)
- Drive
- Add --drive-stop-on-upload-limit flag to stop syncs when upload
limit reached (Nick Craig-Wood)
- Add --drive-use-shared-date to use date file was shared instead
of modified date (Garry McNulty)
- Make sure invalid auth for teamdrives always reports an error
(Nick Craig-Wood)
- Fix --fast-list when using appDataFolder (Nick Craig-Wood)
- Use multipart resumable uploads for streaming and uploads in
mount (Nick Craig-Wood)
- Log an ERROR if an incomplete search is returned (Nick
Craig-Wood)
- Hide dangerous config from the configurator (Nick Craig-Wood)
- Dropbox
- Treat insufficient_space errors as non retriable errors (Nick
Craig-Wood)
- Jottacloud
- Use new auth method used by official client (buengese)
- Add URL to generate Login Token to config wizard (Nick
Craig-Wood)
- Add support whitelabel versions (buengese)
- Koofr
- Use rclone HTTP client. (jaKa)
- Onedrive
- Add Sites.Read.All permission (Benjamin Richter)
- Add support "Retry-After" header (Motonori IWAMURO)
- Opendrive
- Implement --opendrive-chunk-size (Nick Craig-Wood)
- S3
- Re-implement multipart upload to fix memory issues (Nick
Craig-Wood)
- Add --s3-copy-cutoff for size to switch to multipart copy (Nick
Craig-Wood)
- Add new region Asia Pacific (Hong Kong) (Outvi V)
- Reduce memory usage streaming files by reducing max stream
upload size (Nick Craig-Wood)
- Add --s3-list-chunk option for bucket listing (Thomas
Kriechbaumer)
- Force path style bucket access to off for AWS deprecation (Nick
Craig-Wood)
- Use AWS web identity role provider if available (Tennix)
- Add StackPath Object Storage Support (Dave Koston)
- Fix ExpiryWindow value (Aleksandar Jankovic)
- Fix DisableChecksum condition (Aleksandar Janković)
- Fix URL decoding of NextMarker (Nick Craig-Wood)
- SFTP
- Add --sftp-skip-links to skip symlinks and non regular files
(Nick Craig-Wood)
- Retry Creation of Connection (Sebastian Brandt)
- Fix "failed to parse private key file: ssh: not an encrypted
key" error (Nick Craig-Wood)
- Open files for update write only to fix AWS SFTP interop (Nick
Craig-Wood)
- Swift
- Reserve segments of dynamic large object when delete objects in
container what was enabled versioning. (Nguyễn Hữu Luân)
- Fix parsing of X-Object-Manifest (Nick Craig-Wood)
- Update OVH API endpoint (unbelauscht)
- WebDAV
- Make nextcloud only upload SHA1 checksums (Nick Craig-Wood)
- Fix case of "Bearer" in Authorization: header to agree with RFC
(Nick Craig-Wood)
- Add Referer header to fix problems with WAFs (Nick Craig-Wood)
v1.50.2 - 2019-11-19
- Bug Fixes
- accounting: Fix memory leak on retries operations (Nick
Craig-Wood)
- Drive
- Fix listing of the root directory with drive.files scope (Nick
Craig-Wood)
- Fix --drive-root-folder-id with team/shared drives (Nick
Craig-Wood)
v1.50.1 - 2019-11-02
- Bug Fixes
- hash: Fix accidentally changed hash names for DropboxHash and
CRC-32 (Nick Craig-Wood)
- fshttp: Fix error reporting on tpslimit token bucket errors
(Nick Craig-Wood)
- fshttp: Don't print token bucket errors on context cancelled
(Nick Craig-Wood)
- Local
- Fix listings of . on Windows (Nick Craig-Wood)
- Onedrive
- Fix DirMove/Move after Onedrive change (Xiaoxing Ye)
v1.50.0 - 2019-10-26
- New backends
- Citrix Sharefile (Nick Craig-Wood)
- Chunker - an overlay backend to split files into smaller parts
(Ivan Andreev)
- Mail.ru Cloud (Ivan Andreev)
- New Features
- encodings (Fabian Möller & Nick Craig-Wood)
- All backends now use file name encoding to ensure any file
name can be written to any backend.
- See the restricted file name docs for more info and the
local backend docs.
- Some file names may look different in rclone if you are
using any control characters in names or unicode FULLWIDTH
symbols.
- build
- Update to use go1.13 for the build (Nick Craig-Wood)
- Drop support for go1.9 (Nick Craig-Wood)
- Build rclone with GitHub actions (Nick Craig-Wood)
- Convert python scripts to python3 (Nick Craig-Wood)
- Swap Azure/go-ansiterm for mattn/go-colorable (Nick
Craig-Wood)
- Dockerfile fixes (Matei David)
- Add plugin support for backends and commands (Richard Patel)
- config
- Use alternating Red/Green in config to make more obvious
(Nick Craig-Wood)
- contrib
- Add sample DLNA server Docker Compose manifest. (pataquets)
- Add sample WebDAV server Docker Compose manifest.
(pataquets)
- copyurl
- Add --auto-filename flag for using file name from URL in
destination path (Denis)
- serve dlna:
- Many compatibility improvements (Dan Walters)
- Support for external srt subtitles (Dan Walters)
- rc
- Added command core/quit (Saksham Khanna)
- Bug Fixes
- sync
- Make --update/-u not transfer files that haven't changed
(Nick Craig-Wood)
- Free objects after they come out of the transfer pipe to
save memory (Nick Craig-Wood)
- Fix --files-from without --no-traverse doing a recursive
scan (Nick Craig-Wood)
- operations
- Fix accounting for server-side copies (Nick Craig-Wood)
- Display 'All duplicates removed' only if dedupe successful
(Sezal Agrawal)
- Display 'Deleted X extra copies' only if dedupe successful
(Sezal Agrawal)
- accounting
- Only allow up to 100 completed transfers in the accounting
list to save memory (Nick Craig-Wood)
- Cull the old time ranges when possible to save memory (Nick
Craig-Wood)
- Fix panic due to server-side copy fallback (Ivan Andreev)
- Fix memory leak noticeable for transfers of large numbers of
objects (Nick Craig-Wood)
- Fix total duration calculation (Nick Craig-Wood)
- cmd
- Fix environment variables not setting command line flags
(Nick Craig-Wood)
- Make autocomplete compatible with bash's posix mode for
macOS (Danil Semelenov)
- Make --progress work in git bash on Windows (Nick
Craig-Wood)
- Fix 'compopt: command not found' on autocomplete on macOS
(Danil Semelenov)
- config
- Fix setting of non top level flags from environment
variables (Nick Craig-Wood)
- Check config names more carefully and report errors (Nick
Craig-Wood)
- Remove error: can't use --size-only and --ignore-size
together. (Nick Craig-Wood)
- filter: Prevent mixing options when --files-from is in use
(Michele Caci)
- serve sftp: Fix crash on unsupported operations (e.g. Readlink)
(Nick Craig-Wood)
- Mount
- Allow files of unknown size to be read properly (Nick
Craig-Wood)
- Skip tests on <= 2 CPUs to avoid lockup (Nick Craig-Wood)
- Fix panic on File.Open (Nick Craig-Wood)
- Fix "mount_fusefs: -o timeout=: option not supported" on FreeBSD
(Nick Craig-Wood)
- Don't pass huge filenames (>4k) to FUSE as it can't cope (Nick
Craig-Wood)
- VFS
- Add flag --vfs-case-insensitive for windows/macOS mounts (Ivan
Andreev)
- Make objects of unknown size readable through the VFS (Nick
Craig-Wood)
- Move writeback of dirty data out of close() method into its own
method (FlushWrites) and remove close() call from Flush() (Brett
Dutro)
- Stop empty dirs disappearing when renamed on bucket-based
remotes (Nick Craig-Wood)
- Stop change notify polling clearing so much of the directory
cache (Nick Craig-Wood)
- Azure Blob
- Disable logging to the Windows event log (Nick Craig-Wood)
- B2
- Remove unverified: prefix on sha1 to improve interop (e.g. with
CyberDuck) (Nick Craig-Wood)
- Box
- Add options to get access token via JWT auth (David)
- Drive
- Disable HTTP/2 by default to work around INTERNAL_ERROR problems
(Nick Craig-Wood)
- Make sure that drive root ID is always canonical (Nick
Craig-Wood)
- Fix --drive-shared-with-me from the root with lsand --fast-list
(Nick Craig-Wood)
- Fix ChangeNotify polling for shared drives (Nick Craig-Wood)
- Fix change notify polling when using appDataFolder (Nick
Craig-Wood)
- Dropbox
- Make disallowed filenames errors not retry (Nick Craig-Wood)
- Fix nil pointer exception on restricted files (Nick Craig-Wood)
- Fichier
- Fix accessing files > 2GB on 32 bit systems (Nick Craig-Wood)
- FTP
- Allow disabling EPSV mode (Jon Fautley)
- HTTP
- HEAD directory entries in parallel to speedup (Nick Craig-Wood)
- Add --http-no-head to stop rclone doing HEAD in listings (Nick
Craig-Wood)
- Putio
- Add ability to resume uploads (Cenk Alti)
- S3
- Fix signature v2_auth headers (Anthony Rusdi)
- Fix encoding for control characters (Nick Craig-Wood)
- Only ask for URL encoded directory listings if we need them on
Ceph (Nick Craig-Wood)
- Add option for multipart failure behaviour (Aleksandar Jankovic)
- Support for multipart copy (庄天翼)
- Fix nil pointer reference if no metadata returned for object
(Nick Craig-Wood)
- SFTP
- Fix --sftp-ask-password trying to contact the ssh agent (Nick
Craig-Wood)
- Fix hashes of files with backslashes (Nick Craig-Wood)
- Include more ciphers with --sftp-use-insecure-cipher (Carlos
Ferreyra)
- WebDAV
- Parse and return Sharepoint error response (Henning Surmeier)
v1.49.5 - 2019-10-05
- Bug Fixes
- Revert back to go1.12.x for the v1.49.x builds as go1.13.x was
causing issues (Nick Craig-Wood)
- Fix rpm packages by using master builds of nfpm (Nick
Craig-Wood)
- Fix macOS build after brew changes (Nick Craig-Wood)
v1.49.4 - 2019-09-29
- Bug Fixes
- cmd/rcd: Address ZipSlip vulnerability (Richard Patel)
- accounting: Fix file handle leak on errors (Nick Craig-Wood)
- oauthutil: Fix security problem when running with two users on
the same machine (Nick Craig-Wood)
- FTP
- Fix listing of an empty root returning: error dir not found
(Nick Craig-Wood)
- S3
- Fix SetModTime on GLACIER/ARCHIVE objects and implement set/get
tier (Nick Craig-Wood)
v1.49.3 - 2019-09-15
- Bug Fixes
- accounting
- Fix total duration calculation (Aleksandar Jankovic)
- Fix "file already closed" on transfer retries (Nick
Craig-Wood)
v1.49.2 - 2019-09-08
- New Features
- build: Add Docker workflow support (Alfonso Montero)
- Bug Fixes
- accounting: Fix locking in Transfer to avoid deadlock with
--progress (Nick Craig-Wood)
- docs: Fix template argument for mktemp in install.sh (Cnly)
- operations: Fix -u/--update with google photos / files of
unknown size (Nick Craig-Wood)
- rc: Fix docs for config/create /update /password (Nick
Craig-Wood)
- Google Cloud Storage
- Fix need for elevated permissions on SetModTime (Nick
Craig-Wood)
v1.49.1 - 2019-08-28
- Bug Fixes
- config: Fix generated passwords being stored as empty password
(Nick Craig-Wood)
- rcd: Added missing parameter for web-gui info logs. (Chaitanya)
- Googlephotos
- Fix crash on error response (Nick Craig-Wood)
- Onedrive
- Fix crash on error response (Nick Craig-Wood)
v1.49.0 - 2019-08-26
- New backends
- 1fichier (Laura Hausmann)
- Google Photos (Nick Craig-Wood)
- Putio (Cenk Alti)
- premiumize.me (Nick Craig-Wood)
- New Features
- Experimental web GUI (Chaitanya Bankanhal)
- Implement --compare-dest & --copy-dest (yparitcher)
- Implement --suffix without --backup-dir for backup to current
dir (yparitcher)
- config reconnect to re-login (re-run the oauth login) for the
backend. (Nick Craig-Wood)
- config userinfo to discover which user you are logged in as.
(Nick Craig-Wood)
- config disconnect to disconnect you (log out) from the backend.
(Nick Craig-Wood)
- Add --use-json-log for JSON logging (justinalin)
- Add context propagation to rclone (Aleksandar Jankovic)
- Reworking internal statistics interfaces so they work with rc
jobs (Aleksandar Jankovic)
- Add Higher units for ETA (AbelThar)
- Update rclone logos to new design (Andreas Chlupka)
- hash: Add CRC-32 support (Cenk Alti)
- help showbackend: Fixed advanced option category when there are
no standard options (buengese)
- ncdu: Display/Copy to Clipboard Current Path (Gary Kim)
- operations:
- Run hashing operations in parallel (Nick Craig-Wood)
- Don't calculate checksums when using --ignore-checksum (Nick
Craig-Wood)
- Check transfer hashes when using --size-only mode (Nick
Craig-Wood)
- Disable multi thread copy for local to local copies (Nick
Craig-Wood)
- Debug successful hashes as well as failures (Nick
Craig-Wood)
- rc
- Add ability to stop async jobs (Aleksandar Jankovic)
- Return current settings if core/bwlimit called without
parameters (Nick Craig-Wood)
- Rclone-WebUI integration with rclone (Chaitanya Bankanhal)
- Added command line parameter to control the cross origin
resource sharing (CORS) in the rcd. (Security Improvement)
(Chaitanya Bankanhal)
- Add anchor tags to the docs so links are consistent (Nick
Craig-Wood)
- Remove _async key from input parameters after parsing so
later operations won't get confused (buengese)
- Add call to clear stats (Aleksandar Jankovic)
- rcd
- Auto-login for web-gui (Chaitanya Bankanhal)
- Implement --baseurl for rcd and web-gui (Chaitanya
Bankanhal)
- serve dlna
- Only select interfaces which can multicast for SSDP (Nick
Craig-Wood)
- Add more builtin mime types to cover standard audio/video
(Nick Craig-Wood)
- Fix missing mime types on Android causing missing videos
(Nick Craig-Wood)
- serve ftp
- Refactor to bring into line with other serve commands (Nick
Craig-Wood)
- Implement --auth-proxy (Nick Craig-Wood)
- serve http: Implement --baseurl (Nick Craig-Wood)
- serve restic: Implement --baseurl (Nick Craig-Wood)
- serve sftp
- Implement auth proxy (Nick Craig-Wood)
- Fix detection of whether server is authorized (Nick
Craig-Wood)
- serve webdav
- Implement --baseurl (Nick Craig-Wood)
- Support --auth-proxy (Nick Craig-Wood)
- Bug Fixes
- Make "bad record MAC" a retriable error (Nick Craig-Wood)
- copyurl: Fix copying files that return HTTP errors (Nick
Craig-Wood)
- march: Fix checking sub-directories when using --no-traverse
(buengese)
- rc
- Fix unmarshalable http.AuthFn in options and put in test for
marshalability (Nick Craig-Wood)
- Move job expire flags to rc to fix initialization problem
(Nick Craig-Wood)
- Fix --loopback with rc/list and others (Nick Craig-Wood)
- rcat: Fix slowdown on systems with multiple hashes (Nick
Craig-Wood)
- rcd: Fix permissions problems on cache directory with web gui
download (Nick Craig-Wood)
- Mount
- Default --daemon-timeout to 15 minutes on macOS and FreeBSD
(Nick Craig-Wood)
- Update docs to show mounting from root OK for bucket-based (Nick
Craig-Wood)
- Remove nonseekable flag from write files (Nick Craig-Wood)
- VFS
- Make write without cache more efficient (Nick Craig-Wood)
- Fix --vfs-cache-mode minimal and writes ignoring cached files
(Nick Craig-Wood)
- Local
- Add --local-case-sensitive and --local-case-insensitive (Nick
Craig-Wood)
- Avoid polluting page cache when uploading local files to remote
backends (Michał Matczuk)
- Don't calculate any hashes by default (Nick Craig-Wood)
- Fadvise run syscall on a dedicated go routine (Michał Matczuk)
- Azure Blob
- Azure Storage Emulator support (Sandeep)
- Updated config help details to remove connection string
references (Sandeep)
- Make all operations work from the root (Nick Craig-Wood)
- B2
- Implement link sharing (yparitcher)
- Enable server-side copy to copy between buckets (Nick
Craig-Wood)
- Make all operations work from the root (Nick Craig-Wood)
- Drive
- Fix server-side copy of big files (Nick Craig-Wood)
- Update API for teamdrive use (Nick Craig-Wood)
- Add error for purge with --drive-trashed-only (ginvine)
- Fichier
- Make FolderID int and adjust related code (buengese)
- Google Cloud Storage
- Reduce oauth scope requested as suggested by Google (Nick
Craig-Wood)
- Make all operations work from the root (Nick Craig-Wood)
- HTTP
- Add --http-headers flag for setting arbitrary headers (Nick
Craig-Wood)
- Jottacloud
- Use new api for retrieving internal username (buengese)
- Refactor configuration and minor cleanup (buengese)
- Koofr
- Support setting modification times on Koofr backend. (jaKa)
- Opendrive
- Refactor to use existing lib/rest facilities for uploads (Nick
Craig-Wood)
- Qingstor
- Upgrade to v3 SDK and fix listing loop (Nick Craig-Wood)
- Make all operations work from the root (Nick Craig-Wood)
- S3
- Add INTELLIGENT_TIERING storage class (Matti Niemenmaa)
- Make all operations work from the root (Nick Craig-Wood)
- SFTP
- Add missing interface check and fix About (Nick Craig-Wood)
- Completely ignore all modtime checks if SetModTime=false (Jon
Fautley)
- Support md5/sha1 with rsync.net (Nick Craig-Wood)
- Save the md5/sha1 command in use to the config file for
efficiency (Nick Craig-Wood)
- Opt-in support for diffie-hellman-group-exchange-sha256
diffie-hellman-group-exchange-sha1 (Yi FU)
- Swift
- Use FixRangeOption to fix 0 length files via the VFS (Nick
Craig-Wood)
- Fix upload when using no_chunk to return the correct size (Nick
Craig-Wood)
- Make all operations work from the root (Nick Craig-Wood)
- Fix segments leak during failed large file uploads.
(nguyenhuuluan434)
- WebDAV
- Add --webdav-bearer-token-command (Nick Craig-Wood)
- Refresh token when it expires with --webdav-bearer-token-command
(Nick Craig-Wood)
- Add docs for using bearer_token_command with oidc-agent (Paul
Millar)
v1.48.0 - 2019-06-15
- New commands
- serve sftp: Serve an rclone remote over SFTP (Nick Craig-Wood)
- New Features
- Multi threaded downloads to local storage (Nick Craig-Wood)
- controlled with --multi-thread-cutoff and
--multi-thread-streams
- Use rclone.conf from rclone executable directory to enable
portable use (albertony)
- Allow sync of a file and a directory with the same name
(forgems)
- this is common on bucket-based remotes, e.g. s3, gcs
- Add --ignore-case-sync for forced case insensitivity (garry415)
- Implement --stats-one-line-date and --stats-one-line-date-format
(Peter Berbec)
- Log an ERROR for all commands which exit with non-zero status
(Nick Craig-Wood)
- Use go-homedir to read the home directory more reliably (Nick
Craig-Wood)
- Enable creating encrypted config through external script
invocation (Wojciech Smigielski)
- build: Drop support for go1.8 (Nick Craig-Wood)
- config: Make config create/update encrypt passwords where
necessary (Nick Craig-Wood)
- copyurl: Honor --no-check-certificate (Stefan Breunig)
- install: Linux skip man pages if no mandb (didil)
- lsf: Support showing the Tier of the object (Nick Craig-Wood)
- lsjson
- Added EncryptedPath to output (calisro)
- Support showing the Tier of the object (Nick Craig-Wood)
- Add IsBucket field for bucket-based remote listing of the
root (Nick Craig-Wood)
- rc
- Add --loopback flag to run commands directly without a
server (Nick Craig-Wood)
- Add operations/fsinfo: Return information about the remote
(Nick Craig-Wood)
- Skip auth for OPTIONS request (Nick Craig-Wood)
- cmd/providers: Add DefaultStr, ValueStr and Type fields
(Nick Craig-Wood)
- jobs: Make job expiry timeouts configurable (Aleksandar
Jankovic)
- serve dlna reworked and improved (Dan Walters)
- serve ftp: add --ftp-public-ip flag to specify public IP
(calistri)
- serve restic: Add support for --private-repos in serve restic
(Florian Apolloner)
- serve webdav: Combine serve webdav and serve http (Gary Kim)
- size: Ignore negative sizes when calculating total (Garry
McNulty)
- Bug Fixes
- Make move and copy individual files obey --backup-dir (Nick
Craig-Wood)
- If --ignore-checksum is in effect, don't calculate checksum
(Nick Craig-Wood)
- moveto: Fix case-insensitive same remote move (Gary Kim)
- rc: Fix serving bucket-based objects with --rc-serve (Nick
Craig-Wood)
- serve webdav: Fix serveDir not being updated with changes from
webdav (Gary Kim)
- Mount
- Fix poll interval documentation (Animosity022)
- VFS
- Make WriteAt for non cached files work with non-sequential
writes (Nick Craig-Wood)
- Local
- Only calculate the required hashes for big speedup (Nick
Craig-Wood)
- Log errors when listing instead of returning an error (Nick
Craig-Wood)
- Fix preallocate warning on Linux with ZFS (Nick Craig-Wood)
- Crypt
- Make rclone dedupe work through crypt (Nick Craig-Wood)
- Fix wrapping of ChangeNotify to decrypt directories properly
(Nick Craig-Wood)
- Support PublicLink (rclone link) of underlying backend (Nick
Craig-Wood)
- Implement Optional methods SetTier, GetTier (Nick Craig-Wood)
- B2
- Implement server-side copy (Nick Craig-Wood)
- Implement SetModTime (Nick Craig-Wood)
- Drive
- Fix move and copy from TeamDrive to GDrive (Fionera)
- Add notes that cleanup works in the background on drive (Nick
Craig-Wood)
- Add --drive-server-side-across-configs to default back to old
server-side copy semantics by default (Nick Craig-Wood)
- Add --drive-size-as-quota to show storage quota usage for file
size (Garry McNulty)
- FTP
- Add FTP List timeout (Jeff Quinn)
- Add FTP over TLS support (Gary Kim)
- Add --ftp-no-check-certificate option for FTPS (Gary Kim)
- Google Cloud Storage
- Fix upload errors when uploading pre 1970 files (Nick
Craig-Wood)
- Jottacloud
- Add support for selecting device and mountpoint. (buengese)
- Mega
- Add cleanup support (Gary Kim)
- Onedrive
- More accurately check if root is found (Cnly)
- S3
- Support S3 Accelerated endpoints with
--s3-use-accelerate-endpoint (Nick Craig-Wood)
- Add config info for Wasabi's EU Central endpoint (Robert Marko)
- Make SetModTime work for GLACIER while syncing (Philip Harvey)
- SFTP
- Add About support (Gary Kim)
- Fix about parsing of df results so it can cope with -ve results
(Nick Craig-Wood)
- Send custom client version and debug server version (Nick
Craig-Wood)
- WebDAV
- Retry on 423 Locked errors (Nick Craig-Wood)
v1.47.0 - 2019-04-13
- New backends
- Backend for Koofr cloud storage service. (jaKa)
- New Features
- Resume downloads if the reader fails in copy (Nick Craig-Wood)
- this means rclone will restart transfers if the source has
an error
- this is most useful for downloads or cloud to cloud copies
- Use --fast-list for listing operations where it won't use more
memory (Nick Craig-Wood)
- this should speed up the following operations on remotes
which support ListR
- dedupe, serve restic lsf, ls, lsl, lsjson, lsd, md5sum,
sha1sum, hashsum, size, delete, cat, settier
- use --disable ListR to get old behaviour if required
- Make --files-from traverse the destination unless --no-traverse
is set (Nick Craig-Wood)
- this fixes --files-from with Google drive and excessive API
use in general.
- Make server-side copy account bytes and obey --max-transfer
(Nick Craig-Wood)
- Add --create-empty-src-dirs flag and default to not creating
empty dirs (ishuah)
- Add client side TLS/SSL flags
--ca-cert/--client-cert/--client-key (Nick Craig-Wood)
- Implement --suffix-keep-extension for use with --suffix (Nick
Craig-Wood)
- build:
- Switch to semver compliant version tags to be go modules
compliant (Nick Craig-Wood)
- Update to use go1.12.x for the build (Nick Craig-Wood)
- serve dlna: Add connection manager service description to
improve compatibility (Dan Walters)
- lsf: Add 'e' format to show encrypted names and 'o' for original
IDs (Nick Craig-Wood)
- lsjson: Added --files-only and --dirs-only flags (calistri)
- rc: Implement operations/publiclink the equivalent of
rclone link (Nick Craig-Wood)
- Bug Fixes
- accounting: Fix total ETA when --stats-unit bits is in effect
(Nick Craig-Wood)
- Bash TAB completion
- Use private custom func to fix clash between rclone and
kubectl (Nick Craig-Wood)
- Fix for remotes with underscores in their names (Six)
- Fix completion of remotes (Florian Gamböck)
- Fix autocompletion of remote paths with spaces (Danil
Semelenov)
- serve dlna: Fix root XML service descriptor (Dan Walters)
- ncdu: Fix display corruption with Chinese characters (Nick
Craig-Wood)
- Add SIGTERM to signals which run the exit handlers on unix (Nick
Craig-Wood)
- rc: Reload filter when the options are set via the rc (Nick
Craig-Wood)
- VFS / Mount
- Fix FreeBSD: Ignore Truncate if called with no readers and
already the correct size (Nick Craig-Wood)
- Read directory and check for a file before mkdir (Nick
Craig-Wood)
- Shorten the locking window for vfs/refresh (Nick Craig-Wood)
- Azure Blob
- Enable MD5 checksums when uploading files bigger than the
"Cutoff" (Dr.Rx)
- Fix SAS URL support (Nick Craig-Wood)
- B2
- Allow manual configuration of backblaze downloadUrl (Vince)
- Ignore already_hidden error on remove (Nick Craig-Wood)
- Ignore malformed src_last_modified_millis (Nick Craig-Wood)
- Drive
- Add --skip-checksum-gphotos to ignore incorrect checksums on
Google Photos (Nick Craig-Wood)
- Allow server-side move/copy between different remotes. (Fionera)
- Add docs on team drives and --fast-list eventual consistency
(Nestar47)
- Fix imports of text files (Nick Craig-Wood)
- Fix range requests on 0 length files (Nick Craig-Wood)
- Fix creation of duplicates with server-side copy (Nick
Craig-Wood)
- Dropbox
- Retry blank errors to fix long listings (Nick Craig-Wood)
- FTP
- Add --ftp-concurrency to limit maximum number of connections
(Nick Craig-Wood)
- Google Cloud Storage
- Fall back to default application credentials (marcintustin)
- Allow bucket policy only buckets (Nick Craig-Wood)
- HTTP
- Add --http-no-slash for websites with directories with no
slashes (Nick Craig-Wood)
- Remove duplicates from listings (Nick Craig-Wood)
- Fix socket leak on 404 errors (Nick Craig-Wood)
- Jottacloud
- Fix token refresh (Sebastian Bünger)
- Add device registration (Oliver Heyme)
- Onedrive
- Implement graceful cancel of multipart uploads if rclone is
interrupted (Cnly)
- Always add trailing colon to path when addressing items, (Cnly)
- Return errors instead of panic for invalid uploads (Fabian
Möller)
- S3
- Add support for "Glacier Deep Archive" storage class (Manu)
- Update Dreamhost endpoint (Nick Craig-Wood)
- Note incompatibility with CEPH Jewel (Nick Craig-Wood)
- SFTP
- Allow custom ssh client config (Alexandru Bumbacea)
- Swift
- Obey Retry-After to enable OVH restore from cold storage (Nick
Craig-Wood)
- Work around token expiry on CEPH (Nick Craig-Wood)
- WebDAV
- Allow IsCollection property to be integer or boolean (Nick
Craig-Wood)
- Fix race when creating directories (Nick Craig-Wood)
- Fix About/df when reading the available/total returns 0 (Nick
Craig-Wood)
v1.46 - 2019-02-09
- New backends
- Support Alibaba Cloud (Aliyun) OSS via the s3 backend (Nick
Craig-Wood)
- New commands
- serve dlna: serves a remove via DLNA for the local network
(nicolov)
- New Features
- copy, move: Restore deprecated --no-traverse flag (Nick
Craig-Wood)
- This is useful for when transferring a small number of files
into a large destination
- genautocomplete: Add remote path completion for bash completion
(Christopher Peterson & Danil Semelenov)
- Buffer memory handling reworked to return memory to the OS
better (Nick Craig-Wood)
- Buffer recycling library to replace sync.Pool
- Optionally use memory mapped memory for better memory
shrinking
- Enable with --use-mmap if having memory problems - not
default yet
- Parallelise reading of files specified by --files-from (Nick
Craig-Wood)
- check: Add stats showing total files matched. (Dario Guzik)
- Allow rename/delete open files under Windows (Nick Craig-Wood)
- lsjson: Use exactly the correct number of decimal places in the
seconds (Nick Craig-Wood)
- Add cookie support with cmdline switch --use-cookies for all
HTTP based remotes (qip)
- Warn if --checksum is set but there are no hashes available
(Nick Craig-Wood)
- Rework rate limiting (pacer) to be more accurate and allow
bursting (Nick Craig-Wood)
- Improve error reporting for too many/few arguments in commands
(Nick Craig-Wood)
- listremotes: Remove -l short flag as it conflicts with the new
global flag (weetmuts)
- Make http serving with auth generate INFO messages on auth fail
(Nick Craig-Wood)
- Bug Fixes
- Fix layout of stats (Nick Craig-Wood)
- Fix --progress crash under Windows Jenkins (Nick Craig-Wood)
- Fix transfer of google/onedrive docs by calling Rcat in Copy
when size is -1 (Cnly)
- copyurl: Fix checking of --dry-run (Denis Skovpen)
- Mount
- Check that mountpoint and local directory to mount don't overlap
(Nick Craig-Wood)
- Fix mount size under 32 bit Windows (Nick Craig-Wood)
- VFS
- Implement renaming of directories for backends without DirMove
(Nick Craig-Wood)
- now all backends except b2 support renaming directories
- Implement --vfs-cache-max-size to limit the total size of the
cache (Nick Craig-Wood)
- Add --dir-perms and --file-perms flags to set default
permissions (Nick Craig-Wood)
- Fix deadlock on concurrent operations on a directory (Nick
Craig-Wood)
- Fix deadlock between RWFileHandle.close and File.Remove (Nick
Craig-Wood)
- Fix renaming/deleting open files with cache mode "writes" under
Windows (Nick Craig-Wood)
- Fix panic on rename with --dry-run set (Nick Craig-Wood)
- Fix vfs/refresh with recurse=true needing the --fast-list flag
- Local
- Add support for -l/--links (symbolic link translation)
(yair@unicorn)
- this works by showing links as link.rclonelink - see local
backend docs for more info
- this errors if used with -L/--copy-links
- Fix renaming/deleting open files on Windows (Nick Craig-Wood)
- Crypt
- Check for maximum length before decrypting filename to fix panic
(Garry McNulty)
- Azure Blob
- Allow building azureblob backend on *BSD (themylogin)
- Use the rclone HTTP client to support --dump headers,
--tpslimit, etc. (Nick Craig-Wood)
- Use the s3 pacer for 0 delay in non error conditions (Nick
Craig-Wood)
- Ignore directory markers (Nick Craig-Wood)
- Stop Mkdir attempting to create existing containers (Nick
Craig-Wood)
- B2
- cleanup: will remove unfinished large files >24hrs old (Garry
McNulty)
- For a bucket limited application key check the bucket name (Nick
Craig-Wood)
- before this, rclone would use the authorised bucket
regardless of what you put on the command line
- Added --b2-disable-checksum flag (Wojciech Smigielski)
- this enables large files to be uploaded without a SHA-1 hash
for speed reasons
- Drive
- Set default pacer to 100ms for 10 tps (Nick Craig-Wood)
- This fits the Google defaults much better and reduces the
403 errors massively
- Add --drive-pacer-min-sleep and --drive-pacer-burst to
control the pacer
- Improve ChangeNotify support for items with multiple parents
(Fabian Möller)
- Fix ListR for items with multiple parents - this fixes oddities
with vfs/refresh (Fabian Möller)
- Fix using --drive-impersonate and appfolders (Nick Craig-Wood)
- Fix google docs in rclone mount for some (not all) applications
(Nick Craig-Wood)
- Dropbox
- Retry-After support for Dropbox backend (Mathieu Carbou)
- FTP
- Wait for 60 seconds for a connection to Close then declare it
dead (Nick Craig-Wood)
- helps with indefinite hangs on some FTP servers
- Google Cloud Storage
- Update google cloud storage endpoints (weetmuts)
- HTTP
- Add an example with username and password which is supported but
wasn't documented (Nick Craig-Wood)
- Fix backend with --files-from and nonexistent files (Nick
Craig-Wood)
- Hubic
- Make error message more informative if authentication fails
(Nick Craig-Wood)
- Jottacloud
- Resume and deduplication support (Oliver Heyme)
- Use token auth for all API requests Don't store password anymore
(Sebastian Bünger)
- Add support for 2-factor authentication (Sebastian Bünger)
- Mega
- Implement v2 account login which fixes logins for newer Mega
accounts (Nick Craig-Wood)
- Return error if an unknown length file is attempted to be
uploaded (Nick Craig-Wood)
- Add new error codes for better error reporting (Nick Craig-Wood)
- Onedrive
- Fix broken support for "shared with me" folders (Alex Chen)
- Fix root ID not normalised (Cnly)
- Return err instead of panic on unknown-sized uploads (Cnly)
- Qingstor
- Fix go routine leak on multipart upload errors (Nick Craig-Wood)
- Add upload chunk size/concurrency/cutoff control (Nick
Craig-Wood)
- Default --qingstor-upload-concurrency to 1 to work around bug
(Nick Craig-Wood)
- S3
- Implement --s3-upload-cutoff for single part uploads below this
(Nick Craig-Wood)
- Change --s3-upload-concurrency default to 4 to increase
performance (Nick Craig-Wood)
- Add --s3-bucket-acl to control bucket ACL (Nick Craig-Wood)
- Auto detect region for buckets on operation failure (Nick
Craig-Wood)
- Add GLACIER storage class (William Cocker)
- Add Scaleway to s3 documentation (Rémy Léone)
- Add AWS endpoint eu-north-1 (weetmuts)
- SFTP
- Add support for PEM encrypted private keys (Fabian Möller)
- Add option to force the usage of an ssh-agent (Fabian Möller)
- Perform environment variable expansion on key-file (Fabian
Möller)
- Fix rmdir on Windows based servers (e.g. CrushFTP) (Nick
Craig-Wood)
- Fix rmdir deleting directory contents on some SFTP servers (Nick
Craig-Wood)
- Fix error on dangling symlinks (Nick Craig-Wood)
- Swift
- Add --swift-no-chunk to disable segmented uploads in rcat/mount
(Nick Craig-Wood)
- Introduce application credential auth support (kayrus)
- Fix memory usage by slimming Object (Nick Craig-Wood)
- Fix extra requests on upload (Nick Craig-Wood)
- Fix reauth on big files (Nick Craig-Wood)
- Union
- Fix poll-interval not working (Nick Craig-Wood)
- WebDAV
- Support About which means rclone mount will show the correct
disk size (Nick Craig-Wood)
- Support MD5 and SHA1 hashes with Owncloud and Nextcloud (Nick
Craig-Wood)
- Fail soft on time parsing errors (Nick Craig-Wood)
- Fix infinite loop on failed directory creation (Nick Craig-Wood)
- Fix identification of directories for Bitrix Site Manager (Nick
Craig-Wood)
- Fix upload of 0 length files on some servers (Nick Craig-Wood)
- Fix if MKCOL fails with 423 Locked assume the directory exists
(Nick Craig-Wood)
v1.45 - 2018-11-24
- New backends
- The Yandex backend was re-written - see below for details
(Sebastian Bünger)
- New commands
- rcd: New command just to serve the remote control API (Nick
Craig-Wood)
- New Features
- The remote control API (rc) was greatly expanded to allow full
control over rclone (Nick Craig-Wood)
- sensitive operations require authorization or the
--rc-no-auth flag
- config/* operations to configure rclone
- options/* for reading/setting command line flags
- operations/* for all low level operations, e.g. copy file,
list directory
- sync/* for sync, copy and move
- --rc-files flag to serve files on the rc http server
- this is for building web native GUIs for rclone
- Optionally serving objects on the rc http server
- Ensure rclone fails to start up if the --rc port is in use
already
- See the rc docs for more info
- sync/copy/move
- Make --files-from only read the objects specified and don't
scan directories (Nick Craig-Wood)
- This is a huge speed improvement for destinations with
lots of files
- filter: Add --ignore-case flag (Nick Craig-Wood)
- ncdu: Add remove function ('d' key) (Henning Surmeier)
- rc command
- Add --json flag for structured JSON input (Nick Craig-Wood)
- Add --user and --pass flags and interpret --rc-user,
--rc-pass, --rc-addr (Nick Craig-Wood)
- build
- Require go1.8 or later for compilation (Nick Craig-Wood)
- Enable softfloat on MIPS arch (Scott Edlund)
- Integration test framework revamped with a better report and
better retries (Nick Craig-Wood)
- Bug Fixes
- cmd: Make --progress update the stats correctly at the end (Nick
Craig-Wood)
- config: Create config directory on save if it is missing (Nick
Craig-Wood)
- dedupe: Check for existing filename before renaming a dupe file
(ssaqua)
- move: Don't create directories with --dry-run (Nick Craig-Wood)
- operations: Fix Purge and Rmdirs when dir is not the root (Nick
Craig-Wood)
- serve http/webdav/restic: Ensure rclone exits if the port is in
use (Nick Craig-Wood)
- Mount
- Make --volname work for Windows and macOS (Nick Craig-Wood)
- Azure Blob
- Avoid context deadline exceeded error by setting a large
TryTimeout value (brused27)
- Fix erroneous Rmdir error "directory not empty" (Nick
Craig-Wood)
- Wait for up to 60s to create a just deleted container (Nick
Craig-Wood)
- Dropbox
- Add dropbox impersonate support (Jake Coggiano)
- Jottacloud
- Fix bug in --fast-list handing of empty folders (albertony)
- Opendrive
- Fix transfer of files with + and & in (Nick Craig-Wood)
- Fix retries of upload chunks (Nick Craig-Wood)
- S3
- Set ACL for server-side copies to that provided by the user
(Nick Craig-Wood)
- Fix role_arn, credential_source, ... (Erik Swanson)
- Add config info for Wasabi's US-West endpoint (Henry Ptasinski)
- SFTP
- Ensure file hash checking is really disabled (Jon Fautley)
- Swift
- Add pacer for retries to make swift more reliable (Nick
Craig-Wood)
- WebDAV
- Add Content-Type to PUT requests (Nick Craig-Wood)
- Fix config parsing so --webdav-user and --webdav-pass flags work
(Nick Craig-Wood)
- Add RFC3339 date format (Ralf Hemberger)
- Yandex
- The yandex backend was re-written (Sebastian Bünger)
- This implements low level retries (Sebastian Bünger)
- Copy, Move, DirMove, PublicLink and About optional
interfaces (Sebastian Bünger)
- Improved general error handling (Sebastian Bünger)
- Removed ListR for now due to inconsistent behaviour
(Sebastian Bünger)
v1.44 - 2018-10-15
- New commands
- serve ftp: Add ftp server (Antoine GIRARD)
- settier: perform storage tier changes on supported remotes
(sandeepkru)
- New Features
- Reworked command line help
- Make default help less verbose (Nick Craig-Wood)
- Split flags up into global and backend flags (Nick
Craig-Wood)
- Implement specialised help for flags and backends (Nick
Craig-Wood)
- Show URL of backend help page when starting config (Nick
Craig-Wood)
- stats: Long names now split in center (Joanna Marek)
- Add --log-format flag for more control over log output (dcpu)
- rc: Add support for OPTIONS and basic CORS (frenos)
- stats: show FatalErrors and NoRetryErrors in stats (Cédric
Connes)
- Bug Fixes
- Fix -P not ending with a new line (Nick Craig-Wood)
- config: don't create default config dir when user supplies
--config (albertony)
- Don't print non-ASCII characters with --progress on windows
(Nick Craig-Wood)
- Correct logs for excluded items (ssaqua)
- Mount
- Remove EXPERIMENTAL tags (Nick Craig-Wood)
- VFS
- Fix race condition detected by serve ftp tests (Nick Craig-Wood)
- Add vfs/poll-interval rc command (Fabian Möller)
- Enable rename for nearly all remotes using server-side Move or
Copy (Nick Craig-Wood)
- Reduce directory cache cleared by poll-interval (Fabian Möller)
- Remove EXPERIMENTAL tags (Nick Craig-Wood)
- Local
- Skip bad symlinks in dir listing with -L enabled (Cédric Connes)
- Preallocate files on Windows to reduce fragmentation (Nick
Craig-Wood)
- Preallocate files on linux with fallocate(2) (Nick Craig-Wood)
- Cache
- Add cache/fetch rc function (Fabian Möller)
- Fix worker scale down (Fabian Möller)
- Improve performance by not sending info requests for cached
chunks (dcpu)
- Fix error return value of cache/fetch rc method (Fabian Möller)
- Documentation fix for cache-chunk-total-size (Anagh Kumar
Baranwal)
- Preserve leading / in wrapped remote path (Fabian Möller)
- Add plex_insecure option to skip certificate validation (Fabian
Möller)
- Remove entries that no longer exist in the source (dcpu)
- Crypt
- Preserve leading / in wrapped remote path (Fabian Möller)
- Alias
- Fix handling of Windows network paths (Nick Craig-Wood)
- Azure Blob
- Add --azureblob-list-chunk parameter (Santiago Rodríguez)
- Implemented settier command support on azureblob remote.
(sandeepkru)
- Work around SDK bug which causes errors for chunk-sized files
(Nick Craig-Wood)
- Box
- Implement link sharing. (Sebastian Bünger)
- Drive
- Add --drive-import-formats - google docs can now be imported
(Fabian Möller)
- Rewrite mime type and extension handling (Fabian Möller)
- Add document links (Fabian Möller)
- Add support for multipart document extensions (Fabian
Möller)
- Add support for apps-script to json export (Fabian Möller)
- Fix escaped chars in documents during list (Fabian Möller)
- Add --drive-v2-download-min-size a workaround for slow downloads
(Fabian Möller)
- Improve directory notifications in ChangeNotify (Fabian Möller)
- When listing team drives in config, continue on failure (Nick
Craig-Wood)
- FTP
- Add a small pause after failed upload before deleting file (Nick
Craig-Wood)
- Google Cloud Storage
- Fix service_account_file being ignored (Fabian Möller)
- Jottacloud
- Minor improvement in quota info (omit if unlimited) (albertony)
- Add --fast-list support (albertony)
- Add permanent delete support: --jottacloud-hard-delete
(albertony)
- Add link sharing support (albertony)
- Fix handling of reserved characters. (Sebastian Bünger)
- Fix socket leak on Object.Remove (Nick Craig-Wood)
- Onedrive
- Rework to support Microsoft Graph (Cnly)
- NB this will require re-authenticating the remote
- Removed upload cutoff and always do session uploads (Oliver
Heyme)
- Use single-part upload for empty files (Cnly)
- Fix new fields not saved when editing old config (Alex Chen)
- Fix sometimes special chars in filenames not replaced (Alex
Chen)
- Ignore OneNote files by default (Alex Chen)
- Add link sharing support (jackyzy823)
- S3
- Use custom pacer, to retry operations when reasonable (Craig
Miskell)
- Use configured server-side-encryption and storage class options
when calling CopyObject() (Paul Kohout)
- Make --s3-v2-auth flag (Nick Craig-Wood)
- Fix v2 auth on files with spaces (Nick Craig-Wood)
- Union
- Implement union backend which reads from multiple backends
(Felix Brucker)
- Implement optional interfaces (Move, DirMove, Copy, etc.) (Nick
Craig-Wood)
- Fix ChangeNotify to support multiple remotes (Fabian Möller)
- Fix --backup-dir on union backend (Nick Craig-Wood)
- WebDAV
- Add another time format (Nick Craig-Wood)
- Add a small pause after failed upload before deleting file (Nick
Craig-Wood)
- Add workaround for missing mtime (buergi)
- Sharepoint: Renew cookies after 12hrs (Henning Surmeier)
- Yandex
- Remove redundant nil checks (teresy)
v1.43.1 - 2018-09-07
- Bug Fixes
- ncdu: Return error instead of log.Fatal in Show (Fabian Möller)
- cmd: Fix crash with --progress and --stats 0 (Nick Craig-Wood)
- docs: Tidy website display (Anagh Kumar Baranwal)
- Azure Blob:
- Fix multi-part uploads. (sandeepkru)
- Hubic
- Fix uploads (Nick Craig-Wood)
- Retry auth fetching if it fails to make hubic more reliable
(Nick Craig-Wood)
v1.43 - 2018-09-01
- New backends
- Jottacloud (Sebastian Bünger)
- New commands
- copyurl: copies a URL to a remote (Denis)
- New Features
- Reworked config for backends (Nick Craig-Wood)
- All backend config can now be supplied by command line, env
var or config file
- Advanced section in the config wizard for the optional items
- A large step towards rclone backends being usable in other
go software
- Allow on the fly remotes with :backend: syntax
- Stats revamp
- Add --progress/-P flag to show interactive progress (Nick
Craig-Wood)
- Show the total progress of the sync in the stats (Nick
Craig-Wood)
- Add --stats-one-line flag for single line stats (Nick
Craig-Wood)
- Added weekday schedule into --bwlimit (Mateusz)
- lsjson: Add option to show the original object IDs (Fabian
Möller)
- serve webdav: Make Content-Type without reading the file and add
--etag-hash (Nick Craig-Wood)
- build
- Build macOS with native compiler (Nick Craig-Wood)
- Update to use go1.11 for the build (Nick Craig-Wood)
- rc
- Added core/stats to return the stats (reddi1)
- version --check: Prints the current release and beta versions
(Nick Craig-Wood)
- Bug Fixes
- accounting
- Fix time to completion estimates (Nick Craig-Wood)
- Fix moving average speed for file stats (Nick Craig-Wood)
- config: Fix error reading password from piped input (Nick
Craig-Wood)
- move: Fix --delete-empty-src-dirs flag to delete all empty dirs
on move (ishuah)
- Mount
- Implement --daemon-timeout flag for OSXFUSE (Nick Craig-Wood)
- Fix mount --daemon not working with encrypted config (Alex Chen)
- Clip the number of blocks to 2^32-1 on macOS - fixes borg backup
(Nick Craig-Wood)
- VFS
- Enable vfs-read-chunk-size by default (Fabian Möller)
- Add the vfs/refresh rc command (Fabian Möller)
- Add non recursive mode to vfs/refresh rc command (Fabian Möller)
- Try to seek buffer on read only files (Fabian Möller)
- Local
- Fix crash when deprecated --local-no-unicode-normalization is
supplied (Nick Craig-Wood)
- Fix mkdir error when trying to copy files to the root of a drive
on windows (Nick Craig-Wood)
- Cache
- Fix nil pointer deref when using lsjson on cached directory
(Nick Craig-Wood)
- Fix nil pointer deref for occasional crash on playback (Nick
Craig-Wood)
- Crypt
- Fix accounting when checking hashes on upload (Nick Craig-Wood)
- Amazon Cloud Drive
- Make very clear in the docs that rclone has no ACD keys (Nick
Craig-Wood)
- Azure Blob
- Add connection string and SAS URL auth (Nick Craig-Wood)
- List the container to see if it exists (Nick Craig-Wood)
- Port new Azure Blob Storage SDK (sandeepkru)
- Added blob tier, tier between Hot, Cool and Archive.
(sandeepkru)
- Remove leading / from paths (Nick Craig-Wood)
- B2
- Support Application Keys (Nick Craig-Wood)
- Remove leading / from paths (Nick Craig-Wood)
- Box
- Fix upload of > 2GB files on 32 bit platforms (Nick Craig-Wood)
- Make --box-commit-retries flag defaulting to 100 to fix large
uploads (Nick Craig-Wood)
- Drive
- Add --drive-keep-revision-forever flag (lewapm)
- Handle gdocs when filtering file names in list (Fabian Möller)
- Support using --fast-list for large speedups (Fabian Möller)
- FTP
- Fix Put mkParentDir failed: 521 for BunnyCDN (Nick Craig-Wood)
- Google Cloud Storage
- Fix index out of range error with --fast-list (Nick Craig-Wood)
- Jottacloud
- Fix MD5 error check (Oliver Heyme)
- Handle empty time values (Martin Polden)
- Calculate missing MD5s (Oliver Heyme)
- Docs, fixes and tests for MD5 calculation (Nick Craig-Wood)
- Add optional MimeTyper interface. (Sebastian Bünger)
- Implement optional About interface (for df support). (Sebastian
Bünger)
- Mega
- Wait for events instead of arbitrary sleeping (Nick Craig-Wood)
- Add --mega-hard-delete flag (Nick Craig-Wood)
- Fix failed logins with upper case chars in email (Nick
Craig-Wood)
- Onedrive
- Shared folder support (Yoni Jah)
- Implement DirMove (Cnly)
- Fix rmdir sometimes deleting directories with contents (Nick
Craig-Wood)
- Pcloud
- Delete half uploaded files on upload error (Nick Craig-Wood)
- Qingstor
- Remove leading / from paths (Nick Craig-Wood)
- S3
- Fix index out of range error with --fast-list (Nick Craig-Wood)
- Add --s3-force-path-style (Nick Craig-Wood)
- Add support for KMS Key ID (bsteiss)
- Remove leading / from paths (Nick Craig-Wood)
- Swift
- Add storage_policy (Ruben Vandamme)
- Make it so just storage_url or auth_token can be overridden
(Nick Craig-Wood)
- Fix server-side copy bug for unusual file names (Nick
Craig-Wood)
- Remove leading / from paths (Nick Craig-Wood)
- WebDAV
- Ensure we call MKCOL with a URL with a trailing / for QNAP
interop (Nick Craig-Wood)
- If root ends with / then don't check if it is a file (Nick
Craig-Wood)
- Don't accept redirects when reading metadata (Nick Craig-Wood)
- Add bearer token (Macaroon) support for dCache (Nick Craig-Wood)
- Document dCache and Macaroons (Onno Zweers)
- Sharepoint recursion with different depth (Henning)
- Attempt to remove failed uploads (Nick Craig-Wood)
- Yandex
- Fix listing/deleting files in the root (Nick Craig-Wood)
v1.42 - 2018-06-16
- New backends
- OpenDrive (Oliver Heyme, Jakub Karlicek, ncw)
- New commands
- deletefile command (Filip Bartodziej)
- New Features
- copy, move: Copy single files directly, don't use --files-from
work-around
- this makes them much more efficient
- Implement --max-transfer flag to quit transferring at a limit
- make exit code 8 for --max-transfer exceeded
- copy: copy empty source directories to destination (Ishuah
Kariuki)
- check: Add --one-way flag (Kasper Byrdal Nielsen)
- Add siginfo handler for macOS for ctrl-T stats (kubatasiemski)
- rc
- add core/gc to run a garbage collection on demand
- enable go profiling by default on the --rc port
- return error from remote on failure
- lsf
- Add --absolute flag to add a leading / onto path names
- Add --csv flag for compliant CSV output
- Add 'm' format specifier to show the MimeType
- Implement 'i' format for showing object ID
- lsjson
- Add MimeType to the output
- Add ID field to output to show Object ID
- Add --retries-sleep flag (Benjamin Joseph Dag)
- Oauth tidy up web page and error handling (Henning Surmeier)
- Bug Fixes
- Password prompt output with --log-file fixed for unix (Filip
Bartodziej)
- Calculate ModifyWindow each time on the fly to fix various
problems (Stefan Breunig)
- Mount
- Only print "File.rename error" if there actually is an error
(Stefan Breunig)
- Delay rename if file has open writers instead of failing
outright (Stefan Breunig)
- Ensure atexit gets run on interrupt
- macOS enhancements
- Make --noappledouble --noapplexattr
- Add --volname flag and remove special chars from it
- Make Get/List/Set/Remove xattr return ENOSYS for efficiency
- Make --daemon work for macOS without CGO
- VFS
- Add --vfs-read-chunk-size and --vfs-read-chunk-size-limit
(Fabian Möller)
- Fix ChangeNotify for new or changed folders (Fabian Möller)
- Local
- Fix symlink/junction point directory handling under Windows
- NB you will need to add -L to your command line to copy
files with reparse points
- Cache
- Add non cached dirs on notifications (Remus Bunduc)
- Allow root to be expired from rc (Remus Bunduc)
- Clean remaining empty folders from temp upload path (Remus
Bunduc)
- Cache lists using batch writes (Remus Bunduc)
- Use secure websockets for HTTPS Plex addresses (John Clayton)
- Reconnect plex websocket on failures (Remus Bunduc)
- Fix panic when running without plex configs (Remus Bunduc)
- Fix root folder caching (Remus Bunduc)
- Crypt
- Check the encrypted hash of files when uploading for extra data
security
- Dropbox
- Make Dropbox for business folders accessible using an initial /
in the path
- Google Cloud Storage
- Low level retry all operations if necessary
- Google Drive
- Add --drive-acknowledge-abuse to download flagged files
- Add --drive-alternate-export to fix large doc export
- Don't attempt to choose Team Drives when using rclone config
create
- Fix change list polling with team drives
- Fix ChangeNotify for folders (Fabian Möller)
- Fix about (and df on a mount) for team drives
- Onedrive
- Errorhandler for onedrive for business requests (Henning
Surmeier)
- S3
- Adjust upload concurrency with --s3-upload-concurrency
(themylogin)
- Fix --s3-chunk-size which was always using the minimum
- SFTP
- Add --ssh-path-override flag (Piotr Oleszczyk)
- Fix slow downloads for long latency connections
- Webdav
- Add workarounds for biz.mail.ru
- Ignore Reason-Phrase in status line to fix 4shared (Rodrigo)
- Better error message generation
v1.41 - 2018-04-28
- New backends
- Mega support added
- Webdav now supports SharePoint cookie authentication (hensur)
- New commands
- link: create public link to files and folders (Stefan Breunig)
- about: gets quota info from a remote (a-roussos, ncw)
- hashsum: a generic tool for any hash to produce md5sum like
output
- New Features
- lsd: Add -R flag and fix and update docs for all ls commands
- ncdu: added a "refresh" key - CTRL-L (Keith Goldfarb)
- serve restic: Add append-only mode (Steve Kriss)
- serve restic: Disallow overwriting files in append-only mode
(Alexander Neumann)
- serve restic: Print actual listener address (Matt Holt)
- size: Add --json flag (Matthew Holt)
- sync: implement --ignore-errors (Mateusz Pabian)
- dedupe: Add dedupe largest functionality (Richard Yang)
- fs: Extend SizeSuffix to include TB and PB for rclone about
- fs: add --dump goroutines and --dump openfiles for debugging
- rc: implement core/memstats to print internal memory usage info
- rc: new call rc/pid (Michael P. Dubner)
- Compile
- Drop support for go1.6
- Release
- Fix make tarball (Chih-Hsuan Yen)
- Bug Fixes
- filter: fix --min-age and --max-age together check
- fs: limit MaxIdleConns and MaxIdleConnsPerHost in transport
- lsd,lsf: make sure all times we output are in local time
- rc: fix setting bwlimit to unlimited
- rc: take note of the --rc-addr flag too as per the docs
- Mount
- Use About to return the correct disk total/used/free (e.g. in
df)
- Set --attr-timeout default to 1s - fixes:
- rclone using too much memory
- rclone not serving files to samba
- excessive time listing directories
- Fix df -i (upstream fix)
- VFS
- Filter files . and .. from directory listing
- Only make the VFS cache if --vfs-cache-mode > Off
- Local
- Add --local-no-check-updated to disable updated file checks
- Retry remove on Windows sharing violation error
- Cache
- Flush the memory cache after close
- Purge file data on notification
- Always forget parent dir for notifications
- Integrate with Plex websocket
- Add rc cache/stats (seuffert)
- Add info log on notification
- Box
- Fix failure reading large directories - parse file/directory
size as float
- Dropbox
- Fix crypt+obfuscate on dropbox
- Fix repeatedly uploading the same files
- FTP
- Work around strange response from box FTP server
- More workarounds for FTP servers to fix mkParentDir error
- Fix no error on listing nonexistent directory
- Google Cloud Storage
- Add service_account_credentials (Matt Holt)
- Detect bucket presence by listing it - minimises permissions
needed
- Ignore zero length directory markers
- Google Drive
- Add service_account_credentials (Matt Holt)
- Fix directory move leaving a hardlinked directory behind
- Return proper google errors when Opening files
- When initialized with a filepath, optional features used
incorrect root path (Stefan Breunig)
- HTTP
- Fix sync for servers which don't return Content-Length in HEAD
- Onedrive
- Add QuickXorHash support for OneDrive for business
- Fix socket leak in multipart session upload
- S3
- Look in S3 named profile files for credentials
- Add --s3-disable-checksum to disable checksum uploading (Chris
Redekop)
- Hierarchical configuration support (Giri Badanahatti)
- Add in config for all the supported S3 providers
- Add One Zone Infrequent Access storage class (Craig Rachel)
- Add --use-server-modtime support (Peter Baumgartner)
- Add --s3-chunk-size option to control multipart uploads
- Ignore zero length directory markers
- SFTP
- Update docs to match code, fix typos and clarify
disable_hashcheck prompt (Michael G. Noll)
- Update docs with Synology quirks
- Fail soft with a debug on hash failure
- Swift
- Add --use-server-modtime support (Peter Baumgartner)
- Webdav
- Support SharePoint cookie authentication (hensur)
- Strip leading and trailing / off root
v1.40 - 2018-03-19
- New backends
- Alias backend to create aliases for existing remote names
(Fabian Möller)
- New commands
- lsf: list for parsing purposes (Jakub Tasiemski)
- by default this is a simple non recursive list of files and
directories
- it can be configured to add more info in an easy to parse
way
- serve restic: for serving a remote as a Restic REST endpoint
- This enables restic to use any backends that rclone can
access
- Thanks Alexander Neumann for help, patches and review
- rc: enable the remote control of a running rclone
- The running rclone must be started with --rc and related
flags.
- Currently there is support for bwlimit, and flushing for
mount and cache.
- New Features
- --max-delete flag to add a delete threshold (Bjørn Erik
Pedersen)
- All backends now support RangeOption for ranged Open
- cat: Use RangeOption for limited fetches to make more
efficient
- cryptcheck: make reading of nonce more efficient with
RangeOption
- serve http/webdav/restic
- support SSL/TLS
- add --user --pass and --htpasswd for authentication
- copy/move: detect file size change during copy/move and abort
transfer (ishuah)
- cryptdecode: added option to return encrypted file names.
(ishuah)
- lsjson: add --encrypted to show encrypted name (Jakub Tasiemski)
- Add --stats-file-name-length to specify the printed file name
length for stats (Will Gunn)
- Compile
- Code base was shuffled and factored
- backends moved into a backend directory
- large packages split up
- See the CONTRIBUTING.md doc for info as to what lives where
now
- Update to using go1.10 as the default go version
- Implement daily full integration tests
- Release
- Include a source tarball and sign it and the binaries
- Sign the git tags as part of the release process
- Add .deb and .rpm packages as part of the build
- Make a beta release for all branches on the main repo (but not
pull requests)
- Bug Fixes
- config: fixes errors on nonexistent config by loading config
file only on first access
- config: retry saving the config after failure (Mateusz)
- sync: when using --backup-dir don't delete files if we can't set
their modtime
- this fixes odd behaviour with Dropbox and --backup-dir
- fshttp: fix idle timeouts for HTTP connections
- serve http: fix serving files with : in - fixes
- Fix --exclude-if-present to ignore directories which it doesn't
have permission for (Iakov Davydov)
- Make accounting work properly with crypt and b2
- remove --no-traverse flag because it is obsolete
- Mount
- Add --attr-timeout flag to control attribute caching in kernel
- this now defaults to 0 which is correct but less efficient
- see the mount docs for more info
- Add --daemon flag to allow mount to run in the background
(ishuah)
- Fix: Return ENOSYS rather than EIO on attempted link
- This fixes FileZilla accessing an rclone mount served over
sftp.
- Fix setting modtime twice
- Mount tests now run on CI for Linux (mount & cmount)/Mac/Windows
- Many bugs fixed in the VFS layer - see below
- VFS
- Many fixes for --vfs-cache-mode writes and above
- Update cached copy if we know it has changed (fixes stale
data)
- Clean path names before using them in the cache
- Disable cache cleaner if --vfs-cache-poll-interval=0
- Fill and clean the cache immediately on startup
- Fix Windows opening every file when it stats the file
- Fix applying modtime for an open Write Handle
- Fix creation of files when truncating
- Write 0 bytes when flushing unwritten handles to avoid race
conditions in FUSE
- Downgrade "poll-interval is not supported" message to Info
- Make OpenFile and friends return EINVAL if O_RDONLY and O_TRUNC
- Local
- Downgrade "invalid cross-device link: trying copy" to debug
- Make DirMove return fs.ErrorCantDirMove to allow fallback to
Copy for cross device
- Fix race conditions updating the hashes
- Cache
- Add support for polling - cache will update when remote changes
on supported backends
- Reduce log level for Plex api
- Fix dir cache issue
- Implement --cache-db-wait-time flag
- Improve efficiency with RangeOption and RangeSeek
- Fix dirmove with temp fs enabled
- Notify vfs when using temp fs
- Offline uploading
- Remote control support for path flushing
- Amazon cloud drive
- Rclone no longer has any working keys - disable integration
tests
- Implement DirChangeNotify to notify cache/vfs/mount of changes
- Azureblob
- Don't check for bucket/container presence if listing was OK
- this makes rclone do one less request per invocation
- Improve accounting for chunked uploads
- Backblaze B2
- Don't check for bucket/container presence if listing was OK
- this makes rclone do one less request per invocation
- Box
- Improve accounting for chunked uploads
- Dropbox
- Fix custom oauth client parameters
- Google Cloud Storage
- Don't check for bucket/container presence if listing was OK
- this makes rclone do one less request per invocation
- Google Drive
- Migrate to api v3 (Fabian Möller)
- Add scope configuration and root folder selection
- Add --drive-impersonate for service accounts
- thanks to everyone who tested, explored and contributed docs
- Add --drive-use-created-date to use created date as modified
date (nbuchanan)
- Request the export formats only when required
- This makes rclone quicker when there are no google docs
- Fix finding paths with latin1 chars (a workaround for a drive
bug)
- Fix copying of a single Google doc file
- Fix --drive-auth-owner-only to look in all directories
- HTTP
- Fix handling of directories with & in
- Onedrive
- Removed upload cutoff and always do session uploads
- this stops the creation of multiple versions on business
onedrive
- Overwrite object size value with real size when reading file.
(Victor)
- this fixes oddities when onedrive misreports the size of
images
- Pcloud
- Remove unused chunked upload flag and code
- Qingstor
- Don't check for bucket/container presence if listing was OK
- this makes rclone do one less request per invocation
- S3
- Support hashes for multipart files (Chris Redekop)
- Initial support for IBM COS (S3) (Giri Badanahatti)
- Update docs to discourage use of v2 auth with CEPH and others
- Don't check for bucket/container presence if listing was OK
- this makes rclone do one less request per invocation
- Fix server-side copy and set modtime on files with + in
- SFTP
- Add option to disable remote hash check command execution (Jon
Fautley)
- Add --sftp-ask-password flag to prompt for password when needed
(Leo R. Lundgren)
- Add set_modtime configuration option
- Fix following of symlinks
- Fix reading config file outside of Fs setup
- Fix reading $USER in username fallback not $HOME
- Fix running under crontab - Use correct OS way of reading
username
- Swift
- Fix refresh of authentication token
- in v1.39 a bug was introduced which ignored new tokens -
this fixes it
- Fix extra HEAD transaction when uploading a new file
- Don't check for bucket/container presence if listing was OK
- this makes rclone do one less request per invocation
- Webdav
- Add new time formats to support mydrive.ch and others
v1.39 - 2017-12-23
- New backends
- WebDAV
- tested with nextcloud, owncloud, put.io and others!
- Pcloud
- cache - wraps a cache around other backends (Remus Bunduc)
- useful in combination with mount
- NB this feature is in beta so use with care
- New commands
- serve command with subcommands:
- serve webdav: this implements a webdav server for any rclone
remote.
- serve http: command to serve a remote over HTTP
- config: add sub commands for full config file management
- create/delete/dump/edit/file/password/providers/show/update
- touch: to create or update the timestamp of a file (Jakub
Tasiemski)
- New Features
- curl install for rclone (Filip Bartodziej)
- --stats now shows percentage, size, rate and ETA in condensed
form (Ishuah Kariuki)
- --exclude-if-present to exclude a directory if a file is present
(Iakov Davydov)
- rmdirs: add --leave-root flag (lewapm)
- move: add --delete-empty-src-dirs flag to remove dirs after move
(Ishuah Kariuki)
- Add --dump flag, introduce --dump requests, responses and remove
--dump-auth, --dump-filters
- Obscure X-Auth-Token: from headers when dumping too
- Document and implement exit codes for different failure modes
(Ishuah Kariuki)
- Compile
- Bug Fixes
- Retry lots more different types of errors to make multipart
transfers more reliable
- Save the config before asking for a token, fixes disappearing
oauth config
- Warn the user if --include and --exclude are used together
(Ernest Borowski)
- Fix duplicate files (e.g. on Google drive) causing spurious
copies
- Allow trailing and leading whitespace for passwords (Jason Rose)
- ncdu: fix crashes on empty directories
- rcat: fix goroutine leak
- moveto/copyto: Fix to allow copying to the same name
- Mount
- --vfs-cache mode to make writes into mounts more reliable.
- this requires caching files on the disk (see --cache-dir)
- As this is a new feature, use with care
- Use sdnotify to signal systemd the mount is ready (Fabian
Möller)
- Check if directory is not empty before mounting (Ernest
Borowski)
- Local
- Add error message for cross file system moves
- Fix equality check for times
- Dropbox
- Rework multipart upload
- buffer the chunks when uploading large files so they can be
retried
- change default chunk size to 48MB now we are buffering them
in memory
- retry every error after the first chunk is done successfully
- Fix error when renaming directories
- Swift
- Fix crash on bad authentication
- Google Drive
- Add service account support (Tim Cooijmans)
- S3
- Make it work properly with Digital Ocean Spaces (Andrew
Starr-Bochicchio)
- Fix crash if a bad listing is received
- Add support for ECS task IAM roles (David Minor)
- Backblaze B2
- Fix multipart upload retries
- Fix --hard-delete to make it work 100% of the time
- Swift
- Allow authentication with storage URL and auth key (Giovanni
Pizzi)
- Add new fields for swift configuration to support IBM Bluemix
Swift (Pierre Carlson)
- Add OS_TENANT_ID and OS_USER_ID to config
- Allow configs with user id instead of user name
- Check if swift segments container exists before creating (John
Leach)
- Fix memory leak in swift transfers (upstream fix)
- SFTP
- Add option to enable the use of aes128-cbc cipher (Jon Fautley)
- Amazon cloud drive
- Fix download of large files failing with "Only one auth
mechanism allowed"
- crypt
- Option to encrypt directory names or leave them intact
- Implement DirChangeNotify (Fabian Möller)
- onedrive
- Add option to choose resourceURL during setup of OneDrive
Business account if more than one is available for user
v1.38 - 2017-09-30
- New backends
- Azure Blob Storage (thanks Andrei Dragomir)
- Box
- Onedrive for Business (thanks Oliver Heyme)
- QingStor from QingCloud (thanks wuyu)
- New commands
- rcat - read from standard input and stream upload
- tree - shows a nicely formatted recursive listing
- cryptdecode - decode encrypted file names (thanks ishuah)
- config show - print the config file
- config file - print the config file location
- New Features
- Empty directories are deleted on sync
- dedupe - implement merging of duplicate directories
- check and cryptcheck made more consistent and use less memory
- cleanup for remaining remotes (thanks ishuah)
- --immutable for ensuring that files don't change (thanks Jacob
McNamee)
- --user-agent option (thanks Alex McGrath Kraak)
- --disable flag to disable optional features
- --bind flag for choosing the local addr on outgoing connections
- Support for zsh auto-completion (thanks bpicode)
- Stop normalizing file names but do a normalized compare in sync
- Compile
- Update to using go1.9 as the default go version
- Remove snapd build due to maintenance problems
- Bug Fixes
- Improve retriable error detection which makes multipart uploads
better
- Make check obey --ignore-size
- Fix bwlimit toggle in conjunction with schedules (thanks
cbruegg)
- config ensures newly written config is on the same mount
- Local
- Revert to copy when moving file across file system boundaries
- --skip-links to suppress symlink warnings (thanks Zhiming Wang)
- Mount
- Reuse rcat internals to support uploads from all remotes
- Dropbox
- Fix "entry doesn't belong in directory" error
- Stop using deprecated API methods
- Swift
- Fix server-side copy to empty container with --fast-list
- Google Drive
- Change the default for --drive-use-trash to true
- S3
- Set session token when using STS (thanks Girish Ramakrishnan)
- Glacier docs and error messages (thanks Jan Varho)
- Read 1000 (not 1024) items in dir listings to fix Wasabi
- Backblaze B2
- Fix SHA1 mismatch when downloading files with no SHA1
- Calculate missing hashes on the fly instead of spooling
- --b2-hard-delete to permanently delete (not hide) files (thanks
John Papandriopoulos)
- Hubic
- Fix creating containers - no longer have to use the default
container
- Swift
- Optionally configure from a standard set of OpenStack
environment vars
- Add endpoint_type config
- Google Cloud Storage
- Fix bucket creation to work with limited permission users
- SFTP
- Implement connection pooling for multiple ssh connections
- Limit new connections per second
- Add support for MD5 and SHA1 hashes where available (thanks
Christian Brüggemann)
- HTTP
- Fix URL encoding issues
- Fix directories with : in
- Fix panic with URL encoded content
v1.37 - 2017-07-22
- New backends
- FTP - thanks to Antonio Messina
- HTTP - thanks to Vasiliy Tolstov
- New commands
- rclone ncdu - for exploring a remote with a text based user
interface.
- rclone lsjson - for listing with a machine-readable output
- rclone dbhashsum - to show Dropbox style hashes of files (local
or Dropbox)
- New Features
- Implement --fast-list flag
- This allows remotes to list recursively if they can
- This uses less transactions (important if you pay for them)
- This may or may not be quicker
- This will use more memory as it has to hold the listing in
memory
- --old-sync-method deprecated - the remaining uses are
covered by --fast-list
- This involved a major re-write of all the listing code
- Add --tpslimit and --tpslimit-burst to limit transactions per
second
- this is useful in conjunction with rclone mount to limit
external apps
- Add --stats-log-level so can see --stats without -v
- Print password prompts to stderr - Hraban Luyat
- Warn about duplicate files when syncing
- Oauth improvements
- allow auth_url and token_url to be set in the config file
- Print redirection URI if using own credentials.
- Don't Mkdir at the start of sync to save transactions
- Compile
- Update build to go1.8.3
- Require go1.6 for building rclone
- Compile 386 builds with "GO386=387" for maximum compatibility
- Bug Fixes
- Fix menu selection when no remotes
- Config saving reworked to not kill the file if disk gets full
- Don't delete remote if name does not change while renaming
- moveto, copyto: report transfers and checks as per move and copy
- Local
- Add --local-no-unicode-normalization flag - Bob Potter
- Mount
- Now supported on Windows using cgofuse and WinFsp - thanks to
Bill Zissimopoulos for much help
- Compare checksums on upload/download via FUSE
- Unmount when program ends with SIGINT (Ctrl+C) or SIGTERM -
Jérôme Vizcaino
- On read only open of file, make open pending until first read
- Make --read-only reject modify operations
- Implement ModTime via FUSE for remotes that support it
- Allow modTime to be changed even before all writers are closed
- Fix panic on renames
- Fix hang on errored upload
- Crypt
- Report the name:root as specified by the user
- Add an "obfuscate" option for filename encryption - Stephen
Harris
- Amazon Drive
- Fix initialization order for token renewer
- Remove revoked credentials, allow oauth proxy config and update
docs
- B2
- Reduce minimum chunk size to 5MB
- Drive
- Add team drive support
- Reduce bandwidth by adding fields for partial responses - Martin
Kristensen
- Implement --drive-shared-with-me flag to view shared with me
files - Danny Tsai
- Add --drive-trashed-only to read only the files in the trash
- Remove obsolete --drive-full-list
- Add missing seek to start on retries of chunked uploads
- Fix stats accounting for upload
- Convert / in names to a unicode equivalent (/)
- Poll for Google Drive changes when mounted
- OneDrive
- Fix the uploading of files with spaces
- Fix initialization order for token renewer
- Display speeds accurately when uploading - Yoni Jah
- Swap to using http://localhost:53682/ as redirect URL - Michael
Ledin
- Retry on token expired error, reset upload body on retry - Yoni
Jah
- Google Cloud Storage
- Add ability to specify location and storage class via config and
command line - thanks gdm85
- Create container if necessary on server-side copy
- Increase directory listing chunk to 1000 to increase performance
- Obtain a refresh token for GCS - Steven Lu
- Yandex
- Fix the name reported in log messages (was empty)
- Correct error return for listing empty directory
- Dropbox
- Rewritten to use the v2 API
- Now supports ModTime
- Can only set by uploading the file again
- If you uploaded with an old rclone, rclone may upload
everything again
- Use --size-only or --checksum to avoid this
- Now supports the Dropbox content hashing scheme
- Now supports low level retries
- S3
- Work around eventual consistency in bucket creation
- Create container if necessary on server-side copy
- Add us-east-2 (Ohio) and eu-west-2 (London) S3 regions - Zahiar
Ahmed
- Swift, Hubic
- Fix zero length directory markers showing in the subdirectory
listing
- this caused lots of duplicate transfers
- Fix paged directory listings
- this caused duplicate directory errors
- Create container if necessary on server-side copy
- Increase directory listing chunk to 1000 to increase performance
- Make sensible error if the user forgets the container
- SFTP
- Add support for using ssh key files
- Fix under Windows
- Fix ssh agent on Windows
- Adapt to latest version of library - Igor Kharin
v1.36 - 2017-03-18
- New Features
- SFTP remote (Jack Schmidt)
- Re-implement sync routine to work a directory at a time reducing
memory usage
- 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
- Implement --backup-dir and --suffix
- Implement --track-renames (initial implementation by Bjørn Erik
Pedersen)
- Add time-based bandwidth limits (Lukas Loesche)
- rclone cryptcheck: checks integrity of crypt remotes
- Allow all config file variables and options to be set from
environment variables
- Add --buffer-size parameter to control buffer size for copy
- Make --delete-after the default
- Add --ignore-checksum flag (fixed by Hisham Zarka)
- rclone check: Add --download flag to check all the data, not
just hashes
- rclone cat: add --head, --tail, --offset, --count and --discard
- rclone config: when choosing from a list, allow the value to be
entered too
- rclone config: allow rename and copy of remotes
- rclone obscure: for generating encrypted passwords for rclone's
config (T.C. Ferguson)
- Comply with XDG Base Directory specification (Dario Giovannetti)
- this moves the default location of the config file in a
backwards compatible way
- Release changes
- Ubuntu snap support (Dedsec1)
- Compile with go 1.8
- MIPS/Linux big and little endian support
- Bug Fixes
- Fix copyto copying things to the wrong place if the destination
dir didn't exist
- Fix parsing of remotes in moveto and copyto
- Fix --delete-before deleting files on copy
- Fix --files-from with an empty file copying everything
- Fix sync: don't update mod times if --dry-run set
- Fix MimeType propagation
- Fix filters to add ** rules to directory rules
- Local
- Implement -L, --copy-links flag to allow rclone to follow
symlinks
- Open files in write only mode so rclone can write to an rclone
mount
- Fix unnormalised unicode causing problems reading directories
- Fix interaction between -x flag and --max-depth
- Mount
- Implement proper directory handling (mkdir, rmdir, renaming)
- Make include and exclude filters apply to mount
- Implement read and write async buffers - control with
--buffer-size
- Fix fsync on for directories
- Fix retry on network failure when reading off crypt
- Crypt
- Add --crypt-show-mapping to show encrypted file mapping
- Fix crypt writer getting stuck in a loop
- IMPORTANT this bug had the potential to cause data
corruption when
- reading data from a network based remote and
- writing to a crypt on Google Drive
- Use the cryptcheck command to validate your data if you are
concerned
- If syncing two crypt remotes, sync the unencrypted remote
- Amazon Drive
- Fix panics on Move (rename)
- Fix panic on token expiry
- B2
- Fix inconsistent listings and rclone check
- Fix uploading empty files with go1.8
- Constrain memory usage when doing multipart uploads
- Fix upload url not being refreshed properly
- Drive
- Fix Rmdir on directories with trashed files
- Fix "Ignoring unknown object" when downloading
- Add --drive-list-chunk
- Add --drive-skip-gdocs (Károly Oláh)
- OneDrive
- Implement Move
- Fix Copy
- Fix overwrite detection in Copy
- Fix waitForJob to parse errors correctly
- Use token renewer to stop auth errors on long uploads
- Fix uploading empty files with go1.8
- Google Cloud Storage
- Fix depth 1 directory listings
- Yandex
- Fix single level directory listing
- Dropbox
- Normalise the case for single level directory listings
- Fix depth 1 listing
- S3
- Added ca-central-1 region (Jon Yergatian)
v1.35 - 2017-01-02
- New Features
- moveto and copyto commands for choosing a destination name on
copy/move
- rmdirs command to recursively delete empty directories
- Allow repeated --include/--exclude/--filter options
- Only show transfer stats on commands which transfer stuff
- show stats on any command using the --stats flag
- Allow overlapping directories in move when server-side dir move
is supported
- Add --stats-unit option - thanks Scott McGillivray
- Bug Fixes
- Fix the config file being overwritten when two rclone instances
are running
- Make rclone lsd obey the filters properly
- Fix compilation on mips
- Fix not transferring files that don't differ in size
- Fix panic on nil retry/fatal error
- Mount
- Retry reads on error - should help with reliability a lot
- Report the modification times for directories from the remote
- Add bandwidth accounting and limiting (fixes --bwlimit)
- If --stats provided will show stats and which files are
transferring
- Support R/W files if truncate is set.
- Implement statfs interface so df works
- Note that write is now supported on Amazon Drive
- Report number of blocks in a file - thanks Stefan Breunig
- Crypt
- Prevent the user pointing crypt at itself
- Fix failed to authenticate decrypted block errors
- these will now return the underlying unexpected EOF instead
- Amazon Drive
- Add support for server-side move and directory move - thanks
Stefan Breunig
- Fix nil pointer deref on size attribute
- B2
- Use new prefix and delimiter parameters in directory listings
- This makes --max-depth 1 dir listings as used in mount much
faster
- Reauth the account while doing uploads too - should help with
token expiry
- Drive
- Make DirMove more efficient and complain about moving the root
- Create destination directory on Move()
v1.34 - 2016-11-06
- New Features
- Stop single file and --files-from operations iterating through
the source bucket.
- Stop removing failed upload to cloud storage remotes
- Make ContentType be preserved for cloud to cloud copies
- Add support to toggle bandwidth limits via SIGUSR2 - thanks
Marco Paganini
- rclone check shows count of hashes that couldn't be checked
- rclone listremotes command
- Support linux/arm64 build - thanks Fredrik Fornwall
- Remove Authorization: lines from --dump-headers output
- Bug Fixes
- Ignore files with control characters in the names
- Fix rclone move command
- Delete src files which already existed in dst
- Fix deletion of src file when dst file older
- Fix rclone check on encrypted file systems
- Make failed uploads not count as "Transferred"
- Make sure high level retries show with -q
- Use a vendor directory with godep for repeatable builds
- rclone mount - FUSE
- Implement FUSE mount options
- --no-modtime, --debug-fuse, --read-only, --allow-non-empty,
--allow-root, --allow-other
- --default-permissions, --write-back-cache, --max-read-ahead,
--umask, --uid, --gid
- Add --dir-cache-time to control caching of directory entries
- Implement seek for files opened for read (useful for video
players)
- with -no-seek flag to disable
- Fix crash on 32 bit ARM (alignment of 64 bit counter)
- ...and many more internal fixes and improvements!
- Crypt
- Don't show encrypted password in configurator to stop confusion
- Amazon Drive
- New wait for upload option --acd-upload-wait-per-gb
- upload timeouts scale by file size and can be disabled
- Add 502 Bad Gateway to list of errors we retry
- Fix overwriting a file with a zero length file
- Fix ACD file size warning limit - thanks Felix Bünemann
- Local
- Unix: implement -x/--one-file-system to stay on a single file
system
- thanks Durval Menezes and Luiz Carlos Rumbelsperger Viana
- Windows: ignore the symlink bit on files
- Windows: Ignore directory-based junction points
- B2
- Make sure each upload has at least one upload slot - fixes
strange upload stats
- Fix uploads when using crypt
- Fix download of large files (sha1 mismatch)
- Return error when we try to create a bucket which someone else
owns
- Update B2 docs with Data usage, and Crypt section - thanks
Tomasz Mazur
- S3
- Command line and config file support for
- Setting/overriding ACL - thanks Radek Šenfeld
- Setting storage class - thanks Asko Tamm
- Drive
- Make exponential backoff work exactly as per Google
specification
- add .epub, .odp and .tsv as export formats.
- Swift
- Don't read metadata for directory marker objects
v1.33 - 2016-08-24
- New Features
- Implement encryption
- data encrypted in NACL secretbox format
- with optional file name encryption
- New commands
- rclone mount - implements FUSE mounting of remotes
(EXPERIMENTAL)
- works on Linux, FreeBSD and OS X (need testers for the
last 2!)
- rclone cat - outputs remote file or files to the terminal
- rclone genautocomplete - command to make a bash completion
script for rclone
- Editing a remote using rclone config now goes through the wizard
- Compile with go 1.7 - this fixes rclone on macOS Sierra and on
386 processors
- Use cobra for sub commands and docs generation
- drive
- Document how to make your own client_id
- s3
- User-configurable Amazon S3 ACL (thanks Radek Šenfeld)
- b2
- Fix stats accounting for upload - no more jumping to 100% done
- On cleanup delete hide marker if it is the current file
- New B2 API endpoint (thanks Per Cederberg)
- Set maximum backoff to 5 Minutes
- onedrive
- Fix URL escaping in file names - e.g. uploading files with + in
them.
- amazon cloud drive
- Fix token expiry during large uploads
- Work around 408 REQUEST_TIMEOUT and 504 GATEWAY_TIMEOUT errors
- local
- Fix filenames with invalid UTF-8 not being uploaded
- Fix problem with some UTF-8 characters on OS X
v1.32 - 2016-07-13
- Backblaze B2
- Fix upload of files large files not in root
v1.31 - 2016-07-13
- New Features
- Reduce memory on sync by about 50%
- Implement --no-traverse flag to stop copy traversing the
destination remote.
- This can be used to reduce memory usage down to the smallest
possible.
- Useful to copy a small number of files into a large
destination folder.
- Implement cleanup command for emptying trash / removing old
versions of files
- Currently B2 only
- Single file handling improved
- Now copied with --files-from
- Automatically sets --no-traverse when copying a single file
- Info on using installing with ansible - thanks Stefan Weichinger
- Implement --no-update-modtime flag to stop rclone fixing the
remote modified times.
- Bug Fixes
- Fix move command - stop it running for overlapping Fses - this
was causing data loss.
- Local
- Fix incomplete hashes - this was causing problems for B2.
- Amazon Drive
- Rename Amazon Cloud Drive to Amazon Drive - no changes to config
file needed.
- Swift
- Add support for non-default project domain - thanks Antonio
Messina.
- S3
- Add instructions on how to use rclone with minio.
- Add ap-northeast-2 (Seoul) and ap-south-1 (Mumbai) regions.
- Skip setting the modified time for objects > 5GB as it isn't
possible.
- Backblaze B2
- Add --b2-versions flag so old versions can be listed and
retrieved.
- Treat 403 errors (e.g. cap exceeded) as fatal.
- Implement cleanup command for deleting old file versions.
- Make error handling compliant with B2 integrations notes.
- Fix handling of token expiry.
- Implement --b2-test-mode to set X-Bz-Test-Mode header.
- Set cutoff for chunked upload to 200MB as per B2 guidelines.
- Make upload multi-threaded.
- Dropbox
- Don't retry 461 errors.
v1.30 - 2016-06-18
- New Features
- Directory listing code reworked for more features and better
error reporting (thanks to Klaus Post for help). This enables
- Directory include filtering for efficiency
- --max-depth parameter
- Better error reporting
- More to come
- Retry more errors
- Add --ignore-size flag - for uploading images to onedrive
- Log -v output to stdout by default
- Display the transfer stats in more human-readable form
- Make 0 size files specifiable with --max-size 0b
- Add b suffix so we can specify bytes in --bwlimit, --min-size,
etc.
- Use "password:" instead of "password>" prompt - thanks Klaus
Post and Leigh Klotz
- Bug Fixes
- Fix retry doing one too many retries
- Local
- Fix problems with OS X and UTF-8 characters
- Amazon Drive
- Check a file exists before uploading to help with 408 Conflict
errors
- Reauth on 401 errors - this has been causing a lot of problems
- Work around spurious 403 errors
- Restart directory listings on error
- Google Drive
- Check a file exists before uploading to help with duplicates
- Fix retry of multipart uploads
- Backblaze B2
- Implement large file uploading
- S3
- Add AES256 server-side encryption for - thanks Justin R. Wilson
- Google Cloud Storage
- Make sure we don't use conflicting content types on upload
- Add service account support - thanks Michal Witkowski
- Swift
- Add auth version parameter
- Add domain option for openstack (v3 auth) - thanks Fabian Ruff
v1.29 - 2016-04-18
- New Features
- Implement -I, --ignore-times for unconditional upload
- Improve dedupecommand
- Now removes identical copies without asking
- Now obeys --dry-run
- Implement --dedupe-mode for non interactive running
- --dedupe-mode interactive - interactive the default.
- --dedupe-mode skip - removes identical files then skips
anything left.
- --dedupe-mode first - removes identical files then keeps
the first one.
- --dedupe-mode newest - removes identical files then
keeps the newest one.
- --dedupe-mode oldest - removes identical files then
keeps the oldest one.
- --dedupe-mode rename - removes identical files then
renames the rest to be different.
- Bug fixes
- Make rclone check obey the --size-only flag.
- Use "application/octet-stream" if discovered mime type is
invalid.
- Fix missing "quit" option when there are no remotes.
- Google Drive
- Increase default chunk size to 8 MB - increases upload speed of
big files
- Speed up directory listings and make more reliable
- Add missing retries for Move and DirMove - increases reliability
- Preserve mime type on file update
- Backblaze B2
- Enable mod time syncing
- This means that B2 will now check modification times
- It will upload new files to update the modification times
- (there isn't an API to just set the mod time.)
- If you want the old behaviour use --size-only.
- Update API to new version
- Fix parsing of mod time when not in metadata
- Swift/Hubic
- Don't return an MD5SUM for static large objects
- S3
- Fix uploading files bigger than 50GB
v1.28 - 2016-03-01
- New Features
- Configuration file encryption - thanks Klaus Post
- Improve rclone config adding more help and making it easier to
understand
- Implement -u/--update so creation times can be used on all
remotes
- Implement --low-level-retries flag
- Optionally disable gzip compression on downloads with
--no-gzip-encoding
- Bug fixes
- Don't make directories if --dry-run set
- Fix and document the move command
- Fix redirecting stderr on unix-like OSes when using --log-file
- Fix delete command to wait until all finished - fixes missing
deletes.
- Backblaze B2
- Use one upload URL per go routine fixes
more than one upload using auth token
- Add pacing, retries and reauthentication - fixes token expiry
problems
- Upload without using a temporary file from local (and remotes
which support SHA1)
- Fix reading metadata for all files when it shouldn't have been
- Drive
- Fix listing drive documents at root
- Disable copy and move for Google docs
- Swift
- Fix uploading of chunked files with non ASCII characters
- Allow setting of storage_url in the config - thanks Xavier Lucas
- S3
- Allow IAM role and credentials from environment variables -
thanks Brian Stengaard
- Allow low privilege users to use S3 (check if directory exists
during Mkdir) - thanks Jakub Gedeon
- Amazon Drive
- Retry on more things to make directory listings more reliable
v1.27 - 2016-01-31
- New Features
- Easier headless configuration with rclone authorize
- Add support for multiple hash types - we now check SHA1 as well
as MD5 hashes.
- delete command which does obey the filters (unlike purge)
- dedupe command to deduplicate a remote. Useful with Google
Drive.
- Add --ignore-existing flag to skip all files that exist on
destination.
- Add --delete-before, --delete-during, --delete-after flags.
- Add --memprofile flag to debug memory use.
- Warn the user about files with same name but different case
- Make --include rules add their implicit exclude * at the end of
the filter list
- Deprecate compiling with go1.3
- Amazon Drive
- Fix download of files > 10 GB
- Fix directory traversal ("Next token is expired") for large
directory listings
- Remove 409 conflict from error codes we will retry - stops very
long pauses
- Backblaze B2
- SHA1 hashes now checked by rclone core
- Drive
- Add --drive-auth-owner-only to only consider files owned by the
user - thanks Björn Harrtell
- Export Google documents
- Dropbox
- Make file exclusion error controllable with -q
- Swift
- Fix upload from unprivileged user.
- S3
- Fix updating of mod times of files with + in.
- Local
- Add local file system option to disable UNC on Windows.
v1.26 - 2016-01-02
- New Features
- Yandex storage backend - thank you Dmitry Burdeev ("dibu")
- Implement Backblaze B2 storage backend
- Add --min-age and --max-age flags - thank you Adriano Aurélio
Meirelles
- Make ls/lsl/md5sum/size/check obey includes and excludes
- Fixes
- Fix crash in http logging
- Upload releases to github too
- Swift
- Fix sync for chunked files
- OneDrive
- Re-enable server-side copy
- Don't mask HTTP error codes with JSON decode error
- S3
- Fix corrupting Content-Type on mod time update (thanks Joseph
Spurrier)
v1.25 - 2015-11-14
- New features
- Implement Hubic storage system
- Fixes
- Fix deletion of some excluded files without --delete-excluded
- This could have deleted files unexpectedly on sync
- Always check first with --dry-run!
- Swift
- Stop SetModTime losing metadata (e.g. X-Object-Manifest)
- This could have caused data loss for files > 5GB in size
- Use ContentType from Object to avoid lookups in listings
- OneDrive
- disable server-side copy as it seems to be broken at Microsoft
v1.24 - 2015-11-07
- New features
- Add support for Microsoft OneDrive
- Add --no-check-certificate option to disable server certificate
verification
- Add async readahead buffer for faster transfer of big files
- Fixes
- Allow spaces in remotes and check remote names for validity at
creation time
- Allow '&' and disallow ':' in Windows filenames.
- Swift
- Ignore directory marker objects where appropriate - allows
working with Hubic
- Don't delete the container if fs wasn't at root
- S3
- Don't delete the bucket if fs wasn't at root
- Google Cloud Storage
- Don't delete the bucket if fs wasn't at root
v1.23 - 2015-10-03
- New features
- Implement rclone size for measuring remotes
- Fixes
- Fix headless config for drive and gcs
- Tell the user they should try again if the webserver method
failed
- Improve output of --dump-headers
- S3
- Allow anonymous access to public buckets
- Swift
- Stop chunked operations logging "Failed to read info: Object Not
Found"
- Use Content-Length on uploads for extra reliability
v1.22 - 2015-09-28
v1.21 - 2015-09-22
- New features
- Display individual transfer progress
- Make lsl output times in localtime
- Fixes
- Fix allowing user to override credentials again in Drive, GCS
and ACD
- Amazon Drive
- Implement compliant pacing scheme
- Google Drive
- Make directory reads concurrent for increased speed.
v1.20 - 2015-09-15
- New features
- Amazon Drive support
- Oauth support redone - fix many bugs and improve usability
- Use "golang.org/x/oauth2" as oauth library of choice
- Improve oauth usability for smoother initial signup
- drive, googlecloudstorage: optionally use auto config for
the oauth token
- Implement --dump-headers and --dump-bodies debug flags
- Show multiple matched commands if abbreviation too short
- Implement server-side move where possible
- local
- Always use UNC paths internally on Windows - fixes a lot of bugs
- dropbox
- force use of our custom transport which makes timeouts work
- Thanks to Klaus Post for lots of help with this release
v1.19 - 2015-08-28
- New features
- Server side copies for s3/swift/drive/dropbox/gcs
- Move command - uses server-side copies if it can
- Implement --retries flag - tries 3 times by default
- Build for plan9/amd64 and solaris/amd64 too
- Fixes
- Make a current version download with a fixed URL for scripting
- Ignore rmdir in limited fs rather than throwing error
- dropbox
- Increase chunk size to improve upload speeds massively
- Issue an error message when trying to upload bad file name
v1.18 - 2015-08-17
- drive
- Add --drive-use-trash flag so rclone trashes instead of deletes
- Add "Forbidden to download" message for files with no
downloadURL
- dropbox
- Remove datastore
- This was deprecated and it caused a lot of problems
- Modification times and MD5SUMs no longer stored
- Fix uploading files > 2GB
- s3
- use official AWS SDK from github.com/aws/aws-sdk-go
- NB will most likely require you to delete and recreate remote
- enable multipart upload which enables files > 5GB
- tested with Ceph / RadosGW / S3 emulation
- many thanks to Sam Liston and Brian Haymore at the Utah Center
for High Performance Computing for a Ceph test account
- misc
- Show errors when reading the config file
- Do not print stats in quiet mode - thanks Leonid Shalupov
- Add FAQ
- Fix created directories not obeying umask
- Linux installation instructions - thanks Shimon Doodkin
v1.17 - 2015-06-14
v1.16 - 2015-06-09
v1.15 - 2015-06-06
v1.14 - 2015-05-21
- local: fix encoding of non utf-8 file names - fixes a duplicate file
problem
- drive: docs about rate limiting
- google cloud storage: Fix compile after API change in
"google.golang.org/api/storage/v1"
v1.13 - 2015-05-10
v1.12 - 2015-03-15
v1.11 - 2015-03-04
v1.10 - 2015-02-12
v1.09 - 2015-02-07
- windows: Stop drive letters (e.g. C:) getting mixed up with remotes
(e.g. drive:)
- local: Fix directory separators on Windows
- drive: fix rate limit exceeded errors
v1.08 - 2015-02-04
v1.07 - 2014-12-23
v1.06 - 2014-12-12
- Fix "Couldn't find home directory" on OSX
- swift: Add tenant parameter
- Use new location of Google API packages
v1.05 - 2014-08-09
v1.04 - 2014-07-21
v1.03 - 2014-07-20
v1.02 - 2014-07-19
v1.01 - 2014-07-04
v1.00 - 2014-07-03
v0.99 - 2014-06-26
v0.98 - 2014-05-30
v0.97 - 2014-05-05
v0.96 - 2014-04-24
v0.95 - 2014-03-28
v0.94 - 2014-03-27
v0.93 - 2014-03-16
v0.92 - 2014-03-15
v0.91 - 2014-03-15
v0.90 - 2013-06-27
v0.00 - 2012-11-18
- Project started
Limitations
Bugs
- Reported bugs
- Known issues
Yes they do. All the rclone commands (e.g. sync, copy, etc.) will work
on all the remote storage systems.
Sure! Rclone stores all of its config in a single file. If you want to
find this file, run rclone config file which will tell you where it is.
This has now been documented in its own remote setup page.
Rclone can sync between two remote cloud storage systems just fine.
Note that it effectively downloads the file and uploads it again, so the
node running rclone would need to have lots of bandwidth.
e.g.
You can use rclone from multiple places at the same time if you choose
different subdirectory for the output, e.g.
The file names you upload from Server A and Server B should be different
in this case, otherwise some file systems (e.g. Drive) may make
duplicates.
Why doesn't rclone support partial transfers / binary diffs like rsync?
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 (e.g. 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.
Cloud storage systems (at least none I've come across yet) don't support
partially uploading an object. You can't take an existing object, and
change some bytes in the middle of it.
Yes. rclone will follow the standard environment variables for proxies,
similar to cURL and other programs.
export http_proxy=http://proxyserver:12345
export https_proxy=$http_proxy
export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$http_proxy
Note: If the proxy server requires a username and password, then use
export http_proxy=http://username:password@proxyserver:12345
export https_proxy=$http_proxy
export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$http_proxy
The NO_PROXY 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".
e.g.
export no_proxy=localhost,127.0.0.0/8,my.host.name
export NO_PROXY=$no_proxy
Note that the FTP backend does not support ftp_proxy yet.
Rclone gives x509: failed to load system roots and no roots provided error
This means that rclone can't find the SSL root certificates. Likely you
are running rclone on a NAS with a cut-down Linux OS, or possibly on
Solaris.
Rclone (via the Go runtime) tries to load the root certificates from
these places on Linux.
So doing something like this should fix the problem. It also sets the
time which is important for SSL to work properly.
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
Note that you may need to add the --insecure option to the curl command
line if it doesn't work without.
Rclone gives Failed to load config file: function not implemented error
Likely this means that you are running rclone on Linux version not
supported by the go runtime, ie earlier than version 2.6.23.
See the system requirements section in the go install docs for full
details.
All my uploaded docx/xlsx/pptx files appear as archive/zip
This happens when rclone cannot resolve a domain. Please check that your
DNS setup is generally working, e.g.
Error: config failed to refresh token: failed to start auth webserver: listen
tcp 127.0.0.1:53682: bind: An attempt was made to access a socket in a way
forbidden by its access permissions.
...
yyyy/mm/dd hh:mm:ss Fatal error: config failed to refresh token: failed to
start auth webserver: listen tcp 127.0.0.1:53682: bind: An attempt was made to
access a socket in a way forbidden by its access permissions.
This is sometimes caused by the Host Network Service causing issues with
opening the port on the host.
A simple solution may be restarting the Host Network Service with eg.
Powershell
Restart-Service hns
The total size reported in the stats for a sync is wrong and keeps changing
It is likely you have more than 10,000 files that need to be synced. By
default, rclone only gets 10,000 files ahead in a sync so as not to use
up too much memory. You can change this default with the --max-backlog
flag.
For example: On a Windows system, you have a file with name Test:1.jpg,
where : is the Unicode fullwidth colon symbol. When using rclone to
copy this to your Google Drive, you will notice that the file gets
renamed to Test:1.jpg, where : is the regular (halfwidth) colon.
The reason for such renames is the way rclone handles different
restricted filenames on different cloud storage systems. It tries to
avoid ambiguous file names as much and allow moving files between many
cloud storage systems transparently, by replacing invalid characters
with similar looking Unicode characters when transferring to one storage
system, and replacing back again when transferring to a different
storage system where the original characters are supported. When the
same Unicode characters are intentionally used in file names, this
replacement strategy leads to unwanted renames. Read more here.
License
This is free software under the terms of the MIT license (check the
COPYING file included with the source code).
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.
Authors
- Nick Craig-Wood [email protected]
Contributors
{{< rem
email addresses removed from here need to be added to bin/.ignore-emails to make
sure update-authors.py doesn't immediately put them back in again.
>}}
Forum
- https://forum.rclone.org
Business support
- https://rclone.com/
- [email protected]
GitHub repository
- https://github.com/rclone/rclone
There you can file bug reports or contribute with pull requests.
- [@njcw](https://twitter.com/njcw)
Please don't email requests for help to this address - those are better
directed to the forum unless you'd like to sign up for business support.