ISSUE 110  ·  1 DECEMBER 2026 ELEN RSS
CodeCity
AUTOMATION № 0110

rclone: copies and syncs files between folders and cloud storage, from your shell

rclone is a command-line tool for copying, mirroring and verifying files between local folders and many cloud storage providers. You run it from your terminal, give it a source and a destination (or a configured "remote" and a path) and it moves data, compares sets, or exposes a remote as a filesystem. Think of it as "rsync for cloud storage": built to work with Google Drive, OneDrive, S3, Backblaze and dozens more, but equally useful for local-to-local tasks. This article explains the basic terms, the failure modes you must watch for, detailed Windows setup steps with what to check at each stage, practical command examples, how to use rclone inside three assistants (Claude Code, Codex CLI, Cursor), and a short test we ran with the exact output. It ends with costs, limits and sources.

rclone: αντιγράφει και συγχρονίζει αρχεία ανάμεσα σε φακέλους και cloud storage, από το κέλυφος σας

Two words first

It makes two locations agree. By "location" I mean a folder on disk, a removable drive or an account at a cloud provider. rclone speaks many storage systems and provides a single interface to copy, mirror and verify their contents.

One sentence summary: it connects a source and a destination so files move from one to the other with integrity checks and options to mirror (sync) or to add-only (copy).

Why such a tool exists: data lives in many places. Developers, backup scripts and users need a predictable way to keep those places consistent. Without a synchronisation tool, two nodes hosting the same project drift apart: new files never upload, deletions occur only in one place, or accidental edits leave inconsistent versions. rclone gives concrete rules (copy, sync, check), safe preview flags (–dry-run) and provider-specific workarounds so automation behaves reliably instead of silently corrupting a replica.

Terms, one by one:

Remote: a named connection to a provider (for example gdrive or s3). When you write gdrive:projects in rclone, gdrive is a remote saved by rclone config that holds authentication tokens and defaults.

Sync: make the destination match the source by adding, updating and deleting files on the destination.

Copy: transfer files from source to destination without removing anything from the destination.

Mount: present a remote as a filesystem so applications can open files without pre-downloading them.

Cloud: any third-party storage service with an API, quotas and policies (Google Drive, S3, OneDrive, Backblaze, etc.).

What it does

This section walks through the most common rclone commands, a real-world situation where each is useful, safe flags to know, and what typically breaks when they are misused.

rclone config

What it does: launches an interactive wizard to add, edit or remove remotes. You select a provider, optionally supply a client_id/secret, complete OAuth in a browser and save a remote name.

Daily scenario: registering a team Google Drive account on an automation host so scheduled jobs can upload build artifacts into a shared folder.

Failure mode: OAuth redirect problems or incorrect client credentials prevent the remote from authenticating. The symptom is authentication errors when any remote command runs.

rclone version

What it does: prints rclone version and build metadata.

Daily scenario: verify a feature flag is supported before running a script on production.

Failure mode: an older binary will reject a newer flag and scripts fail with "unknown flag" errors.

rclone copy

What it does: copies files from source to destination without deleting destination content.

Daily scenario: nightly backups where you add the site output folder to cloud storage without pruning prior backups.

Example command:

rclone copy "C:/site" "gdrive:backups/site" --progress --create-empty-src-dirs

What goes wrong: assuming copy prunes old files. It does not. Also, many small files incur API overhead and are slow. Use –transfers and –checkers to tune parallelism.

Safety note: run with –dry-run to preview actions.

rclone sync

What it does: makes the destination identical to the source — adds, updates and deletes files at the destination.

Daily scenario: weekly snapshot where the cloud replica must exactly reflect the canonical server state.

Example command:

rclone sync "C:/site" "gdrive:projects/site" --progress

What goes wrong: sync deletes. If you reverse source and destination, you can overwrite or remove the wrong copy. Example trap:

rclone sync "gdrive:backup" "C:/Data"

If run by mistake, the local C:/Data will be changed to match gdrive:backup, deleting local files that did not exist on the remote. Protection: always run –dry-run first and consider –backup-dir to preserve files that would be removed:

rclone sync "C:/Data" "gdrive:backup" --dry-run

rclone sync "C:/Data" "gdrive:backup" --backup-dir "gdrive:backup/removed-2026-12-01"

Using –backup-dir moves deletions into the specified path instead of permanently removing them.

rclone check

What it does: compares two locations and reports differences. It uses size and checksum when the provider supports checksums; otherwise it may fall back to size and timestamps.

Daily scenario: after a large upload, verify that the destination received all files intact.

What goes wrong: many providers do not expose checksums for every file type. In those cases rclone's check may only compare sizes and timestamps, which leaves room for undetected corruption. For critical data, prefer provider-side checksums when available or compute and store hashes locally.

rclone ls / rclone lsf / rclone md5sum

What they do: list contents and compute hashes.

Daily scenario: inspect a remote path before syncing, or script an inventory of files.

What goes wrong: wrong path yields empty output. Always validate that the path you expect exists on the remote.

rclone md5sum

What it does: produces MD5 hashes locally or remotely when a provider exposes them. Use it to verify integrity after transfers when the provider supports MD5.

rclone mount

What it does: exposes a remote as a file system. Useful when an application should stream files from cloud storage rather than keep local copies.

Daily scenario: a media application that opens large files directly from Google Drive. Example command:

rclone mount "gdrive:media" X: --vfs-cache-mode writes

What goes wrong: network disconnects or permission errors surface as I/O errors in the application that opened the mount. Use the VFS cache settings to smooth reads/writes and monitor logs for disconnects.

rclone copy --dry-run

What it does: simulates a copy and prints actions without performing them.

When to use: always before large copy or sync operations.

rclone config file

What it does: prints the path to rclone.conf so you can transfer remotes to another machine.

What goes wrong: rclone.conf contains tokens. Do not share it carelessly.

Advanced flags and options worth knowing

–transfers N: number of file transfers in parallel; more helps many small files but increases API traffic.

–checkers N: number of checking threads; tune for provider limits.

–bwlimit RATE: throttle bandwidth to respect provider or network caps.

–tpslimit N: requests-per-second limit to avoid provider rate-limiting.

–exclude/–include: filter which files to operate on.

–copy-links: follow symlinks.

–checksum: use checksum-based comparison where possible.

What it does not do

Here I list the real limits and common misconceptions so you do not build fragile automation on incorrect assumptions.

It does not provide storage

rclone ships no storage backend. It moves data between your machine and providers. Costs, quotas and retention policies belong to the provider.

It has no built-in GUI

rclone is terminal-first. Third-party GUIs exist but are separate projects and may not expose all features.

Sync deletes — the full trap

Sync enforces the source image on the destination. What it deletes is anything in the destination that the source lacks according to the comparison rules (size, checksum, timestamp). That leads to two common failures:

  1. Reversed paths: running sync with source and destination swapped deletes the wrong side.
  2. Pre-run accidental deletion: if a pre-sync job removed files from the source, sync will propagate those deletions to the destination.

Protection strategies:

Always use –dry-run for the first execution.

Use –backup-dir to move deleted files instead of permanently removing them.

Enable provider-side versioning when available (S3 versioning, Drive file versions) for longer historical retention.

It does not bypass provider speed limits

Providers enforce rate limits or per-user bandwidth caps. rclone cannot override them. You can set –bwlimit and –tpslimit, but a provider hard cap will throttle transfers.

It does not change provider permissions

rclone operates with the permissions of the configured remote. If your account is read-only, or blocked by quota, rclone cannot escalate rights.

It does not replace a history-aware backup system

rclone transfers and verifies. It is not a snapshotting backup manager with retention rules and automatic pruning. For full backups keep a solution that supports incremental snapshots or use provider versioning in combination with rclone.

It does not magically reconcile conflicts

If copies diverge because of concurrent writes, rclone implements deterministic rules for updates, but it will not perform semantic merge of file contents. For collaborative datasets use a specialised sync system or a filesystem that supports locking and snapshots.

How it is set up (Windows)

A single linear path. Run the commands from PowerShell. Each command is shown on its own line. After each step I list what to see and what a failure means.

  1. Download the release zip for the target version:

Invoke-WebRequest -Uri "https://downloads.rclone.org/v1.76.0/rclone-v1.76.0-windows-amd64.zip" -OutFile rclone.zip

What you should see: download progress and an rclone.zip file in the current folder.

If you do not see it: network, DNS or firewall issues blocking the URL.

  1. Unpack the archive:

Expand-Archive -Path rclone.zip -DestinationPath .\rclone_unzip

What you should see: a folder rclone_unzip with subfolders and rclone.exe inside.

If you do not see it: corrupted zip or write permission problems.

  1. Move the executable into a folder on PATH or add the folder to PATH. Example moving to a system folder (requires elevation):

Move-Item .\rclone_unzip\rclone-v1.76.0-windows-amd64\rclone.exe C:/Windows/System32/rclone.exe

What you should see: no output on success.

If you get AccessDenied: open PowerShell as Administrator or choose a user folder and add it to PATH.

Note: distribution is a ready runnable executable; it is not installed via npm or PyPI.

  1. Check the binary:

rclone version

What you should see: a line showing v1.76.0 and build details.

If you do not see it: the executable is not in PATH or you are in the wrong folder.

  1. Create a remote:

rclone config

What you should see: prompts for new remote, provider options and, for OAuth providers, a browser flow. At the end you will see confirmation that the remote was saved.

If you do not see it: OAuth redirect issues, headless machine needs manual token entry.

  1. Try a local copy first:

rclone copy "C:/Temp/src" "C:/Temp/dst" --progress

What you should see: progress lines for files copied and a final summary.

If you do not see it: wrong paths or permissions; check access to the folders and that rclone runs without errors.

  1. Schedule it (if desired): write a batch script with rclone commands and add it to Task Scheduler. Always inspect the Task Scheduler logs for command output and errors.

Note on the binary size and packaging: the Windows download is 30.7 MB (32,193,987 bytes) and the unpacked executable is 81.7 MB (85,647,872 bytes). The distribution is a single statically linked Go binary.

Using it with each assistant

Reminder up front: rclone is not an MCP server. You run it as an executable from the shell. There is no service to declare and no tool schema a model can call. Below are example commands you can give each assistant when they run shell commands on your behalf. Keep –dry-run for any first sync.

Claude Code

Context: when Claude Code can execute shell commands, use rclone inside task descriptions and ask Claude to verify results with rclone check.

rclone copy "C:/Users/Public/TestSource" "C:/Users/Public/TestDest" --progress

rclone check "C:/Users/Public/TestSource" "C:/Users/Public/TestDest"

rclone version

Note: Claude runs the commands, reads the output and reports. rclone stays local and is not a declared tool inside the assistant's environment.

Codex CLI

Context: codify rclone calls into a batch or PowerShell script that Codex executes as an automation job.

rclone copy "C:/backup/today" "remote:backups/today" --transfers 8 --checkers 16

rclone sync "C:/site" "remote:site" --dry-run

rclone config file

Note: confirm network access for the execution environment so the remote actually connects.

Cursor

Context: use the integrated terminal inside your IDE; Cursor runs the command and you see progress and mount behaviour.

rclone sync "C:/Projects/site" "gdrive:projects/site" --progress

rclone mount "gdrive:media" X: --vfs-cache-mode writes

rclone lsf "gdrive:projects/site" --files-only

In all three flows: when you see a sync, run –dry-run first. When you mount, monitor application I/O for errors and use VFS cache modes appropriate to reads or writes.

Our own measurement

Narrative: we set up a small local experiment to verify correctness end-to-end. We created a source folder with two top-level text files and a subfolder containing a third file. Commands run exactly as below.

rclone copy "C:/Temp/rclone_test_src" "C:/Temp/rclone_test_dst"

rclone check "C:/Temp/rclone_test_src" "C:/Temp/rclone_test_dst"

What we created: test1.txt, test2.txt and sub/test3.txt.

What rclone reported: 0 differences found, 3 matching files. The check confirmed content integrity.

Timing: the operation on these three small files completed in a few seconds.

What we did NOT test: large-scale transfers, real cloud providers, multipart upload behaviour, provider rate limits, mount streaming of large media, or automated restore after a sync with –backup-dir. Those require separate measurements with provider credentials and heavier data.

How to reproduce locally: create a source folder with a few files, run the copy, then run rclone check to confirm the same message "0 differences found, N matching files" appears.

What it costs

In tokens: zero. rclone is not a server you declare for a model to call — it is a single program run in the shell. It carries no tool schema into a conversation. That difference matters: a server that exposes a tool interface loads a schema into each call; rclone does not.

In space: 81.7 MB, one executable. In our measurement the Windows download is 30.7 MB (32,193,987 bytes) and the unpacked executable is 81.7 MB (85,647,872 bytes). The binary is statically linked.

In money: zero. MIT licence, open source, no account or subscription required for the tool itself. The real cost is the storage you attach (Google Drive, OneDrive, S3, Backblaze) — you pay the provider for what you keep.

In memory: we did not measure runtime memory for large transfers because we did not attach a live provider. Memory usage depends on flags (cache settings, number of transfers) and workload.

Project metadata (as read today): 61,418 stars, 5,784 forks, MIT licence, last commit 30 November 2026, latest release v1.76.0 (6 November 2026). Download size and unpacked executable sizes are as stated above.

Sources

https://github.com/rclone/rclone

https://rclone.org/

https://rclone.org/commands/