Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

rclone

БесплатноБез исполняемых скриптовНе проверен

Rclone is a command-line tool that copies, syncs, checks, encrypts, mounts and serves files across more than 70 storage backends, including S3-compatible…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

rclone — rsync for cloud storage

Overview

Rclone talks to a storage system through a named remote (name:path) and offers the same verbs for every backend: copy, sync, move, check, ls, lsjson, mount, serve, bisync. Source and destination may be any two remotes, so one command migrates a Google Drive folder into an S3 bucket without touching the local disk. A crypt remote wraps another remote and encrypts file names and contents client-side.

An agent mostly runs it for four jobs: one-way copies and backups, migrations between providers, integrity checks after a transfer, and exposing a remote over a local HTTP/WebDAV/SFTP server. Remotes that need a browser login (Google Drive, Dropbox, OneDrive) require the user to authorize once; everything else can be configured non-interactively.

Instructions

Installation

Prefer the system package manager (sudo apt install rclone, brew install rclone), but those packages can be old. For a current release without root, download the zip and verify it against the published checksums:

VER=v1.75.2
mkdir -p ~/tools/rclone && cd ~/tools/rclone || exit 1
curl -fsSLO https://downloads.rclone.org/$VER/rclone-$VER-linux-amd64.zip
curl -fsSLO https://downloads.rclone.org/$VER/SHA256SUMS
sha256sum -c --ignore-missing SHA256SUMS 2>&1 | grep rclone-$VER-linux-amd64.zip
unzip -q rclone-$VER-linux-amd64.zip
./rclone-$VER-linux-amd64/rclone version

SHA256SUMS is a PGP-clearsigned file, so sha256sum prints a warning about improperly formatted lines; the line for the zip must say OK. Put the binary on PATH afterwards. The official install.sh exists, but download it to a file and read it before running.

Configuring remotes without prompts

Config lives in ~/.config/rclone/rclone.conf (rclone config file prints the path). Never read that file back to a user or commit it: it holds tokens. Three ways to define a remote without the interactive wizard:

# 1. Write into rclone.conf. Secrets passed this way are stored in the file.
rclone config create nas sftp host=192.168.1.20 user=andrey key_file=~/.ssh/id_ed25519

# 2. Environment variables, nothing written to disk: RCLONE_CONFIG_<REMOTE>_<OPTION>
export RCLONE_CONFIG_R2_TYPE=s3
export RCLONE_CONFIG_R2_PROVIDER=Cloudflare
export RCLONE_CONFIG_R2_ACL=private
export RCLONE_CONFIG_R2_ACCESS_KEY_ID="$R2_ACCESS_KEY_ID"
export RCLONE_CONFIG_R2_SECRET_ACCESS_KEY="$R2_SECRET_ACCESS_KEY"
export RCLONE_CONFIG_R2_ENDPOINT="https://3f9a1c0d5b7e4a2c8d6f1e0b9a7c5d3e.r2.cloudflarestorage.com"

# 3. Inline connection string, no config at all
rclone lsd ':sftp,host=192.168.1.20,user=andrey:' 

Option names are the backend's config keys in upper case (rclone config create lists them; rclone help backend s3 documents the S3 ones). Use the connection-string form only for non-secret options.

Check a remote works before moving data:

rclone listremotes
rclone lsd R2:            # buckets
rclone about nas:         # free space, when the backend reports it

copy, sync and move

  • rclone copy SRC DST transfers new and changed files and never deletes at the destination.
  • rclone sync SRC DST makes DST identical to SRC and deletes extra files in DST. Only the destination is changed.
  • rclone move SRC DST copies, then deletes from the source. Add --delete-empty-src-dirs to prune folders.
  • rclone copyto / moveto treat the arguments as exact file paths, for copying or renaming a single file.

Always preview first, then run for real, logging to a file:

rclone sync /srv/projects R2:client-archive/projects --exclude '*.tmp' --dry-run -v
rclone sync /srv/projects R2:client-archive/projects --exclude '*.tmp' \
  --max-delete 50 --log-file ~/rclone-projects.log --log-level INFO

--max-delete N aborts a sync that would remove more than N files, a cheap guard against an empty or unmounted source. Other useful flags: --transfers 8, --checkers 16, --bwlimit 8M (cap bandwidth; timetables like "08:00,512k 22:00,off" are accepted), --fast-list (fewer API calls on object storage, more memory), --track-renames (move instead of re-upload), --immutable (fail instead of overwriting), --max-age 24h and --min-size 100M for selecting files.

Keep the old version of overwritten files

--backup-dir moves files that sync would overwrite or delete into a second location, with --suffix to avoid name clashes. The backup directory must be on the same remote as the destination and outside it, otherwise rclone refuses to start:

rclone sync /srv/projects R2:client-archive/current \
  --backup-dir R2:client-archive/old/2026-11-05 --suffix -2026-11-05

A changed reports/q2.csv ends up as old/2026-11-05/reports/q2.csv-2026-11-05.

Filters

Pass --include, --exclude, or a rules file with --filter-from. Rules are read top to bottom and the first match wins; - excludes and + includes:

- *.tmp
- node_
Полный SKILL.md на GitHub

Установить rclone в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл rclone?

Rclone is a command-line tool that copies, syncs, checks, encrypts, mounts and serves files across more than 70 storage backends, including S3-compatible object storage, Google Drive, Dropbox, SFTP, WebDAV and the local disk. Use it when asked to "sync a folder to a bucket", "migrate files from one cloud to another", "back up to Backblaze or Cloudflare R2", "encrypt files before uploading", "verify that two storages match", or "serve a bucket over HTTP".

Как установить скилл rclone?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл rclone запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить rclone с