跳到正文
Skillpedia
通用编程48k · #5571

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/rclone-cli/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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-run first when running sync, move, delete, or purge commands. This shows what would happen without actually doing it.
  • Use --interactive / -i flag 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 config to 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.conf contains sensitive data — protect it with chmod 600.
  • rclone purge ignores all filters — it deletes everything under the specified path. Use with extreme caution.
  • rclone sync makes dest identical to source — files in dest that are not in source will be DELETED. Always verify with --dry-run first.
  • 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 full for 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.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5571
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能