/major-ai-skills:rclonefrom major-ai-skills
Sync, copy, check, crypt, and mount cloud remotes with rclone; prefer dry-run before sync deletions; tune VFS cache and avoid bisync lockouts.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Rclone is a unified CLI for object stores and consumer clouds (S3, GCS, Azure Blob, B2, Drive, OneDrive, SFTP, WebDAV, local). copy adds/updates without deleting dest; sync makes dest match source including deletions. mount exposes a FUSE/WinFsp filesystem with optional VFS cache. crypt wraps another remote with client-side encryption. Agents must treat sync as destructive, always offer --dry-run, keep credentials in rclone.conf/env (never invent access keys), and pick VFS cache mode for the workload.
┌─────────────────────────────────────────────────────────────┐
│ Rclone data paths │
│ │
│ Remotes (backend drivers) │
│ ├── Object: s3 / gcs / azureblob / b2 │
│ ├── Consumer: drive / onedrive / dropbox │
│ └── Protocol: sftp / webdav / local │
│ │
│ Commands │
│ ├── copy / sync / check / bisync │
│ ├── mount (+ VFS cache modes) │
│ └── crypt overlay → encrypted names/payloads │
│ │
│ Config: ~/.config/rclone/rclone.conf (or RCLONE_CONFIG) │
└─────────────────────────────────────────────────────────────┘
Use when
Do not use when
bisync’s job; use app-native replication.rclone config / IAM roles (@aws-cli, @vault).--dry-run (or --interactive) before any sync that can delete; prefer copy when history on dest must remain.--backup-dir remote:trash/$(date +%F) on sync to quarantine deletes.off cannot do many read/write patterns—use --vfs-cache-mode full (or at least writes) for apps; avoid FAT/exFAT for cache dirs (no sparse files).--transfers / --checkers against API quotas; custom OAuth client for Google Drive when hitting shared-client 403s.rclone check / --checksum where backends support hashes; do not assume Drive hash parity equals S3 ETag semantics.--resync --dry-run -v; critical errors lock future runs until resync—do not treat as casual Dropbox replacement.RCLONE_CONFIG_PASS / obscured passwords; never invent AWS keys in examples—use AWS_PROFILE / instance role language.#!/usr/bin/env bash
set -euo pipefail
SOURCE="${SOURCE_DIR:-/var/backups/app}"
DEST="${RCLONE_DEST:-s3backup:prod-backups/app}" # remote:bucket/path from rclone.conf
LOG="${LOG_FILE:-/var/log/rclone-app-backup.log}"
CONF="${RCLONE_CONFIG:-$HOME/.config/rclone/rclone.conf}"
common=(
--config "$CONF"
--transfers 8 --checkers 16
--fast-list
--retries 5 --low-level-retries 10
--bwlimit "${BW_LIMIT:-0}"
--exclude ".git/**" --exclude "*.tmp"
--log-file "$LOG" --log-level INFO --stats 1m
)
# Preview deletions/changes
rclone sync "$SOURCE" "$DEST" "${common[@]}" --dry-run -v
# Operator gate in interactive use; in cron, require CONFIRM_SYNC=1
if [[ "${CONFIRM_SYNC:-}" != "1" ]]; then
echo "Set CONFIRM_SYNC=1 after reviewing dry-run" >&2
exit 2
fi
rclone sync "$SOURCE" "$DEST" "${common[@]}" \
--backup-dir "${DEST}-trash/$(date +%F)"
Mount recipe (Linux):
rclone mount s3backup:prod-media /mnt/media \
--vfs-cache-mode full \
--vfs-cache-max-size 40G \
--dir-cache-time 72h \
--allow-other \
--daemon
Crypt overlay (password via rclone config / obscured—do not hardcode):
[cryptbackup]
type = crypt
remote = s3backup:encrypted-bucket
filename_encryption = standard
directory_name_encryption = true
# password / password2 set via rclone config (obscured)
| Signature | Likely cause | Fix path |
|---|---|---|
Unexpected remote deletes after sync | sync mirrors source deletions | Restore from versioning/--backup-dir; switch to copy; always dry-run first |
Google Drive 403 rate / user rate limit | Shared rclone OAuth client quota | Create project OAuth client; set client_id/client_secret on remote |
| Mount: cannot open R/W, seek fails | --vfs-cache-mode off (default) | Use full or writes; size --vfs-cache-max-size |
| Mount ERROR about sparse files | Cache on FAT/exFAT | Move --cache-dir to ext4/NTFS/APFS |
S3 multipart RequestTimeout | Large object / slow link | Raise --s3-chunk-size, --timeout, low-level retries; rclone cleanup aborted uploads |
bisync refuses to run / .lst-err | Prior critical error lockout | Inspect listings; --resync --dry-run -v then careful resync |
check mismatches | Backend hash differences / modified during copy | Re-copy; use size+modtime compare; freeze writers during backup |
s3-prod, s3-scratch); never point prod sync at a test bucket by typo—use distinct names.@github-actions, @aws-cli).--stats; alert on non-zero exit in systemd timers.--fast-list where supported; watch memory.rclone mount are high risk.bisync can lose data if misused; official docs stress dry-run and recovery discipline.@aws-cli — S3 IAM, bucket policies, lifecycle alongside rclone@vault — store remote credentials / config passphrases@github-actions — scheduled sync jobs with OIDC cloud auth@docker — sidecar transfer jobs with mounted config@ansible — distribute rclone.conf securely to backup hostsMANDATORY: Treat
rclone syncas destructive—require--dry-run(or interactive confirmation) and prefer--backup-dirorcopywhen unsure. For mounts, set an explicit--vfs-cache-modeappropriate to the app (fullfor general R/W). Never invent cloud access keys. Escalate before recommending bisync on production trees.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job