rsync

Synchronize files and directories with rsync: copy files between servers, sync directories, create incremental backups, deploy files to remote servers, or efficiently mirror directories. Suitable for scenarios needing efficient file synchronization and replication.

Last repository push
GitHub Stars
219
Forks
38
Issues / PRs
7

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "rsync" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4189752e243563d8fb8cd48578a1a105ef8b8ca7db6500deb6960634e41a35af. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Synchronize files and directories with rsync: copy files between servers, sync directories, create incremental backups, deploy files to remote servers, or efficiently mirror directories. Suitable for scenarios needing efficient file synchronization and replication.

0 Downloads

Introduction source: third_party · TerminalSkills · 1.0.0 Reference

SkillPi interpretation

Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: rsync
description: >-
  Sync files and directories with rsync. Use when a user asks to copy files
  between servers, sync directories, create incremental backups, deploy files
  to a remote server, or mirror directories efficiently.
license: Apache-2.0
compatibility: 'Linux, macOS'
metadata:
  author: terminal-skills
  version: 1.0.0
  category: devops
  tags:
    - rsync
    - sync
    - backup
    - deploy
    - file-transfer

rsync

Overview

rsync is the standard tool for efficient file synchronization. It only transfers changed parts of files (delta transfer), supports SSH, handles permissions, and works for backups, deployments, and directory mirroring.

Instructions

Step 1: Basic Usage

# Sync local directories
rsync -avz source/ destination/
# -a = archive (preserves permissions, timestamps, symlinks)
# -v = verbose
# -z = compress during transfer

# Sync to remote server
rsync -avz ./dist/ deploy@server:/var/www/myapp/

# Sync from remote
rsync -avz deploy@server:/var/log/myapp/ ./logs/

# Dry run (show what would change without doing it)
rsync -avzn source/ destination/

Step 2: Common Patterns

# Deploy website (delete files on destination that don't exist in source)
rsync -avz --delete ./build/ deploy@server:/var/www/site/

# Backup with exclude
rsync -avz --exclude='node_modules' --exclude='.git' --exclude='.env' \
  /opt/myapp/ /backups/myapp/

# Incremental backup with hard links (space-efficient)
rsync -avz --link-dest=/backups/latest \
  /opt/myapp/ /backups/$(date +%Y%m%d)/
ln -snf /backups/$(date +%Y%m%d) /backups/latest

# Bandwidth limited (useful for large transfers)
rsync -avz --bwlimit=5000 source/ destination/    # 5000 KB/s

Step 3: Deployment Script

#!/bin/bash
# scripts/deploy.sh — Deploy app with rsync
SERVER="deploy@prod.example.com"
REMOTE_DIR="/var/www/myapp"

echo "Building..."
npm run build

echo "Syncing files..."
rsync -avz --delete \
  --exclude='node_modules' \
  --exclude='.env' \
  --exclude='.git' \
  ./dist/ ${SERVER}:${REMOTE_DIR}/

echo "Restarting service..."
ssh ${SERVER} "sudo systemctl restart myapp"

echo "Deploy complete!"

Guidelines

  • Always use -n (dry run) first when using --delete to avoid accidental data loss.
  • Trailing slash matters: source/ syncs contents, source syncs the directory itself.
  • For large transfers, add --progress to see per-file progress.
  • rsync over SSH is encrypted by default — safe for internet transfers.

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 覆盖服务器间文件复制、目录同步、增量备份、远程部署等多个高频刚需场景
  • 提供实际可落地的部署脚本和最佳实践指导
Trigger Precision90/100

Highlights

  • 触发描述清晰完整,涵盖多种典型使用变体
  • 边界明确,不易与其他文件操作类 Skill 混淆
Structure and Standards90/100

Highlights

  • 文档结构层次分明,Step 1/2/3 递进式引导用户
  • 包含端到端部署脚本示例,frontmatter 元数据完整规范
Execution Reliability85/100

Highlights

  • 提供具体可执行的命令示例和参数说明
  • 强调 dry run 防误删等安全操作建议,覆盖主要异常场景
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.