rclone-cli
它能做什么
Rclone 是一个通过终端帮你管理云存储服务(比如 Google Drive、Dropbox 等)中文件的程序。它可以复制、移动、同步文件,还能把云端文件挂载为本地文件夹,让你像使用普通文件夹一样访问它们。
适用场景
- ✓需要在云端和本地之间批量移动或复制大量文件时。
- ✓想要让电脑和云端的文件夹保持同步时。
- ✓希望像访问电脑上的普通文件夹一样访问云端文件时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/rclone-cli/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我怎样才能把 Google Drive 里的所有文件复制到 Dropbox?”
每周 5 个新技能,1 分钟读完。
工作原理
你在终端中输入命令,Rclone 会使用这些命令连接到你的云服务,并执行你要求的操作,比如复制或同步文件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
rclone — The Swiss Army Knife of Cloud Storage
When to Use
Use this skill when you need rclone command-line cloud storage manager reference and usage guide. Use this skill whenever the user mentions rclone, or any task involving terminal-based cloud file operations such as upload, download, sync, copy, move, mount, or remote management. Triggers on S3-compatible storage,...
Rclone is a command-line program to manage files on cloud storage. It is a feature-rich alternative to cloud vendors' web storage interfaces. Over 70 cloud storage products support rclone including S3 object stores, business & consumer file storage services, and standard transfer protocols.
Rclone has powerful cloud equivalents to the unix commands rsync, cp, mv, mount, ls, ncdu, tree, rm, and cat. It preserves timestamps and verifies checksums at all times. Transfers can be restarted from the last good file.
Official resources: rclone.org | Docs | Commands | Install | Forum | GitHub
Prerequisites
Before using rclone, verify it is installed:
# Check if rclone is installed
rclone --version
# If not found, run the install script:
# See scripts/install.sh in this skill's directory
sudo -v ; curl https://rclone.org/install.sh | sudo bash
# Or for beta version:
sudo -v ; curl https://rclone.org/install.sh | sudo bash -s beta
For offline/manual installation, use the bundled script at scripts/install.sh.
Security Warnings
IMPORTANT: Rclone is extremely powerful and can irreversibly modify or delete data on cloud storage. Pay close attention to the following safety guidelines:
- Always use
--dry-runfirst when runningsync,move,delete, orpurgecommands. This shows what would happen without actually doing it. - Use
--interactive/-iflag while learning rclone to avoid accidental data loss. It asks for confirmation before each destructive operation. - Never expose credentials in plain text on the command line. Use
rclone configto store credentials securely, or use environment variables. - Private keys and tokens (S3 secret keys, service account JSON, OAuth tokens) must never be committed to version control or logged. The config file
~/.config/rclone/rclone.confcontains sensitive data — protect it withchmod 600. rclone purgeignores all filters — it deletes everything under the specified path. Use with extreme caution.rclone syncmakes dest identical to source — files in dest that are not in source will be DELETED. Always verify with--dry-runfirst.- Remote control API (
--rc) should bind to localhost only by default. Exposing it without authentication (--rc-htpasswd) allows anyone to control your rclone instance. - Mount operations can cause data loss if the mount is interrupted during writes. Use
--vfs-cache-mode fullfor safer writes.
Quick Reference
Configuration
# Interactive configuration (recommended)
rclone config
# Show current config (redacts secrets by default)
rclone config show
# Show full config including secrets (DANGEROUS — do not share output)
rclone config show --redacted=false
# List configured remotes
rclone listremotes
# Create a remote non-interactively
rclone config create myremote s3 provider=AWS env_auth=true region=us-east-1
# Update existing remote
rclone config update myremote region=us-west-2
Basic Syntax
rclone subcommand [options] source:path dest:path
Source and destination paths use remote:path syntax. For local paths, just use /path/to/dir.
Core Commands
# List files
rclone ls remote:path # list all objects with size
rclone lsd remote:path # list directories
rclone lsl remote:path # list with size, modtime, path
rclone lsf remote:path # list in flexible format
rclone size remote:path # total size and object count
rclone tree remote:path # tree view
# Copy (does not delete files at destination)
rclone copy /local/path remote:path # local to remote
rclone copy remote:path /local/path # remote to local
rclone copy remote1:path remote2:path # remote to remote (server-side if possible)
…
常见问题
使用 rclone 安全吗?
安全,但需要小心。Rclone 功能非常强大,可能会永久删除文件。在执行重要操作前,请务必先用测试命令(`--dry-run`)检查,并且不要把你的密码分享给别人。
怎么安装 rclone?
你可以用终端中的一个简单脚本来安装。rclone.org 上有适用于不同操作系统的详细说明。
“remote:path” 是什么意思?
这是 rclone 标识云端位置的方式。“remote” 是你为云服务起的名字(比如 “google drive” 或 “dropbox”),“path” 则是该服务中的路径,比如某个文件夹。
详情
作者的原始描述
Rclone command-line cloud storage manager reference and usage guide. Use this skill whenever the user mentions rclone, or any task involving terminal-based cloud file operations such as upload, download, sync, copy, move, mount, or remote management.
热度
- GitHub 星标
- 48k
- 排名
- #5571
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。