用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/johnalbertini14-glitch/openclaw-skills --skill sync命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | Sync |
| description | Synchronize files and directories between local, remote, and cloud storage reliably. |
| metadata | {"clawdbot":{"emoji":"🔄","requires":{"anyBins":["rsync","rclone"]},"os":["linux","darwin","win32"]}} |
rsync src/ copies contents, rsync src copies the folder itself — this is the #1 cause of wrong directory structures-avz baseline: archive mode preserves permissions/timestamps, verbose shows progress, compress speeds transfers--delete only when you want destination to mirror source exactly — without it, deleted source files remain on destination--dry-run before any destructive sync — shows what would change without modifying anything--exclude flags: rsync -avz --exclude-from=.syncignore src/ dest/.git/, node_modules/, __pycache__/, .venv/, *.pyc, .DS_Store, Thumbs.db/logs/ excludes only top-level logs, logs/ excludes logs/ anywhererclone sync deletes destination files not in source; rclone copy only adds — use copy when unsurerclone config — never hardcode cloud credentials in scripts--dry-run first, then --progress for visual feedback during actual sync--s3-chunk-size 64M for large files to avoid timeoutsrsync -avzc uses checksums instead of size/time (slower but certain)rclone check source: dest: to compare without transferringrsync -avz src/ dest/ | tee sync.logunison dir1 dir2rsync -avz -e "ssh -i ~/.ssh/key" src/ user@host:dest/-e "ssh -p 2222"--partial --progress for large files over unreliable connections — allows resume on failure--delete repeatedly causes destination to accumulate deleted files forever--checksum for accuracy or sync NTP first