Last updated on 2026-08-27 | Edit this page
Quick Reference: rclone Commands
This reference guide covers essential rclone commands and configuration steps for syncing data between the Sagehen HPC cluster and cloud storage (Box or OneDrive).
Configuring Remote Storage (OAuth Setup)
Box Configuration
When prompted, follow these steps:
name> box-storage
Type of storage> box
Box App ID and Secret> (leave blank for Pomona account)
Use Box API> N
Scope that rclone should use> rclone
Advanced config> N
Auto config> Y
A browser window will open for OAuth authentication. Log in with your Pomona credentials and authorize rclone access.
Essential rclone Commands
Listing Files and Directories
List all files in a remote:
List directories only:
List with detailed information:
Synchronizing Directories
One-way sync (remote → local):
One-way sync (local → remote):
Check what would be synced (dry-run):
Common Flags
| Flag | Purpose | Example |
|---|---|---|
--progress |
Show transfer progress | rclone copy --progress source dest |
--dry-run |
Preview changes without executing | rclone sync --dry-run source dest |
--transfers N |
Parallel transfers (default 4) | rclone copy --transfers 8 source dest |
--checkers N |
Parallel checkers (default 8) | rclone check --checkers 16 source dest |
--verbose |
Detailed output | rclone ls --verbose remote:/ |
--human-readable |
Human-friendly file sizes | rclone ls --human-readable remote:/ |
--exclude PATTERN |
Exclude files matching pattern | rclone copy --exclude "*.tmp" source dest |
--include PATTERN |
Include only matching files | rclone copy --include "*.csv" source dest |
--delete-excluded |
Delete excluded files from destination | rclone sync --delete-excluded source dest |
--no-traverse |
Don’t scan destination | rclone copy --no-traverse source dest |
--bwlimit RATE |
Bandwidth limit | rclone copy --bwlimit 1M source dest |
Troubleshooting Token Issues
Sagehen-Specific Paths
When using rclone on Sagehen, remember storage locations:
-
Personal:
/rhome/<myusername>(100 GB, backed up) -
Lab/Group:
/bigdata/lab/<labname>(1 TB shared) -
Temporary:
/scratch/username(no quota, 60-day retention) -
Fast Temp:
/tmpfs(RAM-based, job duration only)
Example sync to shared lab storage:
Performance Tips
-
Use
--transfersfor large transfers:rclone copy --transfers 12 source dest -
Limit bandwidth on shared systems:
rclone copy --bwlimit 10M source dest -
Use
/scratchfor temporary downloads: Faster SSD storage -
Monitor transfer status: Add
--progressflag -
Verify large transfers: Use
rclone checkafterward
Getting Help
View help for any command:
Full rclone documentation:
HPC Support: - Email: its-hpc@pomona.edu - Instructor: Andrew Wilson