rsync

CLI

Fast, versatile file copy and sync tool for local and remote transfers.

Efficiently sync files locally or over SSH with delta transfers

2 curated recipes · not yet executed by the harness#sync#copy#remote#backup

Recipes

Curated from documentation and usage. Percentages are estimates, not measurements.

Sync directory to remote server

~97% est.
rsync -avz --progress ./local/ user@host:/remote/path/
Common failures (1)
  • Permission deniedEnsure SSH key is set up or use --rsync-path='sudo rsync'

Mirror directory (delete removed files)

~96% est.
rsync -av --delete src/ dst/
Common failures (1)
  • Unintended file deletionRun with --dry-run first to preview changes

Install

Homebrewbrew install rsync
aptsudo apt install rsync

Agent notes

When to use
Backing up directories, syncing to/from remote servers
Quick examples
  • rsync -avz src/ user@host:/dest/
  • rsync -av --delete src/ dst/

Use from an agent

curl -s https://clihub.com/api/tools/rsync | jq '.agentHints.provenRecipes[] | {task, command, verified}'

Or call get_tool with slug rsync on the MCP server at https://clihub.com/mcp.

Homepage ↗GPL-3.00 views