From 717fcb9c81d2bc3cc7a84a3ebea6572d7ff0f5cf Mon Sep 17 00:00:00 2001 From: doc Date: Mon, 30 Jun 2025 20:06:28 +0000 Subject: uploading documentation --- cheatsheets/rclone_cheat_sheet.md | 133 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 cheatsheets/rclone_cheat_sheet.md (limited to 'cheatsheets/rclone_cheat_sheet.md') diff --git a/cheatsheets/rclone_cheat_sheet.md b/cheatsheets/rclone_cheat_sheet.md new file mode 100644 index 0000000..4637fcd --- /dev/null +++ b/cheatsheets/rclone_cheat_sheet.md @@ -0,0 +1,133 @@ +# 📘 Rclone Command Cheat Sheet + +## ⚙️ Configuration + +### Launch Configuration Wizard +```bash +rclone config +``` + +### Show Current Config +```bash +rclone config show +``` + +### List Remotes +```bash +rclone listremotes +``` + +## 📁 Basic File Operations + +### Copy Files +```bash +rclone copy source:path dest:path +``` + +### Sync Files +```bash +rclone sync source:path dest:path +``` + +### Move Files +```bash +rclone move source:path dest:path +``` + +### Delete Files or Dirs +```bash +rclone delete remote:path +rclone purge remote:path # Delete entire path +``` + +### Check Differences +```bash +rclone check source:path dest:path +``` + +## 🔍 Listing and Info + +### List Directory +```bash +rclone ls remote:path +rclone lsd remote:path # List only directories +rclone lsl remote:path # Long list with size and modification time +``` + +### Tree View +```bash +rclone tree remote:path +``` + +### File Size and Count +```bash +rclone size remote:path +``` + +## 📦 Mounting + +### Mount Remote (Linux/macOS) +```bash +rclone mount remote:path /mnt/mountpoint +``` + +### Mount with Aggressive Caching (Windows) +```bash +rclone mount remote:path X: \ + --vfs-cache-mode full \ + --cache-dir C:\path\to\cache \ + --vfs-cache-max-size 100G \ + --vfs-read-chunk-size 512M \ + --vfs-read-ahead 1G +``` + +## 🔁 Sync with Filtering + +### Include / Exclude Files +```bash +rclone sync source:path dest:path --exclude "*.tmp" +rclone sync source:path dest:path --include "*.jpg" +``` + +## 📄 Logging and Dry Runs + +### Verbose and Dry Run +```bash +rclone sync source:path dest:path -v --dry-run +``` + +### Log to File +```bash +rclone sync source:path dest:path --log-file=rclone.log -v +``` + +## 📡 Remote Control (RC) + +### Start RC Server +```bash +rclone rcd --rc-web-gui +``` + +### Use RC Command +```bash +rclone rc core/stats +rclone rc vfs/stats +``` + +## 🛠️ Miscellaneous + +### Serve Over HTTP/WebDAV/SFTP +```bash +rclone serve http remote:path +rclone serve webdav remote:path +rclone serve sftp remote:path +``` + +### Crypt Operations +```bash +rclone config create secure crypt remote:path +``` + +--- + +> ✅ **Tip**: Always use `--dry-run` when testing `sync`, `move`, or `delete` to prevent accidental data loss. -- cgit v1.2.3