rclone

Command-line program that copies and syncs files to and from many cloud storage services, with optional client-side encryption (crypt).

Tool Created Updated External site Also in German: rclone

Reviewed by adrian on

rclone copies and syncs files between the local disk and cloud storage such as pCloud. I use it for the nightly encrypted pCloud backup, installed with Homebrew.

What matters for backups

  • Remotes are named storage targets set up with rclone config. A crypt remote wraps another remote and encrypts file names and contents on the client, with a password and a salt. The storage service only sees scrambled names.
  • rclone sync mirrors a source to a target. It has no versioning of its own; with --backup-dir the files that would be overwritten or deleted are moved to another folder instead.
  • rclone check compares source and target. With crypt there is no common hash, so it compares size and time.
  • --dry-run shows what would happen without changing anything.

Caveats

  • --min-age filters by the file's modification time, which --backup-dir keeps, not by when the file was archived.
  • The output of rclone config and the file ~/.config/rclone/rclone.conf contain the OAuth token; the passwords in the file are only obscured, and rclone reveal makes them readable.
  • A crypt remote can only be recreated with the original password and salt. Generating new ones makes a different key, and the old data stays unreadable.

Based on

More on this

Used in

  • Encrypted pCloud Backup with rclone Guide: a nightly, client-side encrypted backup from the Mac to pCloud with rclone and launchd, with a 90-day archive and tested restores.

Mentioned in

  • pCloud Cloud storage service with accounts in an EU and a US region. I keep the offsite copy of my backup there, encrypted by rclone.

Show in the graph view