rsync

CLI

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

0 views

Installation

Homebrewbrew install rsync
aptsudo apt install rsync

Links

License

GPL-3.0

AI Agent Notes

Efficiently sync files locally or over SSH with delta transfers

When to use

Backing up directories, syncing to/from remote servers

Examples
  • rsync -avz src/ user@host:/dest/
  • rsync -av --delete src/ dst/

Proven Recipes

Sync directory to remote server🟢 97% success
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% success
rsync -av --delete src/ dst/
⚠ Common failures (1)
  • Unintended file deletionRun with --dry-run first to preview changes