If you juggle files between your machine and Google Drive, OneDrive, Dropbox, S3 or a plain SFTP box, rclone does it from the terminal with one command per job — no desktop client, no background daemon you cannot see, no vendor app phoning home. It speaks to more than seventy storage backends with the same syntax, and it runs happily on a headless server.
Everything below works the same whether the remote is a cloud provider or another Linux machine over SSH.
What rclone is (and is not)
rclone is a single binary that copies files between local paths and remote “remotes” you configure once. It is not a two-way real-time sync client by default: copy and sync are one-directional and you decide when they run. That is a feature, not a limitation — you always know exactly what moved and in which direction.
1. Install it
# Debian / Ubuntu
sudo apt install rclone
# Fedora
sudo dnf install rclone
# Arch / CachyOS
sudo pacman -S rclone
For the newest release, the official install script works on any distribution:
curl https://rclone.org/install.sh | sudo bash
2. Configure a remote
Everything starts with the interactive config:
rclone config
Choose n for a new remote, give it a name (for example gdrive), pick your storage type from the list, and follow the prompts. For OAuth providers you get a browser link to authorise; on a headless server, answer “headless machine” and paste the code back. The result is written to ~/.config/rclone/rclone.conf.
Captura: la lista de tipos de almacenamiento que muestra rclone config, con Google Drive, S3 y SFTP entre las primeras opciones.
Confirm it works before you trust it with anything:
rclone lsd gdrive:
rclone about gdrive:
3. Copy and sync — know the difference
# one-way copy: add new or changed files, never delete
rclone copy ~/Documents gdrive:Backups/Documents --progress
# one-way mirror: make the remote match local exactly (deletes extras)
rclone sync ~/Photos gdrive:Photos --progress
# always dry-run a sync first
rclone sync ~/Photos gdrive:Photos --dry-run
The difference matters. copy never deletes anything on the destination; sync makes it identical, including removing files that no longer exist locally. Run --dry-run until you are certain of the direction, then drop the flag.
4. Encrypt before it leaves your machine
rclone can wrap any remote in an encrypted overlay, so the provider only ever sees ciphertext and filenames it cannot read:
rclone config create secret crypt \
remote=gdrive:Backups \
filename_encryption=standard \
directory_name_encryption=true
Then treat secret: exactly like a normal remote. Back up the generated password somewhere safe — without it, the data is unrecoverable, and no support line will help you.
5. Mount a remote as a folder
mkdir -p ~/Cloud
rclone mount gdrive: ~/Cloud --vfs-cache-mode writes
The remote now appears as an ordinary directory in your file manager, with files streamed on demand. Add --daemon to detach it, or run it from a systemd user service so it comes back after a reboot.
6. Two-way sync and scheduling
For two-way jobs, bisync keeps both sides in step:
rclone bisync ~/Notes gdrive:Notes --resync
To run a backup automatically, drive it from a systemd user timer rather than a cron line you will forget about. Put the rclone sync command in a small script and schedule that; rclone returns a non-zero exit code on error, so your logs will actually show a failure instead of staying silent.
7. Check the result and tune the speed
Verify a transfer actually matched, and control how hard rclone hits the network:
# verify checksums between local and remote
rclone check ~/Photos gdrive:Photos --size-only
# cap upload bandwidth to 2 MiB/s
rclone sync ~/Photos gdrive:Photos --bwlimit 2M
# run more transfers in parallel (default 4)
rclone sync ~/Photos gdrive:Photos --transfers 8
On a slow home uplink, --bwlimit during working hours is the difference between a backup you tolerate and one you switch off.
Common pitfalls
- Wrong direction on sync. Always
--dry-runasyncthe first time, and remember the first path is the source. - Forgetting the trailing colon.
gdrive:is a remote;gdriveis a local folder. The colon is not optional. - Rate limits. Cloud providers throttle. If you hit
429errors, lower--transfersand add--tpslimit. - Losing the crypt password. There is no recovery. Store it in a password manager before you sync anything important.
What changes for you
The win is not that rclone is prettier than the vendor client — it is that it is scriptable, inspectable and reproducible. You can see the config, dry-run the plan, verify the checksums and schedule the job on any machine, cloud or not. Once your backups are a command, they stop being something you mean to set up and become something that just runs.





Leave a Reply