rclone guide: install, remotes, sync, mount, encryption and safe backups
rclone describes itself as rsync for cloud storage. Nick Craig-Wood started it in 2012, and it has become the standard tool for moving files between cloud services from the command line. Backup tools such as restic and Kopia can use it to reach storage they do not support directly, and many NAS systems and self-hosted apps ship it inside.
Releases are regular. Version 1.75.0 arrived on July 31, 2026 with new S3-compatible providers, and 1.75.2 on October 9, 2026 fixed security issues, including updating to Go 1.26.9 for its CVE fixes and a fix for a Backblaze B2 token leak. If you run rclone on a server, update it with rclone selfupdate or your package manager.
Installing rclone
| System | Command |
|---|---|
| macOS | brew install rclone |
| Linux, macOS | curl https://rclone.org/install.sh | sudo bash |
| Windows | winget install Rclone.Rclone or scoop install rclone |
| Docker | docker pull rclone/rclone |
Distribution packages are often far behind. The install script or a release binary from rclone.org gives you the current version.
Adding a remote
A remote is a named connection to one storage account. Create one with:
rclone config
Choose n, give it a short name such as gdrive or r2, pick the storage type and follow the prompts. Services with web login, such as Google Drive, OneDrive and Dropbox, open a browser. S3-compatible services ask for an access key, secret and endpoint.
Settings are saved in rclone.conf. Run rclone config file to see where. You can encrypt the whole config file with a password from the rclone config menu, which is a good idea on shared machines since the file holds tokens and keys.
Once set up, you refer to a path as remote:path:
rclone lsd gdrive:
rclone ls r2:my-bucket/photos
Commands you will use most
| Command | What it does |
|---|---|
rclone ls, lsd, lsl | List files, folders, or files with sizes and dates |
rclone copy src dst | Copy new and changed files, delete nothing |
rclone sync src dst | Make dst identical to src, deleting extras in dst |
rclone move src dst | Copy, then delete from the source |
rclone check src dst | Compare two locations without changing anything |
rclone bisync a b | Two-way sync |
rclone mount remote: dir | Mount a remote as a local folder |
rclone ncdu remote: | Interactive view of what uses space |
rclone size remote: | Total size and object count |
rclone serve | Serve a remote over HTTP, WebDAV, FTP, SFTP, DLNA or S3 |
Paths can be local folders, remotes, or a mix, so rclone copy ~/Documents b2:backup/docs uploads and rclone copy gdrive:Photos onedrive:Photos moves data between two clouds.
Using sync safely
sync deletes. Most rclone accidents come from swapping source and destination or pointing sync at the wrong folder. Habits that prevent them:
- Dry run first.
rclone sync src dst --dry-runlists every copy and delete without doing it. - Use interactive mode.
-iasks before each change. - Keep deleted files.
--backup-dir dst:old/2026-10-21moves files that sync would delete or overwrite into a dated folder instead. - Watch progress.
-Pshows transfers and speeds. - Prefer copy for backups unless you need the destination to mirror deletions.
Flags worth knowing
| Flag | Use |
|---|---|
--dry-run | Show what would happen |
-P | Progress |
--transfers 8 | Parallel file transfers, default 4 |
--checkers 16 | Parallel checks, default 8 |
--checksum | Compare by hash instead of size and time |
--exclude "*.tmp", --filter-from file | Skip files |
--max-age 7d | Only files changed in the last week |
--bwlimit 10M | Limit bandwidth |
--log-file, -v | Logging for scheduled jobs |
Mounting cloud storage
rclone mount gdrive: ~/gdrive --vfs-cache-mode full
This makes the remote appear as a folder. You need FUSE on Linux, macFUSE or FUSE-T on macOS, and WinFsp on Windows. With --vfs-cache-mode full, rclone keeps a local cache so programs can open, edit and save files normally. Without it, many apps fail when they try to write in place. Run the mount as a service, or add --daemon on Linux and macOS, to keep it running in the background.
Virtual backends
Some remotes wrap other remotes to add a feature:
| Backend | What it does |
|---|---|
| crypt | Encrypts contents and names before upload |
| compress | Compresses files |
| chunker | Splits large files for services with size limits |
| union | Combines several remotes into one view |
| combine | Puts several remotes under one tree as folders |
| hasher | Adds checksums for remotes that lack them |
| alias | A short name for a path on another remote |
The old cache backend is deprecated. Use the VFS cache options on mount and serve instead.
Encrypting with crypt
- Create a normal remote, for example
b2. - Run
rclone config, create a new remote of typecrypt, and set its remote tob2:encrypted. - Choose whether to encrypt file names, and set a password and optional salt.
- Use the crypt remote, say
secret:, for all transfers.
Files land in b2:encrypted as unreadable data. Store the password and salt in a password manager. Without them the files are lost.
Scheduled backups
A cron job for a nightly upload:
0 2 * * * rclone copy /srv/data r2:backups/data --log-file /var/log/rclone.log -v
For a backup with history and deduplication, use restic with an rclone backend: restic -r rclone:r2:restic-repo backup /srv/data. rclone moves files, restic adds snapshots on top.
Recent changes
- 1.73.2 (March 6, 2026): a patch release with bug fixes.
- 1.75.0 (July 31, 2026): new S3-compatible providers, including Scality and Zero Services, plus backend fixes.
- 1.75.2 (October 9, 2026): a security release built with Go 1.26.9 and a fix for a B2 token leak.
rclone also has an experimental web GUI, started with rclone rcd --rc-web-gui, for people who prefer a browser.
rclone and AI work
rclone is a practical way to move datasets, model weights and logs between object stores, for example from S3 to R2 to avoid egress fees on repeated downloads, or from a laptop to a GPU server over SFTP. When an AI agent writes rclone commands for you, check two things before running: that any sync has source and destination in the right order, and that it ran with --dry-run first.
Limits
Provider limits apply. Google Drive, OneDrive and Dropbox throttle API calls and limit daily uploads. Large transfers can slow down or pause. Using your own API client ID for Google Drive helps.
Mounts are not local disks. Databases and apps that need file locking or fast random writes should not run on an rclone mount.
Configuration holds secrets. Encrypt rclone.conf or protect it with file permissions.
rclone compared with other tools
| Tool | Main job | Clouds | Notes |
|---|---|---|---|
| rclone | Copy, sync and mount | 70+ | Command line, scriptable |
| rsync | Sync between machines | None, SSH only | Faster for server to server |
| restic, Kopia | Versioned backups | Many, often through rclone | Snapshots and deduplication |
| Cyberduck, Mountain Duck | Browse and mount | Many | Desktop apps |
| Provider CLIs (aws s3, gsutil) | One provider | One | Deepest provider features |
Choose rclone when files need to move between clouds, or between a machine and any cloud, from one scriptable tool. See the terminal tools guide for more command-line tools.
Frequently asked questions
What is the difference between rclone copy and rclone sync?
rclone copy copies new and changed files from source to destination and never deletes anything. rclone sync makes the destination identical to the source, which means it deletes files at the destination that are not in the source. Use copy when in doubt. Run any sync with --dry-run first to see what it would delete.
How do I set up rclone with Google Drive, S3 or another service?
Run rclone config and choose n for a new remote. Give it a name, pick the storage type from the list, and answer the prompts. For Google Drive, OneDrive and Dropbox, rclone opens a browser to sign in. For S3 and compatible services such as R2 or B2, you enter an access key and secret. The settings go into rclone.conf. Afterward, refer to the remote by name, as in rclone ls gdrive:.
Can rclone mount cloud storage as a drive?
Yes. rclone mount remote: /path/to/folder mounts a remote as a local folder on Linux, macOS, FreeBSD and Windows. It needs FUSE on Linux, macFUSE or FUSE-T on macOS, and WinFsp on Windows. Add --vfs-cache-mode full so programs that write files in place, such as editors and office apps, work reliably.
Does rclone encrypt files?
Yes, through the crypt backend. You create a crypt remote that wraps another remote, set a password, and rclone encrypts file contents, and optionally file names, before upload. The cloud provider sees only encrypted data. Keep a copy of the crypt password and salt, because files cannot be recovered without them.
Is rclone bisync safe for two-way sync?
bisync keeps two locations in step in both directions and has become much more reliable since its rework in 1.66, but it is still the riskiest mode rclone offers. Run the first bisync with --resync, test with --dry-run, use --check-access with a check file so a missing mount does not look like everything was deleted, and keep backups. For one-way backups, copy or sync is simpler.