Skip to main content

Core Commands

This module provides a dedicated reference for every essential rclone command. Each page covers syntax, key flags, practical examples, common pitfalls, and related commands.

Standard Pattern

Preflight → Dry Run → Execute with logs → Verify

Learning-Path Lessons

These guides teach core concepts through grouped workflows:

LessonOutcome
Copy, Sync, MoveChoose the correct transfer policy
Paths and Remote SyntaxAvoid mistargeting buckets/prefixes
Check, Hash, and Dry RunProve correctness before and after runs

Command Reference

Setup and Configuration

CommandWhat It Does
configCreate/edit remotes (interactive setup)
listremotesShow configured remotes
versionShow version/build info
helpHelp system

Transfer Commands

CommandWhat It Does
copyCopy files (non-destructive)
syncMake destination match source (destructive on dst)
moveMove files (source removed after)
copytoCopy to a specific file/path
movetoMove to a specific file/path

Listing and Inspection

CommandWhat It Does
lsList files (recursive)
lsdList directories
lsfList files with customizable formats
sizeCount objects and total bytes
aboutStorage quota/usage (backend-dependent)
catPrint remote file to stdout

Verification and Hashing

CommandWhat It Does
checkVerify hashes/sizes between source and dest
md5sumGenerate MD5 sums
sha1sumGenerate SHA-1 sums
hashsumGenerate chosen hash sums

Deletion and Cleanup

CommandWhat It Does
deleteDelete files (leaves dirs)
purgeDelete everything including root dir contents
mkdirCreate directory
rmdirRemove empty directory
rmdirsRemove empty directories recursively
dedupeResolve duplicate files (common on Drive)
cleanupBackend cleanup (e.g., trash, temp)

Filesystem and Serving

CommandWhat It Does
mountMount a remote as a filesystem
serveServe remotes over protocols (WebDAV, HTTP, etc.)

Drill

Run a sync dry-run and confirm you can explain every planned delete/change.

rclone sync /srv/data remote-prod:labs/core --dry-run -vv