Remote Access

rsync

Synchronizes files locally or over SSH.

rsync efficiently copies differences between source and destination. It is widely used for backups, deployments, and migrations.

Syntax
rsync [options] source destination

Arguments explained

  • source and destination may be local or remote.
  • -a enables archive mode.
  • -v is verbose.
  • -z compresses during transfer.
  • --delete removes destination files missing from source.

Common examples

Sync a directory
rsync -av ~/site/ server:/var/www/site/

Copies changes from local site directory to a remote server.

Preview changes
rsync -av --dry-run source/ backup/

Shows what would change without copying.

rsync Command
FieldDetails
Commandrsync
CategoryRemote Access
Primary useSynchronizes files locally or over SSH.
Syntaxrsync [options] source destination