Chuyển đến nội dung
Skillpedia
Lập trình chung48k · #5571

rclone-cli

Skill này làm gì

Rclone là chương trình giúp bạn quản lý file trên các dịch vụ lưu trữ đám mây (như Google Drive, Dropbox) bằng terminal. Nó cho phép sao chép, di chuyển, đồng bộ và thậm chí gắn file đám mây như thư mục trên máy tính.

Khi nào nên dùng

  • ✓Khi bạn cần di chuyển hoặc sao chép nhiều file lên hoặc xuống đám mây.
  • ✓Để đồng bộ thư mục giữa máy tính và đám mây.
  • ✓Khi bạn muốn truy cập file đám mây như thư mục bình thường trên máy tính.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/rclone-cli/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/rclone-cli/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm sao để sao chép toàn bộ file Google Drive của tôi sang Dropbox?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Bạn gõ lệnh trong terminal. Rclone dùng các lệnh này để kết nối với dịch vụ đám mây và thực hiện thao tác bạn yêu cầu, như sao chép hoặc đồng bộ file.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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)


…
Câu hỏi thường gặp

Dùng rclone có an toàn không?

Có, nhưng bạn cần cẩn thận. Rclone rất mạnh và có thể xóa file vĩnh viễn. Hãy luôn dùng lệnh thử (`--dry-run`) trước khi thao tác quan trọng và không bao giờ chia sẻ mật khẩu.

Làm sao để cài rclone?

Bạn có thể cài bằng một script đơn giản trong terminal. Trang rclone.org có hướng dẫn chi tiết cho các hệ điều hành khác nhau.

“remote:path” nghĩa là gì?

Đó là cách rclone xác định một vị trí trên đám mây. “remote” là tên bạn đặt cho dịch vụ đám mây (như “google drive” hoặc “dropbox”), còn “path” là đường dẫn đến thư mục trong dịch vụ đó.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#5571
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự