Back to terminal directory

CLI tools · Backups

rclone

Sync and mount cloud storage from the command line.

Open sourceGo
Official site
Short answer

rclone is a free, open-source command-line program for managing files on cloud storage. It works with more than 70 services, including Amazon S3, Cloudflare R2, Backblaze B2, Google Drive, OneDrive, Dropbox, iCloud Drive, Proton Drive, SFTP and WebDAV, using commands modeled on Unix tools: rclone copy, rclone sync, rclone ls, rclone mount and others. It can encrypt files before upload, verify transfers with checksums, and mount any remote as a local drive. Nick Craig-Wood created it, it is written in Go and released under the MIT license. Install it with brew install rclone or curl https://rclone.org/install.sh | sudo bash, then run rclone config to add a remote.

License
MIT
GitHub, rclone/rclone
Written in
Go
rclone.org
Supported services
70+ storage products
rclone.org
Latest release
1.75.2, October 9, 2026 (security fixes)
rclone changelog

Updated October 21, 2026How we evaluate tools

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

SystemCommand
macOSbrew install rclone
Linux, macOScurl https://rclone.org/install.sh | sudo bash
Windowswinget install Rclone.Rclone or scoop install rclone
Dockerdocker 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

CommandWhat it does
rclone ls, lsd, lslList files, folders, or files with sizes and dates
rclone copy src dstCopy new and changed files, delete nothing
rclone sync src dstMake dst identical to src, deleting extras in dst
rclone move src dstCopy, then delete from the source
rclone check src dstCompare two locations without changing anything
rclone bisync a bTwo-way sync
rclone mount remote: dirMount a remote as a local folder
rclone ncdu remote:Interactive view of what uses space
rclone size remote:Total size and object count
rclone serveServe 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:

  1. Dry run first. rclone sync src dst --dry-run lists every copy and delete without doing it.
  2. Use interactive mode. -i asks before each change.
  3. Keep deleted files. --backup-dir dst:old/2026-10-21 moves files that sync would delete or overwrite into a dated folder instead.
  4. Watch progress. -P shows transfers and speeds.
  5. Prefer copy for backups unless you need the destination to mirror deletions.

Flags worth knowing

FlagUse
--dry-runShow what would happen
-PProgress
--transfers 8Parallel file transfers, default 4
--checkers 16Parallel checks, default 8
--checksumCompare by hash instead of size and time
--exclude "*.tmp", --filter-from fileSkip files
--max-age 7dOnly files changed in the last week
--bwlimit 10MLimit bandwidth
--log-file, -vLogging 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:

BackendWhat it does
cryptEncrypts contents and names before upload
compressCompresses files
chunkerSplits large files for services with size limits
unionCombines several remotes into one view
combinePuts several remotes under one tree as folders
hasherAdds checksums for remotes that lack them
aliasA 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

  1. Create a normal remote, for example b2.
  2. Run rclone config, create a new remote of type crypt, and set its remote to b2:encrypted.
  3. Choose whether to encrypt file names, and set a password and optional salt.
  4. 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

ToolMain jobCloudsNotes
rcloneCopy, sync and mount70+Command line, scriptable
rsyncSync between machinesNone, SSH onlyFaster for server to server
restic, KopiaVersioned backupsMany, often through rcloneSnapshots and deduplication
Cyberduck, Mountain DuckBrowse and mountManyDesktop apps
Provider CLIs (aws s3, gsutil)One providerOneDeepest 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.

Sources

  1. rclone website
  2. rclone documentation
  3. rclone changelog
  4. rclone mount
  5. rclone crypt
  6. rclone on GitHub