Skip to main content

Rclone Documentation

Rclone is a production-ready command-line tool for syncing, copying, and validating files across local storage and cloud providers.

Who This Track Is For
  • Operators running backups, migrations, and restores for servers and VPS
  • Developers shipping artifacts to object storage (S3-compatible)
  • Anyone who needs repeatable, audited file movement with safety controls
What You Will Build
  • A reliable local-plus-cloud backup workflow
  • Secure encrypted remotes for sensitive data
  • Automated jobs with retry, logging, and alerting
  • Repeatable restore drills with RTO/RPO targets
How To Use This Track
  • Follow the modules in order (1 to 11). Each lesson includes a safe workflow and a drill/exercise.
  • Prefer copy/paste scripts over one-off commands for production.
  • Treat destructive operations (sync/delete) like migrations: preview, log, verify, and keep rollback.

Learning Path

ModuleFocusLessons
1. IntroductionFundamentals and tooling fit3
2. CommandsDaily command patterns3
3. Remotes and AuthProvider setup and credentials3
4. Filtering and SelectionPrecision control over file sets3
5. Performance and TransfersThroughput and stability tuning3
6. Sync Safety and DeletesSafe mirroring and rollback paths3
7. Encryption and SecurityData protection and key hygiene3
8. Automation and OperationsScheduled and unattended jobs3
9. Backup and DR StrategiesRecovery-focused architecture4
10. TroubleshootingRoot-cause debugging workflow3
11. CheatsheetFast operational reference3

Common Architectures

1) Local Data -> Cloud Mirror

flowchart LR
SRC[Source: /srv/data] -->|rclone sync| CLOUD[(Remote: backups/data)]
CLOUD -->|rclone check| VERIFY[Verification]

2) Rsync Local Snapshot -> Rclone Cloud Replication

flowchart LR
APP[Production Data] -->|rsync snapshot| LOCAL[Local Backup]
LOCAL -->|rclone sync| CLOUD[(Cloud Remote)]

3) Encrypted Offsite Backups (Crypt Remote)

flowchart LR
SRC[Source] -->|rclone sync| CRYPT[crypt remote]
CRYPT --> BASE[(base remote path)]
warning

Encryption is only as good as your key recovery. Store crypt secrets in a secure runbook and test restores.

Quick Start

first-rclone-run.sh
# 1) Configure a remote
rclone config

# 2) Verify access
rclone lsd myremote:

# 3) Safe preview before sync
rclone sync /srv/data myremote:backups/data --dry-run

# 4) Execute with logs
rclone sync /srv/data myremote:backups/data --log-level INFO --log-file /var/log/rclone.log
note

If you are running rclone via cron/systemd, always set an explicit config path (example: --config /etc/rclone/rclone.conf).

Learning Order

Follow the modules in order from 1 to 11. Each module assumes you practiced commands in the previous one.

Tooling Matrix

Use CaseBest ToolWhy
Server-to-server delta copyrsyncBlock-level delta transfer over SSH
Multi-cloud/object storage syncrcloneNative provider APIs and remote abstraction
Deduplicated encrypted snapshotsresticSnapshot repository with retention policy

Prerequisites

  • Linux shell basics (ls, cp, paths, permissions)
  • SSH key setup for remote hosts
  • One cloud provider account (S3, B2, R2, GCS, Drive, or OneDrive)

Success Criteria

By the end of this track, you can:

  • Deploy a safe, scheduled backup job with logs and alerts
  • Use filters to avoid syncing caches, build artifacts, and secrets
  • Encrypt backups with a crypt remote and prove restore works
  • Run a restore drill and measure RTO/RPO

Next Step

Start with What is Rclone.