Skip to content

rclone

install

To install rclone on Linux/macOS/BSD systems, run:

sudo -v ; curl https://rclone.org/install.sh | sudo bash

configure

The easiest way to make the config is to run rclone with the config option:

rclone config

Basic syntax

Rclone syncs a directory tree from one storage system to another.

Its syntax is like this

Syntax: [options] subcommand <parameters> <parameters...>

Subcommands

rclone uses a system of subcommands. For example

rclone ls remote:path # lists a remote
rclone copy /local/path remote:path # copies /local/path to the remote
rclone sync -i /local/path remote:path # syncs /local/path to the remote

The main rclone commands with most used first

Tips

Without the use of --vfs-cache-mode this can only write files sequentially, it can only seek when reading. This means that many applications won't work with their files on an rclone mount without --vfs-cache-mode writes or --vfs-cache-mode full

for "can't copy - source file is being updated" problem add the --local-no-check-updated or the new version --no-modtime

rclone mount onedrive: /mnt/onedrive -vv --vfs-cache-mode full --no-modtime

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.

rclone config

for "Transport endpoint not connected"

尝试重新挂载

解除挂载命令 加上参数-z表示强制

fusermount -u /mnt/onedrive

如其它一些应用要读取挂载点可能需要加上 --allow-other 命令,此命令需要修改fuse.conf文件

sudo vi /etc/fuse.conf

uncomment "user_allow_other"

rclone mount onedrive: /mnt/onew --daemon --log-level INFO --log-file "/tmp/rclone.log" --vfs-cache-mode writes --no-modtime --allow-other