rsync
CLIFast, versatile file copy and sync tool for local and remote transfers.
Efficiently sync files locally or over SSH with delta transfers
Recipes
Curated from documentation and usage. Percentages are estimates, not measurements.
Sync directory to remote server
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)
rsync -av --delete src/ dst/Common failures (1)
- Unintended file deletionRun with --dry-run first to preview changes
Install
Homebrew
brew install rsyncapt
sudo apt install rsyncAgent 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.